@cirrobio/api-client 0.0.10-alpha → 0.0.12-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 +7 -2
- package/README.md +1 -1
- package/dist/apis/BillingApi.d.ts +15 -2
- package/dist/apis/BillingApi.js +57 -3
- package/dist/apis/DashboardsApi.d.ts +88 -0
- package/dist/apis/DashboardsApi.js +374 -0
- package/dist/apis/DatasetsApi.d.ts +19 -5
- package/dist/apis/DatasetsApi.js +64 -4
- package/dist/apis/MetadataApi.d.ts +24 -1
- package/dist/apis/MetadataApi.js +112 -1
- package/dist/apis/NotebooksApi.d.ts +3 -3
- package/dist/apis/NotebooksApi.js +1 -7
- package/dist/apis/ProjectsApi.d.ts +13 -0
- package/dist/apis/ProjectsApi.js +53 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BillingAccount.d.ts +6 -0
- package/dist/models/BillingAccount.js +3 -0
- package/dist/models/BudgetPeriod.d.ts +1 -1
- package/dist/models/BudgetPeriod.js +1 -1
- package/dist/models/CloudAccount.d.ts +3 -10
- package/dist/models/CloudAccount.js +0 -3
- package/dist/models/Contact.d.ts +4 -4
- package/dist/models/Contact.js +8 -5
- package/dist/models/CreateDashboardRequest.d.ts +31 -0
- package/dist/models/CreateDashboardRequest.js +50 -0
- package/dist/models/CustomPipelineSettings.d.ts +6 -6
- package/dist/models/CustomPipelineSettings.js +13 -8
- package/dist/models/CustomerType.d.ts +2 -4
- package/dist/models/CustomerType.js +2 -4
- package/dist/models/Dashboard.d.ts +77 -0
- package/dist/models/Dashboard.js +71 -0
- package/dist/models/DashboardRequest.d.ts +53 -0
- package/dist/models/DashboardRequest.js +59 -0
- package/dist/models/Dataset.d.ts +8 -7
- package/dist/models/Dataset.js +10 -9
- package/dist/models/DatasetDetail.d.ts +11 -10
- package/dist/models/DatasetDetail.js +13 -12
- package/dist/models/FormSchema.d.ts +1 -1
- package/dist/models/NotebookInstanceStatusResponse.d.ts +31 -0
- package/dist/models/NotebookInstanceStatusResponse.js +50 -0
- package/dist/models/PaginatedResponseDatasetListDto.d.ts +38 -0
- package/dist/models/PaginatedResponseDatasetListDto.js +54 -0
- package/dist/models/Project.d.ts +9 -2
- package/dist/models/Project.js +6 -2
- package/dist/models/ProjectDetail.d.ts +7 -6
- package/dist/models/ProjectDetail.js +7 -6
- package/dist/models/ProjectSettings.d.ts +26 -26
- package/dist/models/ProjectSettings.js +14 -26
- package/dist/models/RegisterDatasetRequest.d.ts +20 -2
- package/dist/models/RegisterDatasetRequest.js +11 -2
- package/dist/models/RegisterPublicDataRequest.d.ts +43 -0
- package/dist/models/RegisterPublicDataRequest.js +56 -0
- package/dist/models/Sample.d.ts +18 -0
- package/dist/models/Sample.js +9 -0
- package/dist/models/Status.d.ts +29 -0
- package/dist/models/Status.js +44 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +46 -3
- package/src/apis/DashboardsApi.ts +287 -0
- package/src/apis/DatasetsApi.ts +64 -9
- package/src/apis/MetadataApi.ts +96 -1
- package/src/apis/NotebooksApi.ts +6 -7
- package/src/apis/ProjectsApi.ts +43 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BillingAccount.ts +9 -0
- package/src/models/BudgetPeriod.ts +1 -1
- package/src/models/CloudAccount.ts +3 -18
- package/src/models/Contact.ts +12 -8
- package/src/models/CreateDashboardRequest.ts +65 -0
- package/src/models/CustomPipelineSettings.ts +19 -13
- package/src/models/CustomerType.ts +2 -4
- package/src/models/Dashboard.ts +129 -0
- package/src/models/DashboardRequest.ts +93 -0
- package/src/models/Dataset.ts +22 -16
- package/src/models/DatasetDetail.ts +28 -22
- package/src/models/FormSchema.ts +1 -1
- package/src/models/NotebookInstanceStatusResponse.ts +66 -0
- package/src/models/PaginatedResponseDatasetListDto.ts +82 -0
- package/src/models/Project.ts +19 -4
- package/src/models/ProjectDetail.ts +18 -12
- package/src/models/ProjectSettings.ts +39 -52
- package/src/models/RegisterDatasetRequest.ts +31 -4
- package/src/models/RegisterPublicDataRequest.ts +83 -0
- package/src/models/Sample.ts +27 -0
- package/src/models/Status.ts +43 -0
- package/src/models/index.ts +6 -2
|
@@ -0,0 +1,82 @@
|
|
|
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 { Dataset } from './Dataset';
|
|
17
|
+
import {
|
|
18
|
+
DatasetFromJSON,
|
|
19
|
+
DatasetFromJSONTyped,
|
|
20
|
+
DatasetToJSON,
|
|
21
|
+
} from './Dataset';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PaginatedResponseDatasetListDto
|
|
27
|
+
*/
|
|
28
|
+
export interface PaginatedResponseDatasetListDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Dataset>}
|
|
32
|
+
* @memberof PaginatedResponseDatasetListDto
|
|
33
|
+
*/
|
|
34
|
+
data: Array<Dataset>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PaginatedResponseDatasetListDto
|
|
39
|
+
*/
|
|
40
|
+
nextToken: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PaginatedResponseDatasetListDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfPaginatedResponseDatasetListDto(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "data" in value;
|
|
49
|
+
isInstance = isInstance && "nextToken" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PaginatedResponseDatasetListDtoFromJSON(json: any): PaginatedResponseDatasetListDto {
|
|
55
|
+
return PaginatedResponseDatasetListDtoFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PaginatedResponseDatasetListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseDatasetListDto {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'data': ((json['data'] as Array<any>).map(DatasetFromJSON)),
|
|
65
|
+
'nextToken': json['nextToken'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PaginatedResponseDatasetListDtoToJSON(value?: PaginatedResponseDatasetListDto | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'data': ((value.data as Array<any>).map(DatasetToJSON)),
|
|
79
|
+
'nextToken': value.nextToken,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
package/src/models/Project.ts
CHANGED
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Status } from './Status';
|
|
17
|
+
import {
|
|
18
|
+
StatusFromJSON,
|
|
19
|
+
StatusFromJSONTyped,
|
|
20
|
+
StatusToJSON,
|
|
21
|
+
} from './Status';
|
|
16
22
|
import type { Tag } from './Tag';
|
|
17
23
|
import {
|
|
18
24
|
TagFromJSON,
|
|
@@ -46,16 +52,22 @@ export interface Project {
|
|
|
46
52
|
description: string;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
|
-
* @type {
|
|
55
|
+
* @type {Status}
|
|
50
56
|
* @memberof Project
|
|
51
57
|
*/
|
|
52
|
-
status:
|
|
58
|
+
status: Status;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {Array<Tag>}
|
|
56
62
|
* @memberof Project
|
|
57
63
|
*/
|
|
58
64
|
tags: Array<Tag>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof Project
|
|
69
|
+
*/
|
|
70
|
+
billingAccountId: string;
|
|
59
71
|
}
|
|
60
72
|
|
|
61
73
|
/**
|
|
@@ -68,6 +80,7 @@ export function instanceOfProject(value: object): boolean {
|
|
|
68
80
|
isInstance = isInstance && "description" in value;
|
|
69
81
|
isInstance = isInstance && "status" in value;
|
|
70
82
|
isInstance = isInstance && "tags" in value;
|
|
83
|
+
isInstance = isInstance && "billingAccountId" in value;
|
|
71
84
|
|
|
72
85
|
return isInstance;
|
|
73
86
|
}
|
|
@@ -85,8 +98,9 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
85
98
|
'id': json['id'],
|
|
86
99
|
'name': json['name'],
|
|
87
100
|
'description': json['description'],
|
|
88
|
-
'status': json['status'],
|
|
101
|
+
'status': StatusFromJSON(json['status']),
|
|
89
102
|
'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
|
|
103
|
+
'billingAccountId': json['billingAccountId'],
|
|
90
104
|
};
|
|
91
105
|
}
|
|
92
106
|
|
|
@@ -102,8 +116,9 @@ export function ProjectToJSON(value?: Project | null): any {
|
|
|
102
116
|
'id': value.id,
|
|
103
117
|
'name': value.name,
|
|
104
118
|
'description': value.description,
|
|
105
|
-
'status': value.status,
|
|
119
|
+
'status': StatusToJSON(value.status),
|
|
106
120
|
'tags': ((value.tags as Array<any>).map(TagToJSON)),
|
|
121
|
+
'billingAccountId': value.billingAccountId,
|
|
107
122
|
};
|
|
108
123
|
}
|
|
109
124
|
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
ProjectSettingsFromJSONTyped,
|
|
26
26
|
ProjectSettingsToJSON,
|
|
27
27
|
} from './ProjectSettings';
|
|
28
|
+
import type { Status } from './Status';
|
|
29
|
+
import {
|
|
30
|
+
StatusFromJSON,
|
|
31
|
+
StatusFromJSONTyped,
|
|
32
|
+
StatusToJSON,
|
|
33
|
+
} from './Status';
|
|
28
34
|
import type { Tag } from './Tag';
|
|
29
35
|
import {
|
|
30
36
|
TagFromJSON,
|
|
@@ -70,10 +76,10 @@ export interface ProjectDetail {
|
|
|
70
76
|
contacts: Array<Contact>;
|
|
71
77
|
/**
|
|
72
78
|
*
|
|
73
|
-
* @type {
|
|
79
|
+
* @type {Status}
|
|
74
80
|
* @memberof ProjectDetail
|
|
75
81
|
*/
|
|
76
|
-
status:
|
|
82
|
+
status: Status;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {ProjectSettings}
|
|
@@ -100,16 +106,16 @@ export interface ProjectDetail {
|
|
|
100
106
|
createdBy: string;
|
|
101
107
|
/**
|
|
102
108
|
*
|
|
103
|
-
* @type {
|
|
109
|
+
* @type {Date}
|
|
104
110
|
* @memberof ProjectDetail
|
|
105
111
|
*/
|
|
106
|
-
createdAt:
|
|
112
|
+
createdAt: Date;
|
|
107
113
|
/**
|
|
108
114
|
*
|
|
109
|
-
* @type {
|
|
115
|
+
* @type {Date}
|
|
110
116
|
* @memberof ProjectDetail
|
|
111
117
|
*/
|
|
112
|
-
updatedAt:
|
|
118
|
+
updatedAt: Date;
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
/**
|
|
@@ -148,13 +154,13 @@ export function ProjectDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
148
154
|
'description': json['description'],
|
|
149
155
|
'billingAccountId': json['billingAccountId'],
|
|
150
156
|
'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
|
|
151
|
-
'status': json['status'],
|
|
157
|
+
'status': StatusFromJSON(json['status']),
|
|
152
158
|
'settings': ProjectSettingsFromJSON(json['settings']),
|
|
153
159
|
'statusMessage': json['statusMessage'],
|
|
154
160
|
'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
|
|
155
161
|
'createdBy': json['createdBy'],
|
|
156
|
-
'createdAt': json['createdAt'],
|
|
157
|
-
'updatedAt': json['updatedAt'],
|
|
162
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
163
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
158
164
|
};
|
|
159
165
|
}
|
|
160
166
|
|
|
@@ -172,13 +178,13 @@ export function ProjectDetailToJSON(value?: ProjectDetail | null): any {
|
|
|
172
178
|
'description': value.description,
|
|
173
179
|
'billingAccountId': value.billingAccountId,
|
|
174
180
|
'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
|
|
175
|
-
'status': value.status,
|
|
181
|
+
'status': StatusToJSON(value.status),
|
|
176
182
|
'settings': ProjectSettingsToJSON(value.settings),
|
|
177
183
|
'statusMessage': value.statusMessage,
|
|
178
184
|
'tags': ((value.tags as Array<any>).map(TagToJSON)),
|
|
179
185
|
'createdBy': value.createdBy,
|
|
180
|
-
'createdAt': value.createdAt,
|
|
181
|
-
'updatedAt': value.updatedAt,
|
|
186
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
187
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
182
188
|
};
|
|
183
189
|
}
|
|
184
190
|
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface ProjectSettings {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Total allowed cost for the budget period
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @memberof ProjectSettings
|
|
33
33
|
*/
|
|
34
|
-
budgetAmount
|
|
34
|
+
budgetAmount?: number;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {BudgetPeriod}
|
|
@@ -39,53 +39,53 @@ export interface ProjectSettings {
|
|
|
39
39
|
*/
|
|
40
40
|
budgetPeriod: BudgetPeriod;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* AMI ID for the DRAGEN compute environment (if enabled)
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof ProjectSettings
|
|
45
45
|
*/
|
|
46
|
-
dragenAmi
|
|
46
|
+
dragenAmi?: string | null;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Enables the default compute environment
|
|
49
49
|
* @type {boolean}
|
|
50
50
|
* @memberof ProjectSettings
|
|
51
51
|
*/
|
|
52
|
-
enableCompute
|
|
52
|
+
enableCompute?: boolean;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Enables the DRAGEN compute environment
|
|
55
55
|
* @type {boolean}
|
|
56
56
|
* @memberof ProjectSettings
|
|
57
57
|
*/
|
|
58
|
-
enableDragen
|
|
58
|
+
enableDragen?: boolean;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Enables the AWS Backup service for S3
|
|
61
61
|
* @type {boolean}
|
|
62
62
|
* @memberof ProjectSettings
|
|
63
63
|
*/
|
|
64
|
-
enableBackup
|
|
64
|
+
enableBackup?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Enables access to files over SFTP
|
|
67
67
|
* @type {boolean}
|
|
68
68
|
* @memberof ProjectSettings
|
|
69
69
|
*/
|
|
70
|
-
enableSftp
|
|
70
|
+
enableSftp?: boolean;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Service quota limit for On Demand F1 instances
|
|
73
73
|
* @type {number}
|
|
74
74
|
* @memberof ProjectSettings
|
|
75
75
|
*/
|
|
76
|
-
maxF1VCPU
|
|
76
|
+
maxF1VCPU?: number;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Service quota limit for SPOT instances
|
|
79
79
|
* @type {number}
|
|
80
80
|
* @memberof ProjectSettings
|
|
81
81
|
*/
|
|
82
|
-
maxSpotVCPU
|
|
82
|
+
maxSpotVCPU?: number;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* Days to keep deleted datasets before being permanently erased
|
|
85
85
|
* @type {number}
|
|
86
86
|
* @memberof ProjectSettings
|
|
87
87
|
*/
|
|
88
|
-
retentionPolicyDays
|
|
88
|
+
retentionPolicyDays?: number;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @type {Array<string>}
|
|
@@ -93,29 +93,29 @@ export interface ProjectSettings {
|
|
|
93
93
|
*/
|
|
94
94
|
serviceConnections: Array<string>;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Creates a default VPC for the compute environment, if false, VPC ID must be provided
|
|
97
97
|
* @type {boolean}
|
|
98
98
|
* @memberof ProjectSettings
|
|
99
99
|
*/
|
|
100
|
-
createVpc
|
|
100
|
+
createVpc?: boolean;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* VPC that the compute environment will use
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof ProjectSettings
|
|
105
105
|
*/
|
|
106
|
-
vpcId
|
|
106
|
+
vpcId?: string | null;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* List of subnets that the compute environment will use
|
|
109
109
|
* @type {Array<string>}
|
|
110
110
|
* @memberof ProjectSettings
|
|
111
111
|
*/
|
|
112
|
-
batchSubnets
|
|
112
|
+
batchSubnets?: Array<string> | null;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* KMS Key ARN to encrypt S3 objects, one will be created if the arn is not provided
|
|
115
115
|
* @type {string}
|
|
116
116
|
* @memberof ProjectSettings
|
|
117
117
|
*/
|
|
118
|
-
kmsArn
|
|
118
|
+
kmsArn?: string | null;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/**
|
|
@@ -123,21 +123,8 @@ export interface ProjectSettings {
|
|
|
123
123
|
*/
|
|
124
124
|
export function instanceOfProjectSettings(value: object): boolean {
|
|
125
125
|
let isInstance = true;
|
|
126
|
-
isInstance = isInstance && "budgetAmount" in value;
|
|
127
126
|
isInstance = isInstance && "budgetPeriod" in value;
|
|
128
|
-
isInstance = isInstance && "dragenAmi" in value;
|
|
129
|
-
isInstance = isInstance && "enableCompute" in value;
|
|
130
|
-
isInstance = isInstance && "enableDragen" in value;
|
|
131
|
-
isInstance = isInstance && "enableBackup" in value;
|
|
132
|
-
isInstance = isInstance && "enableSftp" in value;
|
|
133
|
-
isInstance = isInstance && "maxF1VCPU" in value;
|
|
134
|
-
isInstance = isInstance && "maxSpotVCPU" in value;
|
|
135
|
-
isInstance = isInstance && "retentionPolicyDays" in value;
|
|
136
127
|
isInstance = isInstance && "serviceConnections" in value;
|
|
137
|
-
isInstance = isInstance && "createVpc" in value;
|
|
138
|
-
isInstance = isInstance && "vpcId" in value;
|
|
139
|
-
isInstance = isInstance && "batchSubnets" in value;
|
|
140
|
-
isInstance = isInstance && "kmsArn" in value;
|
|
141
128
|
|
|
142
129
|
return isInstance;
|
|
143
130
|
}
|
|
@@ -152,21 +139,21 @@ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
152
139
|
}
|
|
153
140
|
return {
|
|
154
141
|
|
|
155
|
-
'budgetAmount': json['budgetAmount'],
|
|
142
|
+
'budgetAmount': !exists(json, 'budgetAmount') ? undefined : json['budgetAmount'],
|
|
156
143
|
'budgetPeriod': BudgetPeriodFromJSON(json['budgetPeriod']),
|
|
157
|
-
'dragenAmi': json['dragenAmi'],
|
|
158
|
-
'enableCompute': json['enableCompute'],
|
|
159
|
-
'enableDragen': json['enableDragen'],
|
|
160
|
-
'enableBackup': json['enableBackup'],
|
|
161
|
-
'enableSftp': json['enableSftp'],
|
|
162
|
-
'maxF1VCPU': json['maxF1VCPU'],
|
|
163
|
-
'maxSpotVCPU': json['maxSpotVCPU'],
|
|
164
|
-
'retentionPolicyDays': json['retentionPolicyDays'],
|
|
144
|
+
'dragenAmi': !exists(json, 'dragenAmi') ? undefined : json['dragenAmi'],
|
|
145
|
+
'enableCompute': !exists(json, 'enableCompute') ? undefined : json['enableCompute'],
|
|
146
|
+
'enableDragen': !exists(json, 'enableDragen') ? undefined : json['enableDragen'],
|
|
147
|
+
'enableBackup': !exists(json, 'enableBackup') ? undefined : json['enableBackup'],
|
|
148
|
+
'enableSftp': !exists(json, 'enableSftp') ? undefined : json['enableSftp'],
|
|
149
|
+
'maxF1VCPU': !exists(json, 'maxF1VCPU') ? undefined : json['maxF1VCPU'],
|
|
150
|
+
'maxSpotVCPU': !exists(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
|
|
151
|
+
'retentionPolicyDays': !exists(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
|
|
165
152
|
'serviceConnections': json['serviceConnections'],
|
|
166
|
-
'createVpc': json['createVpc'],
|
|
167
|
-
'vpcId': json['vpcId'],
|
|
168
|
-
'batchSubnets': json['batchSubnets'],
|
|
169
|
-
'kmsArn': json['kmsArn'],
|
|
153
|
+
'createVpc': !exists(json, 'createVpc') ? undefined : json['createVpc'],
|
|
154
|
+
'vpcId': !exists(json, 'vpcId') ? undefined : json['vpcId'],
|
|
155
|
+
'batchSubnets': !exists(json, 'batchSubnets') ? undefined : json['batchSubnets'],
|
|
156
|
+
'kmsArn': !exists(json, 'kmsArn') ? undefined : json['kmsArn'],
|
|
170
157
|
};
|
|
171
158
|
}
|
|
172
159
|
|
|
@@ -21,10 +21,28 @@ import { exists, mapValues } from '../runtime';
|
|
|
21
21
|
export interface RegisterDatasetRequest {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {
|
|
24
|
+
* @type {string}
|
|
25
25
|
* @memberof RegisterDatasetRequest
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RegisterDatasetRequest
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RegisterDatasetRequest
|
|
38
|
+
*/
|
|
39
|
+
processId: string;
|
|
40
|
+
/**
|
|
41
|
+
* List of file names (with relative paths) that will be uploaded
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof RegisterDatasetRequest
|
|
44
|
+
*/
|
|
45
|
+
expectedFiles?: Array<string>;
|
|
28
46
|
}
|
|
29
47
|
|
|
30
48
|
/**
|
|
@@ -32,6 +50,9 @@ export interface RegisterDatasetRequest {
|
|
|
32
50
|
*/
|
|
33
51
|
export function instanceOfRegisterDatasetRequest(value: object): boolean {
|
|
34
52
|
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "name" in value;
|
|
54
|
+
isInstance = isInstance && "description" in value;
|
|
55
|
+
isInstance = isInstance && "processId" in value;
|
|
35
56
|
|
|
36
57
|
return isInstance;
|
|
37
58
|
}
|
|
@@ -46,7 +67,10 @@ export function RegisterDatasetRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
46
67
|
}
|
|
47
68
|
return {
|
|
48
69
|
|
|
49
|
-
'
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'description': json['description'],
|
|
72
|
+
'processId': json['processId'],
|
|
73
|
+
'expectedFiles': !exists(json, 'expectedFiles') ? undefined : json['expectedFiles'],
|
|
50
74
|
};
|
|
51
75
|
}
|
|
52
76
|
|
|
@@ -59,7 +83,10 @@ export function RegisterDatasetRequestToJSON(value?: RegisterDatasetRequest | nu
|
|
|
59
83
|
}
|
|
60
84
|
return {
|
|
61
85
|
|
|
62
|
-
'
|
|
86
|
+
'name': value.name,
|
|
87
|
+
'description': value.description,
|
|
88
|
+
'processId': value.processId,
|
|
89
|
+
'expectedFiles': value.expectedFiles,
|
|
63
90
|
};
|
|
64
91
|
}
|
|
65
92
|
|
|
@@ -0,0 +1,83 @@
|
|
|
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 RegisterPublicDataRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RegisterPublicDataRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RegisterPublicDataRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RegisterPublicDataRequest
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
* List of SRA/ENA/DDBJ/GEO/Synapse IDs
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof RegisterPublicDataRequest
|
|
38
|
+
*/
|
|
39
|
+
publicIds?: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the RegisterPublicDataRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfRegisterPublicDataRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "name" in value;
|
|
48
|
+
isInstance = isInstance && "description" in value;
|
|
49
|
+
|
|
50
|
+
return isInstance;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RegisterPublicDataRequestFromJSON(json: any): RegisterPublicDataRequest {
|
|
54
|
+
return RegisterPublicDataRequestFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function RegisterPublicDataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterPublicDataRequest {
|
|
58
|
+
if ((json === undefined) || (json === null)) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'description': json['description'],
|
|
65
|
+
'publicIds': !exists(json, 'publicIds') ? undefined : json['publicIds'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RegisterPublicDataRequestToJSON(value?: RegisterPublicDataRequest | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'name': value.name,
|
|
79
|
+
'description': value.description,
|
|
80
|
+
'publicIds': value.publicIds,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
package/src/models/Sample.ts
CHANGED
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface Sample
|
|
20
20
|
*/
|
|
21
21
|
export interface Sample {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Sample
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -31,6 +37,18 @@ export interface Sample {
|
|
|
31
37
|
* @memberof Sample
|
|
32
38
|
*/
|
|
33
39
|
metadata: { [key: string]: any; };
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof Sample
|
|
44
|
+
*/
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof Sample
|
|
50
|
+
*/
|
|
51
|
+
updatedAt: Date;
|
|
34
52
|
}
|
|
35
53
|
|
|
36
54
|
/**
|
|
@@ -38,8 +56,11 @@ export interface Sample {
|
|
|
38
56
|
*/
|
|
39
57
|
export function instanceOfSample(value: object): boolean {
|
|
40
58
|
let isInstance = true;
|
|
59
|
+
isInstance = isInstance && "id" in value;
|
|
41
60
|
isInstance = isInstance && "name" in value;
|
|
42
61
|
isInstance = isInstance && "metadata" in value;
|
|
62
|
+
isInstance = isInstance && "createdAt" in value;
|
|
63
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
43
64
|
|
|
44
65
|
return isInstance;
|
|
45
66
|
}
|
|
@@ -54,8 +75,11 @@ export function SampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sa
|
|
|
54
75
|
}
|
|
55
76
|
return {
|
|
56
77
|
|
|
78
|
+
'id': json['id'],
|
|
57
79
|
'name': json['name'],
|
|
58
80
|
'metadata': json['metadata'],
|
|
81
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
82
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
59
83
|
};
|
|
60
84
|
}
|
|
61
85
|
|
|
@@ -68,8 +92,11 @@ export function SampleToJSON(value?: Sample | null): any {
|
|
|
68
92
|
}
|
|
69
93
|
return {
|
|
70
94
|
|
|
95
|
+
'id': value.id,
|
|
71
96
|
'name': value.name,
|
|
72
97
|
'metadata': value.metadata,
|
|
98
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
99
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
73
100
|
};
|
|
74
101
|
}
|
|
75
102
|
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum Status {
|
|
21
|
+
Completed = 'COMPLETED',
|
|
22
|
+
Pending = 'PENDING',
|
|
23
|
+
Running = 'RUNNING',
|
|
24
|
+
Archived = 'ARCHIVED',
|
|
25
|
+
Deleted = 'DELETED',
|
|
26
|
+
Deleting = 'DELETING',
|
|
27
|
+
Delete = 'DELETE',
|
|
28
|
+
Failed = 'FAILED'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export function StatusFromJSON(json: any): Status {
|
|
33
|
+
return StatusFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status {
|
|
37
|
+
return json as Status;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function StatusToJSON(value?: Status | null): any {
|
|
41
|
+
return value as any;
|
|
42
|
+
}
|
|
43
|
+
|