@cirrobio/api-client 0.10.6 → 0.11.1

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.
Files changed (74) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/ExecutionApi.d.ts +15 -1
  3. package/dist/apis/ExecutionApi.js +40 -0
  4. package/dist/apis/WorkspacesApi.d.ts +145 -0
  5. package/dist/apis/WorkspacesApi.js +398 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/ExecutionApi.d.ts +15 -1
  9. package/dist/esm/apis/ExecutionApi.js +41 -1
  10. package/dist/esm/apis/WorkspacesApi.d.ts +145 -0
  11. package/dist/esm/apis/WorkspacesApi.js +394 -0
  12. package/dist/esm/apis/index.d.ts +1 -0
  13. package/dist/esm/apis/index.js +1 -0
  14. package/dist/esm/models/CostResponse.d.ts +51 -0
  15. package/dist/esm/models/CostResponse.js +51 -0
  16. package/dist/esm/models/Dashboard.d.ts +2 -2
  17. package/dist/esm/models/Dashboard.js +3 -4
  18. package/dist/esm/models/DashboardRequest.d.ts +2 -2
  19. package/dist/esm/models/DashboardRequest.js +3 -4
  20. package/dist/esm/models/FeatureFlags.d.ts +6 -0
  21. package/dist/esm/models/FeatureFlags.js +3 -0
  22. package/dist/esm/models/GroupCost.d.ts +37 -0
  23. package/dist/esm/models/GroupCost.js +45 -0
  24. package/dist/esm/models/MountedDataset.d.ts +37 -0
  25. package/dist/esm/models/MountedDataset.js +46 -0
  26. package/dist/esm/models/ShareDetail.d.ts +0 -6
  27. package/dist/esm/models/ShareDetail.js +0 -3
  28. package/dist/esm/models/SharingType.d.ts +23 -0
  29. package/dist/esm/models/SharingType.js +32 -0
  30. package/dist/esm/models/TaskCost.d.ts +49 -0
  31. package/dist/esm/models/TaskCost.js +52 -0
  32. package/dist/esm/models/Workspace.d.ts +108 -0
  33. package/dist/esm/models/Workspace.js +84 -0
  34. package/dist/esm/models/WorkspaceComputeConfig.d.ts +63 -0
  35. package/dist/esm/models/WorkspaceComputeConfig.js +54 -0
  36. package/dist/esm/models/WorkspaceConnectionResponse.d.ts +43 -0
  37. package/dist/esm/models/WorkspaceConnectionResponse.js +49 -0
  38. package/dist/esm/models/WorkspaceInput.d.ts +58 -0
  39. package/dist/esm/models/WorkspaceInput.js +58 -0
  40. package/dist/esm/models/WorkspaceSession.d.ts +43 -0
  41. package/dist/esm/models/WorkspaceSession.js +49 -0
  42. package/dist/esm/models/index.d.ts +10 -0
  43. package/dist/esm/models/index.js +10 -0
  44. package/dist/models/CostResponse.d.ts +51 -0
  45. package/dist/models/CostResponse.js +58 -0
  46. package/dist/models/Dashboard.d.ts +2 -2
  47. package/dist/models/Dashboard.js +3 -4
  48. package/dist/models/DashboardRequest.d.ts +2 -2
  49. package/dist/models/DashboardRequest.js +3 -4
  50. package/dist/models/FeatureFlags.d.ts +6 -0
  51. package/dist/models/FeatureFlags.js +3 -0
  52. package/dist/models/GroupCost.d.ts +37 -0
  53. package/dist/models/GroupCost.js +52 -0
  54. package/dist/models/MountedDataset.d.ts +37 -0
  55. package/dist/models/MountedDataset.js +53 -0
  56. package/dist/models/ShareDetail.d.ts +0 -6
  57. package/dist/models/ShareDetail.js +0 -3
  58. package/dist/models/SharingType.d.ts +23 -0
  59. package/dist/models/SharingType.js +38 -0
  60. package/dist/models/TaskCost.d.ts +49 -0
  61. package/dist/models/TaskCost.js +59 -0
  62. package/dist/models/Workspace.d.ts +108 -0
  63. package/dist/models/Workspace.js +91 -0
  64. package/dist/models/WorkspaceComputeConfig.d.ts +63 -0
  65. package/dist/models/WorkspaceComputeConfig.js +61 -0
  66. package/dist/models/WorkspaceConnectionResponse.d.ts +43 -0
  67. package/dist/models/WorkspaceConnectionResponse.js +56 -0
  68. package/dist/models/WorkspaceInput.d.ts +58 -0
  69. package/dist/models/WorkspaceInput.js +65 -0
  70. package/dist/models/WorkspaceSession.d.ts +43 -0
  71. package/dist/models/WorkspaceSession.js +56 -0
  72. package/dist/models/index.d.ts +10 -0
  73. package/dist/models/index.js +10 -0
  74. package/package.json +1 -1
