@cirrobio/api-client 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +1 -1
  3. package/dist/apis/DatasetsApi.d.ts +6 -6
  4. package/dist/apis/DatasetsApi.js +6 -6
  5. package/dist/apis/FileApi.d.ts +14 -0
  6. package/dist/apis/FileApi.js +60 -0
  7. package/dist/apis/GovernanceApi.d.ts +127 -1
  8. package/dist/apis/GovernanceApi.js +555 -1
  9. package/dist/apis/SharingApi.d.ts +19 -3
  10. package/dist/apis/SharingApi.js +63 -1
  11. package/dist/models/AccessType.d.ts +3 -1
  12. package/dist/models/AccessType.js +2 -0
  13. package/dist/models/ClassificationInput.d.ts +6 -0
  14. package/dist/models/ClassificationInput.js +3 -0
  15. package/dist/models/ContactInput.d.ts +55 -0
  16. package/dist/models/ContactInput.js +62 -0
  17. package/dist/models/DatasetDetail.d.ts +13 -0
  18. package/dist/models/DatasetDetail.js +7 -0
  19. package/dist/models/GovernanceClassification.d.ts +6 -0
  20. package/dist/models/GovernanceClassification.js +3 -0
  21. package/dist/models/GovernanceContact.d.ts +79 -0
  22. package/dist/models/GovernanceContact.js +74 -0
  23. package/dist/models/GovernanceExpiry.d.ts +44 -0
  24. package/dist/models/GovernanceExpiry.js +55 -0
  25. package/dist/models/GovernanceExpiryType.d.ts +25 -0
  26. package/dist/models/GovernanceExpiryType.js +40 -0
  27. package/dist/models/GovernanceFile.d.ts +50 -0
  28. package/dist/models/GovernanceFile.js +57 -0
  29. package/dist/models/GovernanceFileType.d.ts +23 -0
  30. package/dist/models/GovernanceFileType.js +38 -0
  31. package/dist/models/GovernanceRequirement.d.ts +132 -0
  32. package/dist/models/GovernanceRequirement.js +98 -0
  33. package/dist/models/GovernanceRequirementFile.d.ts +50 -0
  34. package/dist/models/GovernanceRequirementFile.js +57 -0
  35. package/dist/models/GovernanceScope.d.ts +23 -0
  36. package/dist/models/GovernanceScope.js +38 -0
  37. package/dist/models/GovernanceTrainingVerification.d.ts +23 -0
  38. package/dist/models/GovernanceTrainingVerification.js +38 -0
  39. package/dist/models/GovernanceType.d.ts +26 -0
  40. package/dist/models/GovernanceType.js +41 -0
  41. package/dist/models/RequirementInput.d.ts +102 -0
  42. package/dist/models/RequirementInput.js +83 -0
  43. package/dist/models/Share.d.ts +7 -0
  44. package/dist/models/Share.js +4 -0
  45. package/dist/models/ShareDetail.d.ts +1 -1
  46. package/dist/models/ShareDetail.js +3 -3
  47. package/dist/models/index.d.ts +11 -0
  48. package/dist/models/index.js +11 -0
  49. package/dist/runtime.js +1 -1
  50. package/package.json +1 -1
  51. package/src/apis/DatasetsApi.ts +6 -6
  52. package/src/apis/FileApi.ts +52 -0
  53. package/src/apis/GovernanceApi.ts +457 -1
  54. package/src/apis/SharingApi.ts +64 -6
  55. package/src/models/AccessType.ts +3 -1
  56. package/src/models/ClassificationInput.ts +9 -0
  57. package/src/models/ContactInput.ts +102 -0
  58. package/src/models/DatasetDetail.ts +23 -0
  59. package/src/models/GovernanceClassification.ts +9 -0
  60. package/src/models/GovernanceContact.ts +138 -0
  61. package/src/models/GovernanceExpiry.ts +88 -0
  62. package/src/models/GovernanceExpiryType.ts +39 -0
  63. package/src/models/GovernanceFile.ts +96 -0
  64. package/src/models/GovernanceFileType.ts +37 -0
  65. package/src/models/GovernanceRequirement.ts +235 -0
  66. package/src/models/GovernanceRequirementFile.ts +96 -0
  67. package/src/models/GovernanceScope.ts +37 -0
  68. package/src/models/GovernanceTrainingVerification.ts +37 -0
  69. package/src/models/GovernanceType.ts +40 -0
  70. package/src/models/RequirementInput.ts +190 -0
  71. package/src/models/Share.ts +15 -0
  72. package/src/models/ShareDetail.ts +4 -3
  73. package/src/models/index.ts +11 -0
  74. package/src/runtime.ts +1 -1
