@cirrobio/api-client 0.1.30 → 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 (98) hide show
  1. package/.openapi-generator/FILES +22 -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 +131 -0
  8. package/dist/apis/SharingApi.js +545 -0
  9. package/dist/apis/ToolsApi.d.ts +31 -0
  10. package/dist/apis/ToolsApi.js +137 -0
  11. package/dist/apis/index.d.ts +2 -0
  12. package/dist/apis/index.js +2 -0
  13. package/dist/models/AccessType.d.ts +3 -1
  14. package/dist/models/AccessType.js +2 -0
  15. package/dist/models/ClassificationInput.d.ts +6 -0
  16. package/dist/models/ClassificationInput.js +3 -0
  17. package/dist/models/ContactInput.d.ts +55 -0
  18. package/dist/models/ContactInput.js +62 -0
  19. package/dist/models/DatasetCondition.d.ts +38 -0
  20. package/dist/models/DatasetCondition.js +54 -0
  21. package/dist/models/DatasetConditionField.d.ts +24 -0
  22. package/dist/models/DatasetConditionField.js +39 -0
  23. package/dist/models/GovernanceClassification.d.ts +6 -0
  24. package/dist/models/GovernanceClassification.js +3 -0
  25. package/dist/models/GovernanceContact.d.ts +61 -0
  26. package/dist/models/GovernanceContact.js +65 -0
  27. package/dist/models/GovernanceExpiry.d.ts +44 -0
  28. package/dist/models/GovernanceExpiry.js +55 -0
  29. package/dist/models/GovernanceExpiryType.d.ts +25 -0
  30. package/dist/models/GovernanceExpiryType.js +40 -0
  31. package/dist/models/GovernanceFile.d.ts +50 -0
  32. package/dist/models/GovernanceFile.js +57 -0
  33. package/dist/models/GovernanceFileType.d.ts +23 -0
  34. package/dist/models/GovernanceFileType.js +38 -0
  35. package/dist/models/GovernanceRequirement.d.ts +108 -0
  36. package/dist/models/GovernanceRequirement.js +81 -0
  37. package/dist/models/GovernanceRequirementFile.d.ts +50 -0
  38. package/dist/models/GovernanceRequirementFile.js +57 -0
  39. package/dist/models/GovernanceScope.d.ts +23 -0
  40. package/dist/models/GovernanceScope.js +38 -0
  41. package/dist/models/GovernanceTrainingVerification.d.ts +23 -0
  42. package/dist/models/GovernanceTrainingVerification.js +38 -0
  43. package/dist/models/GovernanceType.d.ts +26 -0
  44. package/dist/models/GovernanceType.js +41 -0
  45. package/dist/models/MoveDatasetInput.d.ts +43 -0
  46. package/dist/models/MoveDatasetInput.js +56 -0
  47. package/dist/models/MoveDatasetResponse.d.ts +43 -0
  48. package/dist/models/MoveDatasetResponse.js +56 -0
  49. package/dist/models/NamedItem.d.ts +37 -0
  50. package/dist/models/NamedItem.js +53 -0
  51. package/dist/models/ProjectSettings.d.ts +6 -0
  52. package/dist/models/ProjectSettings.js +2 -0
  53. package/dist/models/RequirementInput.d.ts +96 -0
  54. package/dist/models/RequirementInput.js +81 -0
  55. package/dist/models/Share.d.ts +86 -0
  56. package/dist/models/Share.js +78 -0
  57. package/dist/models/ShareDetail.d.ts +106 -0
  58. package/dist/models/ShareDetail.js +89 -0
  59. package/dist/models/ShareInput.d.ts +62 -0
  60. package/dist/models/ShareInput.js +65 -0
  61. package/dist/models/ShareType.d.ts +24 -0
  62. package/dist/models/ShareType.js +39 -0
  63. package/dist/models/index.d.ts +20 -0
  64. package/dist/models/index.js +20 -0
  65. package/dist/runtime.js +1 -1
  66. package/package.json +1 -1
  67. package/src/apis/FileApi.ts +52 -0
  68. package/src/apis/GovernanceApi.ts +457 -1
  69. package/src/apis/SharingApi.ts +442 -0
  70. package/src/apis/ToolsApi.ts +80 -0
  71. package/src/apis/index.ts +2 -0
  72. package/src/models/AccessType.ts +3 -1
  73. package/src/models/ClassificationInput.ts +9 -0
  74. package/src/models/ContactInput.ts +102 -0
  75. package/src/models/DatasetCondition.ts +82 -0
  76. package/src/models/DatasetConditionField.ts +38 -0
  77. package/src/models/GovernanceClassification.ts +9 -0
  78. package/src/models/GovernanceContact.ts +111 -0
  79. package/src/models/GovernanceExpiry.ts +88 -0
  80. package/src/models/GovernanceExpiryType.ts +39 -0
  81. package/src/models/GovernanceFile.ts +96 -0
  82. package/src/models/GovernanceFileType.ts +37 -0
  83. package/src/models/GovernanceRequirement.ts +194 -0
  84. package/src/models/GovernanceRequirementFile.ts +96 -0
  85. package/src/models/GovernanceScope.ts +37 -0
  86. package/src/models/GovernanceTrainingVerification.ts +37 -0
  87. package/src/models/GovernanceType.ts +40 -0
  88. package/src/models/MoveDatasetInput.ts +84 -0
  89. package/src/models/MoveDatasetResponse.ts +84 -0
  90. package/src/models/NamedItem.ts +75 -0
  91. package/src/models/ProjectSettings.ts +8 -0
  92. package/src/models/RequirementInput.ts +182 -0
  93. package/src/models/Share.ts +154 -0
  94. package/src/models/ShareDetail.ts +193 -0
  95. package/src/models/ShareInput.ts +116 -0
  96. package/src/models/ShareType.ts +38 -0
  97. package/src/models/index.ts +20 -0
  98. package/src/runtime.ts +1 -1
