@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.
Files changed (74) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +1 -1
  3. package/dist/apis/DatasetsApi.d.ts +6 -6
  4. package/dist/apis/DatasetsApi.js +6 -6
  5. package/dist/apis/FileApi.d.ts +14 -0
  6. package/dist/apis/FileApi.js +60 -0
  7. package/dist/apis/GovernanceApi.d.ts +127 -1
  8. package/dist/apis/GovernanceApi.js +555 -1
  9. package/dist/apis/SharingApi.d.ts +19 -3
  10. package/dist/apis/SharingApi.js +63 -1
  11. package/dist/models/AccessType.d.ts +3 -1
  12. package/dist/models/AccessType.js +2 -0
  13. package/dist/models/ClassificationInput.d.ts +6 -0
  14. package/dist/models/ClassificationInput.js +3 -0
  15. package/dist/models/ContactInput.d.ts +55 -0
  16. package/dist/models/ContactInput.js +62 -0
  17. package/dist/models/DatasetDetail.d.ts +13 -0
  18. package/dist/models/DatasetDetail.js +7 -0
  19. package/dist/models/GovernanceClassification.d.ts +6 -0
  20. package/dist/models/GovernanceClassification.js +3 -0
  21. package/dist/models/GovernanceContact.d.ts +79 -0
  22. package/dist/models/GovernanceContact.js +74 -0
  23. package/dist/models/GovernanceExpiry.d.ts +44 -0
  24. package/dist/models/GovernanceExpiry.js +55 -0
  25. package/dist/models/GovernanceExpiryType.d.ts +25 -0
  26. package/dist/models/GovernanceExpiryType.js +40 -0
  27. package/dist/models/GovernanceFile.d.ts +50 -0
  28. package/dist/models/GovernanceFile.js +57 -0
  29. package/dist/models/GovernanceFileType.d.ts +23 -0
  30. package/dist/models/GovernanceFileType.js +38 -0
  31. package/dist/models/GovernanceRequirement.d.ts +132 -0
  32. package/dist/models/GovernanceRequirement.js +98 -0
  33. package/dist/models/GovernanceRequirementFile.d.ts +50 -0
  34. package/dist/models/GovernanceRequirementFile.js +57 -0
  35. package/dist/models/GovernanceScope.d.ts +23 -0
  36. package/dist/models/GovernanceScope.js +38 -0
  37. package/dist/models/GovernanceTrainingVerification.d.ts +23 -0
  38. package/dist/models/GovernanceTrainingVerification.js +38 -0
  39. package/dist/models/GovernanceType.d.ts +26 -0
  40. package/dist/models/GovernanceType.js +41 -0
  41. package/dist/models/RequirementInput.d.ts +102 -0
  42. package/dist/models/RequirementInput.js +83 -0
  43. package/dist/models/Share.d.ts +7 -0
  44. package/dist/models/Share.js +4 -0
  45. package/dist/models/ShareDetail.d.ts +1 -1
  46. package/dist/models/ShareDetail.js +3 -3
  47. package/dist/models/index.d.ts +11 -0
  48. package/dist/models/index.js +11 -0
  49. package/dist/runtime.js +1 -1
  50. package/package.json +1 -1
  51. package/src/apis/DatasetsApi.ts +6 -6
  52. package/src/apis/FileApi.ts +52 -0
  53. package/src/apis/GovernanceApi.ts +457 -1
  54. package/src/apis/SharingApi.ts +64 -6
  55. package/src/models/AccessType.ts +3 -1
  56. package/src/models/ClassificationInput.ts +9 -0
  57. package/src/models/ContactInput.ts +102 -0
  58. package/src/models/DatasetDetail.ts +23 -0
  59. package/src/models/GovernanceClassification.ts +9 -0
  60. package/src/models/GovernanceContact.ts +138 -0
  61. package/src/models/GovernanceExpiry.ts +88 -0
  62. package/src/models/GovernanceExpiryType.ts +39 -0
  63. package/src/models/GovernanceFile.ts +96 -0
  64. package/src/models/GovernanceFileType.ts +37 -0
  65. package/src/models/GovernanceRequirement.ts +235 -0
  66. package/src/models/GovernanceRequirementFile.ts +96 -0
  67. package/src/models/GovernanceScope.ts +37 -0
  68. package/src/models/GovernanceTrainingVerification.ts +37 -0
  69. package/src/models/GovernanceType.ts +40 -0
  70. package/src/models/RequirementInput.ts +190 -0
  71. package/src/models/Share.ts +15 -0
  72. package/src/models/ShareDetail.ts +4 -3
  73. package/src/models/index.ts +11 -0
  74. package/src/runtime.ts +1 -1
