@blues-inc/notehub-js 1.0.33 → 1.0.34-beta.1
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 +232 -213
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +28 -28
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +513 -513
- package/dist/api/EventApi.js +152 -152
- package/dist/api/ExternalDevicesApi.js +203 -0
- package/dist/api/MonitorApi.js +82 -82
- package/dist/api/ProjectApi.js +541 -541
- package/dist/api/RepositoryApi.js +103 -103
- package/dist/api/RouteApi.js +117 -114
- package/dist/api/WebhookApi.js +282 -0
- package/dist/index.js +31 -3
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSet.js +30 -29
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +102 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +296 -185
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +35 -33
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +256 -243
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +27 -27
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
- package/dist/model/GetProjectFleets200Response.js +12 -11
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjectProducts200Response.js +10 -9
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetWebhooks200Response.js +112 -0
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +45 -46
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +39 -39
- package/dist/model/QuestionDataResponseMap.js +16 -16
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/{GetRouteLogsByRoute200ResponseInner.js → RouteLog.js} +52 -52
- package/dist/model/SchemaProperty.js +40 -38
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +70 -58
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +22 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +114 -0
- package/package.json +3 -3
package/dist/api/RouteApi.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
-
var _GetRouteLogsByRoute200ResponseInner = _interopRequireDefault(require("../model/GetRouteLogsByRoute200ResponseInner"));
|
|
10
9
|
var _NotehubRoute = _interopRequireDefault(require("../model/NotehubRoute"));
|
|
10
|
+
var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
|
|
11
11
|
var _UserDbRoute = _interopRequireDefault(require("../model/UserDbRoute"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
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); }
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -28,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
* Route service.
|
|
32
|
+
* @module api/RouteApi
|
|
33
|
+
* @version 1.0.34-beta.1
|
|
34
|
+
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
* Constructs a new RouteApi.
|
|
38
|
+
* @alias module:api/RouteApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
43
|
function RouteApi(apiClient) {
|
|
44
44
|
_classCallCheck(this, RouteApi);
|
|
45
45
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -47,145 +47,145 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Create Route within a Project
|
|
50
|
-
* @param {String}
|
|
50
|
+
* @param {String} projectOrProductUID
|
|
51
51
|
* @param {module:model/NotehubRoute} notehubRoute Route to be Created
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
53
53
|
*/
|
|
54
54
|
return _createClass(RouteApi, [{
|
|
55
55
|
key: "createRouteWithHttpInfo",
|
|
56
|
-
value: function createRouteWithHttpInfo(
|
|
56
|
+
value: function createRouteWithHttpInfo(projectOrProductUID, notehubRoute) {
|
|
57
57
|
var postBody = notehubRoute;
|
|
58
|
-
// verify the required parameter '
|
|
59
|
-
if (
|
|
60
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
58
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
59
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
60
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createRoute");
|
|
61
61
|
}
|
|
62
62
|
// verify the required parameter 'notehubRoute' is set
|
|
63
63
|
if (notehubRoute === undefined || notehubRoute === null) {
|
|
64
64
|
throw new _Error["default"]("Missing the required parameter 'notehubRoute' when calling createRoute");
|
|
65
65
|
}
|
|
66
66
|
var pathParams = {
|
|
67
|
-
|
|
67
|
+
'projectOrProductUID': projectOrProductUID
|
|
68
68
|
};
|
|
69
69
|
var queryParams = {};
|
|
70
70
|
var headerParams = {};
|
|
71
71
|
var formParams = {};
|
|
72
|
-
var authNames = [
|
|
73
|
-
var contentTypes = [
|
|
74
|
-
var accepts = [
|
|
72
|
+
var authNames = ['api_key'];
|
|
73
|
+
var contentTypes = ['application/json'];
|
|
74
|
+
var accepts = ['application/json'];
|
|
75
75
|
var returnType = _NotehubRoute["default"];
|
|
76
|
-
return this.apiClient.callApi(
|
|
76
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Create Route within a Project
|
|
81
|
-
* @param {String}
|
|
81
|
+
* @param {String} projectOrProductUID
|
|
82
82
|
* @param {module:model/NotehubRoute} notehubRoute Route to be Created
|
|
83
83
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
84
84
|
*/
|
|
85
85
|
}, {
|
|
86
86
|
key: "createRoute",
|
|
87
|
-
value: function createRoute(
|
|
88
|
-
return this.createRouteWithHttpInfo(
|
|
87
|
+
value: function createRoute(projectOrProductUID, notehubRoute) {
|
|
88
|
+
return this.createRouteWithHttpInfo(projectOrProductUID, notehubRoute).then(function (response_and_data) {
|
|
89
89
|
return response_and_data.data;
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Delete single route within a project
|
|
95
|
-
* @param {String}
|
|
96
|
-
* @param {String} routeUID
|
|
95
|
+
* @param {String} projectOrProductUID
|
|
96
|
+
* @param {String} routeUID
|
|
97
97
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
98
98
|
*/
|
|
99
99
|
}, {
|
|
100
100
|
key: "deleteRouteWithHttpInfo",
|
|
101
|
-
value: function deleteRouteWithHttpInfo(
|
|
101
|
+
value: function deleteRouteWithHttpInfo(projectOrProductUID, routeUID) {
|
|
102
102
|
var postBody = null;
|
|
103
|
-
// verify the required parameter '
|
|
104
|
-
if (
|
|
105
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
103
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
104
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
105
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteRoute");
|
|
106
106
|
}
|
|
107
107
|
// verify the required parameter 'routeUID' is set
|
|
108
108
|
if (routeUID === undefined || routeUID === null) {
|
|
109
109
|
throw new _Error["default"]("Missing the required parameter 'routeUID' when calling deleteRoute");
|
|
110
110
|
}
|
|
111
111
|
var pathParams = {
|
|
112
|
-
|
|
113
|
-
routeUID: routeUID
|
|
112
|
+
'projectOrProductUID': projectOrProductUID,
|
|
113
|
+
'routeUID': routeUID
|
|
114
114
|
};
|
|
115
115
|
var queryParams = {};
|
|
116
116
|
var headerParams = {};
|
|
117
117
|
var formParams = {};
|
|
118
|
-
var authNames = [
|
|
118
|
+
var authNames = ['api_key'];
|
|
119
119
|
var contentTypes = [];
|
|
120
|
-
var accepts = [
|
|
120
|
+
var accepts = ['application/json'];
|
|
121
121
|
var returnType = Object;
|
|
122
|
-
return this.apiClient.callApi(
|
|
122
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Delete single route within a project
|
|
127
|
-
* @param {String}
|
|
128
|
-
* @param {String} routeUID
|
|
127
|
+
* @param {String} projectOrProductUID
|
|
128
|
+
* @param {String} routeUID
|
|
129
129
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
130
130
|
*/
|
|
131
131
|
}, {
|
|
132
132
|
key: "deleteRoute",
|
|
133
|
-
value: function deleteRoute(
|
|
134
|
-
return this.deleteRouteWithHttpInfo(
|
|
133
|
+
value: function deleteRoute(projectOrProductUID, routeUID) {
|
|
134
|
+
return this.deleteRouteWithHttpInfo(projectOrProductUID, routeUID).then(function (response_and_data) {
|
|
135
135
|
return response_and_data.data;
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* Get single route within a project
|
|
141
|
-
* @param {String}
|
|
142
|
-
* @param {String} routeUID
|
|
141
|
+
* @param {String} projectOrProductUID
|
|
142
|
+
* @param {String} routeUID
|
|
143
143
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
144
144
|
*/
|
|
145
145
|
}, {
|
|
146
146
|
key: "getRouteWithHttpInfo",
|
|
147
|
-
value: function getRouteWithHttpInfo(
|
|
147
|
+
value: function getRouteWithHttpInfo(projectOrProductUID, routeUID) {
|
|
148
148
|
var postBody = null;
|
|
149
|
-
// verify the required parameter '
|
|
150
|
-
if (
|
|
151
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
149
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
150
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
151
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getRoute");
|
|
152
152
|
}
|
|
153
153
|
// verify the required parameter 'routeUID' is set
|
|
154
154
|
if (routeUID === undefined || routeUID === null) {
|
|
155
155
|
throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRoute");
|
|
156
156
|
}
|
|
157
157
|
var pathParams = {
|
|
158
|
-
|
|
159
|
-
routeUID: routeUID
|
|
158
|
+
'projectOrProductUID': projectOrProductUID,
|
|
159
|
+
'routeUID': routeUID
|
|
160
160
|
};
|
|
161
161
|
var queryParams = {};
|
|
162
162
|
var headerParams = {};
|
|
163
163
|
var formParams = {};
|
|
164
|
-
var authNames = [
|
|
164
|
+
var authNames = ['api_key'];
|
|
165
165
|
var contentTypes = [];
|
|
166
|
-
var accepts = [
|
|
166
|
+
var accepts = ['application/json'];
|
|
167
167
|
var returnType = _NotehubRoute["default"];
|
|
168
|
-
return this.apiClient.callApi(
|
|
168
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Get single route within a project
|
|
173
|
-
* @param {String}
|
|
174
|
-
* @param {String} routeUID
|
|
173
|
+
* @param {String} projectOrProductUID
|
|
174
|
+
* @param {String} routeUID
|
|
175
175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
176
176
|
*/
|
|
177
177
|
}, {
|
|
178
178
|
key: "getRoute",
|
|
179
|
-
value: function getRoute(
|
|
180
|
-
return this.getRouteWithHttpInfo(
|
|
179
|
+
value: function getRoute(projectOrProductUID, routeUID) {
|
|
180
|
+
return this.getRouteWithHttpInfo(projectOrProductUID, routeUID).then(function (response_and_data) {
|
|
181
181
|
return response_and_data.data;
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* Get Route Logs by Route UID
|
|
187
|
-
* @param {String}
|
|
188
|
-
* @param {String} routeUID
|
|
187
|
+
* @param {String} projectOrProductUID
|
|
188
|
+
* @param {String} routeUID
|
|
189
189
|
* @param {Object} opts Optional parameters
|
|
190
190
|
* @param {Number} opts.pageSize (default to 50)
|
|
191
191
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -194,51 +194,53 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
194
194
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
195
195
|
* @param {Number} opts.startDate Unix timestamp
|
|
196
196
|
* @param {Number} opts.endDate Unix timestamp
|
|
197
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
198
|
-
* @param {
|
|
199
|
-
* @
|
|
197
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
198
|
+
* @param {Boolean} opts.mostRecentOnly
|
|
199
|
+
* @param {String} opts.files
|
|
200
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
200
201
|
*/
|
|
201
202
|
}, {
|
|
202
203
|
key: "getRouteLogsByRouteWithHttpInfo",
|
|
203
|
-
value: function getRouteLogsByRouteWithHttpInfo(
|
|
204
|
+
value: function getRouteLogsByRouteWithHttpInfo(projectOrProductUID, routeUID, opts) {
|
|
204
205
|
opts = opts || {};
|
|
205
206
|
var postBody = null;
|
|
206
|
-
// verify the required parameter '
|
|
207
|
-
if (
|
|
208
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
207
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
208
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
209
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getRouteLogsByRoute");
|
|
209
210
|
}
|
|
210
211
|
// verify the required parameter 'routeUID' is set
|
|
211
212
|
if (routeUID === undefined || routeUID === null) {
|
|
212
213
|
throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRouteLogsByRoute");
|
|
213
214
|
}
|
|
214
215
|
var pathParams = {
|
|
215
|
-
|
|
216
|
-
routeUID: routeUID
|
|
216
|
+
'projectOrProductUID': projectOrProductUID,
|
|
217
|
+
'routeUID': routeUID
|
|
217
218
|
};
|
|
218
219
|
var queryParams = {
|
|
219
|
-
pageSize: opts[
|
|
220
|
-
pageNum: opts[
|
|
221
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
222
|
-
sortBy: opts[
|
|
223
|
-
sortOrder: opts[
|
|
224
|
-
startDate: opts[
|
|
225
|
-
endDate: opts[
|
|
226
|
-
systemFilesOnly: opts[
|
|
227
|
-
|
|
220
|
+
'pageSize': opts['pageSize'],
|
|
221
|
+
'pageNum': opts['pageNum'],
|
|
222
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
223
|
+
'sortBy': opts['sortBy'],
|
|
224
|
+
'sortOrder': opts['sortOrder'],
|
|
225
|
+
'startDate': opts['startDate'],
|
|
226
|
+
'endDate': opts['endDate'],
|
|
227
|
+
'systemFilesOnly': opts['systemFilesOnly'],
|
|
228
|
+
'mostRecentOnly': opts['mostRecentOnly'],
|
|
229
|
+
'files': opts['files']
|
|
228
230
|
};
|
|
229
231
|
var headerParams = {};
|
|
230
232
|
var formParams = {};
|
|
231
|
-
var authNames = [
|
|
233
|
+
var authNames = ['api_key'];
|
|
232
234
|
var contentTypes = [];
|
|
233
|
-
var accepts = [
|
|
234
|
-
var returnType = [
|
|
235
|
-
return this.apiClient.callApi(
|
|
235
|
+
var accepts = ['application/json'];
|
|
236
|
+
var returnType = [_RouteLog["default"]];
|
|
237
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
236
238
|
}
|
|
237
239
|
|
|
238
240
|
/**
|
|
239
241
|
* Get Route Logs by Route UID
|
|
240
|
-
* @param {String}
|
|
241
|
-
* @param {String} routeUID
|
|
242
|
+
* @param {String} projectOrProductUID
|
|
243
|
+
* @param {String} routeUID
|
|
242
244
|
* @param {Object} opts Optional parameters
|
|
243
245
|
* @param {Number} opts.pageSize (default to 50)
|
|
244
246
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -247,71 +249,72 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
247
249
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
248
250
|
* @param {Number} opts.startDate Unix timestamp
|
|
249
251
|
* @param {Number} opts.endDate Unix timestamp
|
|
250
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
251
|
-
* @param {
|
|
252
|
-
* @
|
|
252
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
253
|
+
* @param {Boolean} opts.mostRecentOnly
|
|
254
|
+
* @param {String} opts.files
|
|
255
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
253
256
|
*/
|
|
254
257
|
}, {
|
|
255
258
|
key: "getRouteLogsByRoute",
|
|
256
|
-
value: function getRouteLogsByRoute(
|
|
257
|
-
return this.getRouteLogsByRouteWithHttpInfo(
|
|
259
|
+
value: function getRouteLogsByRoute(projectOrProductUID, routeUID, opts) {
|
|
260
|
+
return this.getRouteLogsByRouteWithHttpInfo(projectOrProductUID, routeUID, opts).then(function (response_and_data) {
|
|
258
261
|
return response_and_data.data;
|
|
259
262
|
});
|
|
260
263
|
}
|
|
261
264
|
|
|
262
265
|
/**
|
|
263
266
|
* Get all Routes within a Project
|
|
264
|
-
* @param {String}
|
|
267
|
+
* @param {String} projectOrProductUID
|
|
265
268
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/UserDbRoute>} and HTTP response
|
|
266
269
|
*/
|
|
267
270
|
}, {
|
|
268
271
|
key: "getRoutesWithHttpInfo",
|
|
269
|
-
value: function getRoutesWithHttpInfo(
|
|
272
|
+
value: function getRoutesWithHttpInfo(projectOrProductUID) {
|
|
270
273
|
var postBody = null;
|
|
271
|
-
// verify the required parameter '
|
|
272
|
-
if (
|
|
273
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
274
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
275
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
276
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getRoutes");
|
|
274
277
|
}
|
|
275
278
|
var pathParams = {
|
|
276
|
-
|
|
279
|
+
'projectOrProductUID': projectOrProductUID
|
|
277
280
|
};
|
|
278
281
|
var queryParams = {};
|
|
279
282
|
var headerParams = {};
|
|
280
283
|
var formParams = {};
|
|
281
|
-
var authNames = [
|
|
284
|
+
var authNames = ['api_key'];
|
|
282
285
|
var contentTypes = [];
|
|
283
|
-
var accepts = [
|
|
286
|
+
var accepts = ['application/json'];
|
|
284
287
|
var returnType = [_UserDbRoute["default"]];
|
|
285
|
-
return this.apiClient.callApi(
|
|
288
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
286
289
|
}
|
|
287
290
|
|
|
288
291
|
/**
|
|
289
292
|
* Get all Routes within a Project
|
|
290
|
-
* @param {String}
|
|
293
|
+
* @param {String} projectOrProductUID
|
|
291
294
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserDbRoute>}
|
|
292
295
|
*/
|
|
293
296
|
}, {
|
|
294
297
|
key: "getRoutes",
|
|
295
|
-
value: function getRoutes(
|
|
296
|
-
return this.getRoutesWithHttpInfo(
|
|
298
|
+
value: function getRoutes(projectOrProductUID) {
|
|
299
|
+
return this.getRoutesWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
297
300
|
return response_and_data.data;
|
|
298
301
|
});
|
|
299
302
|
}
|
|
300
303
|
|
|
301
304
|
/**
|
|
302
305
|
* Update route by UID
|
|
303
|
-
* @param {String}
|
|
304
|
-
* @param {String} routeUID
|
|
306
|
+
* @param {String} projectOrProductUID
|
|
307
|
+
* @param {String} routeUID
|
|
305
308
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
306
309
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
307
310
|
*/
|
|
308
311
|
}, {
|
|
309
312
|
key: "updateRouteWithHttpInfo",
|
|
310
|
-
value: function updateRouteWithHttpInfo(
|
|
313
|
+
value: function updateRouteWithHttpInfo(projectOrProductUID, routeUID, notehubRoute) {
|
|
311
314
|
var postBody = notehubRoute;
|
|
312
|
-
// verify the required parameter '
|
|
313
|
-
if (
|
|
314
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
315
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
316
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
317
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateRoute");
|
|
315
318
|
}
|
|
316
319
|
// verify the required parameter 'routeUID' is set
|
|
317
320
|
if (routeUID === undefined || routeUID === null) {
|
|
@@ -322,30 +325,30 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
322
325
|
throw new _Error["default"]("Missing the required parameter 'notehubRoute' when calling updateRoute");
|
|
323
326
|
}
|
|
324
327
|
var pathParams = {
|
|
325
|
-
|
|
326
|
-
routeUID: routeUID
|
|
328
|
+
'projectOrProductUID': projectOrProductUID,
|
|
329
|
+
'routeUID': routeUID
|
|
327
330
|
};
|
|
328
331
|
var queryParams = {};
|
|
329
332
|
var headerParams = {};
|
|
330
333
|
var formParams = {};
|
|
331
|
-
var authNames = [
|
|
332
|
-
var contentTypes = [
|
|
333
|
-
var accepts = [
|
|
334
|
+
var authNames = ['api_key'];
|
|
335
|
+
var contentTypes = ['application/json'];
|
|
336
|
+
var accepts = ['application/json'];
|
|
334
337
|
var returnType = _NotehubRoute["default"];
|
|
335
|
-
return this.apiClient.callApi(
|
|
338
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
336
339
|
}
|
|
337
340
|
|
|
338
341
|
/**
|
|
339
342
|
* Update route by UID
|
|
340
|
-
* @param {String}
|
|
341
|
-
* @param {String} routeUID
|
|
343
|
+
* @param {String} projectOrProductUID
|
|
344
|
+
* @param {String} routeUID
|
|
342
345
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
343
346
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
344
347
|
*/
|
|
345
348
|
}, {
|
|
346
349
|
key: "updateRoute",
|
|
347
|
-
value: function updateRoute(
|
|
348
|
-
return this.updateRouteWithHttpInfo(
|
|
350
|
+
value: function updateRoute(projectOrProductUID, routeUID, notehubRoute) {
|
|
351
|
+
return this.updateRouteWithHttpInfo(projectOrProductUID, routeUID, notehubRoute).then(function (response_and_data) {
|
|
349
352
|
return response_and_data.data;
|
|
350
353
|
});
|
|
351
354
|
}
|