@blues-inc/notehub-js 1.0.4
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 +297 -0
- package/dist/ApiClient.js +699 -0
- package/dist/api/AuthorizationApi.js +74 -0
- package/dist/api/BillingAccountApi.js +68 -0
- package/dist/api/DeviceApi.js +784 -0
- package/dist/api/DevicesApi.js +293 -0
- package/dist/api/EnvironmentVariablesApi.js +567 -0
- package/dist/api/EventApi.js +284 -0
- package/dist/api/FilesApi.js +193 -0
- package/dist/api/FleetApi.js +715 -0
- package/dist/api/NotesApi.js +435 -0
- package/dist/api/ProductApi.js +163 -0
- package/dist/api/ProjectApi.js +716 -0
- package/dist/api/RouteApi.js +266 -0
- package/dist/index.js +566 -0
- package/dist/model/Aws.js +233 -0
- package/dist/model/Azure.js +166 -0
- package/dist/model/BillingAccount.js +130 -0
- package/dist/model/BillingAccountRole.js +42 -0
- package/dist/model/Body.js +78 -0
- package/dist/model/Contact.js +118 -0
- package/dist/model/CreateFleetRequest.js +83 -0
- package/dist/model/CreateProductRequest.js +142 -0
- package/dist/model/CreateProjectRequest.js +119 -0
- package/dist/model/DFUEnv.js +97 -0
- package/dist/model/DFUState.js +276 -0
- package/dist/model/DeleteDeviceFleetsRequest.js +106 -0
- package/dist/model/Device.js +267 -0
- package/dist/model/DeviceSession.js +537 -0
- package/dist/model/DeviceTowerInfo.js +102 -0
- package/dist/model/DeviceUsage.js +150 -0
- package/dist/model/EnvironmentVariables.js +103 -0
- package/dist/model/Error.js +164 -0
- package/dist/model/Event.js +676 -0
- package/dist/model/Fleet.js +129 -0
- package/dist/model/GetBillingAccounts200Response.js +103 -0
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +117 -0
- package/dist/model/GetDeviceHealthLog200Response.js +123 -0
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +125 -0
- package/dist/model/GetDeviceLatest200Response.js +104 -0
- package/dist/model/GetDevicePublicKey200Response.js +119 -0
- package/dist/model/GetDeviceSessions200Response.js +133 -0
- package/dist/model/GetProjectDevicePublicKeys200Response.js +133 -0
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +94 -0
- package/dist/model/GetProjectDevices200Response.js +133 -0
- package/dist/model/GetProjectEvents200Response.js +149 -0
- package/dist/model/GetProjectEventsByCursor200Response.js +149 -0
- package/dist/model/GetProjectFleets200Response.js +123 -0
- package/dist/model/GetProjectMembers200Response.js +123 -0
- package/dist/model/GetProjectProducts200Response.js +103 -0
- package/dist/model/GetProjects200Response.js +103 -0
- package/dist/model/Google.js +142 -0
- package/dist/model/HandleNoteChanges200Response.js +97 -0
- package/dist/model/HandleNoteGet200Response.js +101 -0
- package/dist/model/HandleNoteSignal200Response.js +79 -0
- package/dist/model/HandleNotefileChanges200Response.js +97 -0
- package/dist/model/HandleNotefileChangesPending200Response.js +106 -0
- package/dist/model/HandleNotefileDeleteRequest.js +83 -0
- package/dist/model/Http.js +163 -0
- package/dist/model/HttpFilter.js +128 -0
- package/dist/model/HttpTransform.js +139 -0
- package/dist/model/Location.js +167 -0
- package/dist/model/Login200Response.js +82 -0
- package/dist/model/LoginRequest.js +94 -0
- package/dist/model/Mqtt.js +240 -0
- package/dist/model/Note.js +90 -0
- package/dist/model/Product.js +141 -0
- package/dist/model/Project.js +165 -0
- package/dist/model/ProjectMember.js +131 -0
- package/dist/model/Proxy.js +128 -0
- package/dist/model/PutDeviceFleetsRequest.js +106 -0
- package/dist/model/Radresponder.js +130 -0
- package/dist/model/Role.js +43 -0
- package/dist/model/Route.js +245 -0
- package/dist/model/RouteSchema.js +427 -0
- package/dist/model/Snowflake.js +185 -0
- package/dist/model/SnowflakeTransform.js +97 -0
- package/dist/model/Thingworx.js +154 -0
- package/dist/model/TowerLocation.js +204 -0
- package/dist/model/Twilio.js +181 -0
- package/dist/model/UpdateFleetRequest.js +109 -0
- package/dist/model/UserDbRoute.js +131 -0
- package/package.json +49 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
+
var _Route = _interopRequireDefault(require("../model/Route"));
|
|
10
|
+
var _UserDbRoute = _interopRequireDefault(require("../model/UserDbRoute"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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
|
+
/**
|
|
19
|
+
* Route service.
|
|
20
|
+
* @module api/RouteApi
|
|
21
|
+
* @version 1.0.4
|
|
22
|
+
*/
|
|
23
|
+
var RouteApi = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
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
|
+
function RouteApi(apiClient) {
|
|
32
|
+
_classCallCheck(this, RouteApi);
|
|
33
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Create Route within a Project
|
|
38
|
+
* @param {String} projectUID
|
|
39
|
+
* @param {module:model/Route} route Route to be Created
|
|
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
|
+
*/
|
|
42
|
+
_createClass(RouteApi, [{
|
|
43
|
+
key: "createRouteWithHttpInfo",
|
|
44
|
+
value: function createRouteWithHttpInfo(projectUID, route) {
|
|
45
|
+
var postBody = route;
|
|
46
|
+
// verify the required parameter 'projectUID' is set
|
|
47
|
+
if (projectUID === undefined || projectUID === null) {
|
|
48
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling createRoute");
|
|
49
|
+
}
|
|
50
|
+
// verify the required parameter 'route' is set
|
|
51
|
+
if (route === undefined || route === null) {
|
|
52
|
+
throw new _Error["default"]("Missing the required parameter 'route' when calling createRoute");
|
|
53
|
+
}
|
|
54
|
+
var pathParams = {
|
|
55
|
+
'projectUID': projectUID
|
|
56
|
+
};
|
|
57
|
+
var queryParams = {};
|
|
58
|
+
var headerParams = {};
|
|
59
|
+
var formParams = {};
|
|
60
|
+
var authNames = ['api_key'];
|
|
61
|
+
var contentTypes = ['application/json'];
|
|
62
|
+
var accepts = ['application/json'];
|
|
63
|
+
var returnType = _Route["default"];
|
|
64
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/routes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Create Route within a Project
|
|
69
|
+
* @param {String} projectUID
|
|
70
|
+
* @param {module:model/Route} route Route to be Created
|
|
71
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
|
|
72
|
+
*/
|
|
73
|
+
}, {
|
|
74
|
+
key: "createRoute",
|
|
75
|
+
value: function createRoute(projectUID, route) {
|
|
76
|
+
return this.createRouteWithHttpInfo(projectUID, route).then(function (response_and_data) {
|
|
77
|
+
return response_and_data.data;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Delete single route within a project
|
|
83
|
+
* @param {String} projectUID
|
|
84
|
+
* @param {String} routeUID
|
|
85
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
88
|
+
key: "deleteRouteWithHttpInfo",
|
|
89
|
+
value: function deleteRouteWithHttpInfo(projectUID, routeUID) {
|
|
90
|
+
var postBody = null;
|
|
91
|
+
// verify the required parameter 'projectUID' is set
|
|
92
|
+
if (projectUID === undefined || projectUID === null) {
|
|
93
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteRoute");
|
|
94
|
+
}
|
|
95
|
+
// verify the required parameter 'routeUID' is set
|
|
96
|
+
if (routeUID === undefined || routeUID === null) {
|
|
97
|
+
throw new _Error["default"]("Missing the required parameter 'routeUID' when calling deleteRoute");
|
|
98
|
+
}
|
|
99
|
+
var pathParams = {
|
|
100
|
+
'projectUID': projectUID,
|
|
101
|
+
'routeUID': routeUID
|
|
102
|
+
};
|
|
103
|
+
var queryParams = {};
|
|
104
|
+
var headerParams = {};
|
|
105
|
+
var formParams = {};
|
|
106
|
+
var authNames = ['api_key'];
|
|
107
|
+
var contentTypes = [];
|
|
108
|
+
var accepts = ['application/json'];
|
|
109
|
+
var returnType = Object;
|
|
110
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/routes/{routeUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Delete single route within a project
|
|
115
|
+
* @param {String} projectUID
|
|
116
|
+
* @param {String} routeUID
|
|
117
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
118
|
+
*/
|
|
119
|
+
}, {
|
|
120
|
+
key: "deleteRoute",
|
|
121
|
+
value: function deleteRoute(projectUID, routeUID) {
|
|
122
|
+
return this.deleteRouteWithHttpInfo(projectUID, routeUID).then(function (response_and_data) {
|
|
123
|
+
return response_and_data.data;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Get single route within a project
|
|
129
|
+
* @param {String} projectUID
|
|
130
|
+
* @param {String} routeUID
|
|
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
|
+
*/
|
|
133
|
+
}, {
|
|
134
|
+
key: "getRouteWithHttpInfo",
|
|
135
|
+
value: function getRouteWithHttpInfo(projectUID, routeUID) {
|
|
136
|
+
var postBody = null;
|
|
137
|
+
// verify the required parameter 'projectUID' is set
|
|
138
|
+
if (projectUID === undefined || projectUID === null) {
|
|
139
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getRoute");
|
|
140
|
+
}
|
|
141
|
+
// verify the required parameter 'routeUID' is set
|
|
142
|
+
if (routeUID === undefined || routeUID === null) {
|
|
143
|
+
throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRoute");
|
|
144
|
+
}
|
|
145
|
+
var pathParams = {
|
|
146
|
+
'projectUID': projectUID,
|
|
147
|
+
'routeUID': routeUID
|
|
148
|
+
};
|
|
149
|
+
var queryParams = {};
|
|
150
|
+
var headerParams = {};
|
|
151
|
+
var formParams = {};
|
|
152
|
+
var authNames = ['api_key'];
|
|
153
|
+
var contentTypes = [];
|
|
154
|
+
var accepts = ['application/json'];
|
|
155
|
+
var returnType = _Route["default"];
|
|
156
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/routes/{routeUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Get single route within a project
|
|
161
|
+
* @param {String} projectUID
|
|
162
|
+
* @param {String} routeUID
|
|
163
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
|
|
164
|
+
*/
|
|
165
|
+
}, {
|
|
166
|
+
key: "getRoute",
|
|
167
|
+
value: function getRoute(projectUID, routeUID) {
|
|
168
|
+
return this.getRouteWithHttpInfo(projectUID, routeUID).then(function (response_and_data) {
|
|
169
|
+
return response_and_data.data;
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Get all Routes within a Project
|
|
175
|
+
* @param {String} projectUID
|
|
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
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "getRoutesWithHttpInfo",
|
|
180
|
+
value: function getRoutesWithHttpInfo(projectUID) {
|
|
181
|
+
var postBody = null;
|
|
182
|
+
// verify the required parameter 'projectUID' is set
|
|
183
|
+
if (projectUID === undefined || projectUID === null) {
|
|
184
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getRoutes");
|
|
185
|
+
}
|
|
186
|
+
var pathParams = {
|
|
187
|
+
'projectUID': projectUID
|
|
188
|
+
};
|
|
189
|
+
var queryParams = {};
|
|
190
|
+
var headerParams = {};
|
|
191
|
+
var formParams = {};
|
|
192
|
+
var authNames = ['api_key'];
|
|
193
|
+
var contentTypes = [];
|
|
194
|
+
var accepts = ['application/json'];
|
|
195
|
+
var returnType = [_UserDbRoute["default"]];
|
|
196
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/routes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Get all Routes within a Project
|
|
201
|
+
* @param {String} projectUID
|
|
202
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserDbRoute>}
|
|
203
|
+
*/
|
|
204
|
+
}, {
|
|
205
|
+
key: "getRoutes",
|
|
206
|
+
value: function getRoutes(projectUID) {
|
|
207
|
+
return this.getRoutesWithHttpInfo(projectUID).then(function (response_and_data) {
|
|
208
|
+
return response_and_data.data;
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Update route by UID
|
|
214
|
+
* @param {String} projectUID
|
|
215
|
+
* @param {String} routeUID
|
|
216
|
+
* @param {module:model/Route} route Route settings to be updated
|
|
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
|
+
*/
|
|
219
|
+
}, {
|
|
220
|
+
key: "updateRouteWithHttpInfo",
|
|
221
|
+
value: function updateRouteWithHttpInfo(projectUID, routeUID, route) {
|
|
222
|
+
var postBody = route;
|
|
223
|
+
// verify the required parameter 'projectUID' is set
|
|
224
|
+
if (projectUID === undefined || projectUID === null) {
|
|
225
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling updateRoute");
|
|
226
|
+
}
|
|
227
|
+
// verify the required parameter 'routeUID' is set
|
|
228
|
+
if (routeUID === undefined || routeUID === null) {
|
|
229
|
+
throw new _Error["default"]("Missing the required parameter 'routeUID' when calling updateRoute");
|
|
230
|
+
}
|
|
231
|
+
// verify the required parameter 'route' is set
|
|
232
|
+
if (route === undefined || route === null) {
|
|
233
|
+
throw new _Error["default"]("Missing the required parameter 'route' when calling updateRoute");
|
|
234
|
+
}
|
|
235
|
+
var pathParams = {
|
|
236
|
+
'projectUID': projectUID,
|
|
237
|
+
'routeUID': routeUID
|
|
238
|
+
};
|
|
239
|
+
var queryParams = {};
|
|
240
|
+
var headerParams = {};
|
|
241
|
+
var formParams = {};
|
|
242
|
+
var authNames = ['api_key'];
|
|
243
|
+
var contentTypes = ['application/json'];
|
|
244
|
+
var accepts = ['application/json'];
|
|
245
|
+
var returnType = _Route["default"];
|
|
246
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/routes/{routeUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Update route by UID
|
|
251
|
+
* @param {String} projectUID
|
|
252
|
+
* @param {String} routeUID
|
|
253
|
+
* @param {module:model/Route} route Route settings to be updated
|
|
254
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Route}
|
|
255
|
+
*/
|
|
256
|
+
}, {
|
|
257
|
+
key: "updateRoute",
|
|
258
|
+
value: function updateRoute(projectUID, routeUID, route) {
|
|
259
|
+
return this.updateRouteWithHttpInfo(projectUID, routeUID, route).then(function (response_and_data) {
|
|
260
|
+
return response_and_data.data;
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}]);
|
|
264
|
+
return RouteApi;
|
|
265
|
+
}();
|
|
266
|
+
exports["default"] = RouteApi;
|