@cirrobio/api-client 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +11 -0
- package/README.md +1 -1
- package/dist/apis/DatasetsApi.d.ts +6 -6
- package/dist/apis/DatasetsApi.js +6 -6
- 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 +19 -3
- package/dist/apis/SharingApi.js +63 -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/DatasetDetail.d.ts +13 -0
- package/dist/models/DatasetDetail.js +7 -0
- package/dist/models/GovernanceClassification.d.ts +6 -0
- package/dist/models/GovernanceClassification.js +3 -0
- package/dist/models/GovernanceContact.d.ts +79 -0
- package/dist/models/GovernanceContact.js +74 -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 +132 -0
- package/dist/models/GovernanceRequirement.js +98 -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 +102 -0
- package/dist/models/RequirementInput.js +83 -0
- package/dist/models/Share.d.ts +7 -0
- package/dist/models/Share.js +4 -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/DatasetsApi.ts +6 -6
- package/src/apis/FileApi.ts +52 -0
- package/src/apis/GovernanceApi.ts +457 -1
- package/src/apis/SharingApi.ts +64 -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/DatasetDetail.ts +23 -0
- package/src/models/GovernanceClassification.ts +9 -0
- package/src/models/GovernanceContact.ts +138 -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 +235 -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 +190 -0
- package/src/models/Share.ts +15 -0
- package/src/models/ShareDetail.ts +4 -3
- package/src/models/index.ts +11 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* The types of governance requirements that can be enforced
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum GovernanceType {
|
|
18
|
+
Document = "DOCUMENT",
|
|
19
|
+
Agreement = "AGREEMENT",
|
|
20
|
+
Training = "TRAINING",
|
|
21
|
+
Contact = "CONTACT",
|
|
22
|
+
Classification = "CLASSIFICATION"
|
|
23
|
+
}
|
|
24
|
+
export declare function GovernanceTypeFromJSON(json: any): GovernanceType;
|
|
25
|
+
export declare function GovernanceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceType;
|
|
26
|
+
export declare function GovernanceTypeToJSON(value?: GovernanceType | null): any;
|
|
@@ -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.GovernanceTypeToJSON = exports.GovernanceTypeFromJSONTyped = exports.GovernanceTypeFromJSON = exports.GovernanceType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* The types of governance requirements that can be enforced
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var GovernanceType;
|
|
23
|
+
(function (GovernanceType) {
|
|
24
|
+
GovernanceType["Document"] = "DOCUMENT";
|
|
25
|
+
GovernanceType["Agreement"] = "AGREEMENT";
|
|
26
|
+
GovernanceType["Training"] = "TRAINING";
|
|
27
|
+
GovernanceType["Contact"] = "CONTACT";
|
|
28
|
+
GovernanceType["Classification"] = "CLASSIFICATION";
|
|
29
|
+
})(GovernanceType = exports.GovernanceType || (exports.GovernanceType = {}));
|
|
30
|
+
function GovernanceTypeFromJSON(json) {
|
|
31
|
+
return GovernanceTypeFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.GovernanceTypeFromJSON = GovernanceTypeFromJSON;
|
|
34
|
+
function GovernanceTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
exports.GovernanceTypeFromJSONTyped = GovernanceTypeFromJSONTyped;
|
|
38
|
+
function GovernanceTypeToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
exports.GovernanceTypeToJSON = GovernanceTypeToJSON;
|
|
@@ -0,0 +1,102 @@
|
|
|
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 { GovernanceExpiry } from './GovernanceExpiry';
|
|
13
|
+
import type { GovernanceFile } from './GovernanceFile';
|
|
14
|
+
import type { GovernanceScope } from './GovernanceScope';
|
|
15
|
+
import type { GovernanceTrainingVerification } from './GovernanceTrainingVerification';
|
|
16
|
+
import type { GovernanceType } from './GovernanceType';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface RequirementInput
|
|
21
|
+
*/
|
|
22
|
+
export interface RequirementInput {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof RequirementInput
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RequirementInput
|
|
33
|
+
*/
|
|
34
|
+
description: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {GovernanceType}
|
|
38
|
+
* @memberof RequirementInput
|
|
39
|
+
*/
|
|
40
|
+
type: GovernanceType;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {GovernanceScope}
|
|
44
|
+
* @memberof RequirementInput
|
|
45
|
+
*/
|
|
46
|
+
scope: GovernanceScope;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {GovernanceScope}
|
|
50
|
+
* @memberof RequirementInput
|
|
51
|
+
*/
|
|
52
|
+
acceptance?: GovernanceScope | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof RequirementInput
|
|
57
|
+
*/
|
|
58
|
+
contactIds: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {GovernanceExpiry}
|
|
62
|
+
* @memberof RequirementInput
|
|
63
|
+
*/
|
|
64
|
+
expiration: GovernanceExpiry;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Date}
|
|
68
|
+
* @memberof RequirementInput
|
|
69
|
+
*/
|
|
70
|
+
enactmentDate?: Date | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<GovernanceFile>}
|
|
74
|
+
* @memberof RequirementInput
|
|
75
|
+
*/
|
|
76
|
+
supplementalDocs?: Array<GovernanceFile> | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {GovernanceFile}
|
|
80
|
+
* @memberof RequirementInput
|
|
81
|
+
*/
|
|
82
|
+
file?: GovernanceFile | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {GovernanceScope}
|
|
86
|
+
* @memberof RequirementInput
|
|
87
|
+
*/
|
|
88
|
+
authorship?: GovernanceScope | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {GovernanceTrainingVerification}
|
|
92
|
+
* @memberof RequirementInput
|
|
93
|
+
*/
|
|
94
|
+
verification?: GovernanceTrainingVerification | null;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the RequirementInput interface.
|
|
98
|
+
*/
|
|
99
|
+
export declare function instanceOfRequirementInput(value: object): boolean;
|
|
100
|
+
export declare function RequirementInputFromJSON(json: any): RequirementInput;
|
|
101
|
+
export declare function RequirementInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequirementInput;
|
|
102
|
+
export declare function RequirementInputToJSON(value?: RequirementInput | null): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.RequirementInputToJSON = exports.RequirementInputFromJSONTyped = exports.RequirementInputFromJSON = exports.instanceOfRequirementInput = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var GovernanceExpiry_1 = require("./GovernanceExpiry");
|
|
19
|
+
var GovernanceFile_1 = require("./GovernanceFile");
|
|
20
|
+
var GovernanceScope_1 = require("./GovernanceScope");
|
|
21
|
+
var GovernanceTrainingVerification_1 = require("./GovernanceTrainingVerification");
|
|
22
|
+
var GovernanceType_1 = require("./GovernanceType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the RequirementInput interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfRequirementInput(value) {
|
|
27
|
+
var isInstance = true;
|
|
28
|
+
isInstance = isInstance && "name" in value;
|
|
29
|
+
isInstance = isInstance && "description" in value;
|
|
30
|
+
isInstance = isInstance && "type" in value;
|
|
31
|
+
isInstance = isInstance && "scope" in value;
|
|
32
|
+
isInstance = isInstance && "contactIds" in value;
|
|
33
|
+
isInstance = isInstance && "expiration" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfRequirementInput = instanceOfRequirementInput;
|
|
37
|
+
function RequirementInputFromJSON(json) {
|
|
38
|
+
return RequirementInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.RequirementInputFromJSON = RequirementInputFromJSON;
|
|
41
|
+
function RequirementInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'description': json['description'],
|
|
48
|
+
'type': (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
|
|
49
|
+
'scope': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
|
|
50
|
+
'acceptance': !(0, runtime_1.exists)(json, 'acceptance') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
|
|
51
|
+
'contactIds': json['contactIds'],
|
|
52
|
+
'expiration': (0, GovernanceExpiry_1.GovernanceExpiryFromJSON)(json['expiration']),
|
|
53
|
+
'enactmentDate': !(0, runtime_1.exists)(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
|
|
54
|
+
'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
|
|
55
|
+
'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
|
|
56
|
+
'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
|
|
57
|
+
'verification': !(0, runtime_1.exists)(json, 'verification') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verification']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.RequirementInputFromJSONTyped = RequirementInputFromJSONTyped;
|
|
61
|
+
function RequirementInputToJSON(value) {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'name': value.name,
|
|
70
|
+
'description': value.description,
|
|
71
|
+
'type': (0, GovernanceType_1.GovernanceTypeToJSON)(value.type),
|
|
72
|
+
'scope': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.scope),
|
|
73
|
+
'acceptance': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.acceptance),
|
|
74
|
+
'contactIds': value.contactIds,
|
|
75
|
+
'expiration': (0, GovernanceExpiry_1.GovernanceExpiryToJSON)(value.expiration),
|
|
76
|
+
'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
|
|
77
|
+
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
|
|
78
|
+
'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
|
|
79
|
+
'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
|
|
80
|
+
'verification': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verification),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.RequirementInputToJSON = RequirementInputToJSON;
|
package/dist/models/Share.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DatasetCondition } from './DatasetCondition';
|
|
12
13
|
import type { ShareType } from './ShareType';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -46,6 +47,12 @@ export interface Share {
|
|
|
46
47
|
* @memberof Share
|
|
47
48
|
*/
|
|
48
49
|
shareType: ShareType;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<DatasetCondition>}
|
|
53
|
+
* @memberof Share
|
|
54
|
+
*/
|
|
55
|
+
conditions: Array<DatasetCondition>;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {Array<string>}
|
package/dist/models/Share.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ShareToJSON = exports.ShareFromJSONTyped = exports.ShareFromJSON = exports.instanceOfShare = void 0;
|
|
17
|
+
var DatasetCondition_1 = require("./DatasetCondition");
|
|
17
18
|
var ShareType_1 = require("./ShareType");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the Share interface.
|
|
@@ -25,6 +26,7 @@ function instanceOfShare(value) {
|
|
|
25
26
|
isInstance = isInstance && "description" in value;
|
|
26
27
|
isInstance = isInstance && "originatingProjectId" in value;
|
|
27
28
|
isInstance = isInstance && "shareType" in value;
|
|
29
|
+
isInstance = isInstance && "conditions" in value;
|
|
28
30
|
isInstance = isInstance && "classificationIds" in value;
|
|
29
31
|
isInstance = isInstance && "keywords" in value;
|
|
30
32
|
isInstance = isInstance && "createdBy" in value;
|
|
@@ -47,6 +49,7 @@ function ShareFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
'description': json['description'],
|
|
48
50
|
'originatingProjectId': json['originatingProjectId'],
|
|
49
51
|
'shareType': (0, ShareType_1.ShareTypeFromJSON)(json['shareType']),
|
|
52
|
+
'conditions': (json['conditions'].map(DatasetCondition_1.DatasetConditionFromJSON)),
|
|
50
53
|
'classificationIds': json['classificationIds'],
|
|
51
54
|
'keywords': json['keywords'],
|
|
52
55
|
'createdBy': json['createdBy'],
|
|
@@ -68,6 +71,7 @@ function ShareToJSON(value) {
|
|
|
68
71
|
'description': value.description,
|
|
69
72
|
'originatingProjectId': value.originatingProjectId,
|
|
70
73
|
'shareType': (0, ShareType_1.ShareTypeToJSON)(value.shareType),
|
|
74
|
+
'conditions': (value.conditions.map(DatasetCondition_1.DatasetConditionToJSON)),
|
|
71
75
|
'classificationIds': value.classificationIds,
|
|
72
76
|
'keywords': value.keywords,
|
|
73
77
|
'createdBy': value.createdBy,
|
|
@@ -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/DatasetsApi.ts
CHANGED
|
@@ -337,7 +337,7 @@ export class DatasetsApi extends runtime.BaseAPI {
|
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
/**
|
|
340
|
-
* Rerun sample ingest
|
|
340
|
+
* Rerun sample ingest.
|
|
341
341
|
* Rerun sample ingest
|
|
342
342
|
*/
|
|
343
343
|
async ingestSamplesRaw(requestParameters: IngestSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -372,7 +372,7 @@ export class DatasetsApi extends runtime.BaseAPI {
|
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
|
-
* Rerun sample ingest
|
|
375
|
+
* Rerun sample ingest.
|
|
376
376
|
* Rerun sample ingest
|
|
377
377
|
*/
|
|
378
378
|
async ingestSamples(requestParameters: IngestSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
@@ -380,7 +380,7 @@ export class DatasetsApi extends runtime.BaseAPI {
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
/**
|
|
383
|
-
* Regenerate dataset
|
|
383
|
+
* Regenerate dataset file listing.
|
|
384
384
|
* Regenerate dataset manifest
|
|
385
385
|
*/
|
|
386
386
|
async regenerateManifestRaw(requestParameters: RegenerateManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -415,7 +415,7 @@ export class DatasetsApi extends runtime.BaseAPI {
|
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
|
-
* Regenerate dataset
|
|
418
|
+
* Regenerate dataset file listing.
|
|
419
419
|
* Regenerate dataset manifest
|
|
420
420
|
*/
|
|
421
421
|
async regenerateManifest(requestParameters: RegenerateManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
@@ -423,7 +423,7 @@ export class DatasetsApi extends runtime.BaseAPI {
|
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
/**
|
|
426
|
-
* Rerun data transforms
|
|
426
|
+
* Rerun data transforms and web optimization.
|
|
427
427
|
* Rerun data transforms
|
|
428
428
|
*/
|
|
429
429
|
async rerunTransformRaw(requestParameters: RerunTransformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -458,7 +458,7 @@ export class DatasetsApi extends runtime.BaseAPI {
|
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
/**
|
|
461
|
-
* Rerun data transforms
|
|
461
|
+
* Rerun data transforms and web optimization.
|
|
462
462
|
* Rerun data transforms
|
|
463
463
|
*/
|
|
464
464
|
async rerunTransform(requestParameters: RerunTransformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
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
|