@cirrobio/api-client 0.2.8 → 0.2.9

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 (41) hide show
  1. package/.openapi-generator/FILES +7 -2
  2. package/README.md +1 -1
  3. package/dist/apis/FileApi.d.ts +3 -3
  4. package/dist/apis/FileApi.js +6 -6
  5. package/dist/apis/GovernanceApi.d.ts +29 -1
  6. package/dist/apis/GovernanceApi.js +118 -0
  7. package/dist/models/FulfillmentResponse.d.ts +37 -0
  8. package/dist/models/FulfillmentResponse.js +53 -0
  9. package/dist/models/GovernanceAccessType.d.ts +25 -0
  10. package/dist/models/GovernanceAccessType.js +40 -0
  11. package/dist/models/GovernanceFileAccessRequest.d.ts +44 -0
  12. package/dist/models/GovernanceFileAccessRequest.js +56 -0
  13. package/dist/models/GovernanceRequirement.d.ts +1 -1
  14. package/dist/models/GovernanceRequirement.js +2 -2
  15. package/dist/models/{AccessType.d.ts → ProjectAccessType.d.ts} +5 -7
  16. package/dist/models/ProjectAccessType.js +41 -0
  17. package/dist/models/ProjectFileAccessRequest.d.ts +44 -0
  18. package/dist/models/{FileAccessRequest.js → ProjectFileAccessRequest.js} +14 -14
  19. package/dist/models/ProjectRequirement.d.ts +145 -0
  20. package/dist/models/ProjectRequirement.js +100 -0
  21. package/dist/models/RequirementFulfillmentInput.d.ts +31 -0
  22. package/dist/models/RequirementFulfillmentInput.js +50 -0
  23. package/dist/models/RequirementInput.d.ts +1 -1
  24. package/dist/models/RequirementInput.js +2 -2
  25. package/dist/models/index.d.ts +7 -2
  26. package/dist/models/index.js +7 -2
  27. package/package.json +1 -1
  28. package/src/apis/FileApi.ts +14 -11
  29. package/src/apis/GovernanceApi.ts +110 -0
  30. package/src/models/FulfillmentResponse.ts +75 -0
  31. package/src/models/GovernanceAccessType.ts +39 -0
  32. package/src/models/GovernanceFileAccessRequest.ts +89 -0
  33. package/src/models/GovernanceRequirement.ts +3 -3
  34. package/src/models/{AccessType.ts → ProjectAccessType.ts} +7 -9
  35. package/src/models/{FileAccessRequest.ts → ProjectFileAccessRequest.ts} +20 -20
  36. package/src/models/ProjectRequirement.ts +254 -0
  37. package/src/models/RequirementFulfillmentInput.ts +65 -0
  38. package/src/models/RequirementInput.ts +3 -3
  39. package/src/models/index.ts +7 -2
  40. package/dist/models/AccessType.js +0 -43
  41. package/dist/models/FileAccessRequest.d.ts +0 -44