@@ -0,0 +1,65 @@
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.GovernanceContactToJSON = exports.GovernanceContactFromJSONTyped = exports.GovernanceContactFromJSON = exports.instanceOfGovernanceContact = void 0;
17
+ /**
18
+ * Check if a given object implements the GovernanceContact interface.
19
+ */
20
+ function instanceOfGovernanceContact(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "id" in value;
23
+ isInstance = isInstance && "title" in value;
24
+ isInstance = isInstance && "description" in value;
25
+ isInstance = isInstance && "name" in value;
26
+ isInstance = isInstance && "phone" in value;
27
+ isInstance = isInstance && "email" in value;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfGovernanceContact = instanceOfGovernanceContact;
31
+ function GovernanceContactFromJSON(json) {
32
+ return GovernanceContactFromJSONTyped(json, false);
33
+ }
34
+ exports.GovernanceContactFromJSON = GovernanceContactFromJSON;
35
+ function GovernanceContactFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'title': json['title'],
42
+ 'description': json['description'],
43
+ 'name': json['name'],
44
+ 'phone': json['phone'],
45
+ 'email': json['email'],
46
+ };
47
+ }
48
+ exports.GovernanceContactFromJSONTyped = GovernanceContactFromJSONTyped;
49
+ function GovernanceContactToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ return {
57
+ 'id': value.id,
58
+ 'title': value.title,
59
+ 'description': value.description,
60
+ 'name': value.name,
61
+ 'phone': value.phone,
62
+ 'email': value.email,
63
+ };
64
+ }
65
+ exports.GovernanceContactToJSON = GovernanceContactToJSON;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { GovernanceExpiryType } from './GovernanceExpiryType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GovernanceExpiry
17
+ */
18
+ export interface GovernanceExpiry {
19
+ /**
20
+ *
21
+ * @type {GovernanceExpiryType}
22
+ * @memberof GovernanceExpiry
23
+ */
24
+ type?: GovernanceExpiryType;
25
+ /**
26
+ * The number of days for a relative expiration
27
+ * @type {number}
28
+ * @memberof GovernanceExpiry
29
+ */
30
+ days?: number | null;
31
+ /**
32
+ * The date for an absolute expiration
33
+ * @type {Date}
34
+ * @memberof GovernanceExpiry
35
+ */
36
+ date?: Date | null;
37
+ }
38
+ /**
39
+ * Check if a given object implements the GovernanceExpiry interface.
40
+ */
41
+ export declare function instanceOfGovernanceExpiry(value: object): boolean;
42
+ export declare function GovernanceExpiryFromJSON(json: any): GovernanceExpiry;
43
+ export declare function GovernanceExpiryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceExpiry;
44
+ export declare function GovernanceExpiryToJSON(value?: GovernanceExpiry | null): any;
@@ -0,0 +1,55 @@
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.GovernanceExpiryToJSON = exports.GovernanceExpiryFromJSONTyped = exports.GovernanceExpiryFromJSON = exports.instanceOfGovernanceExpiry = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var GovernanceExpiryType_1 = require("./GovernanceExpiryType");
19
+ /**
20
+ * Check if a given object implements the GovernanceExpiry interface.
21
+ */
22
+ function instanceOfGovernanceExpiry(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfGovernanceExpiry = instanceOfGovernanceExpiry;
27
+ function GovernanceExpiryFromJSON(json) {
28
+ return GovernanceExpiryFromJSONTyped(json, false);
29
+ }
30
+ exports.GovernanceExpiryFromJSON = GovernanceExpiryFromJSON;
31
+ function GovernanceExpiryFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : (0, GovernanceExpiryType_1.GovernanceExpiryTypeFromJSON)(json['type']),
37
+ 'days': !(0, runtime_1.exists)(json, 'days') ? undefined : json['days'],
38
+ 'date': !(0, runtime_1.exists)(json, 'date') ? undefined : (json['date'] === null ? null : new Date(json['date'])),
39
+ };
40
+ }
41
+ exports.GovernanceExpiryFromJSONTyped = GovernanceExpiryFromJSONTyped;
42
+ function GovernanceExpiryToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'type': (0, GovernanceExpiryType_1.GovernanceExpiryTypeToJSON)(value.type),
51
+ 'days': value.days,
52
+ 'date': value.date === undefined ? undefined : (value.date === null ? null : value.date.toISOString()),
53
+ };
54
+ }
55
+ exports.GovernanceExpiryToJSON = GovernanceExpiryToJSON;
@@ -0,0 +1,25 @@
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 expiry conditions that can be applied to governance requirements.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum GovernanceExpiryType {
18
+ None = "NONE",
19
+ Absolute = "ABSOLUTE",
20
+ RelativeEnactment = "RELATIVE_ENACTMENT",
21
+ RelativeCompletion = "RELATIVE_COMPLETION"
22
+ }
23
+ export declare function GovernanceExpiryTypeFromJSON(json: any): GovernanceExpiryType;
24
+ export declare function GovernanceExpiryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceExpiryType;
25
+ export declare function GovernanceExpiryTypeToJSON(value?: GovernanceExpiryType | null): any;
@@ -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,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;