@cirrobio/api-client 0.2.0 → 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 +11 -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 +5 -3
- package/dist/apis/SharingApi.js +7 -1
- 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/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/RequirementInput.d.ts +96 -0
- package/dist/models/RequirementInput.js +81 -0
- package/dist/models/ShareDetail.d.ts +1 -1
- package/dist/models/ShareDetail.js +3 -3
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -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 +16 -6
- package/src/models/AccessType.ts +3 -1
- package/src/models/ClassificationInput.ts +9 -0
- package/src/models/ContactInput.ts +102 -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/RequirementInput.ts +182 -0
- package/src/models/ShareDetail.ts +4 -3
- package/src/models/index.ts +11 -0
- package/src/runtime.ts +1 -1
|
@@ -16,32 +16,78 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ClassificationInput,
|
|
19
|
+
ContactInput,
|
|
19
20
|
GovernanceClassification,
|
|
21
|
+
GovernanceContact,
|
|
22
|
+
GovernanceRequirement,
|
|
23
|
+
RequirementInput,
|
|
20
24
|
} from '../models/index';
|
|
21
25
|
import {
|
|
22
26
|
ClassificationInputFromJSON,
|
|
23
27
|
ClassificationInputToJSON,
|
|
28
|
+
ContactInputFromJSON,
|
|
29
|
+
ContactInputToJSON,
|
|
24
30
|
GovernanceClassificationFromJSON,
|
|
25
31
|
GovernanceClassificationToJSON,
|
|
32
|
+
GovernanceContactFromJSON,
|
|
33
|
+
GovernanceContactToJSON,
|
|
34
|
+
GovernanceRequirementFromJSON,
|
|
35
|
+
GovernanceRequirementToJSON,
|
|
36
|
+
RequirementInputFromJSON,
|
|
37
|
+
RequirementInputToJSON,
|
|
26
38
|
} from '../models/index';
|
|
27
39
|
|
|
28
40
|
export interface CreateClassificationRequest {
|
|
29
41
|
classificationInput: ClassificationInput;
|
|
30
42
|
}
|
|
31
43
|
|
|
44
|
+
export interface CreateContactRequest {
|
|
45
|
+
contactInput: ContactInput;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface CreateRequirementRequest {
|
|
49
|
+
requirementInput: RequirementInput;
|
|
50
|
+
}
|
|
51
|
+
|
|
32
52
|
export interface DeleteClassificationRequest {
|
|
33
53
|
classificationId: string;
|
|
34
54
|
}
|
|
35
55
|
|
|
56
|
+
export interface DeleteContactRequest {
|
|
57
|
+
contactId: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface DeleteRequirementRequest {
|
|
61
|
+
requirementId: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
36
64
|
export interface GetClassificationRequest {
|
|
37
65
|
classificationId: string;
|
|
38
66
|
}
|
|
39
67
|
|
|
68
|
+
export interface GetContactRequest {
|
|
69
|
+
contactId: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface GetRequirementRequest {
|
|
73
|
+
requirementId: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
40
76
|
export interface UpdateClassificationRequest {
|
|
41
77
|
classificationId: string;
|
|
42
78
|
classificationInput: ClassificationInput;
|
|
43
79
|
}
|
|
44
80
|
|
|
81
|
+
export interface UpdateContactRequest {
|
|
82
|
+
contactId: string;
|
|
83
|
+
contactInput: ContactInput;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface UpdateRequirementRequest {
|
|
87
|
+
requirementId: string;
|
|
88
|
+
requirementInput: RequirementInput;
|
|
89
|
+
}
|
|
90
|
+
|
|
45
91
|
/**
|
|
46
92
|
*
|
|
47
93
|
*/
|
|
@@ -72,7 +118,7 @@ export class GovernanceApi extends runtime.BaseAPI {
|
|
|
72
118
|
}
|
|
73
119
|
const response = await this.request({
|
|
74
120
|
path: `/governance/classifications`,
|
|
75
|
-
method: '
|
|
121
|
+
method: 'POST',
|
|
76
122
|
headers: headerParameters,
|
|
77
123
|
query: queryParameters,
|
|
78
124
|
body: ClassificationInputToJSON(requestParameters.classificationInput),
|
|
@@ -90,6 +136,92 @@ export class GovernanceApi extends runtime.BaseAPI {
|
|
|
90
136
|
return await response.value();
|
|
91
137
|
}
|
|
92
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Creates a contact
|
|
141
|
+
* Create contact
|
|
142
|
+
*/
|
|
143
|
+
async createContactRaw(requestParameters: CreateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GovernanceContact>> {
|
|
144
|
+
if (requestParameters.contactInput === null || requestParameters.contactInput === undefined) {
|
|
145
|
+
throw new runtime.RequiredError('contactInput','Required parameter requestParameters.contactInput was null or undefined when calling createContact.');
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
154
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
155
|
+
const token = this.configuration.accessToken;
|
|
156
|
+
const tokenString = await token("accessToken", []);
|
|
157
|
+
|
|
158
|
+
if (tokenString) {
|
|
159
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const response = await this.request({
|
|
163
|
+
path: `/governance/contacts`,
|
|
164
|
+
method: 'POST',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
body: ContactInputToJSON(requestParameters.contactInput),
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GovernanceContactFromJSON(jsonValue));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Creates a contact
|
|
175
|
+
* Create contact
|
|
176
|
+
*/
|
|
177
|
+
async createContact(requestParameters: CreateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GovernanceContact> {
|
|
178
|
+
const response = await this.createContactRaw(requestParameters, initOverrides);
|
|
179
|
+
return await response.value();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Creates a requirement
|
|
184
|
+
* Create requirement
|
|
185
|
+
*/
|
|
186
|
+
async createRequirementRaw(requestParameters: CreateRequirementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GovernanceRequirement>> {
|
|
187
|
+
if (requestParameters.requirementInput === null || requestParameters.requirementInput === undefined) {
|
|
188
|
+
throw new runtime.RequiredError('requirementInput','Required parameter requestParameters.requirementInput was null or undefined when calling createRequirement.');
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const queryParameters: any = {};
|
|
192
|
+
|
|
193
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
194
|
+
|
|
195
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
196
|
+
|
|
197
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
198
|
+
const token = this.configuration.accessToken;
|
|
199
|
+
const tokenString = await token("accessToken", []);
|
|
200
|
+
|
|
201
|
+
if (tokenString) {
|
|
202
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
const response = await this.request({
|
|
206
|
+
path: `/governance/requirements`,
|
|
207
|
+
method: 'POST',
|
|
208
|
+
headers: headerParameters,
|
|
209
|
+
query: queryParameters,
|
|
210
|
+
body: RequirementInputToJSON(requestParameters.requirementInput),
|
|
211
|
+
}, initOverrides);
|
|
212
|
+
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GovernanceRequirementFromJSON(jsonValue));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Creates a requirement
|
|
218
|
+
* Create requirement
|
|
219
|
+
*/
|
|
220
|
+
async createRequirement(requestParameters: CreateRequirementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GovernanceRequirement> {
|
|
221
|
+
const response = await this.createRequirementRaw(requestParameters, initOverrides);
|
|
222
|
+
return await response.value();
|
|
223
|
+
}
|
|
224
|
+
|
|
93
225
|
/**
|
|
94
226
|
* Deletes the classification, and removes it from all projects.
|
|
95
227
|
* Delete a classification
|
|
@@ -129,6 +261,84 @@ export class GovernanceApi extends runtime.BaseAPI {
|
|
|
129
261
|
await this.deleteClassificationRaw(requestParameters, initOverrides);
|
|
130
262
|
}
|
|
131
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Deletes the contact, and removes it from all governance requirements.
|
|
266
|
+
* Delete a contact
|
|
267
|
+
*/
|
|
268
|
+
async deleteContactRaw(requestParameters: DeleteContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
269
|
+
if (requestParameters.contactId === null || requestParameters.contactId === undefined) {
|
|
270
|
+
throw new runtime.RequiredError('contactId','Required parameter requestParameters.contactId was null or undefined when calling deleteContact.');
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const queryParameters: any = {};
|
|
274
|
+
|
|
275
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
276
|
+
|
|
277
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
278
|
+
const token = this.configuration.accessToken;
|
|
279
|
+
const tokenString = await token("accessToken", []);
|
|
280
|
+
|
|
281
|
+
if (tokenString) {
|
|
282
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const response = await this.request({
|
|
286
|
+
path: `/governance/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(requestParameters.contactId))),
|
|
287
|
+
method: 'DELETE',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
|
|
292
|
+
return new runtime.VoidApiResponse(response);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Deletes the contact, and removes it from all governance requirements.
|
|
297
|
+
* Delete a contact
|
|
298
|
+
*/
|
|
299
|
+
async deleteContact(requestParameters: DeleteContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
300
|
+
await this.deleteContactRaw(requestParameters, initOverrides);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Deletes the requirement, and removes it from all governance fulfillments and classifications.
|
|
305
|
+
* Delete a requirement
|
|
306
|
+
*/
|
|
307
|
+
async deleteRequirementRaw(requestParameters: DeleteRequirementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
308
|
+
if (requestParameters.requirementId === null || requestParameters.requirementId === undefined) {
|
|
309
|
+
throw new runtime.RequiredError('requirementId','Required parameter requestParameters.requirementId was null or undefined when calling deleteRequirement.');
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const queryParameters: any = {};
|
|
313
|
+
|
|
314
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
315
|
+
|
|
316
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
317
|
+
const token = this.configuration.accessToken;
|
|
318
|
+
const tokenString = await token("accessToken", []);
|
|
319
|
+
|
|
320
|
+
if (tokenString) {
|
|
321
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
const response = await this.request({
|
|
325
|
+
path: `/governance/requirements/{requirementId}`.replace(`{${"requirementId"}}`, encodeURIComponent(String(requestParameters.requirementId))),
|
|
326
|
+
method: 'DELETE',
|
|
327
|
+
headers: headerParameters,
|
|
328
|
+
query: queryParameters,
|
|
329
|
+
}, initOverrides);
|
|
330
|
+
|
|
331
|
+
return new runtime.VoidApiResponse(response);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Deletes the requirement, and removes it from all governance fulfillments and classifications.
|
|
336
|
+
* Delete a requirement
|
|
337
|
+
*/
|
|
338
|
+
async deleteRequirement(requestParameters: DeleteRequirementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
339
|
+
await this.deleteRequirementRaw(requestParameters, initOverrides);
|
|
340
|
+
}
|
|
341
|
+
|
|
132
342
|
/**
|
|
133
343
|
* Retrieve a data classification
|
|
134
344
|
* Get a classification
|
|
@@ -205,6 +415,158 @@ export class GovernanceApi extends runtime.BaseAPI {
|
|
|
205
415
|
return await response.value();
|
|
206
416
|
}
|
|
207
417
|
|
|
418
|
+
/**
|
|
419
|
+
* Retrieve a governance contact
|
|
420
|
+
* Get a contact
|
|
421
|
+
*/
|
|
422
|
+
async getContactRaw(requestParameters: GetContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GovernanceContact>> {
|
|
423
|
+
if (requestParameters.contactId === null || requestParameters.contactId === undefined) {
|
|
424
|
+
throw new runtime.RequiredError('contactId','Required parameter requestParameters.contactId was null or undefined when calling getContact.');
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const queryParameters: any = {};
|
|
428
|
+
|
|
429
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
430
|
+
|
|
431
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
432
|
+
const token = this.configuration.accessToken;
|
|
433
|
+
const tokenString = await token("accessToken", []);
|
|
434
|
+
|
|
435
|
+
if (tokenString) {
|
|
436
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
const response = await this.request({
|
|
440
|
+
path: `/governance/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(requestParameters.contactId))),
|
|
441
|
+
method: 'GET',
|
|
442
|
+
headers: headerParameters,
|
|
443
|
+
query: queryParameters,
|
|
444
|
+
}, initOverrides);
|
|
445
|
+
|
|
446
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GovernanceContactFromJSON(jsonValue));
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Retrieve a governance contact
|
|
451
|
+
* Get a contact
|
|
452
|
+
*/
|
|
453
|
+
async getContact(requestParameters: GetContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GovernanceContact> {
|
|
454
|
+
const response = await this.getContactRaw(requestParameters, initOverrides);
|
|
455
|
+
return await response.value();
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Retrieve a list of governance contacts
|
|
460
|
+
* Get contacts
|
|
461
|
+
*/
|
|
462
|
+
async getContactsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GovernanceContact>>> {
|
|
463
|
+
const queryParameters: any = {};
|
|
464
|
+
|
|
465
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
466
|
+
|
|
467
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
468
|
+
const token = this.configuration.accessToken;
|
|
469
|
+
const tokenString = await token("accessToken", []);
|
|
470
|
+
|
|
471
|
+
if (tokenString) {
|
|
472
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
const response = await this.request({
|
|
476
|
+
path: `/governance/contacts`,
|
|
477
|
+
method: 'GET',
|
|
478
|
+
headers: headerParameters,
|
|
479
|
+
query: queryParameters,
|
|
480
|
+
}, initOverrides);
|
|
481
|
+
|
|
482
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GovernanceContactFromJSON));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Retrieve a list of governance contacts
|
|
487
|
+
* Get contacts
|
|
488
|
+
*/
|
|
489
|
+
async getContacts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GovernanceContact>> {
|
|
490
|
+
const response = await this.getContactsRaw(initOverrides);
|
|
491
|
+
return await response.value();
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Retrieve a governance requirement
|
|
496
|
+
* Get a requirement
|
|
497
|
+
*/
|
|
498
|
+
async getRequirementRaw(requestParameters: GetRequirementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GovernanceRequirement>> {
|
|
499
|
+
if (requestParameters.requirementId === null || requestParameters.requirementId === undefined) {
|
|
500
|
+
throw new runtime.RequiredError('requirementId','Required parameter requestParameters.requirementId was null or undefined when calling getRequirement.');
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
const queryParameters: any = {};
|
|
504
|
+
|
|
505
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
506
|
+
|
|
507
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
508
|
+
const token = this.configuration.accessToken;
|
|
509
|
+
const tokenString = await token("accessToken", []);
|
|
510
|
+
|
|
511
|
+
if (tokenString) {
|
|
512
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
const response = await this.request({
|
|
516
|
+
path: `/governance/requirements/{requirementId}`.replace(`{${"requirementId"}}`, encodeURIComponent(String(requestParameters.requirementId))),
|
|
517
|
+
method: 'GET',
|
|
518
|
+
headers: headerParameters,
|
|
519
|
+
query: queryParameters,
|
|
520
|
+
}, initOverrides);
|
|
521
|
+
|
|
522
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GovernanceRequirementFromJSON(jsonValue));
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Retrieve a governance requirement
|
|
527
|
+
* Get a requirement
|
|
528
|
+
*/
|
|
529
|
+
async getRequirement(requestParameters: GetRequirementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GovernanceRequirement> {
|
|
530
|
+
const response = await this.getRequirementRaw(requestParameters, initOverrides);
|
|
531
|
+
return await response.value();
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Retrieve a list of governance requirements
|
|
536
|
+
* Get requirements
|
|
537
|
+
*/
|
|
538
|
+
async getRequirementsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GovernanceRequirement>>> {
|
|
539
|
+
const queryParameters: any = {};
|
|
540
|
+
|
|
541
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
542
|
+
|
|
543
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
544
|
+
const token = this.configuration.accessToken;
|
|
545
|
+
const tokenString = await token("accessToken", []);
|
|
546
|
+
|
|
547
|
+
if (tokenString) {
|
|
548
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
const response = await this.request({
|
|
552
|
+
path: `/governance/requirements`,
|
|
553
|
+
method: 'GET',
|
|
554
|
+
headers: headerParameters,
|
|
555
|
+
query: queryParameters,
|
|
556
|
+
}, initOverrides);
|
|
557
|
+
|
|
558
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GovernanceRequirementFromJSON));
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Retrieve a list of governance requirements
|
|
563
|
+
* Get requirements
|
|
564
|
+
*/
|
|
565
|
+
async getRequirements(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GovernanceRequirement>> {
|
|
566
|
+
const response = await this.getRequirementsRaw(initOverrides);
|
|
567
|
+
return await response.value();
|
|
568
|
+
}
|
|
569
|
+
|
|
208
570
|
/**
|
|
209
571
|
* Updates a classification
|
|
210
572
|
* Update classification
|
|
@@ -252,4 +614,98 @@ export class GovernanceApi extends runtime.BaseAPI {
|
|
|
252
614
|
return await response.value();
|
|
253
615
|
}
|
|
254
616
|
|
|
617
|
+
/**
|
|
618
|
+
* Updates a contact
|
|
619
|
+
* Update contact
|
|
620
|
+
*/
|
|
621
|
+
async updateContactRaw(requestParameters: UpdateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GovernanceContact>> {
|
|
622
|
+
if (requestParameters.contactId === null || requestParameters.contactId === undefined) {
|
|
623
|
+
throw new runtime.RequiredError('contactId','Required parameter requestParameters.contactId was null or undefined when calling updateContact.');
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
if (requestParameters.contactInput === null || requestParameters.contactInput === undefined) {
|
|
627
|
+
throw new runtime.RequiredError('contactInput','Required parameter requestParameters.contactInput was null or undefined when calling updateContact.');
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
const queryParameters: any = {};
|
|
631
|
+
|
|
632
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
633
|
+
|
|
634
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
635
|
+
|
|
636
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
637
|
+
const token = this.configuration.accessToken;
|
|
638
|
+
const tokenString = await token("accessToken", []);
|
|
639
|
+
|
|
640
|
+
if (tokenString) {
|
|
641
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
const response = await this.request({
|
|
645
|
+
path: `/governance/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(requestParameters.contactId))),
|
|
646
|
+
method: 'PUT',
|
|
647
|
+
headers: headerParameters,
|
|
648
|
+
query: queryParameters,
|
|
649
|
+
body: ContactInputToJSON(requestParameters.contactInput),
|
|
650
|
+
}, initOverrides);
|
|
651
|
+
|
|
652
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GovernanceContactFromJSON(jsonValue));
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Updates a contact
|
|
657
|
+
* Update contact
|
|
658
|
+
*/
|
|
659
|
+
async updateContact(requestParameters: UpdateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GovernanceContact> {
|
|
660
|
+
const response = await this.updateContactRaw(requestParameters, initOverrides);
|
|
661
|
+
return await response.value();
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Updates a requirement
|
|
666
|
+
* Update requirement
|
|
667
|
+
*/
|
|
668
|
+
async updateRequirementRaw(requestParameters: UpdateRequirementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GovernanceRequirement>> {
|
|
669
|
+
if (requestParameters.requirementId === null || requestParameters.requirementId === undefined) {
|
|
670
|
+
throw new runtime.RequiredError('requirementId','Required parameter requestParameters.requirementId was null or undefined when calling updateRequirement.');
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if (requestParameters.requirementInput === null || requestParameters.requirementInput === undefined) {
|
|
674
|
+
throw new runtime.RequiredError('requirementInput','Required parameter requestParameters.requirementInput was null or undefined when calling updateRequirement.');
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
const queryParameters: any = {};
|
|
678
|
+
|
|
679
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
680
|
+
|
|
681
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
682
|
+
|
|
683
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
684
|
+
const token = this.configuration.accessToken;
|
|
685
|
+
const tokenString = await token("accessToken", []);
|
|
686
|
+
|
|
687
|
+
if (tokenString) {
|
|
688
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
const response = await this.request({
|
|
692
|
+
path: `/governance/requirements/{requirementId}`.replace(`{${"requirementId"}}`, encodeURIComponent(String(requestParameters.requirementId))),
|
|
693
|
+
method: 'PUT',
|
|
694
|
+
headers: headerParameters,
|
|
695
|
+
query: queryParameters,
|
|
696
|
+
body: RequirementInputToJSON(requestParameters.requirementInput),
|
|
697
|
+
}, initOverrides);
|
|
698
|
+
|
|
699
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GovernanceRequirementFromJSON(jsonValue));
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Updates a requirement
|
|
704
|
+
* Update requirement
|
|
705
|
+
*/
|
|
706
|
+
async updateRequirement(requestParameters: UpdateRequirementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GovernanceRequirement> {
|
|
707
|
+
const response = await this.updateRequirementRaw(requestParameters, initOverrides);
|
|
708
|
+
return await response.value();
|
|
709
|
+
}
|
|
710
|
+
|
|
255
711
|
}
|
package/src/apis/SharingApi.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
CreateResponse,
|
|
19
|
-
|
|
19
|
+
PaginatedResponseDatasetListDto,
|
|
20
20
|
Share,
|
|
21
21
|
ShareDetail,
|
|
22
22
|
ShareInput,
|
|
@@ -24,8 +24,8 @@ import type {
|
|
|
24
24
|
import {
|
|
25
25
|
CreateResponseFromJSON,
|
|
26
26
|
CreateResponseToJSON,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
PaginatedResponseDatasetListDtoFromJSON,
|
|
28
|
+
PaginatedResponseDatasetListDtoToJSON,
|
|
29
29
|
ShareFromJSON,
|
|
30
30
|
ShareToJSON,
|
|
31
31
|
ShareDetailFromJSON,
|
|
@@ -56,6 +56,8 @@ export interface GetShareRequest {
|
|
|
56
56
|
export interface GetSharedDatasetsRequest {
|
|
57
57
|
projectId: string;
|
|
58
58
|
shareId: string;
|
|
59
|
+
limit?: number;
|
|
60
|
+
nextToken?: string;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
export interface GetSharesRequest {
|
|
@@ -256,7 +258,7 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
256
258
|
* Get dataset listing for a share
|
|
257
259
|
* Get share datasets
|
|
258
260
|
*/
|
|
259
|
-
async getSharedDatasetsRaw(requestParameters: GetSharedDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
261
|
+
async getSharedDatasetsRaw(requestParameters: GetSharedDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseDatasetListDto>> {
|
|
260
262
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
261
263
|
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getSharedDatasets.');
|
|
262
264
|
}
|
|
@@ -267,6 +269,14 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
267
269
|
|
|
268
270
|
const queryParameters: any = {};
|
|
269
271
|
|
|
272
|
+
if (requestParameters.limit !== undefined) {
|
|
273
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (requestParameters.nextToken !== undefined) {
|
|
277
|
+
queryParameters['nextToken'] = requestParameters.nextToken;
|
|
278
|
+
}
|
|
279
|
+
|
|
270
280
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
271
281
|
|
|
272
282
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -284,14 +294,14 @@ export class SharingApi extends runtime.BaseAPI {
|
|
|
284
294
|
query: queryParameters,
|
|
285
295
|
}, initOverrides);
|
|
286
296
|
|
|
287
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
297
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseDatasetListDtoFromJSON(jsonValue));
|
|
288
298
|
}
|
|
289
299
|
|
|
290
300
|
/**
|
|
291
301
|
* Get dataset listing for a share
|
|
292
302
|
* Get share datasets
|
|
293
303
|
*/
|
|
294
|
-
async getSharedDatasets(requestParameters: GetSharedDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
304
|
+
async getSharedDatasets(requestParameters: GetSharedDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseDatasetListDto> {
|
|
295
305
|
const response = await this.getSharedDatasetsRaw(requestParameters, initOverrides);
|
|
296
306
|
return await response.value();
|
|
297
307
|
}
|
package/src/models/AccessType.ts
CHANGED
|
@@ -21,7 +21,9 @@ export enum AccessType {
|
|
|
21
21
|
DatasetUpload = 'DATASET_UPLOAD',
|
|
22
22
|
SamplesheetUpload = 'SAMPLESHEET_UPLOAD',
|
|
23
23
|
ReferenceUpload = 'REFERENCE_UPLOAD',
|
|
24
|
-
ProjectDownload = 'PROJECT_DOWNLOAD'
|
|
24
|
+
ProjectDownload = 'PROJECT_DOWNLOAD',
|
|
25
|
+
GovernanceUpload = 'GOVERNANCE_UPLOAD',
|
|
26
|
+
GovernanceDownload = 'GOVERNANCE_DOWNLOAD'
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
|
|
@@ -31,6 +31,12 @@ export interface ClassificationInput {
|
|
|
31
31
|
* @memberof ClassificationInput
|
|
32
32
|
*/
|
|
33
33
|
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof ClassificationInput
|
|
38
|
+
*/
|
|
39
|
+
requirementIds: Array<string>;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -40,6 +46,7 @@ export function instanceOfClassificationInput(value: object): boolean {
|
|
|
40
46
|
let isInstance = true;
|
|
41
47
|
isInstance = isInstance && "name" in value;
|
|
42
48
|
isInstance = isInstance && "description" in value;
|
|
49
|
+
isInstance = isInstance && "requirementIds" in value;
|
|
43
50
|
|
|
44
51
|
return isInstance;
|
|
45
52
|
}
|
|
@@ -56,6 +63,7 @@ export function ClassificationInputFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
56
63
|
|
|
57
64
|
'name': json['name'],
|
|
58
65
|
'description': json['description'],
|
|
66
|
+
'requirementIds': json['requirementIds'],
|
|
59
67
|
};
|
|
60
68
|
}
|
|
61
69
|
|
|
@@ -70,6 +78,7 @@ export function ClassificationInputToJSON(value?: ClassificationInput | null): a
|
|
|
70
78
|
|
|
71
79
|
'name': value.name,
|
|
72
80
|
'description': value.description,
|
|
81
|
+
'requirementIds': value.requirementIds,
|
|
73
82
|
};
|
|
74
83
|
}
|
|
75
84
|
|