@cirrobio/api-client 0.0.16-alpha → 0.0.19-alpha
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/.openapi-generator/FILES +6 -2
- package/README.md +1 -1
- package/dist/apis/DatasetsApi.d.ts +33 -17
- package/dist/apis/DatasetsApi.js +89 -25
- package/dist/models/Dataset.d.ts +6 -0
- package/dist/models/Dataset.js +3 -0
- package/dist/models/DatasetAssetsManifest.d.ts +39 -0
- package/dist/models/DatasetAssetsManifest.js +54 -0
- package/dist/models/DatasetDetail.d.ts +6 -0
- package/dist/models/DatasetDetail.js +3 -0
- package/dist/models/DatasetFile.d.ts +45 -0
- package/dist/models/DatasetFile.js +54 -0
- package/dist/models/DatasetViz.d.ts +49 -0
- package/dist/models/DatasetViz.js +56 -0
- package/dist/models/ImportDataRequest.d.ts +43 -0
- package/dist/models/ImportDataRequest.js +56 -0
- package/dist/models/NotebookInstance.d.ts +6 -0
- package/dist/models/NotebookInstance.js +3 -0
- package/dist/models/UpdateDatasetRequest.d.ts +15 -2
- package/dist/models/UpdateDatasetRequest.js +10 -3
- package/dist/models/UploadDatasetCreateResponse.d.ts +43 -0
- package/dist/models/UploadDatasetCreateResponse.js +56 -0
- package/dist/models/UploadDatasetRequest.d.ts +49 -0
- package/dist/models/UploadDatasetRequest.js +59 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/DatasetsApi.ts +100 -35
- package/src/models/Dataset.ts +9 -0
- package/src/models/DatasetAssetsManifest.ts +86 -0
- package/src/models/DatasetDetail.ts +9 -0
- package/src/models/DatasetFile.ts +81 -0
- package/src/models/DatasetViz.ts +89 -0
- package/src/models/ImportDataRequest.ts +84 -0
- package/src/models/NotebookInstance.ts +9 -0
- package/src/models/UpdateDatasetRequest.ts +30 -4
- package/src/models/UploadDatasetCreateResponse.ts +84 -0
- package/src/models/UploadDatasetRequest.ts +93 -0
- package/src/models/index.ts +6 -2
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Tag } from './Tag';
|
|
17
|
+
import {
|
|
18
|
+
TagFromJSON,
|
|
19
|
+
TagFromJSONTyped,
|
|
20
|
+
TagToJSON,
|
|
21
|
+
} from './Tag';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -21,10 +28,22 @@ import { exists, mapValues } from '../runtime';
|
|
|
21
28
|
export interface UpdateDatasetRequest {
|
|
22
29
|
/**
|
|
23
30
|
*
|
|
24
|
-
* @type {
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof UpdateDatasetRequest
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof UpdateDatasetRequest
|
|
39
|
+
*/
|
|
40
|
+
description: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<Tag>}
|
|
25
44
|
* @memberof UpdateDatasetRequest
|
|
26
45
|
*/
|
|
27
|
-
|
|
46
|
+
tags: Array<Tag>;
|
|
28
47
|
}
|
|
29
48
|
|
|
30
49
|
/**
|
|
@@ -32,6 +51,9 @@ export interface UpdateDatasetRequest {
|
|
|
32
51
|
*/
|
|
33
52
|
export function instanceOfUpdateDatasetRequest(value: object): boolean {
|
|
34
53
|
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "name" in value;
|
|
55
|
+
isInstance = isInstance && "description" in value;
|
|
56
|
+
isInstance = isInstance && "tags" in value;
|
|
35
57
|
|
|
36
58
|
return isInstance;
|
|
37
59
|
}
|
|
@@ -46,7 +68,9 @@ export function UpdateDatasetRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
46
68
|
}
|
|
47
69
|
return {
|
|
48
70
|
|
|
49
|
-
'
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'description': json['description'],
|
|
73
|
+
'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
|
|
50
74
|
};
|
|
51
75
|
}
|
|
52
76
|
|
|
@@ -59,7 +83,9 @@ export function UpdateDatasetRequestToJSON(value?: UpdateDatasetRequest | null):
|
|
|
59
83
|
}
|
|
60
84
|
return {
|
|
61
85
|
|
|
62
|
-
'
|
|
86
|
+
'name': value.name,
|
|
87
|
+
'description': value.description,
|
|
88
|
+
'tags': ((value.tags as Array<any>).map(TagToJSON)),
|
|
63
89
|
};
|
|
64
90
|
}
|
|
65
91
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cirro Data
|
|
5
|
+
* Cirro Data Platform service API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
* Contact: support@cirro.bio
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UploadDatasetCreateResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface UploadDatasetCreateResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UploadDatasetCreateResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UploadDatasetCreateResponse
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UploadDatasetCreateResponse
|
|
38
|
+
*/
|
|
39
|
+
uploadPath: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UploadDatasetCreateResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUploadDatasetCreateResponse(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "id" in value;
|
|
48
|
+
isInstance = isInstance && "message" in value;
|
|
49
|
+
isInstance = isInstance && "uploadPath" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UploadDatasetCreateResponseFromJSON(json: any): UploadDatasetCreateResponse {
|
|
55
|
+
return UploadDatasetCreateResponseFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UploadDatasetCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadDatasetCreateResponse {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'message': json['message'],
|
|
66
|
+
'uploadPath': json['uploadPath'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function UploadDatasetCreateResponseToJSON(value?: UploadDatasetCreateResponse | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value.id,
|
|
80
|
+
'message': value.message,
|
|
81
|
+
'uploadPath': value.uploadPath,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cirro Data
|
|
5
|
+
* Cirro Data Platform service API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
* Contact: support@cirro.bio
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UploadDatasetRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UploadDatasetRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UploadDatasetRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UploadDatasetRequest
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UploadDatasetRequest
|
|
38
|
+
*/
|
|
39
|
+
processId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof UploadDatasetRequest
|
|
44
|
+
*/
|
|
45
|
+
expectedFiles: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the UploadDatasetRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfUploadDatasetRequest(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "name" in value;
|
|
54
|
+
isInstance = isInstance && "description" in value;
|
|
55
|
+
isInstance = isInstance && "processId" in value;
|
|
56
|
+
isInstance = isInstance && "expectedFiles" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UploadDatasetRequestFromJSON(json: any): UploadDatasetRequest {
|
|
62
|
+
return UploadDatasetRequestFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function UploadDatasetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadDatasetRequest {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'description': json['description'],
|
|
73
|
+
'processId': json['processId'],
|
|
74
|
+
'expectedFiles': json['expectedFiles'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function UploadDatasetRequestToJSON(value?: UploadDatasetRequest | null): any {
|
|
79
|
+
if (value === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value.name,
|
|
88
|
+
'description': value.description,
|
|
89
|
+
'processId': value.processId,
|
|
90
|
+
'expectedFiles': value.expectedFiles,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -13,10 +13,14 @@ export * from './CustomerType';
|
|
|
13
13
|
export * from './Dashboard';
|
|
14
14
|
export * from './DashboardRequest';
|
|
15
15
|
export * from './Dataset';
|
|
16
|
+
export * from './DatasetAssetsManifest';
|
|
16
17
|
export * from './DatasetDetail';
|
|
18
|
+
export * from './DatasetFile';
|
|
19
|
+
export * from './DatasetViz';
|
|
17
20
|
export * from './Executor';
|
|
18
21
|
export * from './FormSchema';
|
|
19
22
|
export * from './GetExecutionLogsResponse';
|
|
23
|
+
export * from './ImportDataRequest';
|
|
20
24
|
export * from './LogEntry';
|
|
21
25
|
export * from './MetricRecord';
|
|
22
26
|
export * from './NotebookInstance';
|
|
@@ -35,8 +39,6 @@ export * from './ProjectSettings';
|
|
|
35
39
|
export * from './ProjectUser';
|
|
36
40
|
export * from './Reference';
|
|
37
41
|
export * from './ReferenceType';
|
|
38
|
-
export * from './RegisterDatasetRequest';
|
|
39
|
-
export * from './RegisterPublicDataRequest';
|
|
40
42
|
export * from './Sample';
|
|
41
43
|
export * from './SampleRequest';
|
|
42
44
|
export * from './ServiceConnection';
|
|
@@ -48,4 +50,6 @@ export * from './Tag';
|
|
|
48
50
|
export * from './Task';
|
|
49
51
|
export * from './UpdateDatasetRequest';
|
|
50
52
|
export * from './UpdateUserRequest';
|
|
53
|
+
export * from './UploadDatasetCreateResponse';
|
|
54
|
+
export * from './UploadDatasetRequest';
|
|
51
55
|
export * from './User';
|