@cirrobio/api-client 0.0.15-alpha → 0.0.18-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/apis/MetadataApi.d.ts +16 -0
- package/dist/apis/MetadataApi.js +60 -0
- package/dist/apis/NotebooksApi.d.ts +24 -0
- package/dist/apis/NotebooksApi.js +24 -0
- package/dist/models/DatasetAssetsManifest.d.ts +39 -0
- package/dist/models/DatasetAssetsManifest.js +54 -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 +12 -0
- package/dist/models/NotebookInstance.js +6 -0
- package/dist/models/NotebookInstanceStatusResponse.d.ts +6 -0
- package/dist/models/NotebookInstanceStatusResponse.js +3 -0
- package/dist/models/Status.d.ts +1 -0
- package/dist/models/Status.js +1 -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/apis/MetadataApi.ts +53 -0
- package/src/apis/NotebooksApi.ts +24 -0
- package/src/models/DatasetAssetsManifest.ts +86 -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 +18 -0
- package/src/models/NotebookInstanceStatusResponse.ts +9 -0
- package/src/models/Status.ts +1 -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
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
import type { DatasetFile } from './DatasetFile';
|
|
17
|
+
import {
|
|
18
|
+
DatasetFileFromJSON,
|
|
19
|
+
DatasetFileFromJSONTyped,
|
|
20
|
+
DatasetFileToJSON,
|
|
21
|
+
} from './DatasetFile';
|
|
22
|
+
import type { DatasetViz } from './DatasetViz';
|
|
23
|
+
import {
|
|
24
|
+
DatasetVizFromJSON,
|
|
25
|
+
DatasetVizFromJSONTyped,
|
|
26
|
+
DatasetVizToJSON,
|
|
27
|
+
} from './DatasetViz';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface DatasetAssetsManifest
|
|
33
|
+
*/
|
|
34
|
+
export interface DatasetAssetsManifest {
|
|
35
|
+
/**
|
|
36
|
+
* List of files in the dataset, including metadata
|
|
37
|
+
* @type {Array<DatasetFile>}
|
|
38
|
+
* @memberof DatasetAssetsManifest
|
|
39
|
+
*/
|
|
40
|
+
files?: Array<DatasetFile>;
|
|
41
|
+
/**
|
|
42
|
+
* List of viz to render for the dataset
|
|
43
|
+
* @type {Array<DatasetViz>}
|
|
44
|
+
* @memberof DatasetAssetsManifest
|
|
45
|
+
*/
|
|
46
|
+
viz?: Array<DatasetViz>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the DatasetAssetsManifest interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfDatasetAssetsManifest(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function DatasetAssetsManifestFromJSON(json: any): DatasetAssetsManifest {
|
|
59
|
+
return DatasetAssetsManifestFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function DatasetAssetsManifestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetAssetsManifest {
|
|
63
|
+
if ((json === undefined) || (json === null)) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'files': !exists(json, 'files') ? undefined : ((json['files'] as Array<any>).map(DatasetFileFromJSON)),
|
|
69
|
+
'viz': !exists(json, 'viz') ? undefined : ((json['viz'] as Array<any>).map(DatasetVizFromJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function DatasetAssetsManifestToJSON(value?: DatasetAssetsManifest | null): any {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'files': value.files === undefined ? undefined : ((value.files as Array<any>).map(DatasetFileToJSON)),
|
|
83
|
+
'viz': value.viz === undefined ? undefined : ((value.viz as Array<any>).map(DatasetVizToJSON)),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 DatasetFile
|
|
20
|
+
*/
|
|
21
|
+
export interface DatasetFile {
|
|
22
|
+
/**
|
|
23
|
+
* Relative path to file
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DatasetFile
|
|
26
|
+
*/
|
|
27
|
+
path?: string;
|
|
28
|
+
/**
|
|
29
|
+
* File size (in bytes)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof DatasetFile
|
|
32
|
+
*/
|
|
33
|
+
size?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Metadata associated with the file
|
|
36
|
+
* @type {{ [key: string]: string; }}
|
|
37
|
+
* @memberof DatasetFile
|
|
38
|
+
*/
|
|
39
|
+
metadata?: { [key: string]: string; };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the DatasetFile interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfDatasetFile(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DatasetFileFromJSON(json: any): DatasetFile {
|
|
52
|
+
return DatasetFileFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function DatasetFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetFile {
|
|
56
|
+
if ((json === undefined) || (json === null)) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'path': !exists(json, 'path') ? undefined : json['path'],
|
|
62
|
+
'size': !exists(json, 'size') ? undefined : json['size'],
|
|
63
|
+
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function DatasetFileToJSON(value?: DatasetFile | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'path': value.path,
|
|
77
|
+
'size': value.size,
|
|
78
|
+
'metadata': value.metadata,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 DatasetViz
|
|
20
|
+
*/
|
|
21
|
+
export interface DatasetViz {
|
|
22
|
+
/**
|
|
23
|
+
* Name of viz
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DatasetViz
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Description of viz
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DatasetViz
|
|
32
|
+
*/
|
|
33
|
+
desc?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Type of viz
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DatasetViz
|
|
38
|
+
*/
|
|
39
|
+
type?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Path to config file used to render viz
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DatasetViz
|
|
44
|
+
*/
|
|
45
|
+
config?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DatasetViz interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDatasetViz(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
|
|
54
|
+
return isInstance;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function DatasetVizFromJSON(json: any): DatasetViz {
|
|
58
|
+
return DatasetVizFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function DatasetVizFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetViz {
|
|
62
|
+
if ((json === undefined) || (json === null)) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
68
|
+
'desc': !exists(json, 'desc') ? undefined : json['desc'],
|
|
69
|
+
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
70
|
+
'config': !exists(json, 'config') ? undefined : json['config'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function DatasetVizToJSON(value?: DatasetViz | null): any {
|
|
75
|
+
if (value === undefined) {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
if (value === null) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'name': value.name,
|
|
84
|
+
'desc': value.desc,
|
|
85
|
+
'type': value.type,
|
|
86
|
+
'config': value.config,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -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 ImportDataRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ImportDataRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ImportDataRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ImportDataRequest
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof ImportDataRequest
|
|
38
|
+
*/
|
|
39
|
+
publicIds: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ImportDataRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfImportDataRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "name" in value;
|
|
48
|
+
isInstance = isInstance && "description" in value;
|
|
49
|
+
isInstance = isInstance && "publicIds" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ImportDataRequestFromJSON(json: any): ImportDataRequest {
|
|
55
|
+
return ImportDataRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ImportDataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportDataRequest {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
'description': json['description'],
|
|
66
|
+
'publicIds': json['publicIds'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ImportDataRequestToJSON(value?: ImportDataRequest | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'name': value.name,
|
|
80
|
+
'description': value.description,
|
|
81
|
+
'publicIds': value.publicIds,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -68,6 +68,18 @@ export interface NotebookInstance {
|
|
|
68
68
|
* @memberof NotebookInstance
|
|
69
69
|
*/
|
|
70
70
|
createdBy: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Date}
|
|
74
|
+
* @memberof NotebookInstance
|
|
75
|
+
*/
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @memberof NotebookInstance
|
|
81
|
+
*/
|
|
82
|
+
updatedAt: Date;
|
|
71
83
|
}
|
|
72
84
|
|
|
73
85
|
/**
|
|
@@ -82,6 +94,8 @@ export function instanceOfNotebookInstance(value: object): boolean {
|
|
|
82
94
|
isInstance = isInstance && "acceleratorTypes" in value;
|
|
83
95
|
isInstance = isInstance && "volumeSizeGB" in value;
|
|
84
96
|
isInstance = isInstance && "createdBy" in value;
|
|
97
|
+
isInstance = isInstance && "createdAt" in value;
|
|
98
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
85
99
|
|
|
86
100
|
return isInstance;
|
|
87
101
|
}
|
|
@@ -103,6 +117,8 @@ export function NotebookInstanceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
103
117
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
104
118
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
105
119
|
'createdBy': json['createdBy'],
|
|
120
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
121
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
106
122
|
};
|
|
107
123
|
}
|
|
108
124
|
|
|
@@ -122,6 +138,8 @@ export function NotebookInstanceToJSON(value?: NotebookInstance | null): any {
|
|
|
122
138
|
'acceleratorTypes': value.acceleratorTypes,
|
|
123
139
|
'volumeSizeGB': value.volumeSizeGB,
|
|
124
140
|
'createdBy': value.createdBy,
|
|
141
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
142
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
125
143
|
};
|
|
126
144
|
}
|
|
127
145
|
|
|
@@ -25,6 +25,12 @@ export interface NotebookInstanceStatusResponse {
|
|
|
25
25
|
* @memberof NotebookInstanceStatusResponse
|
|
26
26
|
*/
|
|
27
27
|
status: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NotebookInstanceStatusResponse
|
|
32
|
+
*/
|
|
33
|
+
statusMessage: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -33,6 +39,7 @@ export interface NotebookInstanceStatusResponse {
|
|
|
33
39
|
export function instanceOfNotebookInstanceStatusResponse(value: object): boolean {
|
|
34
40
|
let isInstance = true;
|
|
35
41
|
isInstance = isInstance && "status" in value;
|
|
42
|
+
isInstance = isInstance && "statusMessage" in value;
|
|
36
43
|
|
|
37
44
|
return isInstance;
|
|
38
45
|
}
|
|
@@ -48,6 +55,7 @@ export function NotebookInstanceStatusResponseFromJSONTyped(json: any, ignoreDis
|
|
|
48
55
|
return {
|
|
49
56
|
|
|
50
57
|
'status': json['status'],
|
|
58
|
+
'statusMessage': json['statusMessage'],
|
|
51
59
|
};
|
|
52
60
|
}
|
|
53
61
|
|
|
@@ -61,6 +69,7 @@ export function NotebookInstanceStatusResponseToJSON(value?: NotebookInstanceSta
|
|
|
61
69
|
return {
|
|
62
70
|
|
|
63
71
|
'status': value.status,
|
|
72
|
+
'statusMessage': value.statusMessage,
|
|
64
73
|
};
|
|
65
74
|
}
|
|
66
75
|
|
package/src/models/Status.ts
CHANGED
|
@@ -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
|
+
|