@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,293 @@
|
|
|
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 _Device = _interopRequireDefault(require("../model/Device"));
|
|
9
|
+
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
10
|
+
var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetProjectDevicePublicKeys200Response"));
|
|
11
|
+
var _GetProjectDevices200Response = _interopRequireDefault(require("../model/GetProjectDevices200Response"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
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); }
|
|
19
|
+
/**
|
|
20
|
+
* Devices service.
|
|
21
|
+
* @module api/DevicesApi
|
|
22
|
+
* @version 1.0.4
|
|
23
|
+
*/
|
|
24
|
+
var DevicesApi = /*#__PURE__*/function () {
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new DevicesApi.
|
|
27
|
+
* @alias module:api/DevicesApi
|
|
28
|
+
* @class
|
|
29
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
30
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
31
|
+
*/
|
|
32
|
+
function DevicesApi(apiClient) {
|
|
33
|
+
_classCallCheck(this, DevicesApi);
|
|
34
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Delete Device
|
|
39
|
+
* @param {String} projectUID
|
|
40
|
+
* @param {String} deviceUID
|
|
41
|
+
* @param {module:model/String} purge
|
|
42
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
43
|
+
*/
|
|
44
|
+
_createClass(DevicesApi, [{
|
|
45
|
+
key: "deleteProjectDeviceWithHttpInfo",
|
|
46
|
+
value: function deleteProjectDeviceWithHttpInfo(projectUID, deviceUID, purge) {
|
|
47
|
+
var postBody = null;
|
|
48
|
+
// verify the required parameter 'projectUID' is set
|
|
49
|
+
if (projectUID === undefined || projectUID === null) {
|
|
50
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProjectDevice");
|
|
51
|
+
}
|
|
52
|
+
// verify the required parameter 'deviceUID' is set
|
|
53
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
54
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteProjectDevice");
|
|
55
|
+
}
|
|
56
|
+
// verify the required parameter 'purge' is set
|
|
57
|
+
if (purge === undefined || purge === null) {
|
|
58
|
+
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
|
|
59
|
+
}
|
|
60
|
+
var pathParams = {
|
|
61
|
+
'projectUID': projectUID,
|
|
62
|
+
'deviceUID': deviceUID
|
|
63
|
+
};
|
|
64
|
+
var queryParams = {
|
|
65
|
+
'purge': purge
|
|
66
|
+
};
|
|
67
|
+
var headerParams = {};
|
|
68
|
+
var formParams = {};
|
|
69
|
+
var authNames = ['api_key'];
|
|
70
|
+
var contentTypes = [];
|
|
71
|
+
var accepts = ['application/json'];
|
|
72
|
+
var returnType = null;
|
|
73
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Delete Device
|
|
78
|
+
* @param {String} projectUID
|
|
79
|
+
* @param {String} deviceUID
|
|
80
|
+
* @param {module:model/String} purge
|
|
81
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "deleteProjectDevice",
|
|
85
|
+
value: function deleteProjectDevice(projectUID, deviceUID, purge) {
|
|
86
|
+
return this.deleteProjectDeviceWithHttpInfo(projectUID, deviceUID, purge).then(function (response_and_data) {
|
|
87
|
+
return response_and_data.data;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Get Device
|
|
93
|
+
* @param {String} projectUID
|
|
94
|
+
* @param {String} deviceUID
|
|
95
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "getDeviceWithHttpInfo",
|
|
99
|
+
value: function getDeviceWithHttpInfo(projectUID, deviceUID) {
|
|
100
|
+
var postBody = null;
|
|
101
|
+
// verify the required parameter 'projectUID' is set
|
|
102
|
+
if (projectUID === undefined || projectUID === null) {
|
|
103
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevice");
|
|
104
|
+
}
|
|
105
|
+
// verify the required parameter 'deviceUID' is set
|
|
106
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
107
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
108
|
+
}
|
|
109
|
+
var pathParams = {
|
|
110
|
+
'projectUID': projectUID,
|
|
111
|
+
'deviceUID': deviceUID
|
|
112
|
+
};
|
|
113
|
+
var queryParams = {};
|
|
114
|
+
var headerParams = {};
|
|
115
|
+
var formParams = {};
|
|
116
|
+
var authNames = ['api_key'];
|
|
117
|
+
var contentTypes = [];
|
|
118
|
+
var accepts = ['application/json'];
|
|
119
|
+
var returnType = _Device["default"];
|
|
120
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Get Device
|
|
125
|
+
* @param {String} projectUID
|
|
126
|
+
* @param {String} deviceUID
|
|
127
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
128
|
+
*/
|
|
129
|
+
}, {
|
|
130
|
+
key: "getDevice",
|
|
131
|
+
value: function getDevice(projectUID, deviceUID) {
|
|
132
|
+
return this.getDeviceWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
|
|
133
|
+
return response_and_data.data;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Get Device Public Keys of a Project
|
|
139
|
+
* @param {String} projectUID
|
|
140
|
+
* @param {Object} opts Optional parameters
|
|
141
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
142
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
143
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevicePublicKeys200Response} and HTTP response
|
|
144
|
+
*/
|
|
145
|
+
}, {
|
|
146
|
+
key: "getProjectDevicePublicKeysWithHttpInfo",
|
|
147
|
+
value: function getProjectDevicePublicKeysWithHttpInfo(projectUID, opts) {
|
|
148
|
+
opts = opts || {};
|
|
149
|
+
var postBody = null;
|
|
150
|
+
// verify the required parameter 'projectUID' is set
|
|
151
|
+
if (projectUID === undefined || projectUID === null) {
|
|
152
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevicePublicKeys");
|
|
153
|
+
}
|
|
154
|
+
var pathParams = {
|
|
155
|
+
'projectUID': projectUID
|
|
156
|
+
};
|
|
157
|
+
var queryParams = {
|
|
158
|
+
'pageSize': opts['pageSize'],
|
|
159
|
+
'pageNum': opts['pageNum']
|
|
160
|
+
};
|
|
161
|
+
var headerParams = {};
|
|
162
|
+
var formParams = {};
|
|
163
|
+
var authNames = ['api_key'];
|
|
164
|
+
var contentTypes = [];
|
|
165
|
+
var accepts = ['application/json'];
|
|
166
|
+
var returnType = _GetProjectDevicePublicKeys200Response["default"];
|
|
167
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Get Device Public Keys of a Project
|
|
172
|
+
* @param {String} projectUID
|
|
173
|
+
* @param {Object} opts Optional parameters
|
|
174
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
175
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
176
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevicePublicKeys200Response}
|
|
177
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "getProjectDevicePublicKeys",
|
|
180
|
+
value: function getProjectDevicePublicKeys(projectUID, opts) {
|
|
181
|
+
return this.getProjectDevicePublicKeysWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
182
|
+
return response_and_data.data;
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Get Devices of a Project
|
|
188
|
+
* @param {String} projectUID
|
|
189
|
+
* @param {Object} opts Optional parameters
|
|
190
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
191
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
192
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
193
|
+
*/
|
|
194
|
+
}, {
|
|
195
|
+
key: "getProjectDevicesWithHttpInfo",
|
|
196
|
+
value: function getProjectDevicesWithHttpInfo(projectUID, opts) {
|
|
197
|
+
opts = opts || {};
|
|
198
|
+
var postBody = null;
|
|
199
|
+
// verify the required parameter 'projectUID' is set
|
|
200
|
+
if (projectUID === undefined || projectUID === null) {
|
|
201
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevices");
|
|
202
|
+
}
|
|
203
|
+
var pathParams = {
|
|
204
|
+
'projectUID': projectUID
|
|
205
|
+
};
|
|
206
|
+
var queryParams = {
|
|
207
|
+
'pageSize': opts['pageSize'],
|
|
208
|
+
'pageNum': opts['pageNum']
|
|
209
|
+
};
|
|
210
|
+
var headerParams = {};
|
|
211
|
+
var formParams = {};
|
|
212
|
+
var authNames = ['api_key'];
|
|
213
|
+
var contentTypes = [];
|
|
214
|
+
var accepts = ['application/json'];
|
|
215
|
+
var returnType = _GetProjectDevices200Response["default"];
|
|
216
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Get Devices of a Project
|
|
221
|
+
* @param {String} projectUID
|
|
222
|
+
* @param {Object} opts Optional parameters
|
|
223
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
224
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
225
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
226
|
+
*/
|
|
227
|
+
}, {
|
|
228
|
+
key: "getProjectDevices",
|
|
229
|
+
value: function getProjectDevices(projectUID, opts) {
|
|
230
|
+
return this.getProjectDevicesWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
231
|
+
return response_and_data.data;
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Get Devices of a Fleet within a Project
|
|
237
|
+
* @param {String} projectUID
|
|
238
|
+
* @param {String} fleetUID
|
|
239
|
+
* @param {Object} opts Optional parameters
|
|
240
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
241
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
242
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
243
|
+
*/
|
|
244
|
+
}, {
|
|
245
|
+
key: "getProjectFleetDevicesWithHttpInfo",
|
|
246
|
+
value: function getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts) {
|
|
247
|
+
opts = opts || {};
|
|
248
|
+
var postBody = null;
|
|
249
|
+
// verify the required parameter 'projectUID' is set
|
|
250
|
+
if (projectUID === undefined || projectUID === null) {
|
|
251
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleetDevices");
|
|
252
|
+
}
|
|
253
|
+
// verify the required parameter 'fleetUID' is set
|
|
254
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
255
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
256
|
+
}
|
|
257
|
+
var pathParams = {
|
|
258
|
+
'projectUID': projectUID,
|
|
259
|
+
'fleetUID': fleetUID
|
|
260
|
+
};
|
|
261
|
+
var queryParams = {
|
|
262
|
+
'pageSize': opts['pageSize'],
|
|
263
|
+
'pageNum': opts['pageNum']
|
|
264
|
+
};
|
|
265
|
+
var headerParams = {};
|
|
266
|
+
var formParams = {};
|
|
267
|
+
var authNames = ['api_key'];
|
|
268
|
+
var contentTypes = [];
|
|
269
|
+
var accepts = ['application/json'];
|
|
270
|
+
var returnType = _GetProjectDevices200Response["default"];
|
|
271
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Get Devices of a Fleet within a Project
|
|
276
|
+
* @param {String} projectUID
|
|
277
|
+
* @param {String} fleetUID
|
|
278
|
+
* @param {Object} opts Optional parameters
|
|
279
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
280
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
281
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
282
|
+
*/
|
|
283
|
+
}, {
|
|
284
|
+
key: "getProjectFleetDevices",
|
|
285
|
+
value: function getProjectFleetDevices(projectUID, fleetUID, opts) {
|
|
286
|
+
return this.getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
|
|
287
|
+
return response_and_data.data;
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
}]);
|
|
291
|
+
return DevicesApi;
|
|
292
|
+
}();
|
|
293
|
+
exports["default"] = DevicesApi;
|