@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
package/dist/api/RouteApi.js
CHANGED
|
@@ -16,18 +16,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
16
16
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
17
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
18
|
/**
|
|
19
|
-
* Route service.
|
|
20
|
-
* @module api/RouteApi
|
|
21
|
-
* @version 1.0.
|
|
22
|
-
*/
|
|
19
|
+
* Route service.
|
|
20
|
+
* @module api/RouteApi
|
|
21
|
+
* @version 1.0.11
|
|
22
|
+
*/
|
|
23
23
|
var RouteApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
* Constructs a new RouteApi.
|
|
26
|
+
* @alias module:api/RouteApi
|
|
27
|
+
* @class
|
|
28
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
29
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
30
|
+
*/
|
|
31
31
|
function RouteApi(apiClient) {
|
|
32
32
|
_classCallCheck(this, RouteApi);
|
|
33
33
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -35,7 +35,7 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Create Route within a Project
|
|
38
|
-
* @param {String} projectUID
|
|
38
|
+
* @param {String} projectUID
|
|
39
39
|
* @param {module:model/Route} route Route to be Created
|
|
40
40
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Route} and HTTP response
|
|
41
41
|
*/
|
|
@@ -52,21 +52,21 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
52
52
|
throw new _Error["default"]("Missing the required parameter 'route' when calling createRoute");
|
|
53
53
|
}
|
|
54
54
|
var pathParams = {
|
|
55
|
-
|
|
55
|
+
projectUID: projectUID
|
|
56
56
|
};
|
|
57
57
|
var queryParams = {};
|
|
58
58
|
var headerParams = {};
|
|
59
59
|
var formParams = {};
|
|
60
|
-
var authNames = [
|
|
61
|
-
var contentTypes = [
|
|
62
|
-
var accepts = [
|
|
60
|
+
var authNames = ["bearer_access_token"];
|
|
61
|
+
var contentTypes = ["application/json"];
|
|
62
|
+
var accepts = ["application/json"];
|
|
63
63
|
var returnType = _Route["default"];
|
|
64
|
-
return this.apiClient.callApi(
|
|
64
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/routes", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Create Route within a Project
|
|
69
|
-
* @param {String} projectUID
|
|
69
|
+
* @param {String} projectUID
|
|
70
70
|
* @param {module:model/Route} route Route to be Created
|
|
71
71
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
|
|
72
72
|
*/
|
|
@@ -80,8 +80,8 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* Delete single route within a project
|
|
83
|
-
* @param {String} projectUID
|
|
84
|
-
* @param {String} routeUID
|
|
83
|
+
* @param {String} projectUID
|
|
84
|
+
* @param {String} routeUID
|
|
85
85
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
86
86
|
*/
|
|
87
87
|
}, {
|
|
@@ -97,23 +97,23 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
97
97
|
throw new _Error["default"]("Missing the required parameter 'routeUID' when calling deleteRoute");
|
|
98
98
|
}
|
|
99
99
|
var pathParams = {
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
projectUID: projectUID,
|
|
101
|
+
routeUID: routeUID
|
|
102
102
|
};
|
|
103
103
|
var queryParams = {};
|
|
104
104
|
var headerParams = {};
|
|
105
105
|
var formParams = {};
|
|
106
|
-
var authNames = [
|
|
106
|
+
var authNames = ["bearer_access_token"];
|
|
107
107
|
var contentTypes = [];
|
|
108
|
-
var accepts = [
|
|
108
|
+
var accepts = ["application/json"];
|
|
109
109
|
var returnType = Object;
|
|
110
|
-
return this.apiClient.callApi(
|
|
110
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/routes/{routeUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Delete single route within a project
|
|
115
|
-
* @param {String} projectUID
|
|
116
|
-
* @param {String} routeUID
|
|
115
|
+
* @param {String} projectUID
|
|
116
|
+
* @param {String} routeUID
|
|
117
117
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
118
118
|
*/
|
|
119
119
|
}, {
|
|
@@ -126,8 +126,8 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* Get single route within a project
|
|
129
|
-
* @param {String} projectUID
|
|
130
|
-
* @param {String} routeUID
|
|
129
|
+
* @param {String} projectUID
|
|
130
|
+
* @param {String} routeUID
|
|
131
131
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Route} and HTTP response
|
|
132
132
|
*/
|
|
133
133
|
}, {
|
|
@@ -143,23 +143,23 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
143
143
|
throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRoute");
|
|
144
144
|
}
|
|
145
145
|
var pathParams = {
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
projectUID: projectUID,
|
|
147
|
+
routeUID: routeUID
|
|
148
148
|
};
|
|
149
149
|
var queryParams = {};
|
|
150
150
|
var headerParams = {};
|
|
151
151
|
var formParams = {};
|
|
152
|
-
var authNames = [
|
|
152
|
+
var authNames = ["bearer_access_token"];
|
|
153
153
|
var contentTypes = [];
|
|
154
|
-
var accepts = [
|
|
154
|
+
var accepts = ["application/json"];
|
|
155
155
|
var returnType = _Route["default"];
|
|
156
|
-
return this.apiClient.callApi(
|
|
156
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/routes/{routeUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* Get single route within a project
|
|
161
|
-
* @param {String} projectUID
|
|
162
|
-
* @param {String} routeUID
|
|
161
|
+
* @param {String} projectUID
|
|
162
|
+
* @param {String} routeUID
|
|
163
163
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
|
|
164
164
|
*/
|
|
165
165
|
}, {
|
|
@@ -172,7 +172,7 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Get all Routes within a Project
|
|
175
|
-
* @param {String} projectUID
|
|
175
|
+
* @param {String} projectUID
|
|
176
176
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/UserDbRoute>} and HTTP response
|
|
177
177
|
*/
|
|
178
178
|
}, {
|
|
@@ -184,21 +184,21 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
184
184
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getRoutes");
|
|
185
185
|
}
|
|
186
186
|
var pathParams = {
|
|
187
|
-
|
|
187
|
+
projectUID: projectUID
|
|
188
188
|
};
|
|
189
189
|
var queryParams = {};
|
|
190
190
|
var headerParams = {};
|
|
191
191
|
var formParams = {};
|
|
192
|
-
var authNames = [
|
|
192
|
+
var authNames = ["bearer_access_token"];
|
|
193
193
|
var contentTypes = [];
|
|
194
|
-
var accepts = [
|
|
194
|
+
var accepts = ["application/json"];
|
|
195
195
|
var returnType = [_UserDbRoute["default"]];
|
|
196
|
-
return this.apiClient.callApi(
|
|
196
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/routes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* Get all Routes within a Project
|
|
201
|
-
* @param {String} projectUID
|
|
201
|
+
* @param {String} projectUID
|
|
202
202
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserDbRoute>}
|
|
203
203
|
*/
|
|
204
204
|
}, {
|
|
@@ -211,8 +211,8 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* Update route by UID
|
|
214
|
-
* @param {String} projectUID
|
|
215
|
-
* @param {String} routeUID
|
|
214
|
+
* @param {String} projectUID
|
|
215
|
+
* @param {String} routeUID
|
|
216
216
|
* @param {module:model/Route} route Route settings to be updated
|
|
217
217
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Route} and HTTP response
|
|
218
218
|
*/
|
|
@@ -233,23 +233,23 @@ var RouteApi = /*#__PURE__*/function () {
|
|
|
233
233
|
throw new _Error["default"]("Missing the required parameter 'route' when calling updateRoute");
|
|
234
234
|
}
|
|
235
235
|
var pathParams = {
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
projectUID: projectUID,
|
|
237
|
+
routeUID: routeUID
|
|
238
238
|
};
|
|
239
239
|
var queryParams = {};
|
|
240
240
|
var headerParams = {};
|
|
241
241
|
var formParams = {};
|
|
242
|
-
var authNames = [
|
|
243
|
-
var contentTypes = [
|
|
244
|
-
var accepts = [
|
|
242
|
+
var authNames = ["bearer_access_token"];
|
|
243
|
+
var contentTypes = ["application/json"];
|
|
244
|
+
var accepts = ["application/json"];
|
|
245
245
|
var returnType = _Route["default"];
|
|
246
|
-
return this.apiClient.callApi(
|
|
246
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/routes/{routeUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
250
|
* Update route by UID
|
|
251
|
-
* @param {String} projectUID
|
|
252
|
-
* @param {String} routeUID
|
|
251
|
+
* @param {String} projectUID
|
|
252
|
+
* @param {String} routeUID
|
|
253
253
|
* @param {module:model/Route} route Route settings to be updated
|
|
254
254
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
|
|
255
255
|
*/
|
package/dist/index.js
CHANGED
|
@@ -177,6 +177,12 @@ Object.defineProperty(exports, "FleetApi", {
|
|
|
177
177
|
return _FleetApi["default"];
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
|
+
Object.defineProperty(exports, "GenerateAuthToken200Response", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function get() {
|
|
183
|
+
return _GenerateAuthToken200Response["default"];
|
|
184
|
+
}
|
|
185
|
+
});
|
|
180
186
|
Object.defineProperty(exports, "GetBillingAccounts200Response", {
|
|
181
187
|
enumerable: true,
|
|
182
188
|
get: function get() {
|
|
@@ -504,6 +510,7 @@ var _EnvironmentVariables = _interopRequireDefault(require("./model/EnvironmentV
|
|
|
504
510
|
var _Error = _interopRequireDefault(require("./model/Error"));
|
|
505
511
|
var _Event = _interopRequireDefault(require("./model/Event"));
|
|
506
512
|
var _Fleet = _interopRequireDefault(require("./model/Fleet"));
|
|
513
|
+
var _GenerateAuthToken200Response = _interopRequireDefault(require("./model/GenerateAuthToken200Response"));
|
|
507
514
|
var _GetBillingAccounts200Response = _interopRequireDefault(require("./model/GetBillingAccounts200Response"));
|
|
508
515
|
var _GetDeviceEnvironmentVariables200Response = _interopRequireDefault(require("./model/GetDeviceEnvironmentVariables200Response"));
|
|
509
516
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("./model/GetDeviceHealthLog200Response"));
|
package/dist/model/Aws.js
CHANGED
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
/**
|
|
18
18
|
* The Aws model module.
|
|
19
19
|
* @module model/Aws
|
|
20
|
-
* @version 1.0.
|
|
20
|
+
* @version 1.0.11
|
|
21
21
|
*/
|
|
22
22
|
var Aws = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
|
@@ -51,49 +51,49 @@ var Aws = /*#__PURE__*/function () {
|
|
|
51
51
|
value: function constructFromObject(data, obj) {
|
|
52
52
|
if (data) {
|
|
53
53
|
obj = obj || new Aws();
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("fleets")) {
|
|
55
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("filter")) {
|
|
58
|
+
obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
|
|
59
59
|
}
|
|
60
|
-
if (data.hasOwnProperty(
|
|
61
|
-
obj[
|
|
60
|
+
if (data.hasOwnProperty("transform")) {
|
|
61
|
+
obj["transform"] = _HttpTransform["default"].constructFromObject(data["transform"]);
|
|
62
62
|
}
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
64
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("url")) {
|
|
67
|
+
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
71
|
-
|
|
69
|
+
if (data.hasOwnProperty("http_headers")) {
|
|
70
|
+
obj["http_headers"] = _ApiClient["default"].convertToType(data["http_headers"], {
|
|
71
|
+
String: "String"
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("disable_http_headers")) {
|
|
75
|
+
obj["disable_http_headers"] = _ApiClient["default"].convertToType(data["disable_http_headers"], "Boolean");
|
|
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("region")) {
|
|
81
|
+
obj["region"] = _ApiClient["default"].convertToType(data["region"], "String");
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty("access_key_id")) {
|
|
84
|
+
obj["access_key_id"] = _ApiClient["default"].convertToType(data["access_key_id"], "String");
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty("access_key_secret")) {
|
|
87
|
+
obj["access_key_secret"] = _ApiClient["default"].convertToType(data["access_key_secret"], "String");
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty("message_group_id")) {
|
|
90
|
+
obj["message_group_id"] = _ApiClient["default"].convertToType(data["message_group_id"], "String");
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty(
|
|
93
|
-
obj[
|
|
92
|
+
if (data.hasOwnProperty("message_deduplication_id")) {
|
|
93
|
+
obj["message_deduplication_id"] = _ApiClient["default"].convertToType(data["message_deduplication_id"], "String");
|
|
94
94
|
}
|
|
95
|
-
if (data.hasOwnProperty(
|
|
96
|
-
obj[
|
|
95
|
+
if (data.hasOwnProperty("channel")) {
|
|
96
|
+
obj["channel"] = _ApiClient["default"].convertToType(data["channel"], "String");
|
|
97
97
|
}
|
|
98
98
|
} else if (data === null) {
|
|
99
99
|
return null;
|
|
@@ -110,46 +110,46 @@ var Aws = /*#__PURE__*/function () {
|
|
|
110
110
|
key: "validateJSON",
|
|
111
111
|
value: function validateJSON(data) {
|
|
112
112
|
// ensure the json data is an array
|
|
113
|
-
if (!Array.isArray(data[
|
|
114
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
113
|
+
if (!Array.isArray(data["fleets"])) {
|
|
114
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
115
115
|
}
|
|
116
116
|
// validate the optional field `filter`
|
|
117
|
-
if (data[
|
|
117
|
+
if (data["filter"]) {
|
|
118
118
|
// data not null
|
|
119
|
-
_HttpFilter["default"].validateJSON(data[
|
|
119
|
+
_HttpFilter["default"].validateJSON(data["filter"]);
|
|
120
120
|
}
|
|
121
121
|
// validate the optional field `transform`
|
|
122
|
-
if (data[
|
|
122
|
+
if (data["transform"]) {
|
|
123
123
|
// data not null
|
|
124
|
-
_HttpTransform["default"].validateJSON(data[
|
|
124
|
+
_HttpTransform["default"].validateJSON(data["transform"]);
|
|
125
125
|
}
|
|
126
126
|
// ensure the json data is a string
|
|
127
|
-
if (data[
|
|
128
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
127
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
129
129
|
}
|
|
130
130
|
// ensure the json data is a string
|
|
131
|
-
if (data[
|
|
132
|
-
throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data[
|
|
131
|
+
if (data["region"] && !(typeof data["region"] === "string" || data["region"] instanceof String)) {
|
|
132
|
+
throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data["region"]);
|
|
133
133
|
}
|
|
134
134
|
// ensure the json data is a string
|
|
135
|
-
if (data[
|
|
136
|
-
throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data[
|
|
135
|
+
if (data["access_key_id"] && !(typeof data["access_key_id"] === "string" || data["access_key_id"] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data["access_key_id"]);
|
|
137
137
|
}
|
|
138
138
|
// ensure the json data is a string
|
|
139
|
-
if (data[
|
|
140
|
-
throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data[
|
|
139
|
+
if (data["access_key_secret"] && !(typeof data["access_key_secret"] === "string" || data["access_key_secret"] instanceof String)) {
|
|
140
|
+
throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data["access_key_secret"]);
|
|
141
141
|
}
|
|
142
142
|
// ensure the json data is a string
|
|
143
|
-
if (data[
|
|
144
|
-
throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data[
|
|
143
|
+
if (data["message_group_id"] && !(typeof data["message_group_id"] === "string" || data["message_group_id"] instanceof String)) {
|
|
144
|
+
throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data["message_group_id"]);
|
|
145
145
|
}
|
|
146
146
|
// ensure the json data is a string
|
|
147
|
-
if (data[
|
|
148
|
-
throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data[
|
|
147
|
+
if (data["message_deduplication_id"] && !(typeof data["message_deduplication_id"] === "string" || data["message_deduplication_id"] instanceof String)) {
|
|
148
|
+
throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data["message_deduplication_id"]);
|
|
149
149
|
}
|
|
150
150
|
// ensure the json data is a string
|
|
151
|
-
if (data[
|
|
152
|
-
throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data[
|
|
151
|
+
if (data["channel"] && !(typeof data["channel"] === "string" || data["channel"] instanceof String)) {
|
|
152
|
+
throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data["channel"]);
|
|
153
153
|
}
|
|
154
154
|
return true;
|
|
155
155
|
}
|
|
@@ -160,74 +160,75 @@ var Aws = /*#__PURE__*/function () {
|
|
|
160
160
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
161
161
|
* @member {Array.<String>} fleets
|
|
162
162
|
*/
|
|
163
|
-
Aws.prototype[
|
|
163
|
+
Aws.prototype["fleets"] = undefined;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* @member {module:model/HttpFilter} filter
|
|
167
167
|
*/
|
|
168
|
-
Aws.prototype[
|
|
168
|
+
Aws.prototype["filter"] = undefined;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* @member {module:model/HttpTransform} transform
|
|
172
172
|
*/
|
|
173
|
-
Aws.prototype[
|
|
173
|
+
Aws.prototype["transform"] = undefined;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
176
|
* @member {Number} throttle_ms
|
|
177
177
|
*/
|
|
178
|
-
Aws.prototype[
|
|
178
|
+
Aws.prototype["throttle_ms"] = undefined;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* @member {String} url
|
|
182
182
|
*/
|
|
183
|
-
Aws.prototype[
|
|
183
|
+
Aws.prototype["url"] = undefined;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* @member {Object.<String, String>} http_headers
|
|
187
187
|
*/
|
|
188
|
-
Aws.prototype[
|
|
188
|
+
Aws.prototype["http_headers"] = undefined;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* @member {Boolean} disable_http_headers
|
|
192
192
|
* @default false
|
|
193
193
|
*/
|
|
194
|
-
Aws.prototype[
|
|
194
|
+
Aws.prototype["disable_http_headers"] = false;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* Timeout in seconds for each request
|
|
198
198
|
* @member {Number} timeout
|
|
199
199
|
* @default 15
|
|
200
200
|
*/
|
|
201
|
-
Aws.prototype[
|
|
201
|
+
Aws.prototype["timeout"] = 15;
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
204
|
* @member {String} region
|
|
205
205
|
*/
|
|
206
|
-
Aws.prototype[
|
|
206
|
+
Aws.prototype["region"] = undefined;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* @member {String} access_key_id
|
|
210
210
|
*/
|
|
211
|
-
Aws.prototype[
|
|
211
|
+
Aws.prototype["access_key_id"] = undefined;
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
214
215
|
* @member {String} access_key_secret
|
|
215
216
|
*/
|
|
216
|
-
Aws.prototype[
|
|
217
|
+
Aws.prototype["access_key_secret"] = undefined;
|
|
217
218
|
|
|
218
219
|
/**
|
|
219
220
|
* @member {String} message_group_id
|
|
220
221
|
*/
|
|
221
|
-
Aws.prototype[
|
|
222
|
+
Aws.prototype["message_group_id"] = undefined;
|
|
222
223
|
|
|
223
224
|
/**
|
|
224
225
|
* @member {String} message_deduplication_id
|
|
225
226
|
*/
|
|
226
|
-
Aws.prototype[
|
|
227
|
+
Aws.prototype["message_deduplication_id"] = undefined;
|
|
227
228
|
|
|
228
229
|
/**
|
|
229
230
|
* @member {String} channel
|
|
230
231
|
*/
|
|
231
|
-
Aws.prototype[
|
|
232
|
+
Aws.prototype["channel"] = undefined;
|
|
232
233
|
var _default = Aws;
|
|
233
234
|
exports["default"] = _default;
|