@cirrobio/api-client 0.2.8 → 0.2.10
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 +7 -2
- package/README.md +1 -1
- package/dist/apis/FileApi.d.ts +3 -3
- package/dist/apis/FileApi.js +6 -6
- package/dist/apis/GovernanceApi.d.ts +29 -1
- package/dist/apis/GovernanceApi.js +118 -0
- package/dist/models/FulfillmentResponse.d.ts +37 -0
- package/dist/models/FulfillmentResponse.js +53 -0
- package/dist/models/GovernanceAccessType.d.ts +25 -0
- package/dist/models/GovernanceAccessType.js +40 -0
- package/dist/models/GovernanceFileAccessRequest.d.ts +44 -0
- package/dist/models/GovernanceFileAccessRequest.js +56 -0
- package/dist/models/GovernanceRequirement.d.ts +1 -1
- package/dist/models/GovernanceRequirement.js +2 -2
- package/dist/models/{AccessType.d.ts → ProjectAccessType.d.ts} +5 -7
- package/dist/models/ProjectAccessType.js +41 -0
- package/dist/models/ProjectFileAccessRequest.d.ts +44 -0
- package/dist/models/{FileAccessRequest.js → ProjectFileAccessRequest.js} +14 -14
- package/dist/models/ProjectRequirement.d.ts +145 -0
- package/dist/models/ProjectRequirement.js +100 -0
- package/dist/models/RequirementFulfillmentInput.d.ts +31 -0
- package/dist/models/RequirementFulfillmentInput.js +50 -0
- package/dist/models/RequirementInput.d.ts +1 -1
- package/dist/models/RequirementInput.js +2 -2
- package/dist/models/index.d.ts +7 -2
- package/dist/models/index.js +7 -2
- package/package.json +1 -1
- package/src/apis/FileApi.ts +14 -11
- package/src/apis/GovernanceApi.ts +110 -0
- package/src/models/FulfillmentResponse.ts +75 -0
- package/src/models/GovernanceAccessType.ts +39 -0
- package/src/models/GovernanceFileAccessRequest.ts +89 -0
- package/src/models/GovernanceRequirement.ts +3 -3
- package/src/models/{AccessType.ts → ProjectAccessType.ts} +7 -9
- package/src/models/{FileAccessRequest.ts → ProjectFileAccessRequest.ts} +20 -20
- package/src/models/ProjectRequirement.ts +254 -0
- package/src/models/RequirementFulfillmentInput.ts +65 -0
- package/src/models/RequirementInput.ts +3 -3
- package/src/models/index.ts +7 -2
- package/dist/models/AccessType.js +0 -43
- package/dist/models/FileAccessRequest.d.ts +0 -44
|
@@ -0,0 +1,41 @@
|
|
|
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.ProjectAccessTypeToJSON = exports.ProjectAccessTypeFromJSONTyped = exports.ProjectAccessTypeFromJSON = exports.ProjectAccessType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var ProjectAccessType;
|
|
23
|
+
(function (ProjectAccessType) {
|
|
24
|
+
ProjectAccessType["DatasetUpload"] = "DATASET_UPLOAD";
|
|
25
|
+
ProjectAccessType["SharedDatasetDownload"] = "SHARED_DATASET_DOWNLOAD";
|
|
26
|
+
ProjectAccessType["SamplesheetUpload"] = "SAMPLESHEET_UPLOAD";
|
|
27
|
+
ProjectAccessType["ReferenceUpload"] = "REFERENCE_UPLOAD";
|
|
28
|
+
ProjectAccessType["ProjectDownload"] = "PROJECT_DOWNLOAD";
|
|
29
|
+
})(ProjectAccessType = exports.ProjectAccessType || (exports.ProjectAccessType = {}));
|
|
30
|
+
function ProjectAccessTypeFromJSON(json) {
|
|
31
|
+
return ProjectAccessTypeFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ProjectAccessTypeFromJSON = ProjectAccessTypeFromJSON;
|
|
34
|
+
function ProjectAccessTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
exports.ProjectAccessTypeFromJSONTyped = ProjectAccessTypeFromJSONTyped;
|
|
38
|
+
function ProjectAccessTypeToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
exports.ProjectAccessTypeToJSON = ProjectAccessTypeToJSON;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { ProjectAccessType } from './ProjectAccessType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProjectFileAccessRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ProjectFileAccessRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ProjectAccessType}
|
|
22
|
+
* @memberof ProjectFileAccessRequest
|
|
23
|
+
*/
|
|
24
|
+
accessType: ProjectAccessType;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ProjectFileAccessRequest
|
|
29
|
+
*/
|
|
30
|
+
datasetId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ProjectFileAccessRequest
|
|
35
|
+
*/
|
|
36
|
+
tokenLifetimeHours?: number | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProjectFileAccessRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfProjectFileAccessRequest(value: object): boolean;
|
|
42
|
+
export declare function ProjectFileAccessRequestFromJSON(json: any): ProjectFileAccessRequest;
|
|
43
|
+
export declare function ProjectFileAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectFileAccessRequest;
|
|
44
|
+
export declare function ProjectFileAccessRequestToJSON(value?: ProjectFileAccessRequest | null): any;
|
|
@@ -13,34 +13,34 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ProjectFileAccessRequestToJSON = exports.ProjectFileAccessRequestFromJSONTyped = exports.ProjectFileAccessRequestFromJSON = exports.instanceOfProjectFileAccessRequest = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
-
var
|
|
18
|
+
var ProjectAccessType_1 = require("./ProjectAccessType");
|
|
19
19
|
/**
|
|
20
|
-
* Check if a given object implements the
|
|
20
|
+
* Check if a given object implements the ProjectFileAccessRequest interface.
|
|
21
21
|
*/
|
|
22
|
-
function
|
|
22
|
+
function instanceOfProjectFileAccessRequest(value) {
|
|
23
23
|
var isInstance = true;
|
|
24
24
|
isInstance = isInstance && "accessType" in value;
|
|
25
25
|
return isInstance;
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
exports.instanceOfProjectFileAccessRequest = instanceOfProjectFileAccessRequest;
|
|
28
|
+
function ProjectFileAccessRequestFromJSON(json) {
|
|
29
|
+
return ProjectFileAccessRequestFromJSONTyped(json, false);
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
31
|
+
exports.ProjectFileAccessRequestFromJSON = ProjectFileAccessRequestFromJSON;
|
|
32
|
+
function ProjectFileAccessRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if ((json === undefined) || (json === null)) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'accessType': (0,
|
|
37
|
+
'accessType': (0, ProjectAccessType_1.ProjectAccessTypeFromJSON)(json['accessType']),
|
|
38
38
|
'datasetId': !(0, runtime_1.exists)(json, 'datasetId') ? undefined : json['datasetId'],
|
|
39
39
|
'tokenLifetimeHours': !(0, runtime_1.exists)(json, 'tokenLifetimeHours') ? undefined : json['tokenLifetimeHours'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.ProjectFileAccessRequestFromJSONTyped = ProjectFileAccessRequestFromJSONTyped;
|
|
43
|
+
function ProjectFileAccessRequestToJSON(value) {
|
|
44
44
|
if (value === undefined) {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
@@ -48,9 +48,9 @@ function FileAccessRequestToJSON(value) {
|
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
'accessType': (0,
|
|
51
|
+
'accessType': (0, ProjectAccessType_1.ProjectAccessTypeToJSON)(value.accessType),
|
|
52
52
|
'datasetId': value.datasetId,
|
|
53
53
|
'tokenLifetimeHours': value.tokenLifetimeHours,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
exports.
|
|
56
|
+
exports.ProjectFileAccessRequestToJSON = ProjectFileAccessRequestToJSON;
|
|
@@ -0,0 +1,145 @@
|
|
|
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 { GovernanceContact } from './GovernanceContact';
|
|
13
|
+
import type { GovernanceExpiryType } from './GovernanceExpiryType';
|
|
14
|
+
import type { GovernanceFile } from './GovernanceFile';
|
|
15
|
+
import type { GovernanceScope } from './GovernanceScope';
|
|
16
|
+
import type { GovernanceTrainingVerification } from './GovernanceTrainingVerification';
|
|
17
|
+
import type { GovernanceType } from './GovernanceType';
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ProjectRequirement
|
|
22
|
+
*/
|
|
23
|
+
export interface ProjectRequirement {
|
|
24
|
+
/**
|
|
25
|
+
* The unique identifier for the requirement
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProjectRequirement
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the requirement
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProjectRequirement
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* A brief description of the requirement
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProjectRequirement
|
|
40
|
+
*/
|
|
41
|
+
description: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {GovernanceType}
|
|
45
|
+
* @memberof ProjectRequirement
|
|
46
|
+
*/
|
|
47
|
+
type: GovernanceType;
|
|
48
|
+
/**
|
|
49
|
+
* S3 prefix where files for the requirement are saved
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ProjectRequirement
|
|
52
|
+
*/
|
|
53
|
+
path: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {GovernanceScope}
|
|
57
|
+
* @memberof ProjectRequirement
|
|
58
|
+
*/
|
|
59
|
+
scope: GovernanceScope;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {GovernanceScope}
|
|
63
|
+
* @memberof ProjectRequirement
|
|
64
|
+
*/
|
|
65
|
+
acceptance?: GovernanceScope | null;
|
|
66
|
+
/**
|
|
67
|
+
* The governance contacts assigned to the requirement.
|
|
68
|
+
* @type {Array<GovernanceContact>}
|
|
69
|
+
* @memberof ProjectRequirement
|
|
70
|
+
*/
|
|
71
|
+
contacts: Array<GovernanceContact>;
|
|
72
|
+
/**
|
|
73
|
+
* The date of enactment for the requirement
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof ProjectRequirement
|
|
76
|
+
*/
|
|
77
|
+
enactmentDate?: Date | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {GovernanceExpiryType}
|
|
81
|
+
* @memberof ProjectRequirement
|
|
82
|
+
*/
|
|
83
|
+
expirationType?: GovernanceExpiryType;
|
|
84
|
+
/**
|
|
85
|
+
* The number of days for a relative to completion expiration
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof ProjectRequirement
|
|
88
|
+
*/
|
|
89
|
+
expirationDaysAfterCompletion?: number | null;
|
|
90
|
+
/**
|
|
91
|
+
* The date of expiration for the requirement
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof ProjectRequirement
|
|
94
|
+
*/
|
|
95
|
+
expirationDate?: Date | null;
|
|
96
|
+
/**
|
|
97
|
+
* Optional files with extra information, e.g. templates for documents, links, etc
|
|
98
|
+
* @type {Array<GovernanceFile>}
|
|
99
|
+
* @memberof ProjectRequirement
|
|
100
|
+
*/
|
|
101
|
+
supplementalDocs?: Array<GovernanceFile> | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {GovernanceFile}
|
|
105
|
+
* @memberof ProjectRequirement
|
|
106
|
+
*/
|
|
107
|
+
file?: GovernanceFile | null;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {GovernanceScope}
|
|
111
|
+
* @memberof ProjectRequirement
|
|
112
|
+
*/
|
|
113
|
+
authorship?: GovernanceScope | null;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {GovernanceTrainingVerification}
|
|
117
|
+
* @memberof ProjectRequirement
|
|
118
|
+
*/
|
|
119
|
+
verificationMethod?: GovernanceTrainingVerification | null;
|
|
120
|
+
/**
|
|
121
|
+
* Whether the current user has fulfilled the requirement for this project
|
|
122
|
+
* @type {boolean}
|
|
123
|
+
* @memberof ProjectRequirement
|
|
124
|
+
*/
|
|
125
|
+
isFulfilled: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The date the requirement was fulfilled by the user
|
|
128
|
+
* @type {Date}
|
|
129
|
+
* @memberof ProjectRequirement
|
|
130
|
+
*/
|
|
131
|
+
fulfillmentDate?: Date | null;
|
|
132
|
+
/**
|
|
133
|
+
* The optional file uploaded to fulfill the requirement
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof ProjectRequirement
|
|
136
|
+
*/
|
|
137
|
+
fulfillmentFile?: string | null;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Check if a given object implements the ProjectRequirement interface.
|
|
141
|
+
*/
|
|
142
|
+
export declare function instanceOfProjectRequirement(value: object): boolean;
|
|
143
|
+
export declare function ProjectRequirementFromJSON(json: any): ProjectRequirement;
|
|
144
|
+
export declare function ProjectRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectRequirement;
|
|
145
|
+
export declare function ProjectRequirementToJSON(value?: ProjectRequirement | null): any;
|
|
@@ -0,0 +1,100 @@
|
|
|
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.ProjectRequirementToJSON = exports.ProjectRequirementFromJSONTyped = exports.ProjectRequirementFromJSON = exports.instanceOfProjectRequirement = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var GovernanceContact_1 = require("./GovernanceContact");
|
|
19
|
+
var GovernanceExpiryType_1 = require("./GovernanceExpiryType");
|
|
20
|
+
var GovernanceFile_1 = require("./GovernanceFile");
|
|
21
|
+
var GovernanceScope_1 = require("./GovernanceScope");
|
|
22
|
+
var GovernanceTrainingVerification_1 = require("./GovernanceTrainingVerification");
|
|
23
|
+
var GovernanceType_1 = require("./GovernanceType");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ProjectRequirement interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfProjectRequirement(value) {
|
|
28
|
+
var isInstance = true;
|
|
29
|
+
isInstance = isInstance && "id" in value;
|
|
30
|
+
isInstance = isInstance && "name" in value;
|
|
31
|
+
isInstance = isInstance && "description" in value;
|
|
32
|
+
isInstance = isInstance && "type" in value;
|
|
33
|
+
isInstance = isInstance && "path" in value;
|
|
34
|
+
isInstance = isInstance && "scope" in value;
|
|
35
|
+
isInstance = isInstance && "contacts" in value;
|
|
36
|
+
isInstance = isInstance && "isFulfilled" in value;
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
exports.instanceOfProjectRequirement = instanceOfProjectRequirement;
|
|
40
|
+
function ProjectRequirementFromJSON(json) {
|
|
41
|
+
return ProjectRequirementFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.ProjectRequirementFromJSON = ProjectRequirementFromJSON;
|
|
44
|
+
function ProjectRequirementFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'description': json['description'],
|
|
52
|
+
'type': (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
|
|
53
|
+
'path': json['path'],
|
|
54
|
+
'scope': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
|
|
55
|
+
'acceptance': !(0, runtime_1.exists)(json, 'acceptance') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
|
|
56
|
+
'contacts': (json['contacts'].map(GovernanceContact_1.GovernanceContactFromJSON)),
|
|
57
|
+
'enactmentDate': !(0, runtime_1.exists)(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
|
|
58
|
+
'expirationType': !(0, runtime_1.exists)(json, 'expirationType') ? undefined : (0, GovernanceExpiryType_1.GovernanceExpiryTypeFromJSON)(json['expirationType']),
|
|
59
|
+
'expirationDaysAfterCompletion': !(0, runtime_1.exists)(json, 'expirationDaysAfterCompletion') ? undefined : json['expirationDaysAfterCompletion'],
|
|
60
|
+
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : (json['expirationDate'] === null ? null : new Date(json['expirationDate'])),
|
|
61
|
+
'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
|
|
62
|
+
'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
|
|
63
|
+
'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
|
|
64
|
+
'verificationMethod': !(0, runtime_1.exists)(json, 'verificationMethod') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verificationMethod']),
|
|
65
|
+
'isFulfilled': json['isFulfilled'],
|
|
66
|
+
'fulfillmentDate': !(0, runtime_1.exists)(json, 'fulfillmentDate') ? undefined : (json['fulfillmentDate'] === null ? null : new Date(json['fulfillmentDate'])),
|
|
67
|
+
'fulfillmentFile': !(0, runtime_1.exists)(json, 'fulfillmentFile') ? undefined : json['fulfillmentFile'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
exports.ProjectRequirementFromJSONTyped = ProjectRequirementFromJSONTyped;
|
|
71
|
+
function ProjectRequirementToJSON(value) {
|
|
72
|
+
if (value === undefined) {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
if (value === null) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value.id,
|
|
80
|
+
'name': value.name,
|
|
81
|
+
'description': value.description,
|
|
82
|
+
'type': (0, GovernanceType_1.GovernanceTypeToJSON)(value.type),
|
|
83
|
+
'path': value.path,
|
|
84
|
+
'scope': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.scope),
|
|
85
|
+
'acceptance': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.acceptance),
|
|
86
|
+
'contacts': (value.contacts.map(GovernanceContact_1.GovernanceContactToJSON)),
|
|
87
|
+
'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
|
|
88
|
+
'expirationType': (0, GovernanceExpiryType_1.GovernanceExpiryTypeToJSON)(value.expirationType),
|
|
89
|
+
'expirationDaysAfterCompletion': value.expirationDaysAfterCompletion,
|
|
90
|
+
'expirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate === null ? null : value.expirationDate.toISOString()),
|
|
91
|
+
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
|
|
92
|
+
'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
|
|
93
|
+
'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
|
|
94
|
+
'verificationMethod': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verificationMethod),
|
|
95
|
+
'isFulfilled': value.isFulfilled,
|
|
96
|
+
'fulfillmentDate': value.fulfillmentDate === undefined ? undefined : (value.fulfillmentDate === null ? null : value.fulfillmentDate.toISOString()),
|
|
97
|
+
'fulfillmentFile': value.fulfillmentFile,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
exports.ProjectRequirementToJSON = ProjectRequirementToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RequirementFulfillmentInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RequirementFulfillmentInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequirementFulfillmentInput
|
|
22
|
+
*/
|
|
23
|
+
file?: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RequirementFulfillmentInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRequirementFulfillmentInput(value: object): boolean;
|
|
29
|
+
export declare function RequirementFulfillmentInputFromJSON(json: any): RequirementFulfillmentInput;
|
|
30
|
+
export declare function RequirementFulfillmentInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequirementFulfillmentInput;
|
|
31
|
+
export declare function RequirementFulfillmentInputToJSON(value?: RequirementFulfillmentInput | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.RequirementFulfillmentInputToJSON = exports.RequirementFulfillmentInputFromJSONTyped = exports.RequirementFulfillmentInputFromJSON = exports.instanceOfRequirementFulfillmentInput = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the RequirementFulfillmentInput interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfRequirementFulfillmentInput(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfRequirementFulfillmentInput = instanceOfRequirementFulfillmentInput;
|
|
26
|
+
function RequirementFulfillmentInputFromJSON(json) {
|
|
27
|
+
return RequirementFulfillmentInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.RequirementFulfillmentInputFromJSON = RequirementFulfillmentInputFromJSON;
|
|
30
|
+
function RequirementFulfillmentInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'file': !(0, runtime_1.exists)(json, 'file') ? undefined : json['file'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.RequirementFulfillmentInputFromJSONTyped = RequirementFulfillmentInputFromJSONTyped;
|
|
39
|
+
function RequirementFulfillmentInputToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'file': value.file,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.RequirementFulfillmentInputToJSON = RequirementFulfillmentInputToJSON;
|
|
@@ -91,7 +91,7 @@ export interface RequirementInput {
|
|
|
91
91
|
* @type {GovernanceTrainingVerification}
|
|
92
92
|
* @memberof RequirementInput
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
verificationMethod?: GovernanceTrainingVerification | null;
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* Check if a given object implements the RequirementInput interface.
|
|
@@ -54,7 +54,7 @@ function RequirementInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
|
|
55
55
|
'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
|
|
56
56
|
'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
|
|
57
|
-
'
|
|
57
|
+
'verificationMethod': !(0, runtime_1.exists)(json, 'verificationMethod') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verificationMethod']),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
exports.RequirementInputFromJSONTyped = RequirementInputFromJSONTyped;
|
|
@@ -77,7 +77,7 @@ function RequirementInputToJSON(value) {
|
|
|
77
77
|
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
|
|
78
78
|
'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
|
|
79
79
|
'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
|
|
80
|
-
'
|
|
80
|
+
'verificationMethod': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verificationMethod),
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
exports.RequirementInputToJSON = RequirementInputToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './AWSCredentials';
|
|
2
|
-
export * from './AccessType';
|
|
3
2
|
export * from './Agent';
|
|
4
3
|
export * from './AgentDetail';
|
|
5
4
|
export * from './AgentInput';
|
|
@@ -39,19 +38,21 @@ export * from './EnvironmentType';
|
|
|
39
38
|
export * from './ErrorMessage';
|
|
40
39
|
export * from './Executor';
|
|
41
40
|
export * from './FeatureFlags';
|
|
42
|
-
export * from './FileAccessRequest';
|
|
43
41
|
export * from './FileEntry';
|
|
44
42
|
export * from './FileMappingRule';
|
|
45
43
|
export * from './FileNamePattern';
|
|
46
44
|
export * from './FileRequirements';
|
|
47
45
|
export * from './FormSchema';
|
|
46
|
+
export * from './FulfillmentResponse';
|
|
48
47
|
export * from './GenerateSftpCredentialsRequest';
|
|
49
48
|
export * from './GetExecutionLogsResponse';
|
|
49
|
+
export * from './GovernanceAccessType';
|
|
50
50
|
export * from './GovernanceClassification';
|
|
51
51
|
export * from './GovernanceContact';
|
|
52
52
|
export * from './GovernanceExpiry';
|
|
53
53
|
export * from './GovernanceExpiryType';
|
|
54
54
|
export * from './GovernanceFile';
|
|
55
|
+
export * from './GovernanceFileAccessRequest';
|
|
55
56
|
export * from './GovernanceFileType';
|
|
56
57
|
export * from './GovernanceRequirement';
|
|
57
58
|
export * from './GovernanceScope';
|
|
@@ -79,11 +80,14 @@ export * from './Process';
|
|
|
79
80
|
export * from './ProcessDetail';
|
|
80
81
|
export * from './Project';
|
|
81
82
|
export * from './ProjectAccessRequest';
|
|
83
|
+
export * from './ProjectAccessType';
|
|
82
84
|
export * from './ProjectCreateOptions';
|
|
83
85
|
export * from './ProjectDetail';
|
|
86
|
+
export * from './ProjectFileAccessRequest';
|
|
84
87
|
export * from './ProjectInput';
|
|
85
88
|
export * from './ProjectMetrics';
|
|
86
89
|
export * from './ProjectRequest';
|
|
90
|
+
export * from './ProjectRequirement';
|
|
87
91
|
export * from './ProjectRole';
|
|
88
92
|
export * from './ProjectSettings';
|
|
89
93
|
export * from './ProjectUser';
|
|
@@ -91,6 +95,7 @@ export * from './Reference';
|
|
|
91
95
|
export * from './ReferenceType';
|
|
92
96
|
export * from './RepositoryType';
|
|
93
97
|
export * from './RequestStatus';
|
|
98
|
+
export * from './RequirementFulfillmentInput';
|
|
94
99
|
export * from './RequirementInput';
|
|
95
100
|
export * from './ResourcesInfo';
|
|
96
101
|
export * from './RunAnalysisRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AWSCredentials"), exports);
|
|
20
|
-
__exportStar(require("./AccessType"), exports);
|
|
21
20
|
__exportStar(require("./Agent"), exports);
|
|
22
21
|
__exportStar(require("./AgentDetail"), exports);
|
|
23
22
|
__exportStar(require("./AgentInput"), exports);
|
|
@@ -57,19 +56,21 @@ __exportStar(require("./EnvironmentType"), exports);
|
|
|
57
56
|
__exportStar(require("./ErrorMessage"), exports);
|
|
58
57
|
__exportStar(require("./Executor"), exports);
|
|
59
58
|
__exportStar(require("./FeatureFlags"), exports);
|
|
60
|
-
__exportStar(require("./FileAccessRequest"), exports);
|
|
61
59
|
__exportStar(require("./FileEntry"), exports);
|
|
62
60
|
__exportStar(require("./FileMappingRule"), exports);
|
|
63
61
|
__exportStar(require("./FileNamePattern"), exports);
|
|
64
62
|
__exportStar(require("./FileRequirements"), exports);
|
|
65
63
|
__exportStar(require("./FormSchema"), exports);
|
|
64
|
+
__exportStar(require("./FulfillmentResponse"), exports);
|
|
66
65
|
__exportStar(require("./GenerateSftpCredentialsRequest"), exports);
|
|
67
66
|
__exportStar(require("./GetExecutionLogsResponse"), exports);
|
|
67
|
+
__exportStar(require("./GovernanceAccessType"), exports);
|
|
68
68
|
__exportStar(require("./GovernanceClassification"), exports);
|
|
69
69
|
__exportStar(require("./GovernanceContact"), exports);
|
|
70
70
|
__exportStar(require("./GovernanceExpiry"), exports);
|
|
71
71
|
__exportStar(require("./GovernanceExpiryType"), exports);
|
|
72
72
|
__exportStar(require("./GovernanceFile"), exports);
|
|
73
|
+
__exportStar(require("./GovernanceFileAccessRequest"), exports);
|
|
73
74
|
__exportStar(require("./GovernanceFileType"), exports);
|
|
74
75
|
__exportStar(require("./GovernanceRequirement"), exports);
|
|
75
76
|
__exportStar(require("./GovernanceScope"), exports);
|
|
@@ -97,11 +98,14 @@ __exportStar(require("./Process"), exports);
|
|
|
97
98
|
__exportStar(require("./ProcessDetail"), exports);
|
|
98
99
|
__exportStar(require("./Project"), exports);
|
|
99
100
|
__exportStar(require("./ProjectAccessRequest"), exports);
|
|
101
|
+
__exportStar(require("./ProjectAccessType"), exports);
|
|
100
102
|
__exportStar(require("./ProjectCreateOptions"), exports);
|
|
101
103
|
__exportStar(require("./ProjectDetail"), exports);
|
|
104
|
+
__exportStar(require("./ProjectFileAccessRequest"), exports);
|
|
102
105
|
__exportStar(require("./ProjectInput"), exports);
|
|
103
106
|
__exportStar(require("./ProjectMetrics"), exports);
|
|
104
107
|
__exportStar(require("./ProjectRequest"), exports);
|
|
108
|
+
__exportStar(require("./ProjectRequirement"), exports);
|
|
105
109
|
__exportStar(require("./ProjectRole"), exports);
|
|
106
110
|
__exportStar(require("./ProjectSettings"), exports);
|
|
107
111
|
__exportStar(require("./ProjectUser"), exports);
|
|
@@ -109,6 +113,7 @@ __exportStar(require("./Reference"), exports);
|
|
|
109
113
|
__exportStar(require("./ReferenceType"), exports);
|
|
110
114
|
__exportStar(require("./RepositoryType"), exports);
|
|
111
115
|
__exportStar(require("./RequestStatus"), exports);
|
|
116
|
+
__exportStar(require("./RequirementFulfillmentInput"), exports);
|
|
112
117
|
__exportStar(require("./RequirementInput"), exports);
|
|
113
118
|
__exportStar(require("./ResourcesInfo"), exports);
|
|
114
119
|
__exportStar(require("./RunAnalysisRequest"), exports);
|