@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
@@ -321,6 +321,12 @@ var SharingApi = /** @class */ (function (_super) {
321
321
  throw new runtime.RequiredError('shareId', 'Required parameter requestParameters.shareId was null or undefined when calling getSharedDatasets.');
322
322
  }
323
323
  queryParameters = {};
324
+ if (requestParameters.limit !== undefined) {
325
+ queryParameters['limit'] = requestParameters.limit;
326
+ }
327
+ if (requestParameters.nextToken !== undefined) {
328
+ queryParameters['nextToken'] = requestParameters.nextToken;
329
+ }
324
330
  headerParameters = {};
325
331
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
326
332
  token = this.configuration.accessToken;
@@ -339,7 +345,7 @@ var SharingApi = /** @class */ (function (_super) {
339
345
  }, initOverrides)];
340
346
  case 3:
341
347
  response = _a.sent();
342
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.DatasetFromJSON); })];
348
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedResponseDatasetListDtoFromJSON)(jsonValue); })];
343
349
  }
344
350
  });
345
351
  });
@@ -473,6 +479,62 @@ var SharingApi = /** @class */ (function (_super) {
473
479
  });
474
480
  });
475
481
  };
482
+ /**
483
+ * Unsubscribe from a share that has been shared with your project
484
+ * Unsubscribe from share
485
+ */
486
+ SharingApi.prototype.unsubscribeShareRaw = function (requestParameters, initOverrides) {
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ var queryParameters, headerParameters, token, tokenString, response;
489
+ return __generator(this, function (_a) {
490
+ switch (_a.label) {
491
+ case 0:
492
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
493
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling unsubscribeShare.');
494
+ }
495
+ if (requestParameters.shareId === null || requestParameters.shareId === undefined) {
496
+ throw new runtime.RequiredError('shareId', 'Required parameter requestParameters.shareId was null or undefined when calling unsubscribeShare.');
497
+ }
498
+ queryParameters = {};
499
+ headerParameters = {};
500
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
501
+ token = this.configuration.accessToken;
502
+ return [4 /*yield*/, token("accessToken", [])];
503
+ case 1:
504
+ tokenString = _a.sent();
505
+ if (tokenString) {
506
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
507
+ }
508
+ _a.label = 2;
509
+ case 2: return [4 /*yield*/, this.request({
510
+ path: "/projects/{projectId}/shares/{shareId}:unsubscribe".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("shareId", "}"), encodeURIComponent(String(requestParameters.shareId))),
511
+ method: 'PUT',
512
+ headers: headerParameters,
513
+ query: queryParameters,
514
+ }, initOverrides)];
515
+ case 3:
516
+ response = _a.sent();
517
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
518
+ }
519
+ });
520
+ });
521
+ };
522
+ /**
523
+ * Unsubscribe from a share that has been shared with your project
524
+ * Unsubscribe from share
525
+ */
526
+ SharingApi.prototype.unsubscribeShare = function (requestParameters, initOverrides) {
527
+ return __awaiter(this, void 0, void 0, function () {
528
+ return __generator(this, function (_a) {
529
+ switch (_a.label) {
530
+ case 0: return [4 /*yield*/, this.unsubscribeShareRaw(requestParameters, initOverrides)];
531
+ case 1:
532
+ _a.sent();
533
+ return [2 /*return*/];
534
+ }
535
+ });
536
+ });
537
+ };
476
538
  /**
477
539
  * Update a share that you\'ve published
478
540
  * Update share
@@ -18,7 +18,9 @@ export declare enum AccessType {
18
18
  DatasetUpload = "DATASET_UPLOAD",
19
19
  SamplesheetUpload = "SAMPLESHEET_UPLOAD",
20
20
  ReferenceUpload = "REFERENCE_UPLOAD",
21
- ProjectDownload = "PROJECT_DOWNLOAD"
21
+ ProjectDownload = "PROJECT_DOWNLOAD",
22
+ GovernanceUpload = "GOVERNANCE_UPLOAD",
23
+ GovernanceDownload = "GOVERNANCE_DOWNLOAD"
22
24
  }
23
25
  export declare function AccessTypeFromJSON(json: any): AccessType;
24
26
  export declare function AccessTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessType;
@@ -25,6 +25,8 @@ var AccessType;
25
25
  AccessType["SamplesheetUpload"] = "SAMPLESHEET_UPLOAD";
26
26
  AccessType["ReferenceUpload"] = "REFERENCE_UPLOAD";
27
27
  AccessType["ProjectDownload"] = "PROJECT_DOWNLOAD";
28
+ AccessType["GovernanceUpload"] = "GOVERNANCE_UPLOAD";
29
+ AccessType["GovernanceDownload"] = "GOVERNANCE_DOWNLOAD";
28
30
  })(AccessType = exports.AccessType || (exports.AccessType = {}));
29
31
  function AccessTypeFromJSON(json) {
30
32
  return AccessTypeFromJSONTyped(json, false);
@@ -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;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { NamedItem } from './NamedItem';
12
13
  import type { Status } from './Status';
13
14
  import type { Tag } from './Tag';
14
15
  /**
@@ -59,6 +60,12 @@ export interface DatasetDetail {
59
60
  * @memberof DatasetDetail
60
61
  */
61
62
  sourceDatasetIds: Array<string>;
