@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
@@ -27,6 +27,12 @@ export interface ClassificationInput {
27
27
  * @memberof ClassificationInput
28
28
  */
29
29
  description: string;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof ClassificationInput
34
+ */
35
+ requirementIds: Array<string>;
30
36
  }
31
37
  /**
32
38
  * Check if a given object implements the ClassificationInput interface.
@@ -21,6 +21,7 @@ function instanceOfClassificationInput(value) {
21
21
  var isInstance = true;
22
22
  isInstance = isInstance && "name" in value;
23
23
  isInstance = isInstance && "description" in value;
24
+ isInstance = isInstance && "requirementIds" in value;
24
25
  return isInstance;
25
26
  }
26
27
  exports.instanceOfClassificationInput = instanceOfClassificationInput;
@@ -35,6 +36,7 @@ function ClassificationInputFromJSONTyped(json, ignoreDiscriminator) {
35
36
  return {
36
37
  'name': json['name'],
37
38
  'description': json['description'],
39
+ 'requirementIds': json['requirementIds'],
38
40
  };
39
41
  }
40
42
  exports.ClassificationInputFromJSONTyped = ClassificationInputFromJSONTyped;
@@ -48,6 +50,7 @@ function ClassificationInputToJSON(value) {
48
50
  return {
49
51
  'name': value.name,
50
52
  'description': value.description,
53
+ 'requirementIds': value.requirementIds,
51
54
  };
52
55
  }
53
56
  exports.ClassificationInputToJSON = ClassificationInputToJSON;
@@ -0,0 +1,55 @@
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
+ *
14
+ * @export
15
+ * @interface ContactInput
16
+ */
17
+ export interface ContactInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ContactInput
22
+ */
23
+ title: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ContactInput
28
+ */
29
+ description: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ContactInput
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ContactInput
40
+ */
41
+ phone: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ContactInput
46
+ */
47
+ email: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the ContactInput interface.
51
+ */
52
+ export declare function instanceOfContactInput(value: object): boolean;
53
+ export declare function ContactInputFromJSON(json: any): ContactInput;
54
+ export declare function ContactInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInput;
55
+ export declare function ContactInputToJSON(value?: ContactInput | null): any;
@@ -0,0 +1,62 @@
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.ContactInputToJSON = exports.ContactInputFromJSONTyped = exports.ContactInputFromJSON = exports.instanceOfContactInput = void 0;
17
+ /**
18
+ * Check if a given object implements the ContactInput interface.
19
+ */
20
+ function instanceOfContactInput(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "title" in value;
23
+ isInstance = isInstance && "description" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "phone" in value;
26
+ isInstance = isInstance && "email" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfContactInput = instanceOfContactInput;
30
+ function ContactInputFromJSON(json) {
31
+ return ContactInputFromJSONTyped(json, false);
32
+ }
33
+ exports.ContactInputFromJSON = ContactInputFromJSON;
34
+ function ContactInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'title': json['title'],
40
+ 'description': json['description'],
41
+ 'name': json['name'],
42
+ 'phone': json['phone'],
43
+ 'email': json['email'],
44
+ };
45
+ }
46
+ exports.ContactInputFromJSONTyped = ContactInputFromJSONTyped;
47
+ function ContactInputToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'title': value.title,
56
+ 'description': value.description,
57
+ 'name': value.name,
58
+ 'phone': value.phone,
59
+ 'email': value.email,
60
+ };
61
+ }
62
+ exports.ContactInputToJSON = ContactInputToJSON;
@@ -33,6 +33,12 @@ export interface GovernanceClassification {
33
33
  * @memberof GovernanceClassification
34
34
  */
35
35
  description: string;
36
+ /**
37
+ *
38
+ * @type {Array<string>}
39
+ * @memberof GovernanceClassification
40
+ */
41
+ requirementIds: Array<string>;
36
42
  /**
37
43
  *
38
44
  * @type {string}
@@ -22,6 +22,7 @@ function instanceOfGovernanceClassification(value) {
22
22
  isInstance = isInstance && "id" in value;
23
23
  isInstance = isInstance && "name" in value;
24
24
  isInstance = isInstance && "description" in value;
25
+ isInstance = isInstance && "requirementIds" in value;
25
26
  isInstance = isInstance && "createdBy" in value;
26
27
  isInstance = isInstance && "createdAt" in value;
27
28
  isInstance = isInstance && "updatedAt" in value;
@@ -40,6 +41,7 @@ function GovernanceClassificationFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'id': json['id'],
41
42
  'name': json['name'],
42
43
  'description': json['description'],
44
+ 'requirementIds': json['requirementIds'],
43
45
  'createdBy': json['createdBy'],
44
46
  'createdAt': (new Date(json['createdAt'])),
45
47
  'updatedAt': (new Date(json['updatedAt'])),
@@ -57,6 +59,7 @@ function GovernanceClassificationToJSON(value) {
57
59
  'id': value.id,
58
60
  'name': value.name,
59
61
  'description': value.description,
62
+ 'requirementIds': value.requirementIds,
60
63
  'createdBy': value.createdBy,
61
64
  'createdAt': (value.createdAt.toISOString()),
62
65
  'updatedAt': (value.updatedAt.toISOString()),
@@ -0,0 +1,61 @@
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
+ *
14
+ * @export
15
+ * @interface GovernanceContact
16
+ */
17
+ export interface GovernanceContact {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GovernanceContact
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GovernanceContact
28
+ */
29
+ title: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GovernanceContact
34
+ */
35
+ description: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GovernanceContact
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GovernanceContact
46
+ */
47
+ phone: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof GovernanceContact
52
+ */
53
+ email: string;
54
+ }
55
+ /**
56
+ * Check if a given object implements the GovernanceContact interface.
57
+ */
58
+ export declare function instanceOfGovernanceContact(value: object): boolean;
59
+ export declare function GovernanceContactFromJSON(json: any): GovernanceContact;
60
+ export declare function GovernanceContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceContact;
61
+ export declare function GovernanceContactToJSON(value?: GovernanceContact | null): any;
@@ -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;