@blues-inc/notehub-js 1.0.19 → 1.0.20
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 +86 -96
- package/dist/ApiClient.js +18 -9
- package/dist/api/AlertApi.js +95 -0
- package/dist/api/AuthorizationApi.js +18 -9
- package/dist/api/BillingAccountApi.js +18 -9
- package/dist/api/DeviceApi.js +904 -182
- package/dist/api/EventApi.js +68 -9
- package/dist/api/FirmwareApi.js +109 -0
- package/dist/api/MonitorApi.js +275 -0
- package/dist/api/ProjectApi.js +435 -286
- package/dist/api/RouteApi.js +96 -9
- package/dist/index.js +76 -41
- package/dist/model/Alert.js +259 -0
- package/dist/model/AlertDataInner.js +184 -0
- package/dist/model/AlertNotificationsInner.js +132 -0
- package/dist/model/Aws.js +17 -8
- package/dist/model/Azure.js +17 -8
- package/dist/model/BillingAccount.js +17 -8
- package/dist/model/BillingAccountRole.js +29 -8
- package/dist/model/Body.js +17 -8
- package/dist/model/CloneProjectRequest.js +17 -8
- package/dist/model/Contact.js +17 -8
- package/dist/model/CreateFleetRequest.js +17 -8
- package/dist/model/CreateMonitor.js +428 -0
- package/dist/model/CreateProductRequest.js +17 -8
- package/dist/model/CreateProjectRequest.js +17 -8
- package/dist/model/DFUEnv.js +17 -8
- package/dist/model/DFUState.js +17 -8
- package/dist/model/DeleteDeviceFleetsRequest.js +17 -8
- package/dist/model/Device.js +21 -14
- package/dist/model/DeviceSession.js +17 -8
- package/dist/model/DeviceTowerInfo.js +17 -8
- package/dist/model/DeviceUsage.js +17 -8
- package/dist/model/EnvironmentVariables.js +17 -8
- package/dist/model/Error.js +17 -8
- package/dist/model/Event.js +17 -8
- package/dist/model/FirmwareInfo.js +231 -0
- package/dist/model/Fleet.js +17 -8
- package/dist/model/GetAlerts200Response.js +143 -0
- package/dist/model/GetBillingAccounts200Response.js +17 -8
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +17 -8
- package/dist/model/GetDeviceHealthLog200Response.js +17 -8
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +17 -8
- package/dist/model/GetDeviceLatest200Response.js +17 -8
- package/dist/model/GetDevicePublicKey200Response.js +17 -8
- package/dist/model/GetDeviceSessions200Response.js +17 -8
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -8
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +17 -8
- package/dist/model/GetProjectDevices200Response.js +17 -8
- package/dist/model/GetProjectEvents200Response.js +21 -27
- package/dist/model/GetProjectEventsByCursor200Response.js +17 -8
- package/dist/model/GetProjectFleets200Response.js +17 -8
- package/dist/model/GetProjectMembers200Response.js +17 -8
- package/dist/model/GetProjectProducts200Response.js +17 -8
- package/dist/model/GetProjects200Response.js +17 -8
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +17 -8
- package/dist/model/Google.js +17 -8
- package/dist/model/HandleNoteChanges200Response.js +17 -8
- package/dist/model/HandleNoteGet200Response.js +17 -8
- package/dist/model/HandleNoteSignal200Response.js +17 -8
- package/dist/model/HandleNotefileChanges200Response.js +17 -8
- package/dist/model/HandleNotefileChangesPending200Response.js +17 -8
- package/dist/model/HandleNotefileDeleteRequest.js +17 -8
- package/dist/model/Http.js +17 -8
- package/dist/model/HttpFilter.js +17 -8
- package/dist/model/HttpTransform.js +17 -8
- package/dist/model/Location.js +17 -8
- package/dist/model/Login200Response.js +17 -8
- package/dist/model/LoginRequest.js +17 -8
- package/dist/model/Monitor.js +328 -0
- package/dist/model/MonitorAlertRoutesInner.js +92 -0
- package/dist/model/MonitorThresholds.js +88 -0
- package/dist/model/Mqtt.js +17 -8
- package/dist/model/Note.js +17 -8
- package/dist/model/PostProvisionProjectDeviceRequest.js +17 -8
- package/dist/model/Product.js +17 -8
- package/dist/model/Project.js +17 -8
- package/dist/model/ProjectMember.js +17 -8
- package/dist/model/Proxy.js +17 -8
- package/dist/model/PutDeviceFleetsRequest.js +17 -8
- package/dist/model/Radresponder.js +17 -8
- package/dist/model/Role.js +37 -8
- package/dist/model/Route.js +17 -8
- package/dist/model/RouteSchema.js +29 -14
- package/dist/model/Slack.js +17 -8
- package/dist/model/Snowflake.js +17 -8
- package/dist/model/SnowflakeTransform.js +17 -8
- package/dist/model/Thingworx.js +17 -8
- package/dist/model/TowerLocation.js +17 -8
- package/dist/model/Twilio.js +17 -8
- package/dist/model/UpdateFleetRequest.js +17 -8
- package/dist/model/UserDbRoute.js +17 -8
- package/package.json +1 -1
- package/dist/api/DevicesApi.js +0 -346
- package/dist/api/EnvironmentVariablesApi.js +0 -567
- package/dist/api/FilesApi.js +0 -193
- package/dist/api/FleetApi.js +0 -736
- package/dist/api/NotesApi.js +0 -435
- package/dist/api/ProductApi.js +0 -163
- package/dist/api/RouteLogsApi.js +0 -160
|
@@ -6,16 +6,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
function _typeof(
|
|
9
|
+
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); }
|
|
10
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
11
|
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); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Notehub API
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 1.0.0
|
|
19
|
+
* Contact: engineering@blues.io
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
15
26
|
/**
|
|
16
27
|
* The UpdateFleetRequest model module.
|
|
17
28
|
* @module model/UpdateFleetRequest
|
|
18
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.20
|
|
19
30
|
*/
|
|
20
31
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
21
32
|
/**
|
|
@@ -32,7 +43,7 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
32
43
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
44
|
* Only for internal use.
|
|
34
45
|
*/
|
|
35
|
-
_createClass(UpdateFleetRequest, null, [{
|
|
46
|
+
return _createClass(UpdateFleetRequest, null, [{
|
|
36
47
|
key: "initialize",
|
|
37
48
|
value: function initialize(obj) {}
|
|
38
49
|
|
|
@@ -86,7 +97,6 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
86
97
|
return true;
|
|
87
98
|
}
|
|
88
99
|
}]);
|
|
89
|
-
return UpdateFleetRequest;
|
|
90
100
|
}();
|
|
91
101
|
/**
|
|
92
102
|
* The label for the Fleet.
|
|
@@ -105,5 +115,4 @@ UpdateFleetRequest.prototype["addDevices"] = undefined;
|
|
|
105
115
|
* @member {Array.<String>} removeDevices
|
|
106
116
|
*/
|
|
107
117
|
UpdateFleetRequest.prototype["removeDevices"] = undefined;
|
|
108
|
-
var _default = UpdateFleetRequest;
|
|
109
|
-
exports["default"] = _default;
|
|
118
|
+
var _default = exports["default"] = UpdateFleetRequest;
|
|
@@ -6,16 +6,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
function _typeof(
|
|
9
|
+
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); }
|
|
10
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
11
|
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); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Notehub API
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 1.0.0
|
|
19
|
+
* Contact: engineering@blues.io
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
15
26
|
/**
|
|
16
27
|
* The UserDbRoute model module.
|
|
17
28
|
* @module model/UserDbRoute
|
|
18
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.20
|
|
19
30
|
*/
|
|
20
31
|
var UserDbRoute = /*#__PURE__*/function () {
|
|
21
32
|
/**
|
|
@@ -32,7 +43,7 @@ var UserDbRoute = /*#__PURE__*/function () {
|
|
|
32
43
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
44
|
* Only for internal use.
|
|
34
45
|
*/
|
|
35
|
-
_createClass(UserDbRoute, null, [{
|
|
46
|
+
return _createClass(UserDbRoute, null, [{
|
|
36
47
|
key: "initialize",
|
|
37
48
|
value: function initialize(obj) {}
|
|
38
49
|
|
|
@@ -96,7 +107,6 @@ var UserDbRoute = /*#__PURE__*/function () {
|
|
|
96
107
|
return true;
|
|
97
108
|
}
|
|
98
109
|
}]);
|
|
99
|
-
return UserDbRoute;
|
|
100
110
|
}();
|
|
101
111
|
/**
|
|
102
112
|
* @member {String} uid
|
|
@@ -127,5 +137,4 @@ UserDbRoute.prototype["modified"] = "2020-03-09T17:58:37Z";
|
|
|
127
137
|
* @default false
|
|
128
138
|
*/
|
|
129
139
|
UserDbRoute.prototype["disabled"] = false;
|
|
130
|
-
var _default = UserDbRoute;
|
|
131
|
-
exports["default"] = _default;
|
|
140
|
+
var _default = exports["default"] = UserDbRoute;
|
package/package.json
CHANGED
package/dist/api/DevicesApi.js
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
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
|
-
var _PostProvisionProjectDeviceRequest = _interopRequireDefault(require("../model/PostProvisionProjectDeviceRequest"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
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); }
|
|
15
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
-
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); } }
|
|
17
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
-
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); }
|
|
20
|
-
/**
|
|
21
|
-
* Devices service.
|
|
22
|
-
* @module api/DevicesApi
|
|
23
|
-
* @version 1.0.19
|
|
24
|
-
*/
|
|
25
|
-
var DevicesApi = /*#__PURE__*/function () {
|
|
26
|
-
/**
|
|
27
|
-
* Constructs a new DevicesApi.
|
|
28
|
-
* @alias module:api/DevicesApi
|
|
29
|
-
* @class
|
|
30
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
32
|
-
*/
|
|
33
|
-
function DevicesApi(apiClient) {
|
|
34
|
-
_classCallCheck(this, DevicesApi);
|
|
35
|
-
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Delete Device
|
|
40
|
-
* @param {String} projectUID
|
|
41
|
-
* @param {String} deviceUID
|
|
42
|
-
* @param {module:model/String} purge
|
|
43
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
44
|
-
*/
|
|
45
|
-
_createClass(DevicesApi, [{
|
|
46
|
-
key: "deleteProjectDeviceWithHttpInfo",
|
|
47
|
-
value: function deleteProjectDeviceWithHttpInfo(projectUID, deviceUID, purge) {
|
|
48
|
-
var postBody = null;
|
|
49
|
-
// verify the required parameter 'projectUID' is set
|
|
50
|
-
if (projectUID === undefined || projectUID === null) {
|
|
51
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProjectDevice");
|
|
52
|
-
}
|
|
53
|
-
// verify the required parameter 'deviceUID' is set
|
|
54
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
55
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteProjectDevice");
|
|
56
|
-
}
|
|
57
|
-
// verify the required parameter 'purge' is set
|
|
58
|
-
if (purge === undefined || purge === null) {
|
|
59
|
-
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
|
|
60
|
-
}
|
|
61
|
-
var pathParams = {
|
|
62
|
-
projectUID: projectUID,
|
|
63
|
-
deviceUID: deviceUID
|
|
64
|
-
};
|
|
65
|
-
var queryParams = {
|
|
66
|
-
purge: purge
|
|
67
|
-
};
|
|
68
|
-
var headerParams = {};
|
|
69
|
-
var formParams = {};
|
|
70
|
-
var authNames = ["api_key"];
|
|
71
|
-
var contentTypes = [];
|
|
72
|
-
var accepts = ["application/json"];
|
|
73
|
-
var returnType = null;
|
|
74
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Delete Device
|
|
79
|
-
* @param {String} projectUID
|
|
80
|
-
* @param {String} deviceUID
|
|
81
|
-
* @param {module:model/String} purge
|
|
82
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
83
|
-
*/
|
|
84
|
-
}, {
|
|
85
|
-
key: "deleteProjectDevice",
|
|
86
|
-
value: function deleteProjectDevice(projectUID, deviceUID, purge) {
|
|
87
|
-
return this.deleteProjectDeviceWithHttpInfo(projectUID, deviceUID, purge).then(function (response_and_data) {
|
|
88
|
-
return response_and_data.data;
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Get Device
|
|
94
|
-
* @param {String} projectUID
|
|
95
|
-
* @param {String} deviceUID
|
|
96
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
97
|
-
*/
|
|
98
|
-
}, {
|
|
99
|
-
key: "getDeviceWithHttpInfo",
|
|
100
|
-
value: function getDeviceWithHttpInfo(projectUID, deviceUID) {
|
|
101
|
-
var postBody = null;
|
|
102
|
-
// verify the required parameter 'projectUID' is set
|
|
103
|
-
if (projectUID === undefined || projectUID === null) {
|
|
104
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevice");
|
|
105
|
-
}
|
|
106
|
-
// verify the required parameter 'deviceUID' is set
|
|
107
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
108
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
109
|
-
}
|
|
110
|
-
var pathParams = {
|
|
111
|
-
projectUID: projectUID,
|
|
112
|
-
deviceUID: deviceUID
|
|
113
|
-
};
|
|
114
|
-
var queryParams = {};
|
|
115
|
-
var headerParams = {};
|
|
116
|
-
var formParams = {};
|
|
117
|
-
var authNames = ["api_key"];
|
|
118
|
-
var contentTypes = [];
|
|
119
|
-
var accepts = ["application/json"];
|
|
120
|
-
var returnType = _Device["default"];
|
|
121
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Get Device
|
|
126
|
-
* @param {String} projectUID
|
|
127
|
-
* @param {String} deviceUID
|
|
128
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
129
|
-
*/
|
|
130
|
-
}, {
|
|
131
|
-
key: "getDevice",
|
|
132
|
-
value: function getDevice(projectUID, deviceUID) {
|
|
133
|
-
return this.getDeviceWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
|
|
134
|
-
return response_and_data.data;
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Get Device Public Keys of a Project
|
|
140
|
-
* @param {String} projectUID
|
|
141
|
-
* @param {Object} opts Optional parameters
|
|
142
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
143
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
144
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevicePublicKeys200Response} and HTTP response
|
|
145
|
-
*/
|
|
146
|
-
}, {
|
|
147
|
-
key: "getProjectDevicePublicKeysWithHttpInfo",
|
|
148
|
-
value: function getProjectDevicePublicKeysWithHttpInfo(projectUID, opts) {
|
|
149
|
-
opts = opts || {};
|
|
150
|
-
var postBody = null;
|
|
151
|
-
// verify the required parameter 'projectUID' is set
|
|
152
|
-
if (projectUID === undefined || projectUID === null) {
|
|
153
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevicePublicKeys");
|
|
154
|
-
}
|
|
155
|
-
var pathParams = {
|
|
156
|
-
projectUID: projectUID
|
|
157
|
-
};
|
|
158
|
-
var queryParams = {
|
|
159
|
-
pageSize: opts["pageSize"],
|
|
160
|
-
pageNum: opts["pageNum"]
|
|
161
|
-
};
|
|
162
|
-
var headerParams = {};
|
|
163
|
-
var formParams = {};
|
|
164
|
-
var authNames = ["api_key"];
|
|
165
|
-
var contentTypes = [];
|
|
166
|
-
var accepts = ["application/json"];
|
|
167
|
-
var returnType = _GetProjectDevicePublicKeys200Response["default"];
|
|
168
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Get Device Public Keys of a Project
|
|
173
|
-
* @param {String} projectUID
|
|
174
|
-
* @param {Object} opts Optional parameters
|
|
175
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
176
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
177
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevicePublicKeys200Response}
|
|
178
|
-
*/
|
|
179
|
-
}, {
|
|
180
|
-
key: "getProjectDevicePublicKeys",
|
|
181
|
-
value: function getProjectDevicePublicKeys(projectUID, opts) {
|
|
182
|
-
return this.getProjectDevicePublicKeysWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
183
|
-
return response_and_data.data;
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Get Devices of a Project
|
|
189
|
-
* @param {String} projectUID
|
|
190
|
-
* @param {Object} opts Optional parameters
|
|
191
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
192
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
193
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
194
|
-
*/
|
|
195
|
-
}, {
|
|
196
|
-
key: "getProjectDevicesWithHttpInfo",
|
|
197
|
-
value: function getProjectDevicesWithHttpInfo(projectUID, opts) {
|
|
198
|
-
opts = opts || {};
|
|
199
|
-
var postBody = null;
|
|
200
|
-
// verify the required parameter 'projectUID' is set
|
|
201
|
-
if (projectUID === undefined || projectUID === null) {
|
|
202
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevices");
|
|
203
|
-
}
|
|
204
|
-
var pathParams = {
|
|
205
|
-
projectUID: projectUID
|
|
206
|
-
};
|
|
207
|
-
var queryParams = {
|
|
208
|
-
pageSize: opts["pageSize"],
|
|
209
|
-
pageNum: opts["pageNum"]
|
|
210
|
-
};
|
|
211
|
-
var headerParams = {};
|
|
212
|
-
var formParams = {};
|
|
213
|
-
var authNames = ["api_key"];
|
|
214
|
-
var contentTypes = [];
|
|
215
|
-
var accepts = ["application/json"];
|
|
216
|
-
var returnType = _GetProjectDevices200Response["default"];
|
|
217
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Get Devices of a Project
|
|
222
|
-
* @param {String} projectUID
|
|
223
|
-
* @param {Object} opts Optional parameters
|
|
224
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
225
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
226
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
227
|
-
*/
|
|
228
|
-
}, {
|
|
229
|
-
key: "getProjectDevices",
|
|
230
|
-
value: function getProjectDevices(projectUID, opts) {
|
|
231
|
-
return this.getProjectDevicesWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
232
|
-
return response_and_data.data;
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Get Devices of a Fleet within a Project
|
|
238
|
-
* @param {String} projectUID
|
|
239
|
-
* @param {String} fleetUID
|
|
240
|
-
* @param {Object} opts Optional parameters
|
|
241
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
242
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
243
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
244
|
-
*/
|
|
245
|
-
}, {
|
|
246
|
-
key: "getProjectFleetDevicesWithHttpInfo",
|
|
247
|
-
value: function getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts) {
|
|
248
|
-
opts = opts || {};
|
|
249
|
-
var postBody = null;
|
|
250
|
-
// verify the required parameter 'projectUID' is set
|
|
251
|
-
if (projectUID === undefined || projectUID === null) {
|
|
252
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleetDevices");
|
|
253
|
-
}
|
|
254
|
-
// verify the required parameter 'fleetUID' is set
|
|
255
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
256
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
257
|
-
}
|
|
258
|
-
var pathParams = {
|
|
259
|
-
projectUID: projectUID,
|
|
260
|
-
fleetUID: fleetUID
|
|
261
|
-
};
|
|
262
|
-
var queryParams = {
|
|
263
|
-
pageSize: opts["pageSize"],
|
|
264
|
-
pageNum: opts["pageNum"]
|
|
265
|
-
};
|
|
266
|
-
var headerParams = {};
|
|
267
|
-
var formParams = {};
|
|
268
|
-
var authNames = ["api_key"];
|
|
269
|
-
var contentTypes = [];
|
|
270
|
-
var accepts = ["application/json"];
|
|
271
|
-
var returnType = _GetProjectDevices200Response["default"];
|
|
272
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Get Devices of a Fleet within a Project
|
|
277
|
-
* @param {String} projectUID
|
|
278
|
-
* @param {String} fleetUID
|
|
279
|
-
* @param {Object} opts Optional parameters
|
|
280
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
281
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
282
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
283
|
-
*/
|
|
284
|
-
}, {
|
|
285
|
-
key: "getProjectFleetDevices",
|
|
286
|
-
value: function getProjectFleetDevices(projectUID, fleetUID, opts) {
|
|
287
|
-
return this.getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
|
|
288
|
-
return response_and_data.data;
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Provision Device for a Project
|
|
294
|
-
* @param {String} projectUID
|
|
295
|
-
* @param {String} deviceUID
|
|
296
|
-
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
297
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
298
|
-
*/
|
|
299
|
-
}, {
|
|
300
|
-
key: "postProvisionProjectDeviceWithHttpInfo",
|
|
301
|
-
value: function postProvisionProjectDeviceWithHttpInfo(projectUID, deviceUID, postProvisionProjectDeviceRequest) {
|
|
302
|
-
var postBody = postProvisionProjectDeviceRequest;
|
|
303
|
-
// verify the required parameter 'projectUID' is set
|
|
304
|
-
if (projectUID === undefined || projectUID === null) {
|
|
305
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling postProvisionProjectDevice");
|
|
306
|
-
}
|
|
307
|
-
// verify the required parameter 'deviceUID' is set
|
|
308
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
309
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling postProvisionProjectDevice");
|
|
310
|
-
}
|
|
311
|
-
// verify the required parameter 'postProvisionProjectDeviceRequest' is set
|
|
312
|
-
if (postProvisionProjectDeviceRequest === undefined || postProvisionProjectDeviceRequest === null) {
|
|
313
|
-
throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
|
|
314
|
-
}
|
|
315
|
-
var pathParams = {
|
|
316
|
-
projectUID: projectUID,
|
|
317
|
-
deviceUID: deviceUID
|
|
318
|
-
};
|
|
319
|
-
var queryParams = {};
|
|
320
|
-
var headerParams = {};
|
|
321
|
-
var formParams = {};
|
|
322
|
-
var authNames = ["api_key"];
|
|
323
|
-
var contentTypes = ["application/json"];
|
|
324
|
-
var accepts = ["application/json"];
|
|
325
|
-
var returnType = Object;
|
|
326
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Provision Device for a Project
|
|
331
|
-
* @param {String} projectUID
|
|
332
|
-
* @param {String} deviceUID
|
|
333
|
-
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
334
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
335
|
-
*/
|
|
336
|
-
}, {
|
|
337
|
-
key: "postProvisionProjectDevice",
|
|
338
|
-
value: function postProvisionProjectDevice(projectUID, deviceUID, postProvisionProjectDeviceRequest) {
|
|
339
|
-
return this.postProvisionProjectDeviceWithHttpInfo(projectUID, deviceUID, postProvisionProjectDeviceRequest).then(function (response_and_data) {
|
|
340
|
-
return response_and_data.data;
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
}]);
|
|
344
|
-
return DevicesApi;
|
|
345
|
-
}();
|
|
346
|
-
exports["default"] = DevicesApi;
|