@blues-inc/notehub-js 1.0.37-beta.4 → 1.0.37-beta.6
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 +10 -7
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +8 -8
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +10 -10
- package/dist/api/ProjectApi.js +14 -14
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +59 -38
- package/dist/model/Alert.js +91 -91
- package/dist/model/AlertDataInner.js +10 -10
- package/dist/model/AlertNotificationsInner.js +10 -10
- package/dist/model/AnalyticsEventsData.js +14 -14
- package/dist/model/AnalyticsEventsResponse.js +1 -1
- package/dist/model/AnalyticsRouteLogsData.js +15 -15
- package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
- package/dist/model/AnalyticsSessionsData.js +14 -14
- package/dist/model/AnalyticsSessionsResponse.js +1 -1
- package/dist/model/Aws.js +86 -86
- package/dist/model/Azure.js +51 -51
- package/dist/model/BillingAccount.js +19 -19
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +25 -25
- package/dist/model/Contact.js +19 -19
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +186 -186
- package/dist/model/CreateProductRequest.js +30 -30
- package/dist/model/CreateProjectRequest.js +20 -20
- package/dist/model/CreateUpdateRepository.js +18 -18
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +60 -60
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +164 -0
- package/dist/model/DataSetField.js +14 -14
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +134 -134
- package/dist/model/DeviceDfuHistory.js +15 -15
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +14 -14
- package/dist/model/DeviceDfuStateMachineNode.js +27 -27
- package/dist/model/DeviceDfuStatus.js +15 -15
- package/dist/model/{DeviceDfuHistoryCurrent.js → DeviceDfuStatusCurrent.js} +52 -52
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +278 -278
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +36 -36
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +76 -76
- package/dist/model/EnvVar.js +9 -9
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +38 -38
- package/dist/model/Event.js +340 -340
- package/dist/model/Firmware.js +45 -45
- package/dist/model/FirmwareInfo.js +71 -71
- package/dist/model/Fleet.js +31 -31
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/{GetDeviceEnvironmentVariablesByPin200Response.js → GetDeviceEnvironmentVariables200Response.js} +30 -30
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +18 -18
- package/dist/model/GetDeviceSessions200Response.js +14 -14
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
- package/dist/model/{GetDeviceFleets200Response.js → GetProjectFleets200Response.js} +20 -20
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +35 -35
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +43 -43
- package/dist/model/{AwsFilter.js → HttpFilter.js} +32 -32
- package/dist/model/{AwsTransform.js → HttpTransform.js} +21 -21
- package/dist/model/Location.js +38 -38
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +135 -135
- package/dist/model/MonitorAlertRoutesInner.js +12 -12
- package/dist/model/Mqtt.js +91 -91
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +30 -30
- package/dist/model/NotehubRouteSchema.js +80 -80
- package/dist/model/PersonalAccessToken.js +37 -37
- package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
- package/dist/model/PersonalAccessTokenInfo.js +13 -13
- package/dist/model/PersonalAccessTokenSecret.js +14 -14
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +29 -29
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +19 -19
- package/dist/model/Proxy.js +21 -21
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QuestionDataResponseLineChart.js +204 -0
- package/dist/model/QuestionDataResponseMap.js +143 -0
- package/dist/model/Radresponder.js +28 -28
- package/dist/model/Repository.js +22 -22
- package/dist/model/RouteLog.js +28 -28
- package/dist/model/SchemaProperty.js +36 -34
- package/dist/model/SimUsage.js +72 -19
- package/dist/model/Slack.js +71 -71
- package/dist/model/SlackBearerNotification.js +14 -14
- package/dist/model/SlackWebHookNotification.js +14 -14
- package/dist/model/Snowflake.js +57 -57
- package/dist/model/{SlackTransform.js → SnowflakeTransform.js} +19 -19
- package/dist/model/Thingworx.js +36 -36
- package/dist/model/TowerLocation.js +58 -58
- package/dist/model/Twilio.js +46 -46
- package/dist/model/UpdateFleetRequest.js +14 -14
- package/dist/model/UploadMetadata.js +68 -68
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +14 -14
- package/dist/model/UserDfuStateMachineStatus.js +9 -9
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
|
@@ -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 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.6
|
|
30
30
|
*/
|
|
31
31
|
var TowerLocation = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,17 +59,17 @@ 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('source')) {
|
|
63
|
+
obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty('
|
|
66
|
-
obj['
|
|
65
|
+
if (data.hasOwnProperty('time')) {
|
|
66
|
+
obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Number');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty('
|
|
69
|
-
obj['
|
|
68
|
+
if (data.hasOwnProperty('n')) {
|
|
69
|
+
obj['n'] = _ApiClient["default"].convertToType(data['n'], 'String');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty('
|
|
72
|
-
obj['
|
|
71
|
+
if (data.hasOwnProperty('c')) {
|
|
72
|
+
obj['c'] = _ApiClient["default"].convertToType(data['c'], 'String');
|
|
73
73
|
}
|
|
74
74
|
if (data.hasOwnProperty('lat')) {
|
|
75
75
|
obj['lat'] = _ApiClient["default"].convertToType(data['lat'], 'Number');
|
|
@@ -77,29 +77,29 @@ var TowerLocation = /*#__PURE__*/function () {
|
|
|
77
77
|
if (data.hasOwnProperty('lon')) {
|
|
78
78
|
obj['lon'] = _ApiClient["default"].convertToType(data['lon'], 'Number');
|
|
79
79
|
}
|
|
80
|
+
if (data.hasOwnProperty('zone')) {
|
|
81
|
+
obj['zone'] = _ApiClient["default"].convertToType(data['zone'], 'String');
|
|
82
|
+
}
|
|
80
83
|
if (data.hasOwnProperty('mcc')) {
|
|
81
84
|
obj['mcc'] = _ApiClient["default"].convertToType(data['mcc'], 'Number');
|
|
82
85
|
}
|
|
83
86
|
if (data.hasOwnProperty('mnc')) {
|
|
84
87
|
obj['mnc'] = _ApiClient["default"].convertToType(data['mnc'], 'Number');
|
|
85
88
|
}
|
|
86
|
-
if (data.hasOwnProperty('
|
|
87
|
-
obj['
|
|
88
|
-
}
|
|
89
|
-
if (data.hasOwnProperty('source')) {
|
|
90
|
-
obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
|
|
89
|
+
if (data.hasOwnProperty('lac')) {
|
|
90
|
+
obj['lac'] = _ApiClient["default"].convertToType(data['lac'], 'Number');
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty('
|
|
93
|
-
obj['
|
|
92
|
+
if (data.hasOwnProperty('cid')) {
|
|
93
|
+
obj['cid'] = _ApiClient["default"].convertToType(data['cid'], 'Number');
|
|
94
94
|
}
|
|
95
|
-
if (data.hasOwnProperty('
|
|
96
|
-
obj['
|
|
95
|
+
if (data.hasOwnProperty('l')) {
|
|
96
|
+
obj['l'] = _ApiClient["default"].convertToType(data['l'], 'String');
|
|
97
97
|
}
|
|
98
98
|
if (data.hasOwnProperty('z')) {
|
|
99
99
|
obj['z'] = _ApiClient["default"].convertToType(data['z'], 'Number');
|
|
100
100
|
}
|
|
101
|
-
if (data.hasOwnProperty('
|
|
102
|
-
obj['
|
|
101
|
+
if (data.hasOwnProperty('towers')) {
|
|
102
|
+
obj['towers'] = _ApiClient["default"].convertToType(data['towers'], 'Number');
|
|
103
103
|
}
|
|
104
104
|
} else if (data === null) {
|
|
105
105
|
return null;
|
|
@@ -116,52 +116,52 @@ 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 `
|
|
121
|
-
}
|
|
122
|
-
// ensure the json data is a string
|
|
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']);
|
|
119
|
+
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
|
|
125
121
|
}
|
|
126
122
|
// ensure the json data is a string
|
|
127
123
|
if (data['n'] && !(typeof data['n'] === 'string' || data['n'] instanceof String)) {
|
|
128
124
|
throw new Error("Expected the field `n` to be a primitive type in the JSON string but got " + data['n']);
|
|
129
125
|
}
|
|
130
126
|
// ensure the json data is a string
|
|
131
|
-
if (data['
|
|
132
|
-
throw new Error("Expected the field `
|
|
127
|
+
if (data['c'] && !(typeof data['c'] === 'string' || data['c'] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `c` to be a primitive type in the JSON string but got " + data['c']);
|
|
133
129
|
}
|
|
134
130
|
// ensure the json data is a string
|
|
135
131
|
if (data['zone'] && !(typeof data['zone'] === 'string' || data['zone'] instanceof String)) {
|
|
136
132
|
throw new Error("Expected the field `zone` to be a primitive type in the JSON string but got " + data['zone']);
|
|
137
133
|
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['l'] && !(typeof data['l'] === 'string' || data['l'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `l` to be a primitive type in the JSON string but got " + data['l']);
|
|
137
|
+
}
|
|
138
138
|
return true;
|
|
139
139
|
}
|
|
140
140
|
}]);
|
|
141
141
|
}();
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
144
|
-
* @member {String}
|
|
143
|
+
* The source of this location
|
|
144
|
+
* @member {String} source
|
|
145
145
|
*/
|
|
146
|
-
TowerLocation.prototype['
|
|
146
|
+
TowerLocation.prototype['source'] = undefined;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @member {Number}
|
|
149
|
+
* Unix timestamp when this location was ascertained
|
|
150
|
+
* @member {Number} time
|
|
151
151
|
*/
|
|
152
|
-
TowerLocation.prototype['
|
|
152
|
+
TowerLocation.prototype['time'] = undefined;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
156
|
-
* @member {String}
|
|
155
|
+
* Name of the location
|
|
156
|
+
* @member {String} n
|
|
157
157
|
*/
|
|
158
|
-
TowerLocation.prototype['
|
|
158
|
+
TowerLocation.prototype['n'] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
162
|
-
* @member {
|
|
161
|
+
* Country code
|
|
162
|
+
* @member {String} c
|
|
163
163
|
*/
|
|
164
|
-
TowerLocation.prototype['
|
|
164
|
+
TowerLocation.prototype['c'] = undefined;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Latitude
|
|
@@ -175,6 +175,12 @@ TowerLocation.prototype['lat'] = undefined;
|
|
|
175
175
|
*/
|
|
176
176
|
TowerLocation.prototype['lon'] = undefined;
|
|
177
177
|
|
|
178
|
+
/**
|
|
179
|
+
* Timezone name
|
|
180
|
+
* @member {String} zone
|
|
181
|
+
*/
|
|
182
|
+
TowerLocation.prototype['zone'] = undefined;
|
|
183
|
+
|
|
178
184
|
/**
|
|
179
185
|
* Mobile Country Code
|
|
180
186
|
* @member {Number} mcc
|
|
@@ -188,28 +194,22 @@ TowerLocation.prototype['mcc'] = undefined;
|
|
|
188
194
|
TowerLocation.prototype['mnc'] = undefined;
|
|
189
195
|
|
|
190
196
|
/**
|
|
191
|
-
*
|
|
192
|
-
* @member {
|
|
193
|
-
*/
|
|
194
|
-
TowerLocation.prototype['n'] = undefined;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* The source of this location
|
|
198
|
-
* @member {String} source
|
|
197
|
+
* Location Area Code
|
|
198
|
+
* @member {Number} lac
|
|
199
199
|
*/
|
|
200
|
-
TowerLocation.prototype['
|
|
200
|
+
TowerLocation.prototype['lac'] = undefined;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
|
-
*
|
|
204
|
-
* @member {Number}
|
|
203
|
+
* Cell ID
|
|
204
|
+
* @member {Number} cid
|
|
205
205
|
*/
|
|
206
|
-
TowerLocation.prototype['
|
|
206
|
+
TowerLocation.prototype['cid'] = undefined;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
*
|
|
210
|
-
* @member {
|
|
209
|
+
* Open Location Code
|
|
210
|
+
* @member {String} l
|
|
211
211
|
*/
|
|
212
|
-
TowerLocation.prototype['
|
|
212
|
+
TowerLocation.prototype['l'] = undefined;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
215
|
* Timezone ID
|
|
@@ -218,8 +218,8 @@ TowerLocation.prototype['towers'] = undefined;
|
|
|
218
218
|
TowerLocation.prototype['z'] = undefined;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @member {
|
|
221
|
+
* Number of triangulation points
|
|
222
|
+
* @member {Number} towers
|
|
223
223
|
*/
|
|
224
|
-
TowerLocation.prototype['
|
|
224
|
+
TowerLocation.prototype['towers'] = undefined;
|
|
225
225
|
var _default = exports["default"] = TowerLocation;
|
package/dist/model/Twilio.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
11
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The Twilio model module.
|
|
29
29
|
* @module model/Twilio
|
|
30
|
-
* @version 1.0.37-beta.
|
|
30
|
+
* @version 1.0.37-beta.6
|
|
31
31
|
*/
|
|
32
32
|
var Twilio = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -61,17 +61,23 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new Twilio();
|
|
64
|
+
if (data.hasOwnProperty('fleets')) {
|
|
65
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
66
|
+
}
|
|
67
|
+
if (data.hasOwnProperty('filter')) {
|
|
68
|
+
obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('timeout')) {
|
|
71
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
72
|
+
}
|
|
64
73
|
if (data.hasOwnProperty('account_sid')) {
|
|
65
74
|
obj['account_sid'] = _ApiClient["default"].convertToType(data['account_sid'], 'String');
|
|
66
75
|
}
|
|
67
76
|
if (data.hasOwnProperty('auth_token')) {
|
|
68
77
|
obj['auth_token'] = _ApiClient["default"].convertToType(data['auth_token'], 'String');
|
|
69
78
|
}
|
|
70
|
-
if (data.hasOwnProperty('
|
|
71
|
-
obj['
|
|
72
|
-
}
|
|
73
|
-
if (data.hasOwnProperty('fleets')) {
|
|
74
|
-
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
79
|
+
if (data.hasOwnProperty('to')) {
|
|
80
|
+
obj['to'] = _ApiClient["default"].convertToType(data['to'], 'String');
|
|
75
81
|
}
|
|
76
82
|
if (data.hasOwnProperty('from')) {
|
|
77
83
|
obj['from'] = _ApiClient["default"].convertToType(data['from'], 'String');
|
|
@@ -82,12 +88,6 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
82
88
|
if (data.hasOwnProperty('throttle_ms')) {
|
|
83
89
|
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
84
90
|
}
|
|
85
|
-
if (data.hasOwnProperty('timeout')) {
|
|
86
|
-
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
87
|
-
}
|
|
88
|
-
if (data.hasOwnProperty('to')) {
|
|
89
|
-
obj['to'] = _ApiClient["default"].convertToType(data['to'], 'String');
|
|
90
|
-
}
|
|
91
91
|
} else if (data === null) {
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
@@ -102,6 +102,15 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
102
102
|
}, {
|
|
103
103
|
key: "validateJSON",
|
|
104
104
|
value: function validateJSON(data) {
|
|
105
|
+
// ensure the json data is an array
|
|
106
|
+
if (!Array.isArray(data['fleets'])) {
|
|
107
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
108
|
+
}
|
|
109
|
+
// validate the optional field `filter`
|
|
110
|
+
if (data['filter']) {
|
|
111
|
+
// data not null
|
|
112
|
+
_HttpFilter["default"].validateJSON(data['filter']);
|
|
113
|
+
}
|
|
105
114
|
// ensure the json data is a string
|
|
106
115
|
if (data['account_sid'] && !(typeof data['account_sid'] === 'string' || data['account_sid'] instanceof String)) {
|
|
107
116
|
throw new Error("Expected the field `account_sid` to be a primitive type in the JSON string but got " + data['account_sid']);
|
|
@@ -110,14 +119,9 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
110
119
|
if (data['auth_token'] && !(typeof data['auth_token'] === 'string' || data['auth_token'] instanceof String)) {
|
|
111
120
|
throw new Error("Expected the field `auth_token` to be a primitive type in the JSON string but got " + data['auth_token']);
|
|
112
121
|
}
|
|
113
|
-
//
|
|
114
|
-
if (data['
|
|
115
|
-
|
|
116
|
-
_AwsFilter["default"].validateJSON(data['filter']);
|
|
117
|
-
}
|
|
118
|
-
// ensure the json data is an array
|
|
119
|
-
if (!Array.isArray(data['fleets'])) {
|
|
120
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
122
|
+
// ensure the json data is a string
|
|
123
|
+
if (data['to'] && !(typeof data['to'] === 'string' || data['to'] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data['to']);
|
|
121
125
|
}
|
|
122
126
|
// ensure the json data is a string
|
|
123
127
|
if (data['from'] && !(typeof data['from'] === 'string' || data['from'] instanceof String)) {
|
|
@@ -127,14 +131,28 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
127
131
|
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
128
132
|
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
129
133
|
}
|
|
130
|
-
// ensure the json data is a string
|
|
131
|
-
if (data['to'] && !(typeof data['to'] === 'string' || data['to'] instanceof String)) {
|
|
132
|
-
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data['to']);
|
|
133
|
-
}
|
|
134
134
|
return true;
|
|
135
135
|
}
|
|
136
136
|
}]);
|
|
137
137
|
}();
|
|
138
|
+
/**
|
|
139
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
140
|
+
* @member {Array.<String>} fleets
|
|
141
|
+
*/
|
|
142
|
+
Twilio.prototype['fleets'] = undefined;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @member {module:model/HttpFilter} filter
|
|
146
|
+
*/
|
|
147
|
+
Twilio.prototype['filter'] = undefined;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Timeout in seconds for each request
|
|
151
|
+
* @member {Number} timeout
|
|
152
|
+
* @default 15
|
|
153
|
+
*/
|
|
154
|
+
Twilio.prototype['timeout'] = 15;
|
|
155
|
+
|
|
138
156
|
/**
|
|
139
157
|
* Twilio Account SID
|
|
140
158
|
* @member {String} account_sid
|
|
@@ -148,15 +166,10 @@ Twilio.prototype['account_sid'] = undefined;
|
|
|
148
166
|
Twilio.prototype['auth_token'] = undefined;
|
|
149
167
|
|
|
150
168
|
/**
|
|
151
|
-
*
|
|
152
|
-
|
|
153
|
-
Twilio.prototype['filter'] = undefined;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
157
|
-
* @member {Array.<String>} fleets
|
|
169
|
+
* Phone number to send SMS to, leave blank to use notefile, must use E.164 format
|
|
170
|
+
* @member {String} to
|
|
158
171
|
*/
|
|
159
|
-
Twilio.prototype['
|
|
172
|
+
Twilio.prototype['to'] = undefined;
|
|
160
173
|
|
|
161
174
|
/**
|
|
162
175
|
* Phone number to send SMS from, leave blank to use notefile, must use E.164 format
|
|
@@ -174,17 +187,4 @@ Twilio.prototype['message'] = undefined;
|
|
|
174
187
|
* @member {Number} throttle_ms
|
|
175
188
|
*/
|
|
176
189
|
Twilio.prototype['throttle_ms'] = undefined;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Timeout in seconds for each request
|
|
180
|
-
* @member {Number} timeout
|
|
181
|
-
* @default 15
|
|
182
|
-
*/
|
|
183
|
-
Twilio.prototype['timeout'] = 15;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Phone number to send SMS to, leave blank to use notefile, must use E.164 format
|
|
187
|
-
* @member {String} to
|
|
188
|
-
*/
|
|
189
|
-
Twilio.prototype['to'] = undefined;
|
|
190
190
|
var _default = exports["default"] = Twilio;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UpdateFleetRequest model module.
|
|
28
28
|
* @module model/UpdateFleetRequest
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.6
|
|
30
30
|
*/
|
|
31
31
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,12 +59,12 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new UpdateFleetRequest();
|
|
62
|
-
if (data.hasOwnProperty('addDevices')) {
|
|
63
|
-
obj['addDevices'] = _ApiClient["default"].convertToType(data['addDevices'], ['String']);
|
|
64
|
-
}
|
|
65
62
|
if (data.hasOwnProperty('label')) {
|
|
66
63
|
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
67
64
|
}
|
|
65
|
+
if (data.hasOwnProperty('addDevices')) {
|
|
66
|
+
obj['addDevices'] = _ApiClient["default"].convertToType(data['addDevices'], ['String']);
|
|
67
|
+
}
|
|
68
68
|
if (data.hasOwnProperty('removeDevices')) {
|
|
69
69
|
obj['removeDevices'] = _ApiClient["default"].convertToType(data['removeDevices'], ['String']);
|
|
70
70
|
}
|
|
@@ -88,15 +88,15 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
88
88
|
}, {
|
|
89
89
|
key: "validateJSON",
|
|
90
90
|
value: function validateJSON(data) {
|
|
91
|
-
// ensure the json data is an array
|
|
92
|
-
if (!Array.isArray(data['addDevices'])) {
|
|
93
|
-
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data['addDevices']);
|
|
94
|
-
}
|
|
95
91
|
// ensure the json data is a string
|
|
96
92
|
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
97
93
|
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
98
94
|
}
|
|
99
95
|
// ensure the json data is an array
|
|
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
|
+
}
|
|
99
|
+
// ensure the json data is an array
|
|
100
100
|
if (!Array.isArray(data['removeDevices'])) {
|
|
101
101
|
throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data['removeDevices']);
|
|
102
102
|
}
|
|
@@ -108,18 +108,18 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
108
108
|
}
|
|
109
109
|
}]);
|
|
110
110
|
}();
|
|
111
|
-
/**
|
|
112
|
-
* List of DeviceUIDs to add to fleet
|
|
113
|
-
* @member {Array.<String>} addDevices
|
|
114
|
-
*/
|
|
115
|
-
UpdateFleetRequest.prototype['addDevices'] = undefined;
|
|
116
|
-
|
|
117
111
|
/**
|
|
118
112
|
* The label for the Fleet.
|
|
119
113
|
* @member {String} label
|
|
120
114
|
*/
|
|
121
115
|
UpdateFleetRequest.prototype['label'] = undefined;
|
|
122
116
|
|
|
117
|
+
/**
|
|
118
|
+
* List of DeviceUIDs to add to fleet
|
|
119
|
+
* @member {Array.<String>} addDevices
|
|
120
|
+
*/
|
|
121
|
+
UpdateFleetRequest.prototype['addDevices'] = undefined;
|
|
122
|
+
|
|
123
123
|
/**
|
|
124
124
|
* List of DeviceUIDs to remove from fleet
|
|
125
125
|
* @member {Array.<String>} removeDevices
|