@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,182 @@
|
|
|
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 RequirementInput
|
|
51
|
+
*/
|
|
52
|
+
export interface RequirementInput {
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof RequirementInput
|
|
57
|
+
*/
|
|
58
|
+
name: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof RequirementInput
|
|
63
|
+
*/
|
|
64
|
+
description: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {GovernanceType}
|
|
68
|
+
* @memberof RequirementInput
|
|
69
|
+
*/
|
|
70
|
+
type: GovernanceType;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {GovernanceScope}
|
|
74
|
+
* @memberof RequirementInput
|
|
75
|
+
*/
|
|
76
|
+
scope: GovernanceScope;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {GovernanceScope}
|
|
80
|
+
* @memberof RequirementInput
|
|
81
|
+
*/
|
|
82
|
+
acceptance: GovernanceScope;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<string>}
|
|
86
|
+
* @memberof RequirementInput
|
|
87
|
+
*/
|
|
88
|
+
contactIds?: Array<string> | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {GovernanceExpiry}
|
|
92
|
+
* @memberof RequirementInput
|
|
93
|
+
*/
|
|
94
|
+
expiration: GovernanceExpiry;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {Array<GovernanceFile>}
|
|
98
|
+
* @memberof RequirementInput
|
|
99
|
+
*/
|
|
100
|
+
supplementalDocs?: Array<GovernanceFile> | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {GovernanceFile}
|
|
104
|
+
* @memberof RequirementInput
|
|
105
|
+
*/
|
|
106
|
+
file?: GovernanceFile | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {GovernanceScope}
|
|
110
|
+
* @memberof RequirementInput
|
|
111
|
+
*/
|
|
112
|
+
authorship?: GovernanceScope | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {GovernanceTrainingVerification}
|
|
116
|
+
* @memberof RequirementInput
|
|
117
|
+
*/
|
|
118
|
+
verification?: GovernanceTrainingVerification | null;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the RequirementInput interface.
|
|
123
|
+
*/
|
|
124
|
+
export function instanceOfRequirementInput(value: object): boolean {
|
|
125
|
+
let isInstance = true;
|
|
126
|
+
isInstance = isInstance && "name" in value;
|
|
127
|
+
isInstance = isInstance && "description" in value;
|
|
128
|
+
isInstance = isInstance && "type" in value;
|
|
129
|
+
isInstance = isInstance && "scope" in value;
|
|
130
|
+
isInstance = isInstance && "acceptance" in value;
|
|
131
|
+
isInstance = isInstance && "expiration" in value;
|
|
132
|
+
|
|
133
|
+
return isInstance;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function RequirementInputFromJSON(json: any): RequirementInput {
|
|
137
|
+
return RequirementInputFromJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function RequirementInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequirementInput {
|
|
141
|
+
if ((json === undefined) || (json === null)) {
|
|
142
|
+
return json;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'name': json['name'],
|
|
147
|
+
'description': json['description'],
|
|
148
|
+
'type': GovernanceTypeFromJSON(json['type']),
|
|
149
|
+
'scope': GovernanceScopeFromJSON(json['scope']),
|
|
150
|
+
'acceptance': GovernanceScopeFromJSON(json['acceptance']),
|
|
151
|
+
'contactIds': !exists(json, 'contactIds') ? undefined : json['contactIds'],
|
|
152
|
+
'expiration': GovernanceExpiryFromJSON(json['expiration']),
|
|
153
|
+
'supplementalDocs': !exists(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : (json['supplementalDocs'] as Array<any>).map(GovernanceFileFromJSON)),
|
|
154
|
+
'file': !exists(json, 'file') ? undefined : GovernanceFileFromJSON(json['file']),
|
|
155
|
+
'authorship': !exists(json, 'authorship') ? undefined : GovernanceScopeFromJSON(json['authorship']),
|
|
156
|
+
'verification': !exists(json, 'verification') ? undefined : GovernanceTrainingVerificationFromJSON(json['verification']),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function RequirementInputToJSON(value?: RequirementInput | null): any {
|
|
161
|
+
if (value === undefined) {
|
|
162
|
+
return undefined;
|
|
163
|
+
}
|
|
164
|
+
if (value === null) {
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
|
|
169
|
+
'name': value.name,
|
|
170
|
+
'description': value.description,
|
|
171
|
+
'type': GovernanceTypeToJSON(value.type),
|
|
172
|
+
'scope': GovernanceScopeToJSON(value.scope),
|
|
173
|
+
'acceptance': GovernanceScopeToJSON(value.acceptance),
|
|
174
|
+
'contactIds': value.contactIds,
|
|
175
|
+
'expiration': GovernanceExpiryToJSON(value.expiration),
|
|
176
|
+
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : (value.supplementalDocs as Array<any>).map(GovernanceFileToJSON)),
|
|
177
|
+
'file': GovernanceFileToJSON(value.file),
|
|
178
|
+
'authorship': GovernanceScopeToJSON(value.authorship),
|
|
179
|
+
'verification': GovernanceTrainingVerificationToJSON(value.verification),
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
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 { ShareType } from './ShareType';
|
|
17
|
+
import {
|
|
18
|
+
ShareTypeFromJSON,
|
|
19
|
+
ShareTypeFromJSONTyped,
|
|
20
|
+
ShareTypeToJSON,
|
|
21
|
+
} from './ShareType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Share
|
|
27
|
+
*/
|
|
28
|
+
export interface Share {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Share
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Share
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Share
|
|
45
|
+
*/
|
|
46
|
+
description: string;
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the project that owns the share
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Share
|
|
51
|
+
*/
|
|
52
|
+
originatingProjectId: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {ShareType}
|
|
56
|
+
* @memberof Share
|
|
57
|
+
*/
|
|
58
|
+
shareType: ShareType;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<string>}
|
|
62
|
+
* @memberof Share
|
|
63
|
+
*/
|
|
64
|
+
classificationIds: Array<string>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof Share
|
|
69
|
+
*/
|
|
70
|
+
keywords: Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof Share
|
|
75
|
+
*/
|
|
76
|
+
createdBy: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @memberof Share
|
|
81
|
+
*/
|
|
82
|
+
createdAt: Date;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Date}
|
|
86
|
+
* @memberof Share
|
|
87
|
+
*/
|
|
88
|
+
updatedAt: Date;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the Share interface.
|
|
93
|
+
*/
|
|
94
|
+
export function instanceOfShare(value: object): boolean {
|
|
95
|
+
let isInstance = true;
|
|
96
|
+
isInstance = isInstance && "id" in value;
|
|
97
|
+
isInstance = isInstance && "name" in value;
|
|
98
|
+
isInstance = isInstance && "description" in value;
|
|
99
|
+
isInstance = isInstance && "originatingProjectId" in value;
|
|
100
|
+
isInstance = isInstance && "shareType" in value;
|
|
101
|
+
isInstance = isInstance && "classificationIds" in value;
|
|
102
|
+
isInstance = isInstance && "keywords" in value;
|
|
103
|
+
isInstance = isInstance && "createdBy" in value;
|
|
104
|
+
isInstance = isInstance && "createdAt" in value;
|
|
105
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
106
|
+
|
|
107
|
+
return isInstance;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function ShareFromJSON(json: any): Share {
|
|
111
|
+
return ShareFromJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): Share {
|
|
115
|
+
if ((json === undefined) || (json === null)) {
|
|
116
|
+
return json;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'id': json['id'],
|
|
121
|
+
'name': json['name'],
|
|
122
|
+
'description': json['description'],
|
|
123
|
+
'originatingProjectId': json['originatingProjectId'],
|
|
124
|
+
'shareType': ShareTypeFromJSON(json['shareType']),
|
|
125
|
+
'classificationIds': json['classificationIds'],
|
|
126
|
+
'keywords': json['keywords'],
|
|
127
|
+
'createdBy': json['createdBy'],
|
|
128
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
129
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function ShareToJSON(value?: Share | null): any {
|
|
134
|
+
if (value === undefined) {
|
|
135
|
+
return undefined;
|
|
136
|
+
}
|
|
137
|
+
if (value === null) {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'id': value.id,
|
|
143
|
+
'name': value.name,
|
|
144
|
+
'description': value.description,
|
|
145
|
+
'originatingProjectId': value.originatingProjectId,
|
|
146
|
+
'shareType': ShareTypeToJSON(value.shareType),
|
|
147
|
+
'classificationIds': value.classificationIds,
|
|
148
|
+
'keywords': value.keywords,
|
|
149
|
+
'createdBy': value.createdBy,
|
|
150
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
151
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
@@ -0,0 +1,193 @@
|
|
|
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 { DatasetCondition } from './DatasetCondition';
|
|
17
|
+
import {
|
|
18
|
+
DatasetConditionFromJSON,
|
|
19
|
+
DatasetConditionFromJSONTyped,
|
|
20
|
+
DatasetConditionToJSON,
|
|
21
|
+
} from './DatasetCondition';
|
|
22
|
+
import type { NamedItem } from './NamedItem';
|
|
23
|
+
import {
|
|
24
|
+
NamedItemFromJSON,
|
|
25
|
+
NamedItemFromJSONTyped,
|
|
26
|
+
NamedItemToJSON,
|
|
27
|
+
} from './NamedItem';
|
|
28
|
+
import type { ShareType } from './ShareType';
|
|
29
|
+
import {
|
|
30
|
+
ShareTypeFromJSON,
|
|
31
|
+
ShareTypeFromJSONTyped,
|
|
32
|
+
ShareTypeToJSON,
|
|
33
|
+
} from './ShareType';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ShareDetail
|
|
39
|
+
*/
|
|
40
|
+
export interface ShareDetail {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ShareDetail
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ShareDetail
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ShareDetail
|
|
57
|
+
*/
|
|
58
|
+
description: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {NamedItem}
|
|
62
|
+
* @memberof ShareDetail
|
|
63
|
+
*/
|
|
64
|
+
originatingProject: NamedItem;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {ShareType}
|
|
68
|
+
* @memberof ShareDetail
|
|
69
|
+
*/
|
|
70
|
+
shareType: ShareType;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<NamedItem>}
|
|
74
|
+
* @memberof ShareDetail
|
|
75
|
+
*/
|
|
76
|
+
sharedProjects: Array<NamedItem>;
|
|
77
|
+
/**
|
|
78
|
+
* The conditions under which the dataset is shared
|
|
79
|
+
* @type {Array<DatasetCondition>}
|
|
80
|
+
* @memberof ShareDetail
|
|
81
|
+
*/
|
|
82
|
+
conditions: Array<DatasetCondition>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<string>}
|
|
86
|
+
* @memberof ShareDetail
|
|
87
|
+
*/
|
|
88
|
+
keywords: Array<string>;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<string>}
|
|
92
|
+
* @memberof ShareDetail
|
|
93
|
+
*/
|
|
94
|
+
classificationIds: Array<string>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof ShareDetail
|
|
99
|
+
*/
|
|
100
|
+
isSubscribed: boolean;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof ShareDetail
|
|
105
|
+
*/
|
|
106
|
+
createdBy: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {Date}
|
|
110
|
+
* @memberof ShareDetail
|
|
111
|
+
*/
|
|
112
|
+
createdAt: Date;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {Date}
|
|
116
|
+
* @memberof ShareDetail
|
|
117
|
+
*/
|
|
118
|
+
updatedAt: Date;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the ShareDetail interface.
|
|
123
|
+
*/
|
|
124
|
+
export function instanceOfShareDetail(value: object): boolean {
|
|
125
|
+
let isInstance = true;
|
|
126
|
+
isInstance = isInstance && "id" in value;
|
|
127
|
+
isInstance = isInstance && "name" in value;
|
|
128
|
+
isInstance = isInstance && "description" in value;
|
|
129
|
+
isInstance = isInstance && "originatingProject" in value;
|
|
130
|
+
isInstance = isInstance && "shareType" in value;
|
|
131
|
+
isInstance = isInstance && "sharedProjects" in value;
|
|
132
|
+
isInstance = isInstance && "conditions" in value;
|
|
133
|
+
isInstance = isInstance && "keywords" in value;
|
|
134
|
+
isInstance = isInstance && "classificationIds" in value;
|
|
135
|
+
isInstance = isInstance && "isSubscribed" in value;
|
|
136
|
+
isInstance = isInstance && "createdBy" in value;
|
|
137
|
+
isInstance = isInstance && "createdAt" in value;
|
|
138
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
139
|
+
|
|
140
|
+
return isInstance;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function ShareDetailFromJSON(json: any): ShareDetail {
|
|
144
|
+
return ShareDetailFromJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function ShareDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareDetail {
|
|
148
|
+
if ((json === undefined) || (json === null)) {
|
|
149
|
+
return json;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'id': json['id'],
|
|
154
|
+
'name': json['name'],
|
|
155
|
+
'description': json['description'],
|
|
156
|
+
'originatingProject': NamedItemFromJSON(json['originatingProject']),
|
|
157
|
+
'shareType': ShareTypeFromJSON(json['shareType']),
|
|
158
|
+
'sharedProjects': ((json['sharedProjects'] as Array<any>).map(NamedItemFromJSON)),
|
|
159
|
+
'conditions': ((json['conditions'] as Array<any>).map(DatasetConditionFromJSON)),
|
|
160
|
+
'keywords': json['keywords'],
|
|
161
|
+
'classificationIds': json['classificationIds'],
|
|
162
|
+
'isSubscribed': json['isSubscribed'],
|
|
163
|
+
'createdBy': json['createdBy'],
|
|
164
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
165
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function ShareDetailToJSON(value?: ShareDetail | null): any {
|
|
170
|
+
if (value === undefined) {
|
|
171
|
+
return undefined;
|
|
172
|
+
}
|
|
173
|
+
if (value === null) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
|
|
178
|
+
'id': value.id,
|
|
179
|
+
'name': value.name,
|
|
180
|
+
'description': value.description,
|
|
181
|
+
'originatingProject': NamedItemToJSON(value.originatingProject),
|
|
182
|
+
'shareType': ShareTypeToJSON(value.shareType),
|
|
183
|
+
'sharedProjects': ((value.sharedProjects as Array<any>).map(NamedItemToJSON)),
|
|
184
|
+
'conditions': ((value.conditions as Array<any>).map(DatasetConditionToJSON)),
|
|
185
|
+
'keywords': value.keywords,
|
|
186
|
+
'classificationIds': value.classificationIds,
|
|
187
|
+
'isSubscribed': value.isSubscribed,
|
|
188
|
+
'createdBy': value.createdBy,
|
|
189
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
190
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { DatasetCondition } from './DatasetCondition';
|
|
17
|
+
import {
|
|
18
|
+
DatasetConditionFromJSON,
|
|
19
|
+
DatasetConditionFromJSONTyped,
|
|
20
|
+
DatasetConditionToJSON,
|
|
21
|
+
} from './DatasetCondition';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ShareInput
|
|
27
|
+
*/
|
|
28
|
+
export interface ShareInput {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ShareInput
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ShareInput
|
|
39
|
+
*/
|
|
40
|
+
description: string;
|
|
41
|
+
/**
|
|
42
|
+
* Data classification IDs for the share
|
|
43
|
+
* @type {Array<string>}
|
|
44
|
+
* @memberof ShareInput
|
|
45
|
+
*/
|
|
46
|
+
classificationIds: Array<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The conditions under which the dataset is shared
|
|
49
|
+
* @type {Array<DatasetCondition>}
|
|
50
|
+
* @memberof ShareInput
|
|
51
|
+
*/
|
|
52
|
+
conditions: Array<DatasetCondition>;
|
|
53
|
+
/**
|
|
54
|
+
* Search keywords for the share
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof ShareInput
|
|
57
|
+
*/
|
|
58
|
+
keywords?: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The project IDs that can access this share
|
|
61
|
+
* @type {Array<string>}
|
|
62
|
+
* @memberof ShareInput
|
|
63
|
+
*/
|
|
64
|
+
sharedProjectIds?: Array<string>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ShareInput interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfShareInput(value: object): boolean {
|
|
71
|
+
let isInstance = true;
|
|
72
|
+
isInstance = isInstance && "name" in value;
|
|
73
|
+
isInstance = isInstance && "description" in value;
|
|
74
|
+
isInstance = isInstance && "classificationIds" in value;
|
|
75
|
+
isInstance = isInstance && "conditions" in value;
|
|
76
|
+
|
|
77
|
+
return isInstance;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ShareInputFromJSON(json: any): ShareInput {
|
|
81
|
+
return ShareInputFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ShareInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareInput {
|
|
85
|
+
if ((json === undefined) || (json === null)) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'name': json['name'],
|
|
91
|
+
'description': json['description'],
|
|
92
|
+
'classificationIds': json['classificationIds'],
|
|
93
|
+
'conditions': ((json['conditions'] as Array<any>).map(DatasetConditionFromJSON)),
|
|
94
|
+
'keywords': !exists(json, 'keywords') ? undefined : json['keywords'],
|
|
95
|
+
'sharedProjectIds': !exists(json, 'sharedProjectIds') ? undefined : json['sharedProjectIds'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ShareInputToJSON(value?: ShareInput | null): any {
|
|
100
|
+
if (value === undefined) {
|
|
101
|
+
return undefined;
|
|
102
|
+
}
|
|
103
|
+
if (value === null) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'name': value.name,
|
|
109
|
+
'description': value.description,
|
|
110
|
+
'classificationIds': value.classificationIds,
|
|
111
|
+
'conditions': ((value.conditions as Array<any>).map(DatasetConditionToJSON)),
|
|
112
|
+
'keywords': value.keywords,
|
|
113
|
+
'sharedProjectIds': value.sharedProjectIds,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ShareType {
|
|
21
|
+
Publisher = 'PUBLISHER',
|
|
22
|
+
Subscriber = 'SUBSCRIBER',
|
|
23
|
+
Available = 'AVAILABLE'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function ShareTypeFromJSON(json: any): ShareType {
|
|
28
|
+
return ShareTypeFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function ShareTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareType {
|
|
32
|
+
return json as ShareType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function ShareTypeToJSON(value?: ShareType | null): any {
|
|
36
|
+
return value as any;
|
|
37
|
+
}
|
|
38
|
+
|