@cirrobio/api-client 0.1.30 → 0.2.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.
- package/.openapi-generator/FILES +22 -0
- package/README.md +1 -1
- package/dist/apis/FileApi.d.ts +14 -0
- package/dist/apis/FileApi.js +60 -0
- package/dist/apis/GovernanceApi.d.ts +127 -1
- package/dist/apis/GovernanceApi.js +555 -1
- package/dist/apis/SharingApi.d.ts +131 -0
- package/dist/apis/SharingApi.js +545 -0
- package/dist/apis/ToolsApi.d.ts +31 -0
- package/dist/apis/ToolsApi.js +137 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccessType.d.ts +3 -1
- package/dist/models/AccessType.js +2 -0
- package/dist/models/ClassificationInput.d.ts +6 -0
- package/dist/models/ClassificationInput.js +3 -0
- package/dist/models/ContactInput.d.ts +55 -0
- package/dist/models/ContactInput.js +62 -0
- package/dist/models/DatasetCondition.d.ts +38 -0
- package/dist/models/DatasetCondition.js +54 -0
- package/dist/models/DatasetConditionField.d.ts +24 -0
- package/dist/models/DatasetConditionField.js +39 -0
- package/dist/models/GovernanceClassification.d.ts +6 -0
- package/dist/models/GovernanceClassification.js +3 -0
- package/dist/models/GovernanceContact.d.ts +61 -0
- package/dist/models/GovernanceContact.js +65 -0
- package/dist/models/GovernanceExpiry.d.ts +44 -0
- package/dist/models/GovernanceExpiry.js +55 -0
- package/dist/models/GovernanceExpiryType.d.ts +25 -0
- package/dist/models/GovernanceExpiryType.js +40 -0
- package/dist/models/GovernanceFile.d.ts +50 -0
- package/dist/models/GovernanceFile.js +57 -0
- package/dist/models/GovernanceFileType.d.ts +23 -0
- package/dist/models/GovernanceFileType.js +38 -0
- package/dist/models/GovernanceRequirement.d.ts +108 -0
- package/dist/models/GovernanceRequirement.js +81 -0
- package/dist/models/GovernanceRequirementFile.d.ts +50 -0
- package/dist/models/GovernanceRequirementFile.js +57 -0
- package/dist/models/GovernanceScope.d.ts +23 -0
- package/dist/models/GovernanceScope.js +38 -0
- package/dist/models/GovernanceTrainingVerification.d.ts +23 -0
- package/dist/models/GovernanceTrainingVerification.js +38 -0
- package/dist/models/GovernanceType.d.ts +26 -0
- package/dist/models/GovernanceType.js +41 -0
- package/dist/models/MoveDatasetInput.d.ts +43 -0
- package/dist/models/MoveDatasetInput.js +56 -0
- package/dist/models/MoveDatasetResponse.d.ts +43 -0
- package/dist/models/MoveDatasetResponse.js +56 -0
- package/dist/models/NamedItem.d.ts +37 -0
- package/dist/models/NamedItem.js +53 -0
- package/dist/models/ProjectSettings.d.ts +6 -0
- package/dist/models/ProjectSettings.js +2 -0
- package/dist/models/RequirementInput.d.ts +96 -0
- package/dist/models/RequirementInput.js +81 -0
- package/dist/models/Share.d.ts +86 -0
- package/dist/models/Share.js +78 -0
- package/dist/models/ShareDetail.d.ts +106 -0
- package/dist/models/ShareDetail.js +89 -0
- package/dist/models/ShareInput.d.ts +62 -0
- package/dist/models/ShareInput.js +65 -0
- package/dist/models/ShareType.d.ts +24 -0
- package/dist/models/ShareType.js +39 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/FileApi.ts +52 -0
- package/src/apis/GovernanceApi.ts +457 -1
- package/src/apis/SharingApi.ts +442 -0
- package/src/apis/ToolsApi.ts +80 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccessType.ts +3 -1
- package/src/models/ClassificationInput.ts +9 -0
- package/src/models/ContactInput.ts +102 -0
- package/src/models/DatasetCondition.ts +82 -0
- package/src/models/DatasetConditionField.ts +38 -0
- package/src/models/GovernanceClassification.ts +9 -0
- package/src/models/GovernanceContact.ts +111 -0
- package/src/models/GovernanceExpiry.ts +88 -0
- package/src/models/GovernanceExpiryType.ts +39 -0
- package/src/models/GovernanceFile.ts +96 -0
- package/src/models/GovernanceFileType.ts +37 -0
- package/src/models/GovernanceRequirement.ts +194 -0
- package/src/models/GovernanceRequirementFile.ts +96 -0
- package/src/models/GovernanceScope.ts +37 -0
- package/src/models/GovernanceTrainingVerification.ts +37 -0
- package/src/models/GovernanceType.ts +40 -0
- package/src/models/MoveDatasetInput.ts +84 -0
- package/src/models/MoveDatasetResponse.ts +84 -0
- package/src/models/NamedItem.ts +75 -0
- package/src/models/ProjectSettings.ts +8 -0
- package/src/models/RequirementInput.ts +182 -0
- package/src/models/Share.ts +154 -0
- package/src/models/ShareDetail.ts +193 -0
- package/src/models/ShareInput.ts +116 -0
- package/src/models/ShareType.ts +38 -0
- package/src/models/index.ts +20 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
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 { GovernanceExpiry } from './GovernanceExpiry';
|
|
17
|
+
import {
|
|
18
|
+
GovernanceExpiryFromJSON,
|
|
19
|
+
GovernanceExpiryFromJSONTyped,
|
|
20
|
+
GovernanceExpiryToJSON,
|
|
21
|
+
} from './GovernanceExpiry';
|
|
22
|
+
import type { GovernanceFile } from './GovernanceFile';
|
|
23
|
+
import {
|
|
24
|
+
GovernanceFileFromJSON,
|
|
25
|
+
GovernanceFileFromJSONTyped,
|
|
26
|
+
GovernanceFileToJSON,
|
|
27
|
+
} from './GovernanceFile';
|
|
28
|
+
import type { GovernanceScope } from './GovernanceScope';
|
|
29
|
+
import {
|
|
30
|
+
GovernanceScopeFromJSON,
|
|
31
|
+
GovernanceScopeFromJSONTyped,
|
|
32
|
+
GovernanceScopeToJSON,
|
|
33
|
+
} from './GovernanceScope';
|
|
34
|
+
import type { GovernanceTrainingVerification } from './GovernanceTrainingVerification';
|
|
35
|
+
import {
|
|
36
|
+
GovernanceTrainingVerificationFromJSON,
|
|
37
|
+
GovernanceTrainingVerificationFromJSONTyped,
|
|
38
|
+
GovernanceTrainingVerificationToJSON,
|
|
39
|
+
} from './GovernanceTrainingVerification';
|
|
40
|
+
import type { GovernanceType } from './GovernanceType';
|
|
41
|
+
import {
|
|
42
|
+
GovernanceTypeFromJSON,
|
|
43
|
+
GovernanceTypeFromJSONTyped,
|
|
44
|
+
GovernanceTypeToJSON,
|
|
45
|
+
} from './GovernanceType';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
* @interface GovernanceRequirement
|
|
51
|
+
*/
|
|
52
|
+
export interface GovernanceRequirement {
|
|
53
|
+
/**
|
|
54
|
+
* The unique identifier for the requirement
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof GovernanceRequirement
|
|
57
|
+
*/
|
|
58
|
+
id: string;
|
|
59
|
+
/**
|
|
60
|
+
* The name of the requirement
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof GovernanceRequirement
|
|
63
|
+
*/
|
|
64
|
+
name?: string;
|
|
65
|
+
/**
|
|
66
|
+
* A brief description of the requirement
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof GovernanceRequirement
|
|
69
|
+
*/
|
|
70
|
+
description?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {GovernanceType}
|
|
74
|
+
* @memberof GovernanceRequirement
|
|
75
|
+
*/
|
|
76
|
+
type?: GovernanceType;
|
|
77
|
+
/**
|
|
78
|
+
* The full S3 path where files for the requirement are saved
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof GovernanceRequirement
|
|
81
|
+
*/
|
|
82
|
+
path?: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {GovernanceScope}
|
|
86
|
+
* @memberof GovernanceRequirement
|
|
87
|
+
*/
|
|
88
|
+
scope?: GovernanceScope;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {GovernanceScope}
|
|
92
|
+
* @memberof GovernanceRequirement
|
|
93
|
+
*/
|
|
94
|
+
acceptance?: GovernanceScope;
|
|
95
|
+
/**
|
|
96
|
+
* The IDs of governance contacts assigned to the requirement.
|
|
97
|
+
* @type {Array<string>}
|
|
98
|
+
* @memberof GovernanceRequirement
|
|
99
|
+
*/
|
|
100
|
+
contactIds?: Array<string> | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {GovernanceExpiry}
|
|
104
|
+
* @memberof GovernanceRequirement
|
|
105
|
+
*/
|
|
106
|
+
expiration: GovernanceExpiry;
|
|
107
|
+
/**
|
|
108
|
+
* Optional files with extra information, e.g. templates for documents, links, etc
|
|
109
|
+
* @type {Array<GovernanceFile>}
|
|
110
|
+
* @memberof GovernanceRequirement
|
|
111
|
+
*/
|
|
112
|
+
supplementalDocs?: Array<GovernanceFile> | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {GovernanceFile}
|
|
116
|
+
* @memberof GovernanceRequirement
|
|
117
|
+
*/
|
|
118
|
+
file?: GovernanceFile | null;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {GovernanceScope}
|
|
122
|
+
* @memberof GovernanceRequirement
|
|
123
|
+
*/
|
|
124
|
+
authorship?: GovernanceScope | null;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {GovernanceTrainingVerification}
|
|
128
|
+
* @memberof GovernanceRequirement
|
|
129
|
+
*/
|
|
130
|
+
verification?: GovernanceTrainingVerification | null;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Check if a given object implements the GovernanceRequirement interface.
|
|
135
|
+
*/
|
|
136
|
+
export function instanceOfGovernanceRequirement(value: object): boolean {
|
|
137
|
+
let isInstance = true;
|
|
138
|
+
isInstance = isInstance && "id" in value;
|
|
139
|
+
isInstance = isInstance && "expiration" in value;
|
|
140
|
+
|
|
141
|
+
return isInstance;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function GovernanceRequirementFromJSON(json: any): GovernanceRequirement {
|
|
145
|
+
return GovernanceRequirementFromJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function GovernanceRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceRequirement {
|
|
149
|
+
if ((json === undefined) || (json === null)) {
|
|
150
|
+
return json;
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'id': json['id'],
|
|
155
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
156
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
157
|
+
'type': !exists(json, 'type') ? undefined : GovernanceTypeFromJSON(json['type']),
|
|
158
|
+
'path': !exists(json, 'path') ? undefined : json['path'],
|
|
159
|
+
'scope': !exists(json, 'scope') ? undefined : GovernanceScopeFromJSON(json['scope']),
|
|
160
|
+
'acceptance': !exists(json, 'acceptance') ? undefined : GovernanceScopeFromJSON(json['acceptance']),
|
|
161
|
+
'contactIds': !exists(json, 'contactIds') ? undefined : json['contactIds'],
|
|
162
|
+
'expiration': GovernanceExpiryFromJSON(json['expiration']),
|
|
163
|
+
'supplementalDocs': !exists(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : (json['supplementalDocs'] as Array<any>).map(GovernanceFileFromJSON)),
|
|
164
|
+
'file': !exists(json, 'file') ? undefined : GovernanceFileFromJSON(json['file']),
|
|
165
|
+
'authorship': !exists(json, 'authorship') ? undefined : GovernanceScopeFromJSON(json['authorship']),
|
|
166
|
+
'verification': !exists(json, 'verification') ? undefined : GovernanceTrainingVerificationFromJSON(json['verification']),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function GovernanceRequirementToJSON(value?: GovernanceRequirement | null): any {
|
|
171
|
+
if (value === undefined) {
|
|
172
|
+
return undefined;
|
|
173
|
+
}
|
|
174
|
+
if (value === null) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
|
|
179
|
+
'id': value.id,
|
|
180
|
+
'name': value.name,
|
|
181
|
+
'description': value.description,
|
|
182
|
+
'type': GovernanceTypeToJSON(value.type),
|
|
183
|
+
'path': value.path,
|
|
184
|
+
'scope': GovernanceScopeToJSON(value.scope),
|
|
185
|
+
'acceptance': GovernanceScopeToJSON(value.acceptance),
|
|
186
|
+
'contactIds': value.contactIds,
|
|
187
|
+
'expiration': GovernanceExpiryToJSON(value.expiration),
|
|
188
|
+
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : (value.supplementalDocs as Array<any>).map(GovernanceFileToJSON)),
|
|
189
|
+
'file': GovernanceFileToJSON(value.file),
|
|
190
|
+
'authorship': GovernanceScopeToJSON(value.authorship),
|
|
191
|
+
'verification': GovernanceTrainingVerificationToJSON(value.verification),
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { GovernanceFileType } from './GovernanceFileType';
|
|
17
|
+
import {
|
|
18
|
+
GovernanceFileTypeFromJSON,
|
|
19
|
+
GovernanceFileTypeFromJSONTyped,
|
|
20
|
+
GovernanceFileTypeToJSON,
|
|
21
|
+
} from './GovernanceFileType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The document uploaded for the requirement: only if agreement or document object has a matching scope and authorship
|
|
25
|
+
* @export
|
|
26
|
+
* @interface GovernanceRequirementFile
|
|
27
|
+
*/
|
|
28
|
+
export interface GovernanceRequirementFile {
|
|
29
|
+
/**
|
|
30
|
+
* The title of the resource visible to users
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof GovernanceRequirementFile
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* A description of the resource visible to users
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof GovernanceRequirementFile
|
|
39
|
+
*/
|
|
40
|
+
description?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The file name without path or the full link path
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GovernanceRequirementFile
|
|
45
|
+
*/
|
|
46
|
+
src?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {GovernanceFileType}
|
|
50
|
+
* @memberof GovernanceRequirementFile
|
|
51
|
+
*/
|
|
52
|
+
type?: GovernanceFileType;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GovernanceRequirementFile interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfGovernanceRequirementFile(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
|
|
61
|
+
return isInstance;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GovernanceRequirementFileFromJSON(json: any): GovernanceRequirementFile {
|
|
65
|
+
return GovernanceRequirementFileFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GovernanceRequirementFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceRequirementFile {
|
|
69
|
+
if ((json === undefined) || (json === null)) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
75
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
76
|
+
'src': !exists(json, 'src') ? undefined : json['src'],
|
|
77
|
+
'type': !exists(json, 'type') ? undefined : GovernanceFileTypeFromJSON(json['type']),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function GovernanceRequirementFileToJSON(value?: GovernanceRequirementFile | null): any {
|
|
82
|
+
if (value === undefined) {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
if (value === null) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'name': value.name,
|
|
91
|
+
'description': value.description,
|
|
92
|
+
'src': value.src,
|
|
93
|
+
'type': GovernanceFileTypeToJSON(value.type),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* The levels at which governance requirements can be enforced
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum GovernanceScope {
|
|
21
|
+
Tenant = 'TENANT',
|
|
22
|
+
Project = 'PROJECT'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function GovernanceScopeFromJSON(json: any): GovernanceScope {
|
|
27
|
+
return GovernanceScopeFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function GovernanceScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceScope {
|
|
31
|
+
return json as GovernanceScope;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function GovernanceScopeToJSON(value?: GovernanceScope | null): any {
|
|
35
|
+
return value as any;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* The ways in which the completion of training can be verified.
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum GovernanceTrainingVerification {
|
|
21
|
+
Self = 'SELF',
|
|
22
|
+
Certificate = 'CERTIFICATE'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function GovernanceTrainingVerificationFromJSON(json: any): GovernanceTrainingVerification {
|
|
27
|
+
return GovernanceTrainingVerificationFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function GovernanceTrainingVerificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceTrainingVerification {
|
|
31
|
+
return json as GovernanceTrainingVerification;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function GovernanceTrainingVerificationToJSON(value?: GovernanceTrainingVerification | null): any {
|
|
35
|
+
return value as any;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* The types of governance requirements that can be enforced
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum GovernanceType {
|
|
21
|
+
Document = 'DOCUMENT',
|
|
22
|
+
Agreement = 'AGREEMENT',
|
|
23
|
+
Training = 'TRAINING',
|
|
24
|
+
Contact = 'CONTACT',
|
|
25
|
+
Classification = 'CLASSIFICATION'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function GovernanceTypeFromJSON(json: any): GovernanceType {
|
|
30
|
+
return GovernanceTypeFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function GovernanceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceType {
|
|
34
|
+
return json as GovernanceType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function GovernanceTypeToJSON(value?: GovernanceType | null): any {
|
|
38
|
+
return value as any;
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -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 MoveDatasetInput
|
|
20
|
+
*/
|
|
21
|
+
export interface MoveDatasetInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MoveDatasetInput
|
|
26
|
+
*/
|
|
27
|
+
datasetId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MoveDatasetInput
|
|
32
|
+
*/
|
|
33
|
+
sourceProjectId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MoveDatasetInput
|
|
38
|
+
*/
|
|
39
|
+
targetProjectId: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the MoveDatasetInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfMoveDatasetInput(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "datasetId" in value;
|
|
48
|
+
isInstance = isInstance && "sourceProjectId" in value;
|
|
49
|
+
isInstance = isInstance && "targetProjectId" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function MoveDatasetInputFromJSON(json: any): MoveDatasetInput {
|
|
55
|
+
return MoveDatasetInputFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function MoveDatasetInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveDatasetInput {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'datasetId': json['datasetId'],
|
|
65
|
+
'sourceProjectId': json['sourceProjectId'],
|
|
66
|
+
'targetProjectId': json['targetProjectId'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function MoveDatasetInputToJSON(value?: MoveDatasetInput | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'datasetId': value.datasetId,
|
|
80
|
+
'sourceProjectId': value.sourceProjectId,
|
|
81
|
+
'targetProjectId': value.targetProjectId,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 MoveDatasetResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface MoveDatasetResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MoveDatasetResponse
|
|
26
|
+
*/
|
|
27
|
+
s3CopyCommand: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MoveDatasetResponse
|
|
32
|
+
*/
|
|
33
|
+
s3DeleteCommand: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof MoveDatasetResponse
|
|
38
|
+
*/
|
|
39
|
+
samplesNotMoved: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the MoveDatasetResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfMoveDatasetResponse(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "s3CopyCommand" in value;
|
|
48
|
+
isInstance = isInstance && "s3DeleteCommand" in value;
|
|
49
|
+
isInstance = isInstance && "samplesNotMoved" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function MoveDatasetResponseFromJSON(json: any): MoveDatasetResponse {
|
|
55
|
+
return MoveDatasetResponseFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function MoveDatasetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveDatasetResponse {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
's3CopyCommand': json['s3CopyCommand'],
|
|
65
|
+
's3DeleteCommand': json['s3DeleteCommand'],
|
|
66
|
+
'samplesNotMoved': json['samplesNotMoved'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function MoveDatasetResponseToJSON(value?: MoveDatasetResponse | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
's3CopyCommand': value.s3CopyCommand,
|
|
80
|
+
's3DeleteCommand': value.s3DeleteCommand,
|
|
81
|
+
'samplesNotMoved': value.samplesNotMoved,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 NamedItem
|
|
20
|
+
*/
|
|
21
|
+
export interface NamedItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NamedItem
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NamedItem
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the NamedItem interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfNamedItem(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "id" in value;
|
|
42
|
+
isInstance = isInstance && "name" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function NamedItemFromJSON(json: any): NamedItem {
|
|
48
|
+
return NamedItemFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function NamedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedItem {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'name': json['name'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function NamedItemToJSON(value?: NamedItem | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value.id,
|
|
72
|
+
'name': value.name,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -128,6 +128,12 @@ export interface ProjectSettings {
|
|
|
128
128
|
* @memberof ProjectSettings
|
|
129
129
|
*/
|
|
130
130
|
isDiscoverable?: boolean | null;
|
|
131
|
+
/**
|
|
132
|
+
* Enables the project to be shared with other projects
|
|
133
|
+
* @type {boolean}
|
|
134
|
+
* @memberof ProjectSettings
|
|
135
|
+
*/
|
|
136
|
+
isShareable?: boolean | null;
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
/**
|
|
@@ -168,6 +174,7 @@ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
168
174
|
'sagemakerSubnets': !exists(json, 'sagemakerSubnets') ? undefined : json['sagemakerSubnets'],
|
|
169
175
|
'kmsArn': !exists(json, 'kmsArn') ? undefined : json['kmsArn'],
|
|
170
176
|
'isDiscoverable': !exists(json, 'isDiscoverable') ? undefined : json['isDiscoverable'],
|
|
177
|
+
'isShareable': !exists(json, 'isShareable') ? undefined : json['isShareable'],
|
|
171
178
|
};
|
|
172
179
|
}
|
|
173
180
|
|
|
@@ -197,6 +204,7 @@ export function ProjectSettingsToJSON(value?: ProjectSettings | null): any {
|
|
|
197
204
|
'sagemakerSubnets': value.sagemakerSubnets,
|
|
198
205
|
'kmsArn': value.kmsArn,
|
|
199
206
|
'isDiscoverable': value.isDiscoverable,
|
|
207
|
+
'isShareable': value.isShareable,
|
|
200
208
|
};
|
|
201
209
|
}
|
|
202
210
|
|