@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
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ShareDetailToJSON = exports.ShareDetailFromJSONTyped = exports.ShareDetailFromJSON = exports.instanceOfShareDetail = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var DatasetCondition_1 = require("./DatasetCondition");
|
|
19
18
|
var NamedItem_1 = require("./NamedItem");
|
|
20
19
|
var ShareType_1 = require("./ShareType");
|
|
@@ -29,6 +28,7 @@ function instanceOfShareDetail(value) {
|
|
|
29
28
|
isInstance = isInstance && "originatingProject" in value;
|
|
30
29
|
isInstance = isInstance && "shareType" in value;
|
|
31
30
|
isInstance = isInstance && "sharedProjects" in value;
|
|
31
|
+
isInstance = isInstance && "conditions" in value;
|
|
32
32
|
isInstance = isInstance && "keywords" in value;
|
|
33
33
|
isInstance = isInstance && "classificationIds" in value;
|
|
34
34
|
isInstance = isInstance && "isSubscribed" in value;
|
|
@@ -53,7 +53,7 @@ function ShareDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'originatingProject': (0, NamedItem_1.NamedItemFromJSON)(json['originatingProject']),
|
|
54
54
|
'shareType': (0, ShareType_1.ShareTypeFromJSON)(json['shareType']),
|
|
55
55
|
'sharedProjects': (json['sharedProjects'].map(NamedItem_1.NamedItemFromJSON)),
|
|
56
|
-
'conditions':
|
|
56
|
+
'conditions': (json['conditions'].map(DatasetCondition_1.DatasetConditionFromJSON)),
|
|
57
57
|
'keywords': json['keywords'],
|
|
58
58
|
'classificationIds': json['classificationIds'],
|
|
59
59
|
'isSubscribed': json['isSubscribed'],
|
|
@@ -77,7 +77,7 @@ function ShareDetailToJSON(value) {
|
|
|
77
77
|
'originatingProject': (0, NamedItem_1.NamedItemToJSON)(value.originatingProject),
|
|
78
78
|
'shareType': (0, ShareType_1.ShareTypeToJSON)(value.shareType),
|
|
79
79
|
'sharedProjects': (value.sharedProjects.map(NamedItem_1.NamedItemToJSON)),
|
|
80
|
-
'conditions':
|
|
80
|
+
'conditions': (value.conditions.map(DatasetCondition_1.DatasetConditionToJSON)),
|
|
81
81
|
'keywords': value.keywords,
|
|
82
82
|
'classificationIds': value.classificationIds,
|
|
83
83
|
'isSubscribed': value.isSubscribed,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './ColumnDefinition';
|
|
|
20
20
|
export * from './ComputeEnvironmentConfiguration';
|
|
21
21
|
export * from './ComputeEnvironmentConfigurationInput';
|
|
22
22
|
export * from './Contact';
|
|
23
|
+
export * from './ContactInput';
|
|
23
24
|
export * from './CreateNotebookInstanceRequest';
|
|
24
25
|
export * from './CreateProjectAccessRequest';
|
|
25
26
|
export * from './CreateReferenceRequest';
|
|
@@ -47,6 +48,15 @@ export * from './FormSchema';
|
|
|
47
48
|
export * from './GenerateSftpCredentialsRequest';
|
|
48
49
|
export * from './GetExecutionLogsResponse';
|
|
49
50
|
export * from './GovernanceClassification';
|
|
51
|
+
export * from './GovernanceContact';
|
|
52
|
+
export * from './GovernanceExpiry';
|
|
53
|
+
export * from './GovernanceExpiryType';
|
|
54
|
+
export * from './GovernanceFile';
|
|
55
|
+
export * from './GovernanceFileType';
|
|
56
|
+
export * from './GovernanceRequirement';
|
|
57
|
+
export * from './GovernanceScope';
|
|
58
|
+
export * from './GovernanceTrainingVerification';
|
|
59
|
+
export * from './GovernanceType';
|
|
50
60
|
export * from './ImportDataRequest';
|
|
51
61
|
export * from './InviteUserRequest';
|
|
52
62
|
export * from './InviteUserResponse';
|
|
@@ -81,6 +91,7 @@ export * from './Reference';
|
|
|
81
91
|
export * from './ReferenceType';
|
|
82
92
|
export * from './RepositoryType';
|
|
83
93
|
export * from './RequestStatus';
|
|
94
|
+
export * from './RequirementInput';
|
|
84
95
|
export * from './ResourcesInfo';
|
|
85
96
|
export * from './RunAnalysisRequest';
|
|
86
97
|
export * from './Sample';
|
package/dist/models/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __exportStar(require("./ColumnDefinition"), exports);
|
|
|
38
38
|
__exportStar(require("./ComputeEnvironmentConfiguration"), exports);
|
|
39
39
|
__exportStar(require("./ComputeEnvironmentConfigurationInput"), exports);
|
|
40
40
|
__exportStar(require("./Contact"), exports);
|
|
41
|
+
__exportStar(require("./ContactInput"), exports);
|
|
41
42
|
__exportStar(require("./CreateNotebookInstanceRequest"), exports);
|
|
42
43
|
__exportStar(require("./CreateProjectAccessRequest"), exports);
|
|
43
44
|
__exportStar(require("./CreateReferenceRequest"), exports);
|
|
@@ -65,6 +66,15 @@ __exportStar(require("./FormSchema"), exports);
|
|
|
65
66
|
__exportStar(require("./GenerateSftpCredentialsRequest"), exports);
|
|
66
67
|
__exportStar(require("./GetExecutionLogsResponse"), exports);
|
|
67
68
|
__exportStar(require("./GovernanceClassification"), exports);
|
|
69
|
+
__exportStar(require("./GovernanceContact"), exports);
|
|
70
|
+
__exportStar(require("./GovernanceExpiry"), exports);
|
|
71
|
+
__exportStar(require("./GovernanceExpiryType"), exports);
|
|
72
|
+
__exportStar(require("./GovernanceFile"), exports);
|
|
73
|
+
__exportStar(require("./GovernanceFileType"), exports);
|
|
74
|
+
__exportStar(require("./GovernanceRequirement"), exports);
|
|
75
|
+
__exportStar(require("./GovernanceScope"), exports);
|
|
76
|
+
__exportStar(require("./GovernanceTrainingVerification"), exports);
|
|
77
|
+
__exportStar(require("./GovernanceType"), exports);
|
|
68
78
|
__exportStar(require("./ImportDataRequest"), exports);
|
|
69
79
|
__exportStar(require("./InviteUserRequest"), exports);
|
|
70
80
|
__exportStar(require("./InviteUserResponse"), exports);
|
|
@@ -99,6 +109,7 @@ __exportStar(require("./Reference"), exports);
|
|
|
99
109
|
__exportStar(require("./ReferenceType"), exports);
|
|
100
110
|
__exportStar(require("./RepositoryType"), exports);
|
|
101
111
|
__exportStar(require("./RequestStatus"), exports);
|
|
112
|
+
__exportStar(require("./RequirementInput"), exports);
|
|
102
113
|
__exportStar(require("./ResourcesInfo"), exports);
|
|
103
114
|
__exportStar(require("./RunAnalysisRequest"), exports);
|
|
104
115
|
__exportStar(require("./Sample"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
76
76
|
};
|
|
77
77
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
78
|
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
79
|
-
exports.BASE_PATH = "https://
|
|
79
|
+
exports.BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
|
|
80
80
|
var Configuration = /** @class */ (function () {
|
|
81
81
|
function Configuration(configuration) {
|
|
82
82
|
if (configuration === void 0) { configuration = {}; }
|
package/package.json
CHANGED
package/src/apis/FileApi.ts
CHANGED
|
@@ -31,6 +31,11 @@ import {
|
|
|
31
31
|
SftpCredentialsToJSON,
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
|
+
export interface GenerateGovernanceFileAccessTokenRequest {
|
|
35
|
+
requirementId: string;
|
|
36
|
+
fileAccessRequest: FileAccessRequest;
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
export interface GenerateProjectFileAccessTokenRequest {
|
|
35
40
|
projectId: string;
|
|
36
41
|
fileAccessRequest: FileAccessRequest;
|
|
@@ -46,6 +51,53 @@ export interface GenerateProjectSftpTokenRequest {
|
|
|
46
51
|
*/
|
|
47
52
|
export class FileApi extends runtime.BaseAPI {
|
|
48
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Generates credentials used for connecting via S3
|
|
56
|
+
* Create governance file access token
|
|
57
|
+
*/
|
|
58
|
+
async generateGovernanceFileAccessTokenRaw(requestParameters: GenerateGovernanceFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AWSCredentials>> {
|
|
59
|
+
if (requestParameters.requirementId === null || requestParameters.requirementId === undefined) {
|
|
60
|
+
throw new runtime.RequiredError('requirementId','Required parameter requestParameters.requirementId was null or undefined when calling generateGovernanceFileAccessToken.');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (requestParameters.fileAccessRequest === null || requestParameters.fileAccessRequest === undefined) {
|
|
64
|
+
throw new runtime.RequiredError('fileAccessRequest','Required parameter requestParameters.fileAccessRequest was null or undefined when calling generateGovernanceFileAccessToken.');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const queryParameters: any = {};
|
|
68
|
+
|
|
69
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
70
|
+
|
|
71
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
72
|
+
|
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
74
|
+
const token = this.configuration.accessToken;
|
|
75
|
+
const tokenString = await token("accessToken", []);
|
|
76
|
+
|
|
77
|
+
if (tokenString) {
|
|
78
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const response = await this.request({
|
|
82
|
+
path: `/governance/requirements/{requirementId}/s3-token`.replace(`{${"requirementId"}}`, encodeURIComponent(String(requestParameters.requirementId))),
|
|
83
|
+
method: 'POST',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
body: FileAccessRequestToJSON(requestParameters.fileAccessRequest),
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AWSCredentialsFromJSON(jsonValue));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Generates credentials used for connecting via S3
|
|
94
|
+
* Create governance file access token
|
|
95
|
+
*/
|
|
96
|
+
async generateGovernanceFileAccessToken(requestParameters: GenerateGovernanceFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AWSCredentials> {
|
|
97
|
+
const response = await this.generateGovernanceFileAccessTokenRaw(requestParameters, initOverrides);
|
|
98
|
+
return await response.value();
|
|
99
|
+
}
|
|
100
|
+
|
|
49
101
|
/**
|
|
50
102
|
* Generates credentials used for connecting via S3
|
|
51
103
|
* Create project file access token
|