@blues-inc/notehub-js 1.0.10 → 1.0.12
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 +175 -180
- package/dist/ApiClient.js +155 -155
- package/dist/api/AuthorizationApi.js +15 -15
- package/dist/api/BillingAccountApi.js +13 -13
- package/dist/api/DeviceApi.js +157 -157
- package/dist/api/DevicesApi.js +58 -58
- package/dist/api/EnvironmentVariablesApi.js +110 -110
- package/dist/api/EventApi.js +94 -94
- package/dist/api/FilesApi.js +42 -42
- package/dist/api/FleetApi.js +160 -160
- package/dist/api/NotesApi.js +105 -105
- package/dist/api/ProductApi.js +29 -29
- package/dist/api/ProjectApi.js +137 -137
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +14 -0
- package/dist/model/Aws.js +64 -64
- package/dist/model/Azure.js +42 -42
- package/dist/model/BillingAccount.js +20 -20
- package/dist/model/Body.js +4 -4
- package/dist/model/Contact.js +21 -21
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateProductRequest.js +21 -21
- package/dist/model/CreateProjectRequest.js +13 -13
- package/dist/model/DFUEnv.js +11 -11
- package/dist/model/DFUState.js +64 -64
- package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
- package/dist/model/Device.js +82 -82
- package/dist/model/DeviceSession.js +181 -181
- package/dist/model/DeviceTowerInfo.js +13 -13
- package/dist/model/DeviceUsage.js +31 -31
- package/dist/model/Edgeimpulse.js +214 -0
- package/dist/model/EdgeimpulseSensorsInner.js +106 -0
- package/dist/model/EnvironmentVariables.js +7 -7
- package/dist/model/Error.js +30 -30
- package/dist/model/Event.js +222 -222
- package/dist/model/Fleet.js +20 -20
- package/dist/model/GetBillingAccounts200Response.js +8 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
- package/dist/model/GetDeviceHealthLog200Response.js +10 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
- package/dist/model/GetDeviceLatest200Response.js +8 -9
- package/dist/model/GetDevicePublicKey200Response.js +15 -15
- package/dist/model/GetDeviceSessions200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
- package/dist/model/GetProjectDevices200Response.js +15 -16
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
- package/dist/model/GetProjectFleets200Response.js +10 -11
- package/dist/model/GetProjectMembers200Response.js +10 -11
- package/dist/model/GetProjectProducts200Response.js +8 -9
- package/dist/model/GetProjects200Response.js +8 -9
- package/dist/model/Google.js +27 -27
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +12 -12
- package/dist/model/HandleNoteSignal200Response.js +4 -4
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +34 -34
- package/dist/model/HttpFilter.js +18 -18
- package/dist/model/HttpTransform.js +19 -19
- package/dist/model/Location.js +39 -39
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +11 -11
- package/dist/model/Mqtt.js +65 -65
- package/dist/model/Note.js +9 -9
- package/dist/model/Product.js +25 -25
- package/dist/model/Project.js +33 -33
- package/dist/model/ProjectMember.js +21 -21
- package/dist/model/Proxy.js +23 -23
- package/dist/model/PutDeviceFleetsRequest.js +7 -7
- package/dist/model/Radresponder.js +24 -24
- package/dist/model/Route.js +40 -35
- package/dist/model/RouteSchema.js +39 -38
- package/dist/model/Snowflake.js +44 -44
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +32 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +42 -42
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
package/dist/api/EventApi.js
CHANGED
|
@@ -16,18 +16,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
16
16
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
17
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
18
|
/**
|
|
19
|
-
* Event service.
|
|
20
|
-
* @module api/EventApi
|
|
21
|
-
* @version 1.0.
|
|
22
|
-
*/
|
|
19
|
+
* Event service.
|
|
20
|
+
* @module api/EventApi
|
|
21
|
+
* @version 1.0.12
|
|
22
|
+
*/
|
|
23
23
|
var EventApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
* Constructs a new EventApi.
|
|
26
|
+
* @alias module:api/EventApi
|
|
27
|
+
* @class
|
|
28
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
29
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
30
|
+
*/
|
|
31
31
|
function EventApi(apiClient) {
|
|
32
32
|
_classCallCheck(this, EventApi);
|
|
33
33
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -35,8 +35,8 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Get Events of a Fleet
|
|
38
|
-
* @param {String} projectUID
|
|
39
|
-
* @param {String} fleetUID
|
|
38
|
+
* @param {String} projectUID
|
|
39
|
+
* @param {String} fleetUID
|
|
40
40
|
* @param {Object} opts Optional parameters
|
|
41
41
|
* @param {Number} opts.pageSize (default to 50)
|
|
42
42
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -45,8 +45,8 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
45
45
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
46
46
|
* @param {Number} opts.startDate Unix timestamp
|
|
47
47
|
* @param {Number} opts.endDate Unix timestamp
|
|
48
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
49
|
-
* @param {String} opts.files
|
|
48
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
49
|
+
* @param {String} opts.files
|
|
50
50
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
51
51
|
*/
|
|
52
52
|
_createClass(EventApi, [{
|
|
@@ -63,33 +63,33 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
63
63
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
64
64
|
}
|
|
65
65
|
var pathParams = {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
projectUID: projectUID,
|
|
67
|
+
fleetUID: fleetUID
|
|
68
68
|
};
|
|
69
69
|
var queryParams = {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
70
|
+
pageSize: opts["pageSize"],
|
|
71
|
+
pageNum: opts["pageNum"],
|
|
72
|
+
deviceUID: opts["deviceUID"],
|
|
73
|
+
sortBy: opts["sortBy"],
|
|
74
|
+
sortOrder: opts["sortOrder"],
|
|
75
|
+
startDate: opts["startDate"],
|
|
76
|
+
endDate: opts["endDate"],
|
|
77
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
78
|
+
files: opts["files"]
|
|
79
79
|
};
|
|
80
80
|
var headerParams = {};
|
|
81
81
|
var formParams = {};
|
|
82
|
-
var authNames = [
|
|
82
|
+
var authNames = ["api_key"];
|
|
83
83
|
var contentTypes = [];
|
|
84
|
-
var accepts = [
|
|
84
|
+
var accepts = ["application/json"];
|
|
85
85
|
var returnType = _GetProjectEvents200Response["default"];
|
|
86
|
-
return this.apiClient.callApi(
|
|
86
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* Get Events of a Fleet
|
|
91
|
-
* @param {String} projectUID
|
|
92
|
-
* @param {String} fleetUID
|
|
91
|
+
* @param {String} projectUID
|
|
92
|
+
* @param {String} fleetUID
|
|
93
93
|
* @param {Object} opts Optional parameters
|
|
94
94
|
* @param {Number} opts.pageSize (default to 50)
|
|
95
95
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -98,8 +98,8 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
98
98
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
99
99
|
* @param {Number} opts.startDate Unix timestamp
|
|
100
100
|
* @param {Number} opts.endDate Unix timestamp
|
|
101
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
102
|
-
* @param {String} opts.files
|
|
101
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
102
|
+
* @param {String} opts.files
|
|
103
103
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
104
104
|
*/
|
|
105
105
|
}, {
|
|
@@ -112,14 +112,14 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Get Events of a Fleet by cursor
|
|
115
|
-
* @param {String} projectUID
|
|
116
|
-
* @param {String} fleetUID
|
|
115
|
+
* @param {String} projectUID
|
|
116
|
+
* @param {String} fleetUID
|
|
117
117
|
* @param {Object} opts Optional parameters
|
|
118
118
|
* @param {Number} opts.limit (default to 50)
|
|
119
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
119
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
120
120
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
121
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
122
|
-
* @param {String} opts.files
|
|
121
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
122
|
+
* @param {String} opts.files
|
|
123
123
|
* @param {String} opts.deviceUID A Device UID.
|
|
124
124
|
* @param {Number} opts.startDate Unix timestamp
|
|
125
125
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -139,38 +139,38 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
139
139
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
140
140
|
}
|
|
141
141
|
var pathParams = {
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
projectUID: projectUID,
|
|
143
|
+
fleetUID: fleetUID
|
|
144
144
|
};
|
|
145
145
|
var queryParams = {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
limit: opts["limit"],
|
|
147
|
+
cursor: opts["cursor"],
|
|
148
|
+
sortOrder: opts["sortOrder"],
|
|
149
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
150
|
+
files: opts["files"],
|
|
151
|
+
deviceUID: opts["deviceUID"],
|
|
152
|
+
startDate: opts["startDate"],
|
|
153
|
+
endDate: opts["endDate"]
|
|
154
154
|
};
|
|
155
155
|
var headerParams = {};
|
|
156
156
|
var formParams = {};
|
|
157
|
-
var authNames = [
|
|
157
|
+
var authNames = ["api_key"];
|
|
158
158
|
var contentTypes = [];
|
|
159
|
-
var accepts = [
|
|
159
|
+
var accepts = ["application/json"];
|
|
160
160
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
161
|
-
return this.apiClient.callApi(
|
|
161
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* Get Events of a Fleet by cursor
|
|
166
|
-
* @param {String} projectUID
|
|
167
|
-
* @param {String} fleetUID
|
|
166
|
+
* @param {String} projectUID
|
|
167
|
+
* @param {String} fleetUID
|
|
168
168
|
* @param {Object} opts Optional parameters
|
|
169
169
|
* @param {Number} opts.limit (default to 50)
|
|
170
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
170
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
171
171
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
172
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
173
|
-
* @param {String} opts.files
|
|
172
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
173
|
+
* @param {String} opts.files
|
|
174
174
|
* @param {String} opts.deviceUID A Device UID.
|
|
175
175
|
* @param {Number} opts.startDate Unix timestamp
|
|
176
176
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -186,7 +186,7 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Get Events of a Project
|
|
189
|
-
* @param {String} projectUID
|
|
189
|
+
* @param {String} projectUID
|
|
190
190
|
* @param {Object} opts Optional parameters
|
|
191
191
|
* @param {Number} opts.pageSize (default to 50)
|
|
192
192
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -195,8 +195,8 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
195
195
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
196
196
|
* @param {Number} opts.startDate Unix timestamp
|
|
197
197
|
* @param {Number} opts.endDate Unix timestamp
|
|
198
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
199
|
-
* @param {String} opts.files
|
|
198
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
199
|
+
* @param {String} opts.files
|
|
200
200
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
201
201
|
*/
|
|
202
202
|
}, {
|
|
@@ -209,31 +209,31 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
209
209
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEvents");
|
|
210
210
|
}
|
|
211
211
|
var pathParams = {
|
|
212
|
-
|
|
212
|
+
projectUID: projectUID
|
|
213
213
|
};
|
|
214
214
|
var queryParams = {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
215
|
+
pageSize: opts["pageSize"],
|
|
216
|
+
pageNum: opts["pageNum"],
|
|
217
|
+
deviceUID: opts["deviceUID"],
|
|
218
|
+
sortBy: opts["sortBy"],
|
|
219
|
+
sortOrder: opts["sortOrder"],
|
|
220
|
+
startDate: opts["startDate"],
|
|
221
|
+
endDate: opts["endDate"],
|
|
222
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
223
|
+
files: opts["files"]
|
|
224
224
|
};
|
|
225
225
|
var headerParams = {};
|
|
226
226
|
var formParams = {};
|
|
227
|
-
var authNames = [
|
|
227
|
+
var authNames = ["api_key"];
|
|
228
228
|
var contentTypes = [];
|
|
229
|
-
var accepts = [
|
|
229
|
+
var accepts = ["application/json"];
|
|
230
230
|
var returnType = _GetProjectEvents200Response["default"];
|
|
231
|
-
return this.apiClient.callApi(
|
|
231
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
235
|
* Get Events of a Project
|
|
236
|
-
* @param {String} projectUID
|
|
236
|
+
* @param {String} projectUID
|
|
237
237
|
* @param {Object} opts Optional parameters
|
|
238
238
|
* @param {Number} opts.pageSize (default to 50)
|
|
239
239
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -242,8 +242,8 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
242
242
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
243
243
|
* @param {Number} opts.startDate Unix timestamp
|
|
244
244
|
* @param {Number} opts.endDate Unix timestamp
|
|
245
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
246
|
-
* @param {String} opts.files
|
|
245
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
246
|
+
* @param {String} opts.files
|
|
247
247
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
248
248
|
*/
|
|
249
249
|
}, {
|
|
@@ -256,13 +256,13 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
258
|
* Get Events of a Project by cursor
|
|
259
|
-
* @param {String} projectUID
|
|
259
|
+
* @param {String} projectUID
|
|
260
260
|
* @param {Object} opts Optional parameters
|
|
261
261
|
* @param {Number} opts.limit (default to 50)
|
|
262
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
262
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
263
263
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
264
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
265
|
-
* @param {String} opts.files
|
|
264
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
265
|
+
* @param {String} opts.files
|
|
266
266
|
* @param {String} opts.deviceUID A Device UID.
|
|
267
267
|
* @param {Number} opts.startDate Unix timestamp
|
|
268
268
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -278,36 +278,36 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
278
278
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEventsByCursor");
|
|
279
279
|
}
|
|
280
280
|
var pathParams = {
|
|
281
|
-
|
|
281
|
+
projectUID: projectUID
|
|
282
282
|
};
|
|
283
283
|
var queryParams = {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
284
|
+
limit: opts["limit"],
|
|
285
|
+
cursor: opts["cursor"],
|
|
286
|
+
sortOrder: opts["sortOrder"],
|
|
287
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
288
|
+
files: opts["files"],
|
|
289
|
+
deviceUID: opts["deviceUID"],
|
|
290
|
+
startDate: opts["startDate"],
|
|
291
|
+
endDate: opts["endDate"]
|
|
292
292
|
};
|
|
293
293
|
var headerParams = {};
|
|
294
294
|
var formParams = {};
|
|
295
|
-
var authNames = [
|
|
295
|
+
var authNames = ["api_key"];
|
|
296
296
|
var contentTypes = [];
|
|
297
|
-
var accepts = [
|
|
297
|
+
var accepts = ["application/json"];
|
|
298
298
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
299
|
-
return this.apiClient.callApi(
|
|
299
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* Get Events of a Project by cursor
|
|
304
|
-
* @param {String} projectUID
|
|
304
|
+
* @param {String} projectUID
|
|
305
305
|
* @param {Object} opts Optional parameters
|
|
306
306
|
* @param {Number} opts.limit (default to 50)
|
|
307
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
307
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
308
308
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
309
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
310
|
-
* @param {String} opts.files
|
|
309
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
310
|
+
* @param {String} opts.files
|
|
311
311
|
* @param {String} opts.deviceUID A Device UID.
|
|
312
312
|
* @param {Number} opts.startDate Unix timestamp
|
|
313
313
|
* @param {Number} opts.endDate Unix timestamp
|
package/dist/api/FilesApi.js
CHANGED
|
@@ -17,18 +17,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
17
17
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
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
19
|
/**
|
|
20
|
-
* Files service.
|
|
21
|
-
* @module api/FilesApi
|
|
22
|
-
* @version 1.0.
|
|
23
|
-
*/
|
|
20
|
+
* Files service.
|
|
21
|
+
* @module api/FilesApi
|
|
22
|
+
* @version 1.0.12
|
|
23
|
+
*/
|
|
24
24
|
var FilesApi = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
* Constructs a new FilesApi.
|
|
27
|
+
* @alias module:api/FilesApi
|
|
28
|
+
* @class
|
|
29
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
30
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
31
|
+
*/
|
|
32
32
|
function FilesApi(apiClient) {
|
|
33
33
|
_classCallCheck(this, FilesApi);
|
|
34
34
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -36,8 +36,8 @@ var FilesApi = /*#__PURE__*/function () {
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Used to perform queries on a single or multiple files to determine if new Notes are available to read
|
|
39
|
-
* @param {String} projectUID
|
|
40
|
-
* @param {String} deviceUID
|
|
39
|
+
* @param {String} projectUID
|
|
40
|
+
* @param {String} deviceUID
|
|
41
41
|
* @param {Object} opts Optional parameters
|
|
42
42
|
* @param {String} opts.tracker The change tracker ID.
|
|
43
43
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
@@ -57,26 +57,26 @@ var FilesApi = /*#__PURE__*/function () {
|
|
|
57
57
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
|
|
58
58
|
}
|
|
59
59
|
var pathParams = {
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
projectUID: projectUID,
|
|
61
|
+
deviceUID: deviceUID
|
|
62
62
|
};
|
|
63
63
|
var queryParams = {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
tracker: opts["tracker"],
|
|
65
|
+
files: this.apiClient.buildCollectionParam(opts["files"], "multi")
|
|
66
66
|
};
|
|
67
67
|
var headerParams = {};
|
|
68
68
|
var formParams = {};
|
|
69
|
-
var authNames = [
|
|
69
|
+
var authNames = ["api_key"];
|
|
70
70
|
var contentTypes = [];
|
|
71
|
-
var accepts = [
|
|
71
|
+
var accepts = ["application/json"];
|
|
72
72
|
var returnType = _HandleNotefileChanges200Response["default"];
|
|
73
|
-
return this.apiClient.callApi(
|
|
73
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Used to perform queries on a single or multiple files to determine if new Notes are available to read
|
|
78
|
-
* @param {String} projectUID
|
|
79
|
-
* @param {String} deviceUID
|
|
78
|
+
* @param {String} projectUID
|
|
79
|
+
* @param {String} deviceUID
|
|
80
80
|
* @param {Object} opts Optional parameters
|
|
81
81
|
* @param {String} opts.tracker The change tracker ID.
|
|
82
82
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
@@ -92,8 +92,8 @@ var FilesApi = /*#__PURE__*/function () {
|
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
95
|
-
* @param {String} projectUID
|
|
96
|
-
* @param {String} deviceUID
|
|
95
|
+
* @param {String} projectUID
|
|
96
|
+
* @param {String} deviceUID
|
|
97
97
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
|
|
98
98
|
*/
|
|
99
99
|
}, {
|
|
@@ -109,23 +109,23 @@ var FilesApi = /*#__PURE__*/function () {
|
|
|
109
109
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
|
|
110
110
|
}
|
|
111
111
|
var pathParams = {
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
projectUID: projectUID,
|
|
113
|
+
deviceUID: deviceUID
|
|
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 = _HandleNotefileChangesPending200Response["default"];
|
|
122
|
-
return this.apiClient.callApi(
|
|
122
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
127
|
-
* @param {String} projectUID
|
|
128
|
-
* @param {String} deviceUID
|
|
127
|
+
* @param {String} projectUID
|
|
128
|
+
* @param {String} deviceUID
|
|
129
129
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
|
|
130
130
|
*/
|
|
131
131
|
}, {
|
|
@@ -138,9 +138,9 @@ var FilesApi = /*#__PURE__*/function () {
|
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* Deletes Notefiles and the Notes they contain.
|
|
141
|
-
* @param {String} projectUID
|
|
142
|
-
* @param {String} deviceUID
|
|
143
|
-
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
141
|
+
* @param {String} projectUID
|
|
142
|
+
* @param {String} deviceUID
|
|
143
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
144
144
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
145
145
|
*/
|
|
146
146
|
}, {
|
|
@@ -160,24 +160,24 @@ var FilesApi = /*#__PURE__*/function () {
|
|
|
160
160
|
throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
|
|
161
161
|
}
|
|
162
162
|
var pathParams = {
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
projectUID: projectUID,
|
|
164
|
+
deviceUID: deviceUID
|
|
165
165
|
};
|
|
166
166
|
var queryParams = {};
|
|
167
167
|
var headerParams = {};
|
|
168
168
|
var formParams = {};
|
|
169
|
-
var authNames = [
|
|
170
|
-
var contentTypes = [
|
|
171
|
-
var accepts = [
|
|
169
|
+
var authNames = ["api_key"];
|
|
170
|
+
var contentTypes = ["application/json"];
|
|
171
|
+
var accepts = ["application/json"];
|
|
172
172
|
var returnType = null;
|
|
173
|
-
return this.apiClient.callApi(
|
|
173
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* Deletes Notefiles and the Notes they contain.
|
|
178
|
-
* @param {String} projectUID
|
|
179
|
-
* @param {String} deviceUID
|
|
180
|
-
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
178
|
+
* @param {String} projectUID
|
|
179
|
+
* @param {String} deviceUID
|
|
180
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
181
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
182
182
|
*/
|
|
183
183
|
}, {
|