@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.
Files changed (65) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +1 -1
  3. package/dist/apis/FileApi.d.ts +14 -0
  4. package/dist/apis/FileApi.js +60 -0
  5. package/dist/apis/GovernanceApi.d.ts +127 -1
  6. package/dist/apis/GovernanceApi.js +555 -1
  7. package/dist/apis/SharingApi.d.ts +5 -3
  8. package/dist/apis/SharingApi.js +7 -1
  9. package/dist/models/AccessType.d.ts +3 -1
  10. package/dist/models/AccessType.js +2 -0
  11. package/dist/models/ClassificationInput.d.ts +6 -0
  12. package/dist/models/ClassificationInput.js +3 -0
  13. package/dist/models/ContactInput.d.ts +55 -0
  14. package/dist/models/ContactInput.js +62 -0
  15. package/dist/models/GovernanceClassification.d.ts +6 -0
  16. package/dist/models/GovernanceClassification.js +3 -0
  17. package/dist/models/GovernanceContact.d.ts +61 -0
  18. package/dist/models/GovernanceContact.js +65 -0
  19. package/dist/models/GovernanceExpiry.d.ts +44 -0
  20. package/dist/models/GovernanceExpiry.js +55 -0
  21. package/dist/models/GovernanceExpiryType.d.ts +25 -0
  22. package/dist/models/GovernanceExpiryType.js +40 -0
  23. package/dist/models/GovernanceFile.d.ts +50 -0
  24. package/dist/models/GovernanceFile.js +57 -0
  25. package/dist/models/GovernanceFileType.d.ts +23 -0
  26. package/dist/models/GovernanceFileType.js +38 -0
  27. package/dist/models/GovernanceRequirement.d.ts +108 -0
  28. package/dist/models/GovernanceRequirement.js +81 -0
  29. package/dist/models/GovernanceRequirementFile.d.ts +50 -0
  30. package/dist/models/GovernanceRequirementFile.js +57 -0
  31. package/dist/models/GovernanceScope.d.ts +23 -0
  32. package/dist/models/GovernanceScope.js +38 -0
  33. package/dist/models/GovernanceTrainingVerification.d.ts +23 -0
  34. package/dist/models/GovernanceTrainingVerification.js +38 -0
  35. package/dist/models/GovernanceType.d.ts +26 -0
  36. package/dist/models/GovernanceType.js +41 -0
  37. package/dist/models/RequirementInput.d.ts +96 -0
  38. package/dist/models/RequirementInput.js +81 -0
  39. package/dist/models/ShareDetail.d.ts +1 -1
  40. package/dist/models/ShareDetail.js +3 -3
  41. package/dist/models/index.d.ts +11 -0
  42. package/dist/models/index.js +11 -0
  43. package/dist/runtime.js +1 -1
  44. package/package.json +1 -1
  45. package/src/apis/FileApi.ts +52 -0
  46. package/src/apis/GovernanceApi.ts +457 -1
  47. package/src/apis/SharingApi.ts +16 -6
  48. package/src/models/AccessType.ts +3 -1
  49. package/src/models/ClassificationInput.ts +9 -0
  50. package/src/models/ContactInput.ts +102 -0
  51. package/src/models/GovernanceClassification.ts +9 -0
  52. package/src/models/GovernanceContact.ts +111 -0
  53. package/src/models/GovernanceExpiry.ts +88 -0
  54. package/src/models/GovernanceExpiryType.ts +39 -0
  55. package/src/models/GovernanceFile.ts +96 -0
  56. package/src/models/GovernanceFileType.ts +37 -0
  57. package/src/models/GovernanceRequirement.ts +194 -0
  58. package/src/models/GovernanceRequirementFile.ts +96 -0
  59. package/src/models/GovernanceScope.ts +37 -0
  60. package/src/models/GovernanceTrainingVerification.ts +37 -0
  61. package/src/models/GovernanceType.ts +40 -0
  62. package/src/models/RequirementInput.ts +182 -0
  63. package/src/models/ShareDetail.ts +4 -3
  64. package/src/models/index.ts +11 -0
  65. package/src/runtime.ts +1 -1