@@ -0,0 +1,102 @@
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 ContactInput
20
+ */
21
+ export interface ContactInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ContactInput
26
+ */
27
+ title: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ContactInput
32
+ */
33
+ description: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ContactInput
38
+ */
39
+ name: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ContactInput
44
+ */
45
+ phone: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ContactInput
50
+ */
51
+ email: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the ContactInput interface.
56
+ */
57
+ export function instanceOfContactInput(value: object): boolean {
58
+ let isInstance = true;
59
+ isInstance = isInstance && "title" in value;
60
+ isInstance = isInstance && "description" in value;
61
+ isInstance = isInstance && "name" in value;
62
+ isInstance = isInstance && "phone" in value;
63
+ isInstance = isInstance && "email" in value;
64
+
65
+ return isInstance;
66
+ }
67
+
68
+ export function ContactInputFromJSON(json: any): ContactInput {
69
+ return ContactInputFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function ContactInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInput {
73
+ if ((json === undefined) || (json === null)) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'title': json['title'],
79
+ 'description': json['description'],
80
+ 'name': json['name'],
81
+ 'phone': json['phone'],
82
+ 'email': json['email'],
83
+ };
84
+ }
85
+
86
+ export function ContactInputToJSON(value?: ContactInput | null): any {
87
+ if (value === undefined) {
88
+ return undefined;
89
+ }
90
+ if (value === null) {
91
+ return null;
92
+ }
93
+ return {
94
+
95
+ 'title': value.title,
96
+ 'description': value.description,
97
+ 'name': value.name,
98
+ 'phone': value.phone,
99
+ 'email': value.email,
100
+ };
101
+ }
102
+
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { NamedItem } from './NamedItem';
17
+ import {
18
+ NamedItemFromJSON,
19
+ NamedItemFromJSONTyped,
20
+ NamedItemToJSON,
21
+ } from './NamedItem';
16
22
  import type { Status } from './Status';