@@ -0,0 +1,254 @@
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 { GovernanceContact } from './GovernanceContact';
17
+ import {
18
+ GovernanceContactFromJSON,
19
+ GovernanceContactFromJSONTyped,
20
+ GovernanceContactToJSON,
21
+ } from './GovernanceContact';
22
+ import type { GovernanceExpiryType } from './GovernanceExpiryType';
23
+ import {
24
+ GovernanceExpiryTypeFromJSON,
25
+ GovernanceExpiryTypeFromJSONTyped,
26
+ GovernanceExpiryTypeToJSON,
27
+ } from './GovernanceExpiryType';
28
+ import type { GovernanceFile } from './GovernanceFile';
29
+ import {
30
+ GovernanceFileFromJSON,
31
+ GovernanceFileFromJSONTyped,
32
+ GovernanceFileToJSON,
33
+ } from './GovernanceFile';
34
+ import type { GovernanceScope } from './GovernanceScope';
35
+ import {
36
+ GovernanceScopeFromJSON,
37
+ GovernanceScopeFromJSONTyped,
38
+ GovernanceScopeToJSON,
39
+ } from './GovernanceScope';
40
+ import type { GovernanceTrainingVerification } from './GovernanceTrainingVerification';
41
+ import {
42
+ GovernanceTrainingVerificationFromJSON,
43
+ GovernanceTrainingVerificationFromJSONTyped,
44
+ GovernanceTrainingVerificationToJSON,
45
+ } from './GovernanceTrainingVerification';
46
+ import type { GovernanceType } from './GovernanceType';
47
+ import {
48
+ GovernanceTypeFromJSON,
49
+ GovernanceTypeFromJSONTyped,
50
+ GovernanceTypeToJSON,
51
+ } from './GovernanceType';
52
+
53
+ /**
54
+ *
55
+ * @export
56
+ * @interface ProjectRequirement
57
+ */
58
+ export interface ProjectRequirement {
59
+ /**
60
+ * The unique identifier for the requirement
61
+ * @type {string}
62
+ * @memberof ProjectRequirement
63
+ */
64
+ id: string;
65
+ /**
66
+ * The name of the requirement
67
+ * @type {string}
68
+ * @memberof ProjectRequirement
69
+ */
70
+ name: string;
71
+ /**
72
+ * A brief description of the requirement
73
+ * @type {string}
74
+ * @memberof ProjectRequirement
75
+ */
76
+ description: string;
77
+ /**
78
+ *
79
+ * @type {GovernanceType}
80
+ * @memberof ProjectRequirement
81
+ */
82
+ type: GovernanceType;
83
+ /**
84
+ * S3 prefix where files for the requirement are saved
85
+ * @type {string}
86
+ * @memberof ProjectRequirement
87
+ */
88
+ path: string;
89
+ /**
90
+ *
91
+ * @type {GovernanceScope}
92
+ * @memberof ProjectRequirement
93
+ */
94
+ scope: GovernanceScope;
95
+ /**
96
+ *
97
+ * @type {GovernanceScope}
98
+ * @memberof ProjectRequirement
99
+ */
100
+ acceptance?: GovernanceScope | null;
101
+ /**
102
+ * The governance contacts assigned to the requirement.
103
+ * @type {Array<GovernanceContact>}
104
+ * @memberof ProjectRequirement
105
+ */
106
+ contacts: Array<GovernanceContact>;
107
+ /**
108
+ * The date of enactment for the requirement
109
+ * @type {Date}
110
+ * @memberof ProjectRequirement
111
+ */
112
+ enactmentDate?: Date | null;
113
+ /**
114
+ *
115
+ * @type {GovernanceExpiryType}
116
+ * @memberof ProjectRequirement
117
+ */
118
+ expirationType?: GovernanceExpiryType;
119
+ /**
120
+ * The number of days for a relative to completion expiration
121
+ * @type {number}
122
+ * @memberof ProjectRequirement
123
+ */
124
+ expirationDaysAfterCompletion?: number | null;
125
+ /**
126
+ * The date of expiration for the requirement
127
+ * @type {Date}
128
+ * @memberof ProjectRequirement
129
+ */
130
+ expirationDate?: Date | null;
131
+ /**
132
+ * Optional files with extra information, e.g. templates for documents, links, etc
133
+ * @type {Array<GovernanceFile>}
134
+ * @memberof ProjectRequirement
135
+ */
136
+ supplementalDocs?: Array<GovernanceFile> | null;
137
+ /**
138
+ *
139
+ * @type {GovernanceFile}
140
+ * @memberof ProjectRequirement
141
+ */
142
+ file?: GovernanceFile | null;
143
+ /**
144
+ *
145
+ * @type {GovernanceScope}
146
+ * @memberof ProjectRequirement
147
+ */
148
+ authorship?: GovernanceScope | null;
149
+ /**
150
+ *
151
+ * @type {GovernanceTrainingVerification}
152
+ * @memberof ProjectRequirement
153
+ */
154
+ verificationMethod?: GovernanceTrainingVerification | null;
155
+ /**
156
+ * Whether the current user has fulfilled the requirement for this project
157
+ * @type {boolean}
158
+ * @memberof ProjectRequirement
159
+ */
160
+ isFulfilled: boolean;
161
+ /**
162
+ * The date the requirement was fulfilled by the user
163
+ * @type {Date}
164
+ * @memberof ProjectRequirement
165
+ */
166
+ fulfillmentDate?: Date | null;
167
+ /**
168
+ * The optional file uploaded to fulfill the requirement
169
+ * @type {string}
170
+ * @memberof ProjectRequirement
171
+ */
172
+ fulfillmentFile?: string | null;
173
+ }
174
+
175
+ /**
176
+ * Check if a given object implements the ProjectRequirement interface.
177
+ */
178
+ export function instanceOfProjectRequirement(value: object): boolean {
179
+ let isInstance = true;
180
+ isInstance = isInstance && "id" in value;
181
+ isInstance = isInstance && "name" in value;
182
+ isInstance = isInstance && "description" in value;
183
+ isInstance = isInstance && "type" in value;
184
+ isInstance = isInstance && "path" in value;
185
+ isInstance = isInstance && "scope" in value;
186
+ isInstance = isInstance && "contacts" in value;
187
+ isInstance = isInstance && "isFulfilled" in value;
188
+
189
+ return isInstance;
190
+ }
191
+
192
+ export function ProjectRequirementFromJSON(json: any): ProjectRequirement {
193
+ return ProjectRequirementFromJSONTyped(json, false);
194
+ }
195
+
196
+ export function ProjectRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectRequirement {
197
+ if ((json === undefined) || (json === null)) {
198
+ return json;
199
+ }
200
+ return {
201
+
202
+ 'id': json['id'],
203
+ 'name': json['name'],
204
+ 'description': json['description'],
205
+ 'type': GovernanceTypeFromJSON(json['type']),
206
+ 'path': json['path'],
207
+ 'scope': GovernanceScopeFromJSON(json['scope']),
208
+ 'acceptance': !exists(json, 'acceptance') ? undefined : GovernanceScopeFromJSON(json['acceptance']),
209
+ 'contacts': ((json['contacts'] as Array<any>).map(GovernanceContactFromJSON)),
210
+ 'enactmentDate': !exists(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
211
+ 'expirationType': !exists(json, 'expirationType') ? undefined : GovernanceExpiryTypeFromJSON(json['expirationType']),
212
+ 'expirationDaysAfterCompletion': !exists(json, 'expirationDaysAfterCompletion') ? undefined : json['expirationDaysAfterCompletion'],
213
+ 'expirationDate': !exists(json, 'expirationDate') ? undefined : (json['expirationDate'] === null ? null : new Date(json['expirationDate'])),
214
+ 'supplementalDocs': !exists(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : (json['supplementalDocs'] as Array<any>).map(GovernanceFileFromJSON)),
215
+ 'file': !exists(json, 'file') ? undefined : GovernanceFileFromJSON(json['file']),
216
+ 'authorship': !exists(json, 'authorship') ? undefined : GovernanceScopeFromJSON(json['authorship']),
217
+ 'verificationMethod': !exists(json, 'verificationMethod') ? undefined : GovernanceTrainingVerificationFromJSON(json['verificationMethod']),
218
+ 'isFulfilled': json['isFulfilled'],
219
+ 'fulfillmentDate': !exists(json, 'fulfillmentDate') ? undefined : (json['fulfillmentDate'] === null ? null : new Date(json['fulfillmentDate'])),
220
+ 'fulfillmentFile': !exists(json, 'fulfillmentFile') ? undefined : json['fulfillmentFile'],
221
+ };
222
+ }
223
+
224
+ export function ProjectRequirementToJSON(value?: ProjectRequirement | null): any {
225
+ if (value === undefined) {
226
+ return undefined;
227
+ }
228
+ if (value === null) {
229
+ return null;
230
+ }
231
+ return {
232
+
233
+ 'id': value.id,
234
+ 'name': value.name,
235
+ 'description': value.description,
236
+ 'type': GovernanceTypeToJSON(value.type),
237
+ 'path': value.path,
238
+ 'scope': GovernanceScopeToJSON(value.scope),
239
+ 'acceptance': GovernanceScopeToJSON(value.acceptance),
240
+ 'contacts': ((value.contacts as Array<any>).map(GovernanceContactToJSON)),
241
+ 'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
242
+ 'expirationType': GovernanceExpiryTypeToJSON(value.expirationType),
243
+ 'expirationDaysAfterCompletion': value.expirationDaysAfterCompletion,
244
+ 'expirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate === null ? null : value.expirationDate.toISOString()),
245
+ 'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : (value.supplementalDocs as Array<any>).map(GovernanceFileToJSON)),
246
+ 'file': GovernanceFileToJSON(value.file),
247
+ 'authorship': GovernanceScopeToJSON(value.authorship),
248
+ 'verificationMethod': GovernanceTrainingVerificationToJSON(value.verificationMethod),
249
+ 'isFulfilled': value.isFulfilled,
250
+ 'fulfillmentDate': value.fulfillmentDate === undefined ? undefined : (value.fulfillmentDate === null ? null : value.fulfillmentDate.toISOString()),
251
+ 'fulfillmentFile': value.fulfillmentFile,
252
+ };
253
+ }
254
+
@@ -0,0 +1,65 @@
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 RequirementFulfillmentInput
20
+ */
21
+ export interface RequirementFulfillmentInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RequirementFulfillmentInput
26
+ */
27
+ file?: string | null;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the RequirementFulfillmentInput interface.
32
+ */
33
+ export function instanceOfRequirementFulfillmentInput(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function RequirementFulfillmentInputFromJSON(json: any): RequirementFulfillmentInput {
40
+ return RequirementFulfillmentInputFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function RequirementFulfillmentInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequirementFulfillmentInput {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'file': !exists(json, 'file') ? undefined : json['file'],
50
+ };
51
+ }
52
+
53
+ export function RequirementFulfillmentInputToJSON(value?: RequirementFulfillmentInput | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'file': value.file,
63
+ };
64
+ }
65
+
@@ -121,7 +121,7 @@ export interface RequirementInput {
121
121
  * @type {GovernanceTrainingVerification}
122
122
  * @memberof RequirementInput
123
123
  */
124
- verification?: GovernanceTrainingVerification | null;
124
+ verificationMethod?: GovernanceTrainingVerification | null;
125
125
  }
126
126
 
127
127
  /**
@@ -160,7 +160,7 @@ export function RequirementInputFromJSONTyped(json: any, ignoreDiscriminator: bo
160
160
  'supplementalDocs': !exists(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : (json['supplementalDocs'] as Array<any>).map(GovernanceFileFromJSON)),
161
161
  'file': !exists(json, 'file') ? undefined : GovernanceFileFromJSON(json['file']),
162
162
  'authorship': !exists(json, 'authorship') ? undefined : GovernanceScopeFromJSON(json['authorship']),
163
- 'verification': !exists(json, 'verification') ? undefined : GovernanceTrainingVerificationFromJSON(json['verification']),
163
+ 'verificationMethod': !exists(json, 'verificationMethod') ? undefined : GovernanceTrainingVerificationFromJSON(json['verificationMethod']),
164
164
  };
165
165
  }
166
166
 
@@ -184,7 +184,7 @@ export function RequirementInputToJSON(value?: RequirementInput | null): any {
184
184
  'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : (value.supplementalDocs as Array<any>).map(GovernanceFileToJSON)),
185
185
  'file': GovernanceFileToJSON(value.file),
186
186
  'authorship': GovernanceScopeToJSON(value.authorship),
187
- 'verification': GovernanceTrainingVerificationToJSON(value.verification),
187
+ 'verificationMethod': GovernanceTrainingVerificationToJSON(value.verificationMethod),
188
188
  };
189
189
  }
190
190
 
@@ -1,7 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AWSCredentials';
4
- export * from './AccessType';
5
4
  export * from './Agent';
6
5
  export * from './AgentDetail';
7
6
  export * from './AgentInput';
@@ -41,19 +40,21 @@ export * from './EnvironmentType';
41
40
  export * from './ErrorMessage';
42
41
  export * from './Executor';
43
42
  export * from './FeatureFlags';
44
- export * from './FileAccessRequest';
45
43
  export * from './FileEntry';
46
44
  export * from './FileMappingRule';
47
45
  export * from './FileNamePattern';
48
46
  export * from './FileRequirements';
49
47
  export * from './FormSchema';
48
+ export * from './FulfillmentResponse';
50
49
  export * from './GenerateSftpCredentialsRequest';
51
50
  export * from './GetExecutionLogsResponse';
51
+ export * from './GovernanceAccessType';
52
52
  export * from './GovernanceClassification';
53
53
  export * from './GovernanceContact';
54
54
  export * from './GovernanceExpiry';
55
55
  export * from './GovernanceExpiryType';
56
56
  export * from './GovernanceFile';
57
+ export * from './GovernanceFileAccessRequest';
57
58
  export * from './GovernanceFileType';
58
59
  export * from './GovernanceRequirement';
59
60
  export * from './GovernanceScope';
@@ -81,11 +82,14 @@ export * from './Process';
81
82
  export * from './ProcessDetail';
82
83
  export * from './Project';
83
84
  export * from './ProjectAccessRequest';
85
+ export * from './ProjectAccessType';
84
86
  export * from './ProjectCreateOptions';
85
87
  export * from './ProjectDetail';
88
+ export * from './ProjectFileAccessRequest';
86
89
  export * from './ProjectInput';
87
90
  export * from './ProjectMetrics';
88
91
  export * from './ProjectRequest';
92
+ export * from './ProjectRequirement';
89
93
  export * from './ProjectRole';
90
94
  export * from './ProjectSettings';
91
95
  export * from './ProjectUser';
@@ -93,6 +97,7 @@ export * from './Reference';
93
97
  export * from './ReferenceType';
94
98
  export * from './RepositoryType';
95
99
  export * from './RequestStatus';
100
+ export * from './RequirementFulfillmentInput';
96
101
  export * from './RequirementInput';
97
102
  export * from './ResourcesInfo';
98
103
  export * from './RunAnalysisRequest';
@@ -1,43 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Cirro Data
6
- * Cirro Data Platform service API
7
- *
8
- * The version of the OpenAPI document: latest
9
- * Contact: support@cirro.bio
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AccessTypeToJSON = exports.AccessTypeFromJSONTyped = exports.AccessTypeFromJSON = exports.AccessType = void 0;
17
- /**
18
- *
19
- * @export
20
- * @enum {string}
21
- */
22
- var AccessType;
23
- (function (AccessType) {
24
- AccessType["DatasetUpload"] = "DATASET_UPLOAD";
25
- AccessType["SharedDatasetDownload"] = "SHARED_DATASET_DOWNLOAD";
26
- AccessType["SamplesheetUpload"] = "SAMPLESHEET_UPLOAD";
27
- AccessType["ReferenceUpload"] = "REFERENCE_UPLOAD";
28
- AccessType["ProjectDownload"] = "PROJECT_DOWNLOAD";
29
- AccessType["GovernanceUpload"] = "GOVERNANCE_UPLOAD";
30
- AccessType["GovernanceDownload"] = "GOVERNANCE_DOWNLOAD";
31
- })(AccessType = exports.AccessType || (exports.AccessType = {}));
32
- function AccessTypeFromJSON(json) {
33
- return AccessTypeFromJSONTyped(json, false);
34
- }
35
- exports.AccessTypeFromJSON = AccessTypeFromJSON;
36
- function AccessTypeFromJSONTyped(json, ignoreDiscriminator) {
37
- return json;
38
- }
39
- exports.AccessTypeFromJSONTyped = AccessTypeFromJSONTyped;
40
- function AccessTypeToJSON(value) {
41
- return value;
42
- }
43
- exports.AccessTypeToJSON = AccessTypeToJSON;
@@ -1,44 +0,0 @@
1
- /**
2
- * Cirro Data
3
- * Cirro Data Platform service API
4
- *
5
- * The version of the OpenAPI document: latest
6
- * Contact: support@cirro.bio
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { AccessType } from './AccessType';
13
- /**
14
- *
15
- * @export
16
- * @interface FileAccessRequest
17
- */
18
- export interface FileAccessRequest {
19
- /**
20
- *
21
- * @type {AccessType}
22
- * @memberof FileAccessRequest
23
- */
24
- accessType: AccessType;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof FileAccessRequest
29
- */
30
- datasetId?: string | null;
31
- /**
32
- *
33
- * @type {number}
34
- * @memberof FileAccessRequest
35
- */
36
- tokenLifetimeHours?: number | null;
37
- }
38
- /**
39
- * Check if a given object implements the FileAccessRequest interface.
40
- */
41
- export declare function instanceOfFileAccessRequest(value: object): boolean;
42
- export declare function FileAccessRequestFromJSON(json: any): FileAccessRequest;
43
- export declare function FileAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileAccessRequest;
44
- export declare function FileAccessRequestToJSON(value?: FileAccessRequest | null): any;