@cirrobio/api-client 0.10.6 → 0.11.0
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 +1 -1
- package/dist/apis/WorkspacesApi.d.ts +145 -0
- package/dist/apis/WorkspacesApi.js +398 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/WorkspacesApi.d.ts +145 -0
- package/dist/esm/apis/WorkspacesApi.js +394 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Dashboard.d.ts +2 -2
- package/dist/esm/models/Dashboard.js +3 -4
- package/dist/esm/models/DashboardRequest.d.ts +2 -2
- package/dist/esm/models/DashboardRequest.js +3 -4
- package/dist/esm/models/MountedDataset.d.ts +37 -0
- package/dist/esm/models/MountedDataset.js +46 -0
- package/dist/esm/models/ShareDetail.d.ts +0 -6
- package/dist/esm/models/ShareDetail.js +0 -3
- package/dist/esm/models/SharingType.d.ts +23 -0
- package/dist/esm/models/SharingType.js +32 -0
- package/dist/esm/models/Workspace.d.ts +108 -0
- package/dist/esm/models/Workspace.js +84 -0
- package/dist/esm/models/WorkspaceComputeConfig.d.ts +63 -0
- package/dist/esm/models/WorkspaceComputeConfig.js +54 -0
- package/dist/esm/models/WorkspaceConnectionResponse.d.ts +43 -0
- package/dist/esm/models/WorkspaceConnectionResponse.js +49 -0
- package/dist/esm/models/WorkspaceInput.d.ts +58 -0
- package/dist/esm/models/WorkspaceInput.js +58 -0
- package/dist/esm/models/WorkspaceSession.d.ts +43 -0
- package/dist/esm/models/WorkspaceSession.js +49 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/Dashboard.d.ts +2 -2
- package/dist/models/Dashboard.js +3 -4
- package/dist/models/DashboardRequest.d.ts +2 -2
- package/dist/models/DashboardRequest.js +3 -4
- package/dist/models/MountedDataset.d.ts +37 -0
- package/dist/models/MountedDataset.js +53 -0
- package/dist/models/ShareDetail.d.ts +0 -6
- package/dist/models/ShareDetail.js +0 -3
- package/dist/models/SharingType.d.ts +23 -0
- package/dist/models/SharingType.js +38 -0
- package/dist/models/Workspace.d.ts +108 -0
- package/dist/models/Workspace.js +91 -0
- package/dist/models/WorkspaceComputeConfig.d.ts +63 -0
- package/dist/models/WorkspaceComputeConfig.js +61 -0
- package/dist/models/WorkspaceConnectionResponse.d.ts +43 -0
- package/dist/models/WorkspaceConnectionResponse.js +56 -0
- package/dist/models/WorkspaceInput.d.ts +58 -0
- package/dist/models/WorkspaceInput.js +65 -0
- package/dist/models/WorkspaceSession.d.ts +43 -0
- package/dist/models/WorkspaceSession.js +56 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { MountedDatasetFromJSON, MountedDatasetToJSON, } from './MountedDataset';
|
|
16
|
+
import { SharingTypeFromJSON, SharingTypeToJSON, } from './SharingType';
|
|
17
|
+
import { WorkspaceComputeConfigFromJSON, WorkspaceComputeConfigToJSON, } from './WorkspaceComputeConfig';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the WorkspaceInput interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfWorkspaceInput(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
isInstance = isInstance && "mountedDatasets" in value;
|
|
25
|
+
isInstance = isInstance && "computeConfig" in value;
|
|
26
|
+
isInstance = isInstance && "sharingType" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
export function WorkspaceInputFromJSON(json) {
|
|
30
|
+
return WorkspaceInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function WorkspaceInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
39
|
+
'mountedDatasets': (json['mountedDatasets'].map(MountedDatasetFromJSON)),
|
|
40
|
+
'computeConfig': WorkspaceComputeConfigFromJSON(json['computeConfig']),
|
|
41
|
+
'sharingType': SharingTypeFromJSON(json['sharingType']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function WorkspaceInputToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value.name,
|
|
53
|
+
'description': value.description,
|
|
54
|
+
'mountedDatasets': (value.mountedDatasets.map(MountedDatasetToJSON)),
|
|
55
|
+
'computeConfig': WorkspaceComputeConfigToJSON(value.computeConfig),
|
|
56
|
+
'sharingType': SharingTypeToJSON(value.sharingType),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WorkspaceSession
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkspaceSession {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkspaceSession
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WorkspaceSession
|
|
28
|
+
*/
|
|
29
|
+
user: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof WorkspaceSession
|
|
34
|
+
*/
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WorkspaceSession interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfWorkspaceSession(value: object): boolean;
|
|
41
|
+
export declare function WorkspaceSessionFromJSON(json: any): WorkspaceSession;
|
|
42
|
+
export declare function WorkspaceSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceSession;
|
|
43
|
+
export declare function WorkspaceSessionToJSON(value?: WorkspaceSession | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* Check if a given object implements the WorkspaceSession interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWorkspaceSession(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "id" in value;
|
|
20
|
+
isInstance = isInstance && "user" in value;
|
|
21
|
+
isInstance = isInstance && "createdAt" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function WorkspaceSessionFromJSON(json) {
|
|
25
|
+
return WorkspaceSessionFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function WorkspaceSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'id': json['id'],
|
|
33
|
+
'user': json['user'],
|
|
34
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function WorkspaceSessionToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': value.id,
|
|
46
|
+
'user': value.user,
|
|
47
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -78,6 +78,7 @@ export * from './Message';
|
|
|
78
78
|
export * from './MessageInput';
|
|
79
79
|
export * from './MessageType';
|
|
80
80
|
export * from './MetricRecord';
|
|
81
|
+
export * from './MountedDataset';
|
|
81
82
|
export * from './MoveDatasetInput';
|
|
82
83
|
export * from './MoveDatasetResponse';
|
|
83
84
|
export * from './NamedItem';
|
|
@@ -125,6 +126,7 @@ export * from './Share';
|
|
|
125
126
|
export * from './ShareDetail';
|
|
126
127
|
export * from './ShareInput';
|
|
127
128
|
export * from './ShareType';
|
|
129
|
+
export * from './SharingType';
|
|
128
130
|
export * from './SortOrder';
|
|
129
131
|
export * from './Status';
|
|
130
132
|
export * from './StopExecutionResponse';
|
|
@@ -144,3 +146,8 @@ export * from './UserProjectAssignment';
|
|
|
144
146
|
export * from './UserSettings';
|
|
145
147
|
export * from './ValidateFileNamePatternsRequest';
|
|
146
148
|
export * from './ValidateFileRequirementsRequest';
|
|
149
|
+
export * from './Workspace';
|
|
150
|
+
export * from './WorkspaceComputeConfig';
|
|
151
|
+
export * from './WorkspaceConnectionResponse';
|
|
152
|
+
export * from './WorkspaceInput';
|
|
153
|
+
export * from './WorkspaceSession';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -80,6 +80,7 @@ export * from './Message';
|
|
|
80
80
|
export * from './MessageInput';
|
|
81
81
|
export * from './MessageType';
|
|
82
82
|
export * from './MetricRecord';
|
|
83
|
+
export * from './MountedDataset';
|
|
83
84
|
export * from './MoveDatasetInput';
|
|
84
85
|
export * from './MoveDatasetResponse';
|
|
85
86
|
export * from './NamedItem';
|
|
@@ -127,6 +128,7 @@ export * from './Share';
|
|
|
127
128
|
export * from './ShareDetail';
|
|
128
129
|
export * from './ShareInput';
|
|
129
130
|
export * from './ShareType';
|
|
131
|
+
export * from './SharingType';
|
|
130
132
|
export * from './SortOrder';
|
|
131
133
|
export * from './Status';
|
|
132
134
|
export * from './StopExecutionResponse';
|
|
@@ -146,3 +148,8 @@ export * from './UserProjectAssignment';
|
|
|
146
148
|
export * from './UserSettings';
|
|
147
149
|
export * from './ValidateFileNamePatternsRequest';
|
|
148
150
|
export * from './ValidateFileRequirementsRequest';
|
|
151
|
+
export * from './Workspace';
|
|
152
|
+
export * from './WorkspaceComputeConfig';
|
|
153
|
+
export * from './WorkspaceConnectionResponse';
|
|
154
|
+
export * from './WorkspaceInput';
|
|
155
|
+
export * from './WorkspaceSession';
|
|
@@ -44,7 +44,7 @@ export interface Dashboard {
|
|
|
44
44
|
* @type {{ [key: string]: any; }}
|
|
45
45
|
* @memberof Dashboard
|
|
46
46
|
*/
|
|
47
|
-
dashboardData
|
|
47
|
+
dashboardData?: {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
@@ -52,7 +52,7 @@ export interface Dashboard {
|
|
|
52
52
|
* @type {{ [key: string]: any; }}
|
|
53
53
|
* @memberof Dashboard
|
|
54
54
|
*/
|
|
55
|
-
info
|
|
55
|
+
info?: {
|
|
56
56
|
[key: string]: any;
|
|
57
57
|
};
|
|
58
58
|
/**
|
package/dist/models/Dashboard.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.DashboardToJSON = exports.DashboardFromJSONTyped = exports.DashboardFromJSON = exports.instanceOfDashboard = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the Dashboard interface.
|
|
19
20
|
*/
|
|
@@ -23,8 +24,6 @@ function instanceOfDashboard(value) {
|
|
|
23
24
|
isInstance = isInstance && "name" in value;
|
|
24
25
|
isInstance = isInstance && "description" in value;
|
|
25
26
|
isInstance = isInstance && "processIds" in value;
|
|
26
|
-
isInstance = isInstance && "dashboardData" in value;
|
|
27
|
-
isInstance = isInstance && "info" in value;
|
|
28
27
|
isInstance = isInstance && "createdBy" in value;
|
|
29
28
|
isInstance = isInstance && "createdAt" in value;
|
|
30
29
|
isInstance = isInstance && "updatedAt" in value;
|
|
@@ -44,8 +43,8 @@ function DashboardFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
43
|
'name': json['name'],
|
|
45
44
|
'description': json['description'],
|
|
46
45
|
'processIds': json['processIds'],
|
|
47
|
-
'dashboardData': json['dashboardData'],
|
|
48
|
-
'info': json['info'],
|
|
46
|
+
'dashboardData': !(0, runtime_1.exists)(json, 'dashboardData') ? undefined : json['dashboardData'],
|
|
47
|
+
'info': !(0, runtime_1.exists)(json, 'info') ? undefined : json['info'],
|
|
49
48
|
'createdBy': json['createdBy'],
|
|
50
49
|
'createdAt': (new Date(json['createdAt'])),
|
|
51
50
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -38,7 +38,7 @@ export interface DashboardRequest {
|
|
|
38
38
|
* @type {{ [key: string]: any; }}
|
|
39
39
|
* @memberof DashboardRequest
|
|
40
40
|
*/
|
|
41
|
-
dashboardData
|
|
41
|
+
dashboardData?: {
|
|
42
42
|
[key: string]: any;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
@@ -46,7 +46,7 @@ export interface DashboardRequest {
|
|
|
46
46
|
* @type {{ [key: string]: any; }}
|
|
47
47
|
* @memberof DashboardRequest
|
|
48
48
|
*/
|
|
49
|
-
info
|
|
49
|
+
info?: {
|
|
50
50
|
[key: string]: any;
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.DashboardRequestToJSON = exports.DashboardRequestFromJSONTyped = exports.DashboardRequestFromJSON = exports.instanceOfDashboardRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the DashboardRequest interface.
|
|
19
20
|
*/
|
|
@@ -22,8 +23,6 @@ function instanceOfDashboardRequest(value) {
|
|
|
22
23
|
isInstance = isInstance && "name" in value;
|
|
23
24
|
isInstance = isInstance && "description" in value;
|
|
24
25
|
isInstance = isInstance && "processIds" in value;
|
|
25
|
-
isInstance = isInstance && "dashboardData" in value;
|
|
26
|
-
isInstance = isInstance && "info" in value;
|
|
27
26
|
return isInstance;
|
|
28
27
|
}
|
|
29
28
|
exports.instanceOfDashboardRequest = instanceOfDashboardRequest;
|
|
@@ -39,8 +38,8 @@ function DashboardRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
38
|
'name': json['name'],
|
|
40
39
|
'description': json['description'],
|
|
41
40
|
'processIds': json['processIds'],
|
|
42
|
-
'dashboardData': json['dashboardData'],
|
|
43
|
-
'info': json['info'],
|
|
41
|
+
'dashboardData': !(0, runtime_1.exists)(json, 'dashboardData') ? undefined : json['dashboardData'],
|
|
42
|
+
'info': !(0, runtime_1.exists)(json, 'info') ? undefined : json['info'],
|
|
44
43
|
};
|
|
45
44
|
}
|
|
46
45
|
exports.DashboardRequestFromJSONTyped = DashboardRequestFromJSONTyped;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Represents a mounted dataset in a workspace
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MountedDataset
|
|
16
|
+
*/
|
|
17
|
+
export interface MountedDataset {
|
|
18
|
+
/**
|
|
19
|
+
* Folder name that appears in the workspace
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MountedDataset
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Full S3 prefix to the data
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MountedDataset
|
|
28
|
+
*/
|
|
29
|
+
uri: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MountedDataset interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMountedDataset(value: object): boolean;
|
|
35
|
+
export declare function MountedDatasetFromJSON(json: any): MountedDataset;
|
|
36
|
+
export declare function MountedDatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): MountedDataset;
|
|
37
|
+
export declare function MountedDatasetToJSON(value?: MountedDataset | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MountedDatasetToJSON = exports.MountedDatasetFromJSONTyped = exports.MountedDatasetFromJSON = exports.instanceOfMountedDataset = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MountedDataset interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfMountedDataset(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "name" in value;
|
|
23
|
+
isInstance = isInstance && "uri" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfMountedDataset = instanceOfMountedDataset;
|
|
27
|
+
function MountedDatasetFromJSON(json) {
|
|
28
|
+
return MountedDatasetFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.MountedDatasetFromJSON = MountedDatasetFromJSON;
|
|
31
|
+
function MountedDatasetFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'uri': json['uri'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.MountedDatasetFromJSONTyped = MountedDatasetFromJSONTyped;
|
|
41
|
+
function MountedDatasetToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value.name,
|
|
50
|
+
'uri': value.uri,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.MountedDatasetToJSON = MountedDatasetToJSON;
|
|
@@ -31,7 +31,6 @@ function instanceOfShareDetail(value) {
|
|
|
31
31
|
isInstance = isInstance && "conditions" in value;
|
|
32
32
|
isInstance = isInstance && "keywords" in value;
|
|
33
33
|
isInstance = isInstance && "classificationIds" in value;
|
|
34
|
-
isInstance = isInstance && "isSubscribed" in value;
|
|
35
34
|
isInstance = isInstance && "isViewRestricted" in value;
|
|
36
35
|
isInstance = isInstance && "createdBy" in value;
|
|
37
36
|
isInstance = isInstance && "createdAt" in value;
|
|
@@ -57,7 +56,6 @@ function ShareDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
56
|
'conditions': (json['conditions'].map(DatasetCondition_1.DatasetConditionFromJSON)),
|
|
58
57
|
'keywords': json['keywords'],
|
|
59
58
|
'classificationIds': json['classificationIds'],
|
|
60
|
-
'isSubscribed': json['isSubscribed'],
|
|
61
59
|
'isViewRestricted': json['isViewRestricted'],
|
|
62
60
|
'createdBy': json['createdBy'],
|
|
63
61
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -82,7 +80,6 @@ function ShareDetailToJSON(value) {
|
|
|
82
80
|
'conditions': (value.conditions.map(DatasetCondition_1.DatasetConditionToJSON)),
|
|
83
81
|
'keywords': value.keywords,
|
|
84
82
|
'classificationIds': value.classificationIds,
|
|
85
|
-
'isSubscribed': value.isSubscribed,
|
|
86
83
|
'isViewRestricted': value.isViewRestricted,
|
|
87
84
|
'createdBy': value.createdBy,
|
|
88
85
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum SharingType {
|
|
18
|
+
Private = "PRIVATE",
|
|
19
|
+
ReadWrite = "READ_WRITE"
|
|
20
|
+
}
|
|
21
|
+
export declare function SharingTypeFromJSON(json: any): SharingType;
|
|
22
|
+
export declare function SharingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingType;
|
|
23
|
+
export declare function SharingTypeToJSON(value?: SharingType | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SharingTypeToJSON = exports.SharingTypeFromJSONTyped = exports.SharingTypeFromJSON = exports.SharingType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var SharingType;
|
|
23
|
+
(function (SharingType) {
|
|
24
|
+
SharingType["Private"] = "PRIVATE";
|
|
25
|
+
SharingType["ReadWrite"] = "READ_WRITE";
|
|
26
|
+
})(SharingType = exports.SharingType || (exports.SharingType = {}));
|
|
27
|
+
function SharingTypeFromJSON(json) {
|
|
28
|
+
return SharingTypeFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.SharingTypeFromJSON = SharingTypeFromJSON;
|
|
31
|
+
function SharingTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
exports.SharingTypeFromJSONTyped = SharingTypeFromJSONTyped;
|
|
35
|
+
function SharingTypeToJSON(value) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
exports.SharingTypeToJSON = SharingTypeToJSON;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MountedDataset } from './MountedDataset';
|
|
13
|
+
import type { SharingType } from './SharingType';
|
|
14
|
+
import type { Status } from './Status';
|
|
15
|
+
import type { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
|
|
16
|
+
import type { WorkspaceSession } from './WorkspaceSession';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface Workspace
|
|
21
|
+
*/
|
|
22
|
+
export interface Workspace {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof Workspace
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Workspace
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Workspace
|
|
39
|
+
*/
|
|
40
|
+
description: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Status}
|
|
44
|
+
* @memberof Workspace
|
|
45
|
+
*/
|
|
46
|
+
status: Status;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Workspace
|
|
51
|
+
*/
|
|
52
|
+
statusMessage: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<MountedDataset>}
|
|
56
|
+
* @memberof Workspace
|
|
57
|
+
*/
|
|
58
|
+
mountedDatasets: Array<MountedDataset>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {WorkspaceComputeConfig}
|
|
62
|
+
* @memberof Workspace
|
|
63
|
+
*/
|
|
64
|
+
computeConfig: WorkspaceComputeConfig;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {SharingType}
|
|
68
|
+
* @memberof Workspace
|
|
69
|
+
*/
|
|
70
|
+
sharingType: SharingType;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<WorkspaceSession>}
|
|
74
|
+
* @memberof Workspace
|
|
75
|
+
*/
|
|
76
|
+
sessions?: Array<WorkspaceSession> | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof Workspace
|
|
81
|
+
*/
|
|
82
|
+
createdBy: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Date}
|
|
86
|
+
* @memberof Workspace
|
|
87
|
+
*/
|
|
88
|
+
createdAt: Date;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Date}
|
|
92
|
+
* @memberof Workspace
|
|
93
|
+
*/
|
|
94
|
+
startedAt: Date;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {Date}
|
|
98
|
+
* @memberof Workspace
|
|
99
|
+
*/
|
|
100
|
+
updatedAt: Date;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the Workspace interface.
|
|
104
|
+
*/
|
|
105
|
+
export declare function instanceOfWorkspace(value: object): boolean;
|
|
106
|
+
export declare function WorkspaceFromJSON(json: any): Workspace;
|
|
107
|
+
export declare function WorkspaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Workspace;
|
|
108
|
+
export declare function WorkspaceToJSON(value?: Workspace | null): any;
|