@@ -0,0 +1,51 @@
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 { GroupCostFromJSON, GroupCostToJSON, } from './GroupCost';
16
+ import { TaskCostFromJSON, TaskCostToJSON, } from './TaskCost';
17
+ /**
18
+ * Check if a given object implements the CostResponse interface.
19
+ */
20
+ export function instanceOfCostResponse(value) {
21
+ let isInstance = true;
22
+ return isInstance;
23
+ }
24
+ export function CostResponseFromJSON(json) {
25
+ return CostResponseFromJSONTyped(json, false);
26
+ }
27
+ export function CostResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'totalCost': !exists(json, 'totalCost') ? undefined : json['totalCost'],
33
+ 'groups': !exists(json, 'groups') ? undefined : (json['groups'].map(GroupCostFromJSON)),
34
+ 'tasks': !exists(json, 'tasks') ? undefined : (json['tasks'].map(TaskCostFromJSON)),
35
+ 'isEstimate': !exists(json, 'isEstimate') ? undefined : json['isEstimate'],
36
+ };
37
+ }
38
+ export function CostResponseToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'totalCost': value.totalCost,
47
+ 'groups': value.groups === undefined ? undefined : (value.groups.map(GroupCostToJSON)),
48
+ 'tasks': value.tasks === undefined ? undefined : (value.tasks.map(TaskCostToJSON)),
49
+ 'isEstimate': value.isEstimate,
50
+ };
51
+ }
@@ -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
  /**
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  /**
15
16
  * Check if a given object implements the Dashboard interface.
16
17
  */