17
23
  import {
18
24
  StatusFromJSON,
@@ -74,6 +80,12 @@ export interface DatasetDetail {
74
80
  * @memberof DatasetDetail
75
81
  */
76
82
  sourceDatasetIds: Array<string>;
83
+ /**
84
+ *
85
+ * @type {Array<NamedItem>}
86
+ * @memberof DatasetDetail
87
+ */
88
+ sourceDatasets: Array<NamedItem>;
77
89
  /**
78
90
  *
79
91
  * @type {Status}
@@ -104,6 +116,12 @@ export interface DatasetDetail {
104
116
  * @memberof DatasetDetail
105
117
  */
106
118
  info: { [key: string]: any; };
119
+ /**
120
+ *
121
+ * @type {NamedItem}
122
+ * @memberof DatasetDetail
123
+ */
124
+ share?: NamedItem | null;
107
125
  /**
108
126
  *
109
127
  * @type {string}
@@ -136,6 +154,7 @@ export function instanceOfDatasetDetail(value: object): boolean {
136
154
  isInstance = isInstance && "processId" in value;
137
155
  isInstance = isInstance && "projectId" in value;
138
156
  isInstance = isInstance && "sourceDatasetIds" in value;
157
+ isInstance = isInstance && "sourceDatasets" in value;
139
158
  isInstance = isInstance && "status" in value;
140
159
  isInstance = isInstance && "statusMessage" in value;
141
160
  isInstance = isInstance && "tags" in value;
@@ -165,11 +184,13 @@ export function DatasetDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
165
184
  'processId': json['processId'],
166
185
  'projectId': json['projectId'],
167
186
  'sourceDatasetIds': json['sourceDatasetIds'],
187
+ 'sourceDatasets': ((json['sourceDatasets'] as Array<any>).map(NamedItemFromJSON)),
168
188
  'status': StatusFromJSON(json['status']),
169
189
  'statusMessage': json['statusMessage'],
170
190
  'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
171
191
  'params': json['params'],
172
192
  'info': json['info'],
193
+ 'share': !exists(json, 'share') ? undefined : NamedItemFromJSON(json['share']),
173
194
  'createdBy': json['createdBy'],
174
195
  'createdAt': (new Date(json['createdAt'])),
175
196
  'updatedAt': (new Date(json['updatedAt'])),
@@ -192,11 +213,13 @@ export function DatasetDetailToJSON(value?: DatasetDetail | null): any {
192
213
  'processId': value.processId,
193
214
  'projectId': value.projectId,
194
215
  'sourceDatasetIds': value.sourceDatasetIds,
216
+ 'sourceDatasets': ((value.sourceDatasets as Array<any>).map(NamedItemToJSON)),
195
217
  'status': StatusToJSON(value.status),
196
218
  'statusMessage': value.statusMessage,
197
219
  'tags': ((value.tags as Array<any>).map(TagToJSON)),
198
220
  'params': value.params,
199
221
  'info': value.info,
222
+ 'share': NamedItemToJSON(value.share),
200
223
  'createdBy': value.createdBy,
201
224
  'createdAt': (value.createdAt.toISOString()),
202
225
  'updatedAt': (value.updatedAt.toISOString()),
@@ -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,138 @@
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
+ * @type {string}
61
+ * @memberof GovernanceContact
62
+ */
63
+ createdBy: string;
64
+ /**
65
+ *
66
+ * @type {Date}
67
+ * @memberof GovernanceContact
68
+ */
69
+ createdAt: Date;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof GovernanceContact
74
+ */
75
+ updatedAt: Date;
76
+ }
77
+
78
+ /**
79
+ * Check if a given object implements the GovernanceContact interface.
80
+ */
81
+ export function instanceOfGovernanceContact(value: object): boolean {
82
+ let isInstance = true;
83
+ isInstance = isInstance && "id" in value;
84
+ isInstance = isInstance && "title" in value;
85
+ isInstance = isInstance && "description" in value;
86
+ isInstance = isInstance && "name" in value;
87
+ isInstance = isInstance && "phone" in value;
88
+ isInstance = isInstance && "email" in value;
89
+ isInstance = isInstance && "createdBy" in value;
90
+ isInstance = isInstance && "createdAt" in value;
91
+ isInstance = isInstance && "updatedAt" in value;
92
+
93
+ return isInstance;
94
+ }
95
+
96
+ export function GovernanceContactFromJSON(json: any): GovernanceContact {
97
+ return GovernanceContactFromJSONTyped(json, false);
98
+ }
99
+
100
+ export function GovernanceContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceContact {
101
+ if ((json === undefined) || (json === null)) {
102
+ return json;
103
+ }
104
+ return {
105
+
106
+ 'id': json['id'],
107
+ 'title': json['title'],
108
+ 'description': json['description'],
109
+ 'name': json['name'],
110
+ 'phone': json['phone'],
111
+ 'email': json['email'],
112
+ 'createdBy': json['createdBy'],
113
+ 'createdAt': (new Date(json['createdAt'])),
114
+ 'updatedAt': (new Date(json['updatedAt'])),
115
+ };
116
+ }
117
+
118
+ export function GovernanceContactToJSON(value?: GovernanceContact | null): any {
119
+ if (value === undefined) {
120
+ return undefined;
121
+ }
122
+ if (value === null) {
123
+ return null;
124
+ }
125
+ return {
126
+
127
+ 'id': value.id,
128
+ 'title': value.title,
129
+ 'description': value.description,
130
+ 'name': value.name,
131
+ 'phone': value.phone,
132
+ 'email': value.email,
133
+ 'createdBy': value.createdBy,
134
+ 'createdAt': (value.createdAt.toISOString()),
135
+ 'updatedAt': (value.updatedAt.toISOString()),
136
+ };
137
+ }
138
+
@@ -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
+