@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,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 { DatasetConditionField } from './DatasetConditionField';
|
|
17
|
+
import {
|
|
18
|
+
DatasetConditionFieldFromJSON,
|
|
19
|
+
DatasetConditionFieldFromJSONTyped,
|
|
20
|
+
DatasetConditionFieldToJSON,
|
|
21
|
+
} from './DatasetConditionField';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DatasetCondition
|
|
27
|
+
*/
|
|
28
|
+
export interface DatasetCondition {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {DatasetConditionField}
|
|
32
|
+
* @memberof DatasetCondition
|
|
33
|
+
*/
|
|
34
|
+
field: DatasetConditionField;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DatasetCondition
|
|
39
|
+
*/
|
|
40
|
+
value: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the DatasetCondition interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfDatasetCondition(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "field" in value;
|
|
49
|
+
isInstance = isInstance && "value" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function DatasetConditionFromJSON(json: any): DatasetCondition {
|
|
55
|
+
return DatasetConditionFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function DatasetConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetCondition {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'field': DatasetConditionFieldFromJSON(json['field']),
|
|
65
|
+
'value': json['value'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function DatasetConditionToJSON(value?: DatasetCondition | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'field': DatasetConditionFieldToJSON(value.field),
|
|
79
|
+
'value': value.value,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -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 DatasetConditionField {
|
|
21
|
+
DatasetId = 'DATASET_ID',
|
|
22
|
+
Tag = 'TAG',
|
|
23
|
+
ProcessId = 'PROCESS_ID'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function DatasetConditionFieldFromJSON(json: any): DatasetConditionField {
|
|
28
|
+
return DatasetConditionFieldFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function DatasetConditionFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetConditionField {
|
|
32
|
+
return json as DatasetConditionField;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function DatasetConditionFieldToJSON(value?: DatasetConditionField | null): any {
|
|
36
|
+
return value as any;
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -37,6 +37,12 @@ export interface GovernanceClassification {
|
|
|
37
37
|
* @memberof GovernanceClassification
|
|
38
38
|
*/
|
|
39
39
|
description: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof GovernanceClassification
|
|
44
|
+
*/
|
|
45
|
+
requirementIds: Array<string>;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {string}
|
|
@@ -65,6 +71,7 @@ export function instanceOfGovernanceClassification(value: object): boolean {
|
|
|
65
71
|
isInstance = isInstance && "id" in value;
|
|
66
72
|
isInstance = isInstance && "name" in value;
|
|
67
73
|
isInstance = isInstance && "description" in value;
|
|
74
|
+
isInstance = isInstance && "requirementIds" in value;
|
|
68
75
|
isInstance = isInstance && "createdBy" in value;
|
|
69
76
|
isInstance = isInstance && "createdAt" in value;
|
|
70
77
|
isInstance = isInstance && "updatedAt" in value;
|
|
@@ -85,6 +92,7 @@ export function GovernanceClassificationFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
85
92
|
'id': json['id'],
|
|
86
93
|
'name': json['name'],
|
|
87
94
|
'description': json['description'],
|
|
95
|
+
'requirementIds': json['requirementIds'],
|
|
88
96
|
'createdBy': json['createdBy'],
|
|
89
97
|
'createdAt': (new Date(json['createdAt'])),
|
|
90
98
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -103,6 +111,7 @@ export function GovernanceClassificationToJSON(value?: GovernanceClassification
|
|
|
103
111
|
'id': value.id,
|
|
104
112
|
'name': value.name,
|
|
105
113
|
'description': value.description,
|
|
114
|
+
'requirementIds': value.requirementIds,
|
|
106
115
|
'createdBy': value.createdBy,
|
|
107
116
|
'createdAt': (value.createdAt.toISOString()),
|
|
108
117
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
@@ -0,0 +1,111 @@
|
|
|
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 GovernanceContact
|
|
20
|
+
*/
|
|
21
|
+
export interface GovernanceContact {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GovernanceContact
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GovernanceContact
|
|
32
|
+
*/
|
|
33
|
+
title: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GovernanceContact
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GovernanceContact
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GovernanceContact
|
|
50
|
+
*/
|
|
51
|
+
phone: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof GovernanceContact
|
|
56
|
+
*/
|
|
57
|
+
email: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GovernanceContact interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfGovernanceContact(value: object): boolean {
|
|
64
|
+
let isInstance = true;
|
|
65
|
+
isInstance = isInstance && "id" in value;
|
|
66
|
+
isInstance = isInstance && "title" in value;
|
|
67
|
+
isInstance = isInstance && "description" in value;
|
|
68
|
+
isInstance = isInstance && "name" in value;
|
|
69
|
+
isInstance = isInstance && "phone" in value;
|
|
70
|
+
isInstance = isInstance && "email" in value;
|
|
71
|
+
|
|
72
|
+
return isInstance;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function GovernanceContactFromJSON(json: any): GovernanceContact {
|
|
76
|
+
return GovernanceContactFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function GovernanceContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceContact {
|
|
80
|
+
if ((json === undefined) || (json === null)) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'id': json['id'],
|
|
86
|
+
'title': json['title'],
|
|
87
|
+
'description': json['description'],
|
|
88
|
+
'name': json['name'],
|
|
89
|
+
'phone': json['phone'],
|
|
90
|
+
'email': json['email'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GovernanceContactToJSON(value?: GovernanceContact | null): any {
|
|
95
|
+
if (value === undefined) {
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
if (value === null) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value.id,
|
|
104
|
+
'title': value.title,
|
|
105
|
+
'description': value.description,
|
|
106
|
+
'name': value.name,
|
|
107
|
+
'phone': value.phone,
|
|
108
|
+
'email': value.email,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { GovernanceExpiryType } from './GovernanceExpiryType';
|
|
17
|
+
import {
|
|
18
|
+
GovernanceExpiryTypeFromJSON,
|
|
19
|
+
GovernanceExpiryTypeFromJSONTyped,
|
|
20
|
+
GovernanceExpiryTypeToJSON,
|
|
21
|
+
} from './GovernanceExpiryType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface GovernanceExpiry
|
|
27
|
+
*/
|
|
28
|
+
export interface GovernanceExpiry {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {GovernanceExpiryType}
|
|
32
|
+
* @memberof GovernanceExpiry
|
|
33
|
+
*/
|
|
34
|
+
type?: GovernanceExpiryType;
|
|
35
|
+
/**
|
|
36
|
+
* The number of days for a relative expiration
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof GovernanceExpiry
|
|
39
|
+
*/
|
|
40
|
+
days?: number | null;
|
|
41
|
+
/**
|
|
42
|
+
* The date for an absolute expiration
|
|
43
|
+
* @type {Date}
|
|
44
|
+
* @memberof GovernanceExpiry
|
|
45
|
+
*/
|
|
46
|
+
date?: Date | null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GovernanceExpiry interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfGovernanceExpiry(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GovernanceExpiryFromJSON(json: any): GovernanceExpiry {
|
|
59
|
+
return GovernanceExpiryFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function GovernanceExpiryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceExpiry {
|
|
63
|
+
if ((json === undefined) || (json === null)) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'type': !exists(json, 'type') ? undefined : GovernanceExpiryTypeFromJSON(json['type']),
|
|
69
|
+
'days': !exists(json, 'days') ? undefined : json['days'],
|
|
70
|
+
'date': !exists(json, 'date') ? undefined : (json['date'] === null ? null : new Date(json['date'])),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GovernanceExpiryToJSON(value?: GovernanceExpiry | null): any {
|
|
75
|
+
if (value === undefined) {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
if (value === null) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'type': GovernanceExpiryTypeToJSON(value.type),
|
|
84
|
+
'days': value.days,
|
|
85
|
+
'date': value.date === undefined ? undefined : (value.date === null ? null : value.date.toISOString()),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
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 expiry conditions that can be applied to governance requirements.
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum GovernanceExpiryType {
|
|
21
|
+
None = 'NONE',
|
|
22
|
+
Absolute = 'ABSOLUTE',
|
|
23
|
+
RelativeEnactment = 'RELATIVE_ENACTMENT',
|
|
24
|
+
RelativeCompletion = 'RELATIVE_COMPLETION'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function GovernanceExpiryTypeFromJSON(json: any): GovernanceExpiryType {
|
|
29
|
+
return GovernanceExpiryTypeFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function GovernanceExpiryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceExpiryType {
|
|
33
|
+
return json as GovernanceExpiryType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function GovernanceExpiryTypeToJSON(value?: GovernanceExpiryType | null): any {
|
|
37
|
+
return value as any;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -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
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface GovernanceFile
|
|
27
|
+
*/
|
|
28
|
+
export interface GovernanceFile {
|
|
29
|
+
/**
|
|
30
|
+
* The title of the resource visible to users
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof GovernanceFile
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* A description of the resource visible to users
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof GovernanceFile
|
|
39
|
+
*/
|
|
40
|
+
description?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The file name without path or the full link path
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GovernanceFile
|
|
45
|
+
*/
|
|
46
|
+
src?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {GovernanceFileType}
|
|
50
|
+
* @memberof GovernanceFile
|
|
51
|
+
*/
|
|
52
|
+
type?: GovernanceFileType;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GovernanceFile interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfGovernanceFile(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
|
|
61
|
+
return isInstance;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GovernanceFileFromJSON(json: any): GovernanceFile {
|
|
65
|
+
return GovernanceFileFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GovernanceFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceFile {
|
|
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 GovernanceFileToJSON(value?: GovernanceFile | 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 options for supplementals for governance requirements
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum GovernanceFileType {
|
|
21
|
+
File = 'FILE',
|
|
22
|
+
Link = 'LINK'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function GovernanceFileTypeFromJSON(json: any): GovernanceFileType {
|
|
27
|
+
return GovernanceFileTypeFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function GovernanceFileTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceFileType {
|
|
31
|
+
return json as GovernanceFileType;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function GovernanceFileTypeToJSON(value?: GovernanceFileType | null): any {
|
|
35
|
+
return value as any;
|
|
36
|
+
}
|
|
37
|
+
|