edge-impulse-api 1.61.5 → 1.61.7
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/build/library/sdk/api/projectsApi.d.ts +12 -0
- package/build/library/sdk/api/projectsApi.js +68 -0
- package/build/library/sdk/api/projectsApi.js.map +1 -1
- package/build/library/sdk/model/listPublicProjectTypes.d.ts +29 -0
- package/build/library/sdk/model/listPublicProjectTypes.js +29 -0
- package/build/library/sdk/model/listPublicProjectTypes.js.map +1 -0
- package/build/library/sdk/model/listPublicProjectTypesProjectTypes.d.ts +27 -0
- package/build/library/sdk/model/listPublicProjectTypesProjectTypes.js +34 -0
- package/build/library/sdk/model/listPublicProjectTypesProjectTypes.js.map +1 -0
- package/build/library/sdk/model/listPublicProjectTypesResponse.d.ts +37 -0
- package/build/library/sdk/model/listPublicProjectTypesResponse.js +39 -0
- package/build/library/sdk/model/listPublicProjectTypesResponse.js.map +1 -0
- package/build/library/sdk/model/models.d.ts +3 -0
- package/build/library/sdk/model/models.js +9 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/package.json +1 -1
|
@@ -30,6 +30,7 @@ import { ListApiKeysResponse } from '../model/listApiKeysResponse';
|
|
|
30
30
|
import { ListEmailResponse } from '../model/listEmailResponse';
|
|
31
31
|
import { ListHmacKeysResponse } from '../model/listHmacKeysResponse';
|
|
32
32
|
import { ListProjectsResponse } from '../model/listProjectsResponse';
|
|
33
|
+
import { ListPublicProjectTypesResponse } from '../model/listPublicProjectTypesResponse';
|
|
33
34
|
import { ListPublicProjectsResponse } from '../model/listPublicProjectsResponse';
|
|
34
35
|
import { ListPublicVersionsResponse } from '../model/listPublicVersionsResponse';
|
|
35
36
|
import { ListSamplesResponse } from '../model/listSamplesResponse';
|
|
@@ -81,6 +82,7 @@ type listPublicProjectsQueryParams = {
|
|
|
81
82
|
offset?: number;
|
|
82
83
|
project?: string;
|
|
83
84
|
projectTypes?: string;
|
|
85
|
+
sort?: string;
|
|
84
86
|
};
|
|
85
87
|
export type uploadCsvWizardUploadedFileFormParams = {
|
|
86
88
|
file: RequestFile;
|
|
@@ -454,6 +456,15 @@ export declare class ProjectsApi {
|
|
|
454
456
|
[name: string]: string;
|
|
455
457
|
};
|
|
456
458
|
}): Promise<ListProjectsResponse>;
|
|
459
|
+
/**
|
|
460
|
+
* Retrieve the list of available public project types. You don\'t need any authentication for this method.
|
|
461
|
+
* @summary List public project types
|
|
462
|
+
*/
|
|
463
|
+
listPublicProjectTypes(options?: {
|
|
464
|
+
headers: {
|
|
465
|
+
[name: string]: string;
|
|
466
|
+
};
|
|
467
|
+
}): Promise<ListPublicProjectTypesResponse>;
|
|
457
468
|
/**
|
|
458
469
|
* Retrieve the list of all public projects. You don\'t need any authentication for this method.
|
|
459
470
|
* @summary List public projects
|
|
@@ -461,6 +472,7 @@ export declare class ProjectsApi {
|
|
|
461
472
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
462
473
|
* @param project Only include projects that contain this string
|
|
463
474
|
* @param projectTypes Comma separated list of project types to filter on. Supported values are \'audio\', \'object-detection\', \'image\', \'accelerometer\', \'other\'.
|
|
475
|
+
* @param sort Fields and order to sort query by
|
|
464
476
|
*/
|
|
465
477
|
listPublicProjects(queryParams?: listPublicProjectsQueryParams, options?: {
|
|
466
478
|
headers: {
|
|
@@ -2543,6 +2543,70 @@ class ProjectsApi {
|
|
|
2543
2543
|
});
|
|
2544
2544
|
});
|
|
2545
2545
|
}
|
|
2546
|
+
/**
|
|
2547
|
+
* Retrieve the list of available public project types. You don\'t need any authentication for this method.
|
|
2548
|
+
* @summary List public project types
|
|
2549
|
+
*/
|
|
2550
|
+
async listPublicProjectTypes(options = { headers: {} }) {
|
|
2551
|
+
const localVarPath = this.basePath + '/api/projects/types';
|
|
2552
|
+
let localVarQueryParameters = {};
|
|
2553
|
+
let localVarHeaderParams = Object.assign({
|
|
2554
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2555
|
+
}, this.defaultHeaders);
|
|
2556
|
+
const produces = ['application/json'];
|
|
2557
|
+
// give precedence to 'application/json'
|
|
2558
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2559
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2560
|
+
}
|
|
2561
|
+
else {
|
|
2562
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2563
|
+
}
|
|
2564
|
+
let localVarFormParams = {};
|
|
2565
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2566
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2567
|
+
let localVarUseFormData = false;
|
|
2568
|
+
let localVarRequestOptions = {
|
|
2569
|
+
method: 'GET',
|
|
2570
|
+
qs: localVarQueryParameters,
|
|
2571
|
+
headers: localVarHeaderParams,
|
|
2572
|
+
uri: localVarPath,
|
|
2573
|
+
useQuerystring: this._useQuerystring,
|
|
2574
|
+
agentOptions: { keepAlive: false },
|
|
2575
|
+
json: true,
|
|
2576
|
+
};
|
|
2577
|
+
let authenticationPromise = Promise.resolve();
|
|
2578
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2579
|
+
return authenticationPromise.then(() => {
|
|
2580
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2581
|
+
if (localVarUseFormData) {
|
|
2582
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2583
|
+
}
|
|
2584
|
+
else {
|
|
2585
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
return new Promise((resolve, reject) => {
|
|
2589
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2590
|
+
if (error) {
|
|
2591
|
+
reject(error);
|
|
2592
|
+
}
|
|
2593
|
+
else {
|
|
2594
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListPublicProjectTypesResponse");
|
|
2595
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2596
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2597
|
+
reject(new Error(body.error || errString));
|
|
2598
|
+
}
|
|
2599
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2600
|
+
resolve(body);
|
|
2601
|
+
}
|
|
2602
|
+
else {
|
|
2603
|
+
reject(errString);
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
});
|
|
2607
|
+
});
|
|
2608
|
+
});
|
|
2609
|
+
}
|
|
2546
2610
|
/**
|
|
2547
2611
|
* Retrieve the list of all public projects. You don\'t need any authentication for this method.
|
|
2548
2612
|
* @summary List public projects
|
|
@@ -2550,6 +2614,7 @@ class ProjectsApi {
|
|
|
2550
2614
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2551
2615
|
* @param project Only include projects that contain this string
|
|
2552
2616
|
* @param projectTypes Comma separated list of project types to filter on. Supported values are \'audio\', \'object-detection\', \'image\', \'accelerometer\', \'other\'.
|
|
2617
|
+
* @param sort Fields and order to sort query by
|
|
2553
2618
|
*/
|
|
2554
2619
|
async listPublicProjects(queryParams, options = { headers: {} }) {
|
|
2555
2620
|
const localVarPath = this.basePath + '/api/projects/public';
|
|
@@ -2578,6 +2643,9 @@ class ProjectsApi {
|
|
|
2578
2643
|
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.projectTypes) !== undefined) {
|
|
2579
2644
|
localVarQueryParameters['projectTypes'] = models_1.ObjectSerializer.serialize(queryParams.projectTypes, "string");
|
|
2580
2645
|
}
|
|
2646
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.sort) !== undefined) {
|
|
2647
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
2648
|
+
}
|
|
2581
2649
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2582
2650
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2583
2651
|
let localVarUseFormData = false;
|