@@ -0,0 +1,40 @@
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.GovernanceExpiryTypeToJSON = exports.GovernanceExpiryTypeFromJSONTyped = exports.GovernanceExpiryTypeFromJSON = exports.GovernanceExpiryType = void 0;
17
+ /**
18
+ * The expiry conditions that can be applied to governance requirements.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var GovernanceExpiryType;
23
+ (function (GovernanceExpiryType) {
24
+ GovernanceExpiryType["None"] = "NONE";
25
+ GovernanceExpiryType["Absolute"] = "ABSOLUTE";
26
+ GovernanceExpiryType["RelativeEnactment"] = "RELATIVE_ENACTMENT";
27
+ GovernanceExpiryType["RelativeCompletion"] = "RELATIVE_COMPLETION";
28
+ })(GovernanceExpiryType = exports.GovernanceExpiryType || (exports.GovernanceExpiryType = {}));
29
+ function GovernanceExpiryTypeFromJSON(json) {
30
+ return GovernanceExpiryTypeFromJSONTyped(json, false);
31
+ }
32
+ exports.GovernanceExpiryTypeFromJSON = GovernanceExpiryTypeFromJSON;
33
+ function GovernanceExpiryTypeFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ exports.GovernanceExpiryTypeFromJSONTyped = GovernanceExpiryTypeFromJSONTyped;
37
+ function GovernanceExpiryTypeToJSON(value) {
38
+ return value;
39
+ }
40
+ exports.GovernanceExpiryTypeToJSON = GovernanceExpiryTypeToJSON;
@@ -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
+ *
15
+ * @export
16
+ * @interface GovernanceFile
17
+ */
18
+ export interface GovernanceFile {
19
+ /**
20
+ * The title of the resource visible to users
21
+ * @type {string}
22
+ * @memberof GovernanceFile
23
+ */
24
+ name?: string;
25
+ /**
26
+ * A description of the resource visible to users
27
+ * @type {string}
28
+ * @memberof GovernanceFile
29
+ */
30
+ description?: string;
31
+ /**
32
+ * The file name without path or the full link path
33
+ * @type {string}
34
+ * @memberof GovernanceFile
35
+ */
36
+ src?: string;
37
+ /**
38
+ *
39
+ * @type {GovernanceFileType}
40
+ * @memberof GovernanceFile
41
+ */
42
+ type?: GovernanceFileType;
43
+ }
44
+ /**
45
+ * Check if a given object implements the GovernanceFile interface.
46
+ */
47
+ export declare function instanceOfGovernanceFile(value: object): boolean;
48
+ export declare function GovernanceFileFromJSON(json: any): GovernanceFile;
49
+ export declare function GovernanceFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceFile;
50
+ export declare function GovernanceFileToJSON(value?: GovernanceFile | 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.GovernanceFileToJSON = exports.GovernanceFileFromJSONTyped = exports.GovernanceFileFromJSON = exports.instanceOfGovernanceFile = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var GovernanceFileType_1 = require("./GovernanceFileType");
19
+ /**
20
+ * Check if a given object implements the GovernanceFile interface.
21
+ */
22
+ function instanceOfGovernanceFile(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfGovernanceFile = instanceOfGovernanceFile;
27
+ function GovernanceFileFromJSON(json) {
28
+ return GovernanceFileFromJSONTyped(json, false);
29
+ }
30
+ exports.GovernanceFileFromJSON = GovernanceFileFromJSON;
31
+ function GovernanceFileFromJSONTyped(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.GovernanceFileFromJSONTyped = GovernanceFileFromJSONTyped;
43
+ function GovernanceFileToJSON(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.GovernanceFileToJSON = GovernanceFileToJSON;
@@ -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 options for supplementals for governance requirements
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum GovernanceFileType {
18
+ File = "FILE",
19
+ Link = "LINK"
20
+ }
21
+ export declare function GovernanceFileTypeFromJSON(json: any): GovernanceFileType;
22
+ export declare function GovernanceFileTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceFileType;
23
+ export declare function GovernanceFileTypeToJSON(value?: GovernanceFileType | 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.GovernanceFileTypeToJSON = exports.GovernanceFileTypeFromJSONTyped = exports.GovernanceFileTypeFromJSON = exports.GovernanceFileType = void 0;
17
+ /**
18
+ * The options for supplementals for governance requirements
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var GovernanceFileType;
23
+ (function (GovernanceFileType) {
24
+ GovernanceFileType["File"] = "FILE";
25
+ GovernanceFileType["Link"] = "LINK";
26
+ })(GovernanceFileType = exports.GovernanceFileType || (exports.GovernanceFileType = {}));
27
+ function GovernanceFileTypeFromJSON(json) {
28
+ return GovernanceFileTypeFromJSONTyped(json, false);
29
+ }
30
+ exports.GovernanceFileTypeFromJSON = GovernanceFileTypeFromJSON;
31
+ function GovernanceFileTypeFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.GovernanceFileTypeFromJSONTyped = GovernanceFileTypeFromJSONTyped;
35
+ function GovernanceFileTypeToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.GovernanceFileTypeToJSON = GovernanceFileTypeToJSON;
@@ -0,0 +1,132 @@
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
+ * S3 prefix 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 | null;
65
+ /**
66
+ * The IDs of governance contacts assigned to the requirement.
67
+ * @type {Array<string>}
68
+ * @memberof GovernanceRequirement
69
+ */
70
+ contactIds: Array<string>;
71
+ /**
72
+ *
73
+ * @type {GovernanceExpiry}
74
+ * @memberof GovernanceRequirement
75
+ */
76
+ expiration: GovernanceExpiry;
77
+ /**
78
+ * The date of enactment for a requirement
79
+ * @type {Date}
80
+ * @memberof GovernanceRequirement
81
+ */
82
+ enactmentDate?: Date | null;
83
+ /**
84
+ * Optional files with extra information, e.g. templates for documents, links, etc
85
+ * @type {Array<GovernanceFile>}
86
+ * @memberof GovernanceRequirement
87
+ */
88
+ supplementalDocs?: Array<GovernanceFile> | null;
89
+ /**
90
+ *
91
+ * @type {GovernanceFile}
92
+ * @memberof GovernanceRequirement
93
+ */
94
+ file?: GovernanceFile | null;
95
+ /**
96
+ *
97
+ * @type {GovernanceScope}
98
+ * @memberof GovernanceRequirement
99
+ */
100
+ authorship?: GovernanceScope | null;
101
+ /**
102
+ *
103
+ * @type {GovernanceTrainingVerification}
104
+ * @memberof GovernanceRequirement
105
+ */
106
+ verification?: GovernanceTrainingVerification | null;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof GovernanceRequirement
111
+ */
112
+ createdBy: string;
113
+ /**
114
+ *
115
+ * @type {Date}
116
+ * @memberof GovernanceRequirement
117
+ */
118
+ createdAt: Date;
119
+ /**
120
+ *
121
+ * @type {Date}
122
+ * @memberof GovernanceRequirement
123
+ */
124
+ updatedAt: Date;
125
+ }
126
+ /**
127
+ * Check if a given object implements the GovernanceRequirement interface.
128
+ */
129
+ export declare function instanceOfGovernanceRequirement(value: object): boolean;
130
+ export declare function GovernanceRequirementFromJSON(json: any): GovernanceRequirement;
131
+ export declare function GovernanceRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceRequirement;
132
+ export declare function GovernanceRequirementToJSON(value?: GovernanceRequirement | null): any;
@@ -0,0 +1,98 @@
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 && "name" in value;
30
+ isInstance = isInstance && "description" in value;
31
+ isInstance = isInstance && "type" in value;
32
+ isInstance = isInstance && "path" in value;
33
+ isInstance = isInstance && "scope" in value;
34
+ isInstance = isInstance && "contactIds" in value;
35
+ isInstance = isInstance && "expiration" in value;
36
+ isInstance = isInstance && "createdBy" in value;
37
+ isInstance = isInstance && "createdAt" in value;
38
+ isInstance = isInstance && "updatedAt" in value;
39
+ return isInstance;
40
+ }
41
+ exports.instanceOfGovernanceRequirement = instanceOfGovernanceRequirement;
42
+ function GovernanceRequirementFromJSON(json) {
43
+ return GovernanceRequirementFromJSONTyped(json, false);
44
+ }
45
+ exports.GovernanceRequirementFromJSON = GovernanceRequirementFromJSON;
46
+ function GovernanceRequirementFromJSONTyped(json, ignoreDiscriminator) {
47
+ if ((json === undefined) || (json === null)) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'name': json['name'],
53
+ 'description': json['description'],
54
+ 'type': (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
55
+ 'path': json['path'],
56
+ 'scope': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
57
+ 'acceptance': !(0, runtime_1.exists)(json, 'acceptance') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
58
+ 'contactIds': json['contactIds'],
59
+ 'expiration': (0, GovernanceExpiry_1.GovernanceExpiryFromJSON)(json['expiration']),
60
+ 'enactmentDate': !(0, runtime_1.exists)(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
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
+ 'verification': !(0, runtime_1.exists)(json, 'verification') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verification']),
65
+ 'createdBy': json['createdBy'],
66
+ 'createdAt': (new Date(json['createdAt'])),
67
+ 'updatedAt': (new Date(json['updatedAt'])),
68
+ };
69
+ }
70
+ exports.GovernanceRequirementFromJSONTyped = GovernanceRequirementFromJSONTyped;
71
+ function GovernanceRequirementToJSON(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
+ 'contactIds': value.contactIds,
87
+ 'expiration': (0, GovernanceExpiry_1.GovernanceExpiryToJSON)(value.expiration),
88
+ 'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
89
+ 'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
90
+ 'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
91
+ 'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
92
+ 'verification': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verification),
93
+ 'createdBy': value.createdBy,
94
+ 'createdAt': (value.createdAt.toISOString()),
95
+ 'updatedAt': (value.updatedAt.toISOString()),
96
+ };
97
+ }
98
+ 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;