@@ -20,8 +21,6 @@ export function instanceOfDashboard(value) {
20
21
  isInstance = isInstance && "name" in value;
21
22
  isInstance = isInstance && "description" in value;
22
23
  isInstance = isInstance && "processIds" in value;
23
- isInstance = isInstance && "dashboardData" in value;
24
- isInstance = isInstance && "info" in value;
25
24
  isInstance = isInstance && "createdBy" in value;
26
25
  isInstance = isInstance && "createdAt" in value;
27
26
  isInstance = isInstance && "updatedAt" in value;
@@ -39,8 +38,8 @@ export function DashboardFromJSONTyped(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': !exists(json, 'dashboardData') ? undefined : json['dashboardData'],
42
+ 'info': !exists(json, 'info') ? undefined : json['info'],
44
43
  'createdBy': json['createdBy'],
45
44
  'createdAt': (new Date(json['createdAt'])),
46
45
  '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
  }
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  /**
15
16
  * Check if a given object implements the DashboardRequest interface.
16
17
  */
@@ -19,8 +20,6 @@ export function instanceOfDashboardRequest(value) {
19
20
  isInstance = isInstance && "name" in value;
20
21
  isInstance = isInstance && "description" in value;
21
22
  isInstance = isInstance && "processIds" in value;
22
- isInstance = isInstance && "dashboardData" in value;
23
- isInstance = isInstance && "info" in value;
24
23
  return isInstance;
25
24
  }
26
25
  export function DashboardRequestFromJSON(json) {
@@ -34,8 +33,8 @@ export function DashboardRequestFromJSONTyped(json, ignoreDiscriminator) {
34
33
  'name': json['name'],
35
34
  'description': json['description'],
36
35
  'processIds': json['processIds'],
37
- 'dashboardData': json['dashboardData'],
38
- 'info': json['info'],
36
+ 'dashboardData': !exists(json, 'dashboardData') ? undefined : json['dashboardData'],
37
+ 'info': !exists(json, 'info') ? undefined : json['info'],
39
38
  };
40
39
  }
41
40
  export function DashboardRequestToJSON(value) {
@@ -33,6 +33,12 @@ export interface FeatureFlags {
33
33
  * @memberof FeatureFlags
34
34
  */
35
35
  projectRequestsEnabled: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof FeatureFlags
40
+ */
41
+ workspacesEnabled: boolean;
36
42
  }
37
43
  /**
38
44
  * Check if a given object implements the FeatureFlags interface.
@@ -19,6 +19,7 @@ export function instanceOfFeatureFlags(value) {
19
19
  isInstance = isInstance && "sftpEnabled" in value;
20
20
  isInstance = isInstance && "governanceEnabled" in value;
21
21
  isInstance = isInstance && "projectRequestsEnabled" in value;
22
+ isInstance = isInstance && "workspacesEnabled" in value;
22
23
  return isInstance;
23
24
  }
24
25
  export function FeatureFlagsFromJSON(json) {
@@ -32,6 +33,7 @@ export function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
32
33
  'sftpEnabled': json['sftpEnabled'],
33
34
  'governanceEnabled': json['governanceEnabled'],
34
35
  'projectRequestsEnabled': json['projectRequestsEnabled'],
36
+ 'workspacesEnabled': json['workspacesEnabled'],
35
37
  };
36
38
  }
37
39
  export function FeatureFlagsToJSON(value) {
@@ -45,5 +47,6 @@ export function FeatureFlagsToJSON(value) {
45
47
  'sftpEnabled': value.sftpEnabled,
46
48
  'governanceEnabled': value.governanceEnabled,
47
49
  'projectRequestsEnabled': value.projectRequestsEnabled,
50
+ 'workspacesEnabled': value.workspacesEnabled,
48
51
  };
49
52
  }
@@ -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
+ *
14
+ * @export
15
+ * @interface GroupCost
16
+ */
17
+ export interface GroupCost {
18
+ /**
19
+ * Task status group
20
+ * @type {string}
21
+ * @memberof GroupCost
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Cost
26
+ * @type {number}
27
+ * @memberof GroupCost
28
+ */
29
+ cost?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GroupCost interface.
33
+ */
34
+ export declare function instanceOfGroupCost(value: object): boolean;
35
+ export declare function GroupCostFromJSON(json: any): GroupCost;
36
+ export declare function GroupCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupCost;
37
+ export declare function GroupCostToJSON(value?: GroupCost | null): any;
@@ -0,0 +1,45 @@
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
+ /**
16
+ * Check if a given object implements the GroupCost interface.
17
+ */
18
+ export function instanceOfGroupCost(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function GroupCostFromJSON(json) {
23
+ return GroupCostFromJSONTyped(json, false);
24
+ }
25
+ export function GroupCostFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': !exists(json, 'name') ? undefined : json['name'],
31
+ 'cost': !exists(json, 'cost') ? undefined : json['cost'],
32
+ };
33
+ }
34
+ export function GroupCostToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'name': value.name,
43
+ 'cost': value.cost,
44
+ };
45
+ }
@@ -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,46 @@
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 MountedDataset interface.
16
+ */
17
+ export function instanceOfMountedDataset(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "name" in value;
20
+ isInstance = isInstance && "uri" in value;
21
+ return isInstance;
22
+ }
23
+ export function MountedDatasetFromJSON(json) {
24
+ return MountedDatasetFromJSONTyped(json, false);
25
+ }
26
+ export function MountedDatasetFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'uri': json['uri'],
33
+ };
34
+ }
35
+ export function MountedDatasetToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'name': value.name,
44
+ 'uri': value.uri,
45
+ };
46
+ }
@@ -72,12 +72,6 @@ export interface ShareDetail {
72
72
  * @memberof ShareDetail
73
73
  */
74
74
  classificationIds: Array<string>;
75
- /**
76
- *
77
- * @type {boolean}
78
- * @memberof ShareDetail
79
- */
80
- isSubscribed: boolean;
81
75
  /**
82
76
  *
83
77
  * @type {boolean}
@@ -28,7 +28,6 @@ export function instanceOfShareDetail(value) {
28
28
  isInstance = isInstance && "conditions" in value;
29
29
  isInstance = isInstance && "keywords" in value;
30
30
  isInstance = isInstance && "classificationIds" in value;
31
- isInstance = isInstance && "isSubscribed" in value;
32
31
  isInstance = isInstance && "isViewRestricted" in value;
33
32
  isInstance = isInstance && "createdBy" in value;
34
33
  isInstance = isInstance && "createdAt" in value;
@@ -52,7 +51,6 @@ export function ShareDetailFromJSONTyped(json, ignoreDiscriminator) {
52
51
  'conditions': (json['conditions'].map(DatasetConditionFromJSON)),
53
52
  'keywords': json['keywords'],
54
53
  'classificationIds': json['classificationIds'],
55
- 'isSubscribed': json['isSubscribed'],
56
54
  'isViewRestricted': json['isViewRestricted'],
57
55
  'createdBy': json['createdBy'],
58
56
  'createdAt': (new Date(json['createdAt'])),
@@ -76,7 +74,6 @@ export function ShareDetailToJSON(value) {
76
74
  'conditions': (value.conditions.map(DatasetConditionToJSON)),
77
75
  'keywords': value.keywords,
78
76
  'classificationIds': value.classificationIds,
79
- 'isSubscribed': value.isSubscribed,
80
77
  'isViewRestricted': value.isViewRestricted,
81
78
  'createdBy': value.createdBy,
82
79
  '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,32 @@
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
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export var SharingType;
20
+ (function (SharingType) {
21
+ SharingType["Private"] = "PRIVATE";
22
+ SharingType["ReadWrite"] = "READ_WRITE";
23
+ })(SharingType || (SharingType = {}));
24
+ export function SharingTypeFromJSON(json) {
25
+ return SharingTypeFromJSONTyped(json, false);
26
+ }
27
+ export function SharingTypeFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function SharingTypeToJSON(value) {
31
+ return value;
32
+ }
@@ -0,0 +1,49 @@
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 TaskCost
16
+ */
17
+ export interface TaskCost {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TaskCost
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TaskCost
28
+ */
29
+ taskId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TaskCost
34
+ */
35
+ status: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof TaskCost
40
+ */
41
+ cost: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the TaskCost interface.
45
+ */
46
+ export declare function instanceOfTaskCost(value: object): boolean;
47
+ export declare function TaskCostFromJSON(json: any): TaskCost;
48
+ export declare function TaskCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskCost;
49
+ export declare function TaskCostToJSON(value?: TaskCost | null): any;
@@ -0,0 +1,52 @@
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 TaskCost interface.
16
+ */
17
+ export function instanceOfTaskCost(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "name" in value;
20
+ isInstance = isInstance && "taskId" in value;
21
+ isInstance = isInstance && "status" in value;
22
+ isInstance = isInstance && "cost" in value;
23
+ return isInstance;
24
+ }
25
+ export function TaskCostFromJSON(json) {
26
+ return TaskCostFromJSONTyped(json, false);
27
+ }
28
+ export function TaskCostFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'name': json['name'],
34
+ 'taskId': json['taskId'],
35
+ 'status': json['status'],
36
+ 'cost': json['cost'],
37
+ };
38
+ }
39
+ export function TaskCostToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'name': value.name,
48
+ 'taskId': value.taskId,
49
+ 'status': value.status,
50
+ 'cost': value.cost,
51
+ };
52
+ }
@@ -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;