63
+ /**
64
+ *
65
+ * @type {Array<NamedItem>}
66
+ * @memberof DatasetDetail
67
+ */
68
+ sourceDatasets: Array<NamedItem>;
62
69
  /**
63
70
  *
64
71
  * @type {Status}
@@ -93,6 +100,12 @@ export interface DatasetDetail {
93
100
  info: {
94
101
  [key: string]: any;
95
102
  };
103
+ /**
104
+ *
105
+ * @type {NamedItem}
106
+ * @memberof DatasetDetail
107
+ */
108
+ share?: NamedItem | null;
96
109
  /**
97
110
  *
98
111
  * @type {string}
@@ -14,6 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DatasetDetailToJSON = exports.DatasetDetailFromJSONTyped = exports.DatasetDetailFromJSON = exports.instanceOfDatasetDetail = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var NamedItem_1 = require("./NamedItem");
17
19
  var Status_1 = require("./Status");
18
20
  var Tag_1 = require("./Tag");
19
21
  /**
@@ -28,6 +30,7 @@ function instanceOfDatasetDetail(value) {
28
30
  isInstance = isInstance && "processId" in value;
29
31
  isInstance = isInstance && "projectId" in value;
30
32
  isInstance = isInstance && "sourceDatasetIds" in value;
33
+ isInstance = isInstance && "sourceDatasets" in value;
31
34
  isInstance = isInstance && "status" in value;
32
35
  isInstance = isInstance && "statusMessage" in value;
33
36
  isInstance = isInstance && "tags" in value;
@@ -55,11 +58,13 @@ function DatasetDetailFromJSONTyped(json, ignoreDiscriminator) {
55
58
  'processId': json['processId'],
56
59
  'projectId': json['projectId'],
57
60
  'sourceDatasetIds': json['sourceDatasetIds'],
61
+ 'sourceDatasets': (json['sourceDatasets'].map(NamedItem_1.NamedItemFromJSON)),
58
62
  'status': (0, Status_1.StatusFromJSON)(json['status']),
59
63
  'statusMessage': json['statusMessage'],
60
64
  'tags': (json['tags'].map(Tag_1.TagFromJSON)),
61
65
  'params': json['params'],
62
66
  'info': json['info'],
67
+ 'share': !(0, runtime_1.exists)(json, 'share') ? undefined : (0, NamedItem_1.NamedItemFromJSON)(json['share']),
63
68
  'createdBy': json['createdBy'],
64
69
  'createdAt': (new Date(json['createdAt'])),
65
70
  'updatedAt': (new Date(json['updatedAt'])),
@@ -81,11 +86,13 @@ function DatasetDetailToJSON(value) {
81
86
  'processId': value.processId,
82
87
  'projectId': value.projectId,
83
88
  'sourceDatasetIds': value.sourceDatasetIds,
89
+ 'sourceDatasets': (value.sourceDatasets.map(NamedItem_1.NamedItemToJSON)),
84
90
  'status': (0, Status_1.StatusToJSON)(value.status),
85
91
  'statusMessage': value.statusMessage,
86
92
  'tags': (value.tags.map(Tag_1.TagToJSON)),
87
93
  'params': value.params,
88
94
  'info': value.info,
95
+ 'share': (0, NamedItem_1.NamedItemToJSON)(value.share),
89
96
  'createdBy': value.createdBy,
90
97
  'createdAt': (value.createdAt.toISOString()),
91
98
  'updatedAt': (value.updatedAt.toISOString()),
@@ -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,79 @@
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
+ * @type {string}
57
+ * @memberof GovernanceContact
58
+ */
59
+ createdBy: string;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof GovernanceContact
64
+ */
65
+ createdAt: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof GovernanceContact
70
+ */
71
+ updatedAt: Date;
72
+ }
73
+ /**
74
+ * Check if a given object implements the GovernanceContact interface.
75
+ */
76
+ export declare function instanceOfGovernanceContact(value: object): boolean;
77
+ export declare function GovernanceContactFromJSON(json: any): GovernanceContact;
78
+ export declare function GovernanceContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceContact;
79
+ export declare function GovernanceContactToJSON(value?: GovernanceContact | null): any;
@@ -0,0 +1,74 @@
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
+ isInstance = isInstance && "createdBy" in value;
29
+ isInstance = isInstance && "createdAt" in value;
30
+ isInstance = isInstance && "updatedAt" in value;
31
+ return isInstance;
32
+ }
33
+ exports.instanceOfGovernanceContact = instanceOfGovernanceContact;
34
+ function GovernanceContactFromJSON(json) {
35
+ return GovernanceContactFromJSONTyped(json, false);
36
+ }
37
+ exports.GovernanceContactFromJSON = GovernanceContactFromJSON;
38
+ function GovernanceContactFromJSONTyped(json, ignoreDiscriminator) {
39
+ if ((json === undefined) || (json === null)) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'title': json['title'],
45
+ 'description': json['description'],
46
+ 'name': json['name'],
47
+ 'phone': json['phone'],
48
+ 'email': json['email'],
49
+ 'createdBy': json['createdBy'],
50
+ 'createdAt': (new Date(json['createdAt'])),
51
+ 'updatedAt': (new Date(json['updatedAt'])),
52
+ };
53
+ }
54
+ exports.GovernanceContactFromJSONTyped = GovernanceContactFromJSONTyped;
55
+ function GovernanceContactToJSON(value) {
56
+ if (value === undefined) {
57
+ return undefined;
58
+ }
59
+ if (value === null) {
60
+ return null;
61
+ }
62
+ return {
63
+ 'id': value.id,
64
+ 'title': value.title,
65
+ 'description': value.description,
66
+ 'name': value.name,
67
+ 'phone': value.phone,
68
+ 'email': value.email,
69
+ 'createdBy': value.createdBy,
70
+ 'createdAt': (value.createdAt.toISOString()),
71
+ 'updatedAt': (value.updatedAt.toISOString()),
72
+ };
73
+ }
74
+ 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;