@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/ProjectApi.js
CHANGED
|
@@ -26,18 +26,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
26
26
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
27
27
|
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); }
|
|
28
28
|
/**
|
|
29
|
-
* Project service.
|
|
30
|
-
* @module api/ProjectApi
|
|
31
|
-
* @version 1.0.
|
|
32
|
-
*/
|
|
29
|
+
* Project service.
|
|
30
|
+
* @module api/ProjectApi
|
|
31
|
+
* @version 1.0.12
|
|
32
|
+
*/
|
|
33
33
|
var ProjectApi = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
* Constructs a new ProjectApi.
|
|
36
|
+
* @alias module:api/ProjectApi
|
|
37
|
+
* @class
|
|
38
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
+
*/
|
|
41
41
|
function ProjectApi(apiClient) {
|
|
42
42
|
_classCallCheck(this, ProjectApi);
|
|
43
43
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -45,7 +45,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* Create Product within a Project
|
|
48
|
-
* @param {String} projectUID
|
|
48
|
+
* @param {String} projectUID
|
|
49
49
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
50
50
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
51
51
|
*/
|
|
@@ -62,21 +62,21 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
62
62
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
63
63
|
}
|
|
64
64
|
var pathParams = {
|
|
65
|
-
|
|
65
|
+
projectUID: projectUID
|
|
66
66
|
};
|
|
67
67
|
var queryParams = {};
|
|
68
68
|
var headerParams = {};
|
|
69
69
|
var formParams = {};
|
|
70
|
-
var authNames = [
|
|
71
|
-
var contentTypes = [
|
|
72
|
-
var accepts = [
|
|
70
|
+
var authNames = ["api_key"];
|
|
71
|
+
var contentTypes = ["application/json"];
|
|
72
|
+
var accepts = ["application/json"];
|
|
73
73
|
var returnType = _Product["default"];
|
|
74
|
-
return this.apiClient.callApi(
|
|
74
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/products", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* Create Product within a Project
|
|
79
|
-
* @param {String} projectUID
|
|
79
|
+
* @param {String} projectUID
|
|
80
80
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
81
81
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
82
82
|
*/
|
|
@@ -105,11 +105,11 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
105
105
|
var queryParams = {};
|
|
106
106
|
var headerParams = {};
|
|
107
107
|
var formParams = {};
|
|
108
|
-
var authNames = [
|
|
109
|
-
var contentTypes = [
|
|
110
|
-
var accepts = [
|
|
108
|
+
var authNames = ["api_key"];
|
|
109
|
+
var contentTypes = ["application/json"];
|
|
110
|
+
var accepts = ["application/json"];
|
|
111
111
|
var returnType = _Project["default"];
|
|
112
|
-
return this.apiClient.callApi(
|
|
112
|
+
return this.apiClient.callApi("/v1/projects", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
@@ -127,7 +127,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* Delete an environment variable of a project by key
|
|
130
|
-
* @param {String} projectUID
|
|
130
|
+
* @param {String} projectUID
|
|
131
131
|
* @param {String} key The environment variable key to delete.
|
|
132
132
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
133
133
|
*/
|
|
@@ -144,22 +144,22 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
144
144
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
145
145
|
}
|
|
146
146
|
var pathParams = {
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
projectUID: projectUID,
|
|
148
|
+
key: key
|
|
149
149
|
};
|
|
150
150
|
var queryParams = {};
|
|
151
151
|
var headerParams = {};
|
|
152
152
|
var formParams = {};
|
|
153
|
-
var authNames = [
|
|
153
|
+
var authNames = ["api_key"];
|
|
154
154
|
var contentTypes = [];
|
|
155
|
-
var accepts = [
|
|
155
|
+
var accepts = ["application/json"];
|
|
156
156
|
var returnType = _EnvironmentVariables["default"];
|
|
157
|
-
return this.apiClient.callApi(
|
|
157
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* Delete an environment variable of a project by key
|
|
162
|
-
* @param {String} projectUID
|
|
162
|
+
* @param {String} projectUID
|
|
163
163
|
* @param {String} key The environment variable key to delete.
|
|
164
164
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
165
165
|
*/
|
|
@@ -173,7 +173,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* Get a Project by ProjectUID
|
|
176
|
-
* @param {String} projectUID
|
|
176
|
+
* @param {String} projectUID
|
|
177
177
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
178
178
|
*/
|
|
179
179
|
}, {
|
|
@@ -185,21 +185,21 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
185
185
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
|
|
186
186
|
}
|
|
187
187
|
var pathParams = {
|
|
188
|
-
|
|
188
|
+
projectUID: projectUID
|
|
189
189
|
};
|
|
190
190
|
var queryParams = {};
|
|
191
191
|
var headerParams = {};
|
|
192
192
|
var formParams = {};
|
|
193
|
-
var authNames = [
|
|
193
|
+
var authNames = ["api_key"];
|
|
194
194
|
var contentTypes = [];
|
|
195
|
-
var accepts = [
|
|
195
|
+
var accepts = ["application/json"];
|
|
196
196
|
var returnType = _Project["default"];
|
|
197
|
-
return this.apiClient.callApi(
|
|
197
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* Get a Project by ProjectUID
|
|
202
|
-
* @param {String} projectUID
|
|
202
|
+
* @param {String} projectUID
|
|
203
203
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
204
204
|
*/
|
|
205
205
|
}, {
|
|
@@ -212,7 +212,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* Get a Project by ProductUID
|
|
215
|
-
* @param {String} productUID
|
|
215
|
+
* @param {String} productUID
|
|
216
216
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
217
217
|
*/
|
|
218
218
|
}, {
|
|
@@ -224,21 +224,21 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
224
224
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
225
225
|
}
|
|
226
226
|
var pathParams = {
|
|
227
|
-
|
|
227
|
+
productUID: productUID
|
|
228
228
|
};
|
|
229
229
|
var queryParams = {};
|
|
230
230
|
var headerParams = {};
|
|
231
231
|
var formParams = {};
|
|
232
|
-
var authNames = [
|
|
232
|
+
var authNames = ["api_key"];
|
|
233
233
|
var contentTypes = [];
|
|
234
|
-
var accepts = [
|
|
234
|
+
var accepts = ["application/json"];
|
|
235
235
|
var returnType = _Project["default"];
|
|
236
|
-
return this.apiClient.callApi(
|
|
236
|
+
return this.apiClient.callApi("/v1/products/{productUID}/project", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
/**
|
|
240
240
|
* Get a Project by ProductUID
|
|
241
|
-
* @param {String} productUID
|
|
241
|
+
* @param {String} productUID
|
|
242
242
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
243
243
|
*/
|
|
244
244
|
}, {
|
|
@@ -251,7 +251,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* Get Device Public Keys of a Project
|
|
254
|
-
* @param {String} projectUID
|
|
254
|
+
* @param {String} projectUID
|
|
255
255
|
* @param {Object} opts Optional parameters
|
|
256
256
|
* @param {Number} opts.pageSize (default to 50)
|
|
257
257
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -267,24 +267,24 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
267
267
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevicePublicKeys");
|
|
268
268
|
}
|
|
269
269
|
var pathParams = {
|
|
270
|
-
|
|
270
|
+
projectUID: projectUID
|
|
271
271
|
};
|
|
272
272
|
var queryParams = {
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
pageSize: opts["pageSize"],
|
|
274
|
+
pageNum: opts["pageNum"]
|
|
275
275
|
};
|
|
276
276
|
var headerParams = {};
|
|
277
277
|
var formParams = {};
|
|
278
|
-
var authNames = [
|
|
278
|
+
var authNames = ["api_key"];
|
|
279
279
|
var contentTypes = [];
|
|
280
|
-
var accepts = [
|
|
280
|
+
var accepts = ["application/json"];
|
|
281
281
|
var returnType = _GetProjectDevicePublicKeys200Response["default"];
|
|
282
|
-
return this.apiClient.callApi(
|
|
282
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
286
|
* Get Device Public Keys of a Project
|
|
287
|
-
* @param {String} projectUID
|
|
287
|
+
* @param {String} projectUID
|
|
288
288
|
* @param {Object} opts Optional parameters
|
|
289
289
|
* @param {Number} opts.pageSize (default to 50)
|
|
290
290
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -300,7 +300,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
302
|
* Get Devices of a Project
|
|
303
|
-
* @param {String} projectUID
|
|
303
|
+
* @param {String} projectUID
|
|
304
304
|
* @param {Object} opts Optional parameters
|
|
305
305
|
* @param {Number} opts.pageSize (default to 50)
|
|
306
306
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -316,24 +316,24 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
316
316
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevices");
|
|
317
317
|
}
|
|
318
318
|
var pathParams = {
|
|
319
|
-
|
|
319
|
+
projectUID: projectUID
|
|
320
320
|
};
|
|
321
321
|
var queryParams = {
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
pageSize: opts["pageSize"],
|
|
323
|
+
pageNum: opts["pageNum"]
|
|
324
324
|
};
|
|
325
325
|
var headerParams = {};
|
|
326
326
|
var formParams = {};
|
|
327
|
-
var authNames = [
|
|
327
|
+
var authNames = ["api_key"];
|
|
328
328
|
var contentTypes = [];
|
|
329
|
-
var accepts = [
|
|
329
|
+
var accepts = ["application/json"];
|
|
330
330
|
var returnType = _GetProjectDevices200Response["default"];
|
|
331
|
-
return this.apiClient.callApi(
|
|
331
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
335
|
* Get Devices of a Project
|
|
336
|
-
* @param {String} projectUID
|
|
336
|
+
* @param {String} projectUID
|
|
337
337
|
* @param {Object} opts Optional parameters
|
|
338
338
|
* @param {Number} opts.pageSize (default to 50)
|
|
339
339
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -349,7 +349,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
349
349
|
|
|
350
350
|
/**
|
|
351
351
|
* Get environment variables of a project
|
|
352
|
-
* @param {String} projectUID
|
|
352
|
+
* @param {String} projectUID
|
|
353
353
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
354
354
|
*/
|
|
355
355
|
}, {
|
|
@@ -361,21 +361,21 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
361
361
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
|
|
362
362
|
}
|
|
363
363
|
var pathParams = {
|
|
364
|
-
|
|
364
|
+
projectUID: projectUID
|
|
365
365
|
};
|
|
366
366
|
var queryParams = {};
|
|
367
367
|
var headerParams = {};
|
|
368
368
|
var formParams = {};
|
|
369
|
-
var authNames = [
|
|
369
|
+
var authNames = ["api_key"];
|
|
370
370
|
var contentTypes = [];
|
|
371
|
-
var accepts = [
|
|
371
|
+
var accepts = ["application/json"];
|
|
372
372
|
var returnType = _EnvironmentVariables["default"];
|
|
373
|
-
return this.apiClient.callApi(
|
|
373
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Get environment variables of a project
|
|
378
|
-
* @param {String} projectUID
|
|
378
|
+
* @param {String} projectUID
|
|
379
379
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
380
380
|
*/
|
|
381
381
|
}, {
|
|
@@ -388,7 +388,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
390
|
* Get Events of a Project
|
|
391
|
-
* @param {String} projectUID
|
|
391
|
+
* @param {String} projectUID
|
|
392
392
|
* @param {Object} opts Optional parameters
|
|
393
393
|
* @param {Number} opts.pageSize (default to 50)
|
|
394
394
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -397,8 +397,8 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
397
397
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
398
398
|
* @param {Number} opts.startDate Unix timestamp
|
|
399
399
|
* @param {Number} opts.endDate Unix timestamp
|
|
400
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
401
|
-
* @param {String} opts.files
|
|
400
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
401
|
+
* @param {String} opts.files
|
|
402
402
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
403
403
|
*/
|
|
404
404
|
}, {
|
|
@@ -411,31 +411,31 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
411
411
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEvents");
|
|
412
412
|
}
|
|
413
413
|
var pathParams = {
|
|
414
|
-
|
|
414
|
+
projectUID: projectUID
|
|
415
415
|
};
|
|
416
416
|
var queryParams = {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
417
|
+
pageSize: opts["pageSize"],
|
|
418
|
+
pageNum: opts["pageNum"],
|
|
419
|
+
deviceUID: opts["deviceUID"],
|
|
420
|
+
sortBy: opts["sortBy"],
|
|
421
|
+
sortOrder: opts["sortOrder"],
|
|
422
|
+
startDate: opts["startDate"],
|
|
423
|
+
endDate: opts["endDate"],
|
|
424
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
425
|
+
files: opts["files"]
|
|
426
426
|
};
|
|
427
427
|
var headerParams = {};
|
|
428
428
|
var formParams = {};
|
|
429
|
-
var authNames = [
|
|
429
|
+
var authNames = ["api_key"];
|
|
430
430
|
var contentTypes = [];
|
|
431
|
-
var accepts = [
|
|
431
|
+
var accepts = ["application/json"];
|
|
432
432
|
var returnType = _GetProjectEvents200Response["default"];
|
|
433
|
-
return this.apiClient.callApi(
|
|
433
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
/**
|
|
437
437
|
* Get Events of a Project
|
|
438
|
-
* @param {String} projectUID
|
|
438
|
+
* @param {String} projectUID
|
|
439
439
|
* @param {Object} opts Optional parameters
|
|
440
440
|
* @param {Number} opts.pageSize (default to 50)
|
|
441
441
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -444,8 +444,8 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
444
444
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
445
445
|
* @param {Number} opts.startDate Unix timestamp
|
|
446
446
|
* @param {Number} opts.endDate Unix timestamp
|
|
447
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
448
|
-
* @param {String} opts.files
|
|
447
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
448
|
+
* @param {String} opts.files
|
|
449
449
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
450
450
|
*/
|
|
451
451
|
}, {
|
|
@@ -458,13 +458,13 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
460
|
* Get Events of a Project by cursor
|
|
461
|
-
* @param {String} projectUID
|
|
461
|
+
* @param {String} projectUID
|
|
462
462
|
* @param {Object} opts Optional parameters
|
|
463
463
|
* @param {Number} opts.limit (default to 50)
|
|
464
|
-
* @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.
|
|
464
|
+
* @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.
|
|
465
465
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
466
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
467
|
-
* @param {String} opts.files
|
|
466
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
467
|
+
* @param {String} opts.files
|
|
468
468
|
* @param {String} opts.deviceUID A Device UID.
|
|
469
469
|
* @param {Number} opts.startDate Unix timestamp
|
|
470
470
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -480,36 +480,36 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
480
480
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEventsByCursor");
|
|
481
481
|
}
|
|
482
482
|
var pathParams = {
|
|
483
|
-
|
|
483
|
+
projectUID: projectUID
|
|
484
484
|
};
|
|
485
485
|
var queryParams = {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
486
|
+
limit: opts["limit"],
|
|
487
|
+
cursor: opts["cursor"],
|
|
488
|
+
sortOrder: opts["sortOrder"],
|
|
489
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
490
|
+
files: opts["files"],
|
|
491
|
+
deviceUID: opts["deviceUID"],
|
|
492
|
+
startDate: opts["startDate"],
|
|
493
|
+
endDate: opts["endDate"]
|
|
494
494
|
};
|
|
495
495
|
var headerParams = {};
|
|
496
496
|
var formParams = {};
|
|
497
|
-
var authNames = [
|
|
497
|
+
var authNames = ["api_key"];
|
|
498
498
|
var contentTypes = [];
|
|
499
|
-
var accepts = [
|
|
499
|
+
var accepts = ["application/json"];
|
|
500
500
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
501
|
-
return this.apiClient.callApi(
|
|
501
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
505
|
* Get Events of a Project by cursor
|
|
506
|
-
* @param {String} projectUID
|
|
506
|
+
* @param {String} projectUID
|
|
507
507
|
* @param {Object} opts Optional parameters
|
|
508
508
|
* @param {Number} opts.limit (default to 50)
|
|
509
|
-
* @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.
|
|
509
|
+
* @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.
|
|
510
510
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
511
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
512
|
-
* @param {String} opts.files
|
|
511
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
512
|
+
* @param {String} opts.files
|
|
513
513
|
* @param {String} opts.deviceUID A Device UID.
|
|
514
514
|
* @param {Number} opts.startDate Unix timestamp
|
|
515
515
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -525,8 +525,8 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
525
525
|
|
|
526
526
|
/**
|
|
527
527
|
* Get Devices of a Fleet within a Project
|
|
528
|
-
* @param {String} projectUID
|
|
529
|
-
* @param {String} fleetUID
|
|
528
|
+
* @param {String} projectUID
|
|
529
|
+
* @param {String} fleetUID
|
|
530
530
|
* @param {Object} opts Optional parameters
|
|
531
531
|
* @param {Number} opts.pageSize (default to 50)
|
|
532
532
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -546,26 +546,26 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
546
546
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
547
547
|
}
|
|
548
548
|
var pathParams = {
|
|
549
|
-
|
|
550
|
-
|
|
549
|
+
projectUID: projectUID,
|
|
550
|
+
fleetUID: fleetUID
|
|
551
551
|
};
|
|
552
552
|
var queryParams = {
|
|
553
|
-
|
|
554
|
-
|
|
553
|
+
pageSize: opts["pageSize"],
|
|
554
|
+
pageNum: opts["pageNum"]
|
|
555
555
|
};
|
|
556
556
|
var headerParams = {};
|
|
557
557
|
var formParams = {};
|
|
558
|
-
var authNames = [
|
|
558
|
+
var authNames = ["api_key"];
|
|
559
559
|
var contentTypes = [];
|
|
560
|
-
var accepts = [
|
|
560
|
+
var accepts = ["application/json"];
|
|
561
561
|
var returnType = _GetProjectDevices200Response["default"];
|
|
562
|
-
return this.apiClient.callApi(
|
|
562
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
/**
|
|
566
566
|
* Get Devices of a Fleet within a Project
|
|
567
|
-
* @param {String} projectUID
|
|
568
|
-
* @param {String} fleetUID
|
|
567
|
+
* @param {String} projectUID
|
|
568
|
+
* @param {String} fleetUID
|
|
569
569
|
* @param {Object} opts Optional parameters
|
|
570
570
|
* @param {Number} opts.pageSize (default to 50)
|
|
571
571
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -581,7 +581,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
581
581
|
|
|
582
582
|
/**
|
|
583
583
|
* Get Project Members
|
|
584
|
-
* @param {String} projectUID
|
|
584
|
+
* @param {String} projectUID
|
|
585
585
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
586
586
|
*/
|
|
587
587
|
}, {
|
|
@@ -593,21 +593,21 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
593
593
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectMembers");
|
|
594
594
|
}
|
|
595
595
|
var pathParams = {
|
|
596
|
-
|
|
596
|
+
projectUID: projectUID
|
|
597
597
|
};
|
|
598
598
|
var queryParams = {};
|
|
599
599
|
var headerParams = {};
|
|
600
600
|
var formParams = {};
|
|
601
|
-
var authNames = [
|
|
601
|
+
var authNames = ["api_key"];
|
|
602
602
|
var contentTypes = [];
|
|
603
|
-
var accepts = [
|
|
603
|
+
var accepts = ["application/json"];
|
|
604
604
|
var returnType = _GetProjectMembers200Response["default"];
|
|
605
|
-
return this.apiClient.callApi(
|
|
605
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/members", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
/**
|
|
609
609
|
* Get Project Members
|
|
610
|
-
* @param {String} projectUID
|
|
610
|
+
* @param {String} projectUID
|
|
611
611
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
612
612
|
*/
|
|
613
613
|
}, {
|
|
@@ -620,7 +620,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
620
620
|
|
|
621
621
|
/**
|
|
622
622
|
* Get Products within a Project
|
|
623
|
-
* @param {String} projectUID
|
|
623
|
+
* @param {String} projectUID
|
|
624
624
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
625
625
|
*/
|
|
626
626
|
}, {
|
|
@@ -632,21 +632,21 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
632
632
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
|
|
633
633
|
}
|
|
634
634
|
var pathParams = {
|
|
635
|
-
|
|
635
|
+
projectUID: projectUID
|
|
636
636
|
};
|
|
637
637
|
var queryParams = {};
|
|
638
638
|
var headerParams = {};
|
|
639
639
|
var formParams = {};
|
|
640
|
-
var authNames = [
|
|
640
|
+
var authNames = ["api_key"];
|
|
641
641
|
var contentTypes = [];
|
|
642
|
-
var accepts = [
|
|
642
|
+
var accepts = ["application/json"];
|
|
643
643
|
var returnType = _GetProjectProducts200Response["default"];
|
|
644
|
-
return this.apiClient.callApi(
|
|
644
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/products", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
/**
|
|
648
648
|
* Get Products within a Project
|
|
649
|
-
* @param {String} projectUID
|
|
649
|
+
* @param {String} projectUID
|
|
650
650
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
651
651
|
*/
|
|
652
652
|
}, {
|
|
@@ -669,11 +669,11 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
669
669
|
var queryParams = {};
|
|
670
670
|
var headerParams = {};
|
|
671
671
|
var formParams = {};
|
|
672
|
-
var authNames = [
|
|
672
|
+
var authNames = ["api_key"];
|
|
673
673
|
var contentTypes = [];
|
|
674
|
-
var accepts = [
|
|
674
|
+
var accepts = ["application/json"];
|
|
675
675
|
var returnType = _GetProjects200Response["default"];
|
|
676
|
-
return this.apiClient.callApi(
|
|
676
|
+
return this.apiClient.callApi("/v1/projects", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
/**
|
|
@@ -690,38 +690,38 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
690
690
|
|
|
691
691
|
/**
|
|
692
692
|
* Put environment variables of a project
|
|
693
|
-
* @param {String} projectUID
|
|
693
|
+
* @param {String} projectUID
|
|
694
694
|
* @param {Object} opts Optional parameters
|
|
695
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
695
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
696
696
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
697
697
|
*/
|
|
698
698
|
}, {
|
|
699
699
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
700
700
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
|
|
701
701
|
opts = opts || {};
|
|
702
|
-
var postBody = opts[
|
|
702
|
+
var postBody = opts["environmentVariables"];
|
|
703
703
|
// verify the required parameter 'projectUID' is set
|
|
704
704
|
if (projectUID === undefined || projectUID === null) {
|
|
705
705
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
|
|
706
706
|
}
|
|
707
707
|
var pathParams = {
|
|
708
|
-
|
|
708
|
+
projectUID: projectUID
|
|
709
709
|
};
|
|
710
710
|
var queryParams = {};
|
|
711
711
|
var headerParams = {};
|
|
712
712
|
var formParams = {};
|
|
713
|
-
var authNames = [
|
|
714
|
-
var contentTypes = [
|
|
715
|
-
var accepts = [
|
|
713
|
+
var authNames = ["api_key"];
|
|
714
|
+
var contentTypes = ["application/json"];
|
|
715
|
+
var accepts = ["application/json"];
|
|
716
716
|
var returnType = _EnvironmentVariables["default"];
|
|
717
|
-
return this.apiClient.callApi(
|
|
717
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
/**
|
|
721
721
|
* Put environment variables of a project
|
|
722
|
-
* @param {String} projectUID
|
|
722
|
+
* @param {String} projectUID
|
|
723
723
|
* @param {Object} opts Optional parameters
|
|
724
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
724
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
725
725
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
726
726
|
*/
|
|
727
727
|
}, {
|