@@ -0,0 +1,108 @@
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 GovernanceRequirement
21
+ */
22
+ export interface GovernanceRequirement {
23
+ /**
24
+ * The unique identifier for the requirement
25
+ * @type {string}
26
+ * @memberof GovernanceRequirement
27
+ */
28
+ id: string;
29
+ /**
30
+ * The name of the requirement
31
+ * @type {string}
32
+ * @memberof GovernanceRequirement
33
+ */
34
+ name?: string;
35
+ /**
36
+ * A brief description of the requirement
37
+ * @type {string}
38
+ * @memberof GovernanceRequirement
39
+ */
40
+ description?: string;
41
+ /**
42
+ *
43
+ * @type {GovernanceType}
44
+ * @memberof GovernanceRequirement
45
+ */
46
+ type?: GovernanceType;
47
+ /**
48
+ * The full S3 path where files for the requirement are saved
49
+ * @type {string}
50
+ * @memberof GovernanceRequirement
51
+ */
52
+ path?: string;
53
+ /**
54
+ *
55
+ * @type {GovernanceScope}
56
+ * @memberof GovernanceRequirement
57
+ */
58
+ scope?: GovernanceScope;
59
+ /**
60
+ *
61
+ * @type {GovernanceScope}
62
+ * @memberof GovernanceRequirement
63
+ */
64
+ acceptance?: GovernanceScope;
65
+ /**
66
+ * The IDs of governance contacts assigned to the requirement.
67
+ * @type {Array<string>}
68
+ * @memberof GovernanceRequirement
69
+ */
70
+ contactIds?: Array<string> | null;
71
+ /**
72
+ *
73
+ * @type {GovernanceExpiry}
74
+ * @memberof GovernanceRequirement
75
+ */
76
+ expiration: GovernanceExpiry;
77
+ /**
78
+ * Optional files with extra information, e.g. templates for documents, links, etc
79
+ * @type {Array<GovernanceFile>}
80
+ * @memberof GovernanceRequirement
81
+ */
82
+ supplementalDocs?: Array<GovernanceFile> | null;
83
+ /**
84
+ *
85
+ * @type {GovernanceFile}
86
+ * @memberof GovernanceRequirement
87
+ */
88
+ file?: GovernanceFile | null;
89
+ /**
90
+ *
91
+ * @type {GovernanceScope}
92
+ * @memberof GovernanceRequirement
93
+ */
94
+ authorship?: GovernanceScope | null;
95
+ /**
96
+ *
97
+ * @type {GovernanceTrainingVerification}
98
+ * @memberof GovernanceRequirement
99
+ */
100
+ verification?: GovernanceTrainingVerification | null;
101
+ }
102
+ /**
103
+ * Check if a given object implements the GovernanceRequirement interface.
104
+ */
105
+ export declare function instanceOfGovernanceRequirement(value: object): boolean;
106
+ export declare function GovernanceRequirementFromJSON(json: any): GovernanceRequirement;
107
+ export declare function GovernanceRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceRequirement;
108
+ export declare function GovernanceRequirementToJSON(value?: GovernanceRequirement | null): any;
@@ -0,0 +1,81 @@
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.GovernanceRequirementToJSON = exports.GovernanceRequirementFromJSONTyped = exports.GovernanceRequirementFromJSON = exports.instanceOfGovernanceRequirement = 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 GovernanceRequirement interface.
25
+ */
26
+ function instanceOfGovernanceRequirement(value) {
27
+ var isInstance = true;
28
+ isInstance = isInstance && "id" in value;
29
+ isInstance = isInstance && "expiration" in value;
30
+ return isInstance;
31
+ }
32
+ exports.instanceOfGovernanceRequirement = instanceOfGovernanceRequirement;
33
+ function GovernanceRequirementFromJSON(json) {
34
+ return GovernanceRequirementFromJSONTyped(json, false);
35
+ }
36
+ exports.GovernanceRequirementFromJSON = GovernanceRequirementFromJSON;
37
+ function GovernanceRequirementFromJSONTyped(json, ignoreDiscriminator) {
38
+ if ((json === undefined) || (json === null)) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
44
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
45
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
46
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
47
+ 'scope': !(0, runtime_1.exists)(json, 'scope') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
48
+ 'acceptance': !(0, runtime_1.exists)(json, 'acceptance') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
49
+ 'contactIds': !(0, runtime_1.exists)(json, 'contactIds') ? undefined : json['contactIds'],
50
+ 'expiration': (0, GovernanceExpiry_1.GovernanceExpiryFromJSON)(json['expiration']),
51
+ 'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
52
+ 'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
53
+ 'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
54
+ 'verification': !(0, runtime_1.exists)(json, 'verification') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verification']),
55
+ };
56
+ }
57
+ exports.GovernanceRequirementFromJSONTyped = GovernanceRequirementFromJSONTyped;
58
+ function GovernanceRequirementToJSON(value) {
59
+ if (value === undefined) {
60
+ return undefined;
61
+ }
62
+ if (value === null) {
63
+ return null;
64
+ }
65
+ return {
66
+ 'id': value.id,
67
+ 'name': value.name,
68
+ 'description': value.description,
69
+ 'type': (0, GovernanceType_1.GovernanceTypeToJSON)(value.type),
70
+ 'path': value.path,
71
+ 'scope': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.scope),
72
+ 'acceptance': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.acceptance),
73
+ 'contactIds': value.contactIds,
74
+ 'expiration': (0, GovernanceExpiry_1.GovernanceExpiryToJSON)(value.expiration),
75
+ 'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
76
+ 'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
77
+ 'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
78
+ 'verification': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verification),
79
+ };
80
+ }
81
+ exports.GovernanceRequirementToJSON = GovernanceRequirementToJSON;
@@ -0,0 +1,50 @@
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 { GovernanceFileType } from './GovernanceFileType';
13
+ /**
14
+ * The document uploaded for the requirement: only if agreement or document object has a matching scope and authorship
15
+ * @export
16
+ * @interface GovernanceRequirementFile
17
+ */
18
+ export interface GovernanceRequirementFile {
19
+ /**
20
+ * The title of the resource visible to users
21
+ * @type {string}
22
+ * @memberof GovernanceRequirementFile
23
+ */
24
+ name?: string;
25
+ /**
26
+ * A description of the resource visible to users
27
+ * @type {string}
28
+ * @memberof GovernanceRequirementFile
29
+ */
30
+ description?: string;
31
+ /**
32
+ * The file name without path or the full link path
33
+ * @type {string}
34
+ * @memberof GovernanceRequirementFile
35
+ */
36
+ src?: string;
37
+ /**
38
+ *
39
+ * @type {GovernanceFileType}
40
+ * @memberof GovernanceRequirementFile
41
+ */
42
+ type?: GovernanceFileType;
43
+ }
44
+ /**
45
+ * Check if a given object implements the GovernanceRequirementFile interface.
46
+ */
47
+ export declare function instanceOfGovernanceRequirementFile(value: object): boolean;
48
+ export declare function GovernanceRequirementFileFromJSON(json: any): GovernanceRequirementFile;
49
+ export declare function GovernanceRequirementFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceRequirementFile;
50
+ export declare function GovernanceRequirementFileToJSON(value?: GovernanceRequirementFile | null): any;
@@ -0,0 +1,57 @@
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.GovernanceRequirementFileToJSON = exports.GovernanceRequirementFileFromJSONTyped = exports.GovernanceRequirementFileFromJSON = exports.instanceOfGovernanceRequirementFile = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var GovernanceFileType_1 = require("./GovernanceFileType");
19
+ /**
20
+ * Check if a given object implements the GovernanceRequirementFile interface.
21
+ */
22
+ function instanceOfGovernanceRequirementFile(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfGovernanceRequirementFile = instanceOfGovernanceRequirementFile;
27
+ function GovernanceRequirementFileFromJSON(json) {
28
+ return GovernanceRequirementFileFromJSONTyped(json, false);
29
+ }
30
+ exports.GovernanceRequirementFileFromJSON = GovernanceRequirementFileFromJSON;
31
+ function GovernanceRequirementFileFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
38
+ 'src': !(0, runtime_1.exists)(json, 'src') ? undefined : json['src'],
39
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : (0, GovernanceFileType_1.GovernanceFileTypeFromJSON)(json['type']),
40
+ };
41
+ }
42
+ exports.GovernanceRequirementFileFromJSONTyped = GovernanceRequirementFileFromJSONTyped;
43
+ function GovernanceRequirementFileToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'name': value.name,
52
+ 'description': value.description,
53
+ 'src': value.src,
54
+ 'type': (0, GovernanceFileType_1.GovernanceFileTypeToJSON)(value.type),
55
+ };
56
+ }
57
+ exports.GovernanceRequirementFileToJSON = GovernanceRequirementFileToJSON;
@@ -0,0 +1,23 @@
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 levels at which governance requirements can be enforced
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum GovernanceScope {
18
+ Tenant = "TENANT",
19
+ Project = "PROJECT"
20
+ }
21
+ export declare function GovernanceScopeFromJSON(json: any): GovernanceScope;
22
+ export declare function GovernanceScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceScope;
23
+ export declare function GovernanceScopeToJSON(value?: GovernanceScope | null): any;
@@ -0,0 +1,38 @@
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.GovernanceScopeToJSON = exports.GovernanceScopeFromJSONTyped = exports.GovernanceScopeFromJSON = exports.GovernanceScope = void 0;
17
+ /**
18
+ * The levels at which governance requirements can be enforced
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var GovernanceScope;
23
+ (function (GovernanceScope) {
24
+ GovernanceScope["Tenant"] = "TENANT";
25
+ GovernanceScope["Project"] = "PROJECT";
26
+ })(GovernanceScope = exports.GovernanceScope || (exports.GovernanceScope = {}));
27
+ function GovernanceScopeFromJSON(json) {
28
+ return GovernanceScopeFromJSONTyped(json, false);
29
+ }
30
+ exports.GovernanceScopeFromJSON = GovernanceScopeFromJSON;
31
+ function GovernanceScopeFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.GovernanceScopeFromJSONTyped = GovernanceScopeFromJSONTyped;
35
+ function GovernanceScopeToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.GovernanceScopeToJSON = GovernanceScopeToJSON;
@@ -0,0 +1,23 @@
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 ways in which the completion of training can be verified.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum GovernanceTrainingVerification {
18
+ Self = "SELF",
19
+ Certificate = "CERTIFICATE"
20
+ }
21
+ export declare function GovernanceTrainingVerificationFromJSON(json: any): GovernanceTrainingVerification;
22
+ export declare function GovernanceTrainingVerificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceTrainingVerification;
23
+ export declare function GovernanceTrainingVerificationToJSON(value?: GovernanceTrainingVerification | null): any;
@@ -0,0 +1,38 @@
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.GovernanceTrainingVerificationToJSON = exports.GovernanceTrainingVerificationFromJSONTyped = exports.GovernanceTrainingVerificationFromJSON = exports.GovernanceTrainingVerification = void 0;
17
+ /**
18
+ * The ways in which the completion of training can be verified.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var GovernanceTrainingVerification;
23
+ (function (GovernanceTrainingVerification) {
24
+ GovernanceTrainingVerification["Self"] = "SELF";
25
+ GovernanceTrainingVerification["Certificate"] = "CERTIFICATE";
26
+ })(GovernanceTrainingVerification = exports.GovernanceTrainingVerification || (exports.GovernanceTrainingVerification = {}));
27
+ function GovernanceTrainingVerificationFromJSON(json) {
28
+ return GovernanceTrainingVerificationFromJSONTyped(json, false);
29
+ }
30
+ exports.GovernanceTrainingVerificationFromJSON = GovernanceTrainingVerificationFromJSON;
31
+ function GovernanceTrainingVerificationFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.GovernanceTrainingVerificationFromJSONTyped = GovernanceTrainingVerificationFromJSONTyped;
35
+ function GovernanceTrainingVerificationToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.GovernanceTrainingVerificationToJSON = GovernanceTrainingVerificationToJSON;
@@ -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,96 @@
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;
53
+ /**
54
+ *
55
+ * @type {Array<string>}
56
+ * @memberof RequirementInput
57
+ */
58
+ contactIds?: Array<string> | null;
59
+ /**
60
+ *
61
+ * @type {GovernanceExpiry}
62
+ * @memberof RequirementInput
63
+ */
64
+ expiration: GovernanceExpiry;
65
+ /**
66
+ *
67
+ * @type {Array<GovernanceFile>}
68
+ * @memberof RequirementInput
69
+ */
70
+ supplementalDocs?: Array<GovernanceFile> | null;
71
+ /**
72
+ *
73
+ * @type {GovernanceFile}
74
+ * @memberof RequirementInput
75
+ */
76
+ file?: GovernanceFile | null;
77
+ /**
78
+ *
79
+ * @type {GovernanceScope}
80
+ * @memberof RequirementInput
81
+ */
82
+ authorship?: GovernanceScope | null;
83
+ /**
84
+ *
85
+ * @type {GovernanceTrainingVerification}
86
+ * @memberof RequirementInput
87
+ */
88
+ verification?: GovernanceTrainingVerification | null;
89
+ }
90
+ /**
91
+ * Check if a given object implements the RequirementInput interface.
92
+ */
93
+ export declare function instanceOfRequirementInput(value: object): boolean;
94
+ export declare function RequirementInputFromJSON(json: any): RequirementInput;
95
+ export declare function RequirementInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequirementInput;
96
+ export declare function RequirementInputToJSON(value?: RequirementInput | null): any;
@@ -0,0 +1,81 @@
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 && "acceptance" 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, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
51
+ 'contactIds': !(0, runtime_1.exists)(json, 'contactIds') ? undefined : json['contactIds'],
52
+ 'expiration': (0, GovernanceExpiry_1.GovernanceExpiryFromJSON)(json['expiration']),
53
+ 'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
54
+ 'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
55
+ 'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
56
+ 'verification': !(0, runtime_1.exists)(json, 'verification') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verification']),
57
+ };
58
+ }
59
+ exports.RequirementInputFromJSONTyped = RequirementInputFromJSONTyped;
60
+ function RequirementInputToJSON(value) {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+ 'name': value.name,
69
+ 'description': value.description,
70
+ 'type': (0, GovernanceType_1.GovernanceTypeToJSON)(value.type),
71
+ 'scope': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.scope),
72
+ 'acceptance': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.acceptance),
73
+ 'contactIds': value.contactIds,
74
+ 'expiration': (0, GovernanceExpiry_1.GovernanceExpiryToJSON)(value.expiration),
75
+ 'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
76
+ 'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
77
+ 'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
78
+ 'verification': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verification),
79
+ };
80
+ }
81
+ exports.RequirementInputToJSON = RequirementInputToJSON;
@@ -59,7 +59,7 @@ export interface ShareDetail {
59
59
  * @type {Array<DatasetCondition>}
60
60
  * @memberof ShareDetail
61
61
  */
62
- conditions?: Array<DatasetCondition>;
62
+ conditions: Array<DatasetCondition>;
63
63
  /**
64
64
  *
65
65
  * @type {Array<string>}