@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,31 @@
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 * as runtime from '../runtime';
13
+ import type { MoveDatasetInput, MoveDatasetResponse } from '../models/index';
14
+ export interface MoveDatasetRequest {
15
+ moveDatasetInput: MoveDatasetInput;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class ToolsApi extends runtime.BaseAPI {
21
+ /**
22
+ * Moves a dataset to a different project. The underlying S3 data is not transferred and will need to be done manually. It is expected the user will also transfer all datasets in the lineage.
23
+ * Move a dataset to a different project
24
+ */
25
+ moveDatasetRaw(requestParameters: MoveDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MoveDatasetResponse>>;
26
+ /**
27
+ * Moves a dataset to a different project. The underlying S3 data is not transferred and will need to be done manually. It is expected the user will also transfer all datasets in the lineage.
28
+ * Move a dataset to a different project
29
+ */
30
+ moveDataset(requestParameters: MoveDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MoveDatasetResponse>;
31
+ }
@@ -0,0 +1,137 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.ToolsApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var ToolsApi = /** @class */ (function (_super) {
74
+ __extends(ToolsApi, _super);
75
+ function ToolsApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Moves a dataset to a different project. The underlying S3 data is not transferred and will need to be done manually. It is expected the user will also transfer all datasets in the lineage.
80
+ * Move a dataset to a different project
81
+ */
82
+ ToolsApi.prototype.moveDatasetRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, token, tokenString, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters.moveDatasetInput === null || requestParameters.moveDatasetInput === undefined) {
89
+ throw new runtime.RequiredError('moveDatasetInput', 'Required parameter requestParameters.moveDatasetInput was null or undefined when calling moveDataset.');
90
+ }
91
+ queryParameters = {};
92
+ headerParameters = {};
93
+ headerParameters['Content-Type'] = 'application/json';
94
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
95
+ token = this.configuration.accessToken;
96
+ return [4 /*yield*/, token("accessToken", [])];
97
+ case 1:
98
+ tokenString = _a.sent();
99
+ if (tokenString) {
100
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
101
+ }
102
+ _a.label = 2;
103
+ case 2: return [4 /*yield*/, this.request({
104
+ path: "/tools/move-dataset",
105
+ method: 'PUT',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ body: (0, index_1.MoveDatasetInputToJSON)(requestParameters.moveDatasetInput),
109
+ }, initOverrides)];
110
+ case 3:
111
+ response = _a.sent();
112
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MoveDatasetResponseFromJSON)(jsonValue); })];
113
+ }
114
+ });
115
+ });
116
+ };
117
+ /**
118
+ * Moves a dataset to a different project. The underlying S3 data is not transferred and will need to be done manually. It is expected the user will also transfer all datasets in the lineage.
119
+ * Move a dataset to a different project
120
+ */
121
+ ToolsApi.prototype.moveDataset = function (requestParameters, initOverrides) {
122
+ return __awaiter(this, void 0, void 0, function () {
123
+ var response;
124
+ return __generator(this, function (_a) {
125
+ switch (_a.label) {
126
+ case 0: return [4 /*yield*/, this.moveDatasetRaw(requestParameters, initOverrides)];
127
+ case 1:
128
+ response = _a.sent();
129
+ return [4 /*yield*/, response.value()];
130
+ case 2: return [2 /*return*/, _a.sent()];
131
+ }
132
+ });
133
+ });
134
+ };
135
+ return ToolsApi;
136
+ }(runtime.BaseAPI));
137
+ exports.ToolsApi = ToolsApi;
@@ -13,5 +13,7 @@ export * from './ProcessesApi';
13
13
  export * from './ProjectRequestsApi';
14
14
  export * from './ProjectsApi';
15
15
  export * from './ReferencesApi';
16
+ export * from './SharingApi';
16
17
  export * from './SystemApi';
18
+ export * from './ToolsApi';
17
19
  export * from './UsersApi';
@@ -31,5 +31,7 @@ __exportStar(require("./ProcessesApi"), exports);
31
31
  __exportStar(require("./ProjectRequestsApi"), exports);
32
32
  __exportStar(require("./ProjectsApi"), exports);
33
33
  __exportStar(require("./ReferencesApi"), exports);
34
+ __exportStar(require("./SharingApi"), exports);
34
35
  __exportStar(require("./SystemApi"), exports);
36
+ __exportStar(require("./ToolsApi"), exports);
35
37
  __exportStar(require("./UsersApi"), exports);
@@ -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;
@@ -0,0 +1,38 @@
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 { DatasetConditionField } from './DatasetConditionField';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DatasetCondition
17
+ */
18
+ export interface DatasetCondition {
19
+ /**
20
+ *
21
+ * @type {DatasetConditionField}
22
+ * @memberof DatasetCondition
23
+ */
24
+ field: DatasetConditionField;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof DatasetCondition
29
+ */
30
+ value: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DatasetCondition interface.
34
+ */
35
+ export declare function instanceOfDatasetCondition(value: object): boolean;
36
+ export declare function DatasetConditionFromJSON(json: any): DatasetCondition;
37
+ export declare function DatasetConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetCondition;
38
+ export declare function DatasetConditionToJSON(value?: DatasetCondition | null): any;
@@ -0,0 +1,54 @@
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.DatasetConditionToJSON = exports.DatasetConditionFromJSONTyped = exports.DatasetConditionFromJSON = exports.instanceOfDatasetCondition = void 0;
17
+ var DatasetConditionField_1 = require("./DatasetConditionField");
18
+ /**
19
+ * Check if a given object implements the DatasetCondition interface.
20
+ */
21
+ function instanceOfDatasetCondition(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "field" in value;
24
+ isInstance = isInstance && "value" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfDatasetCondition = instanceOfDatasetCondition;
28
+ function DatasetConditionFromJSON(json) {
29
+ return DatasetConditionFromJSONTyped(json, false);
30
+ }
31
+ exports.DatasetConditionFromJSON = DatasetConditionFromJSON;
32
+ function DatasetConditionFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'field': (0, DatasetConditionField_1.DatasetConditionFieldFromJSON)(json['field']),
38
+ 'value': json['value'],
39
+ };
40
+ }
41
+ exports.DatasetConditionFromJSONTyped = DatasetConditionFromJSONTyped;
42
+ function DatasetConditionToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'field': (0, DatasetConditionField_1.DatasetConditionFieldToJSON)(value.field),
51
+ 'value': value.value,
52
+ };
53
+ }
54
+ exports.DatasetConditionToJSON = DatasetConditionToJSON;
@@ -0,0 +1,24 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum DatasetConditionField {
18
+ DatasetId = "DATASET_ID",
19
+ Tag = "TAG",
20
+ ProcessId = "PROCESS_ID"
21
+ }
22
+ export declare function DatasetConditionFieldFromJSON(json: any): DatasetConditionField;
23
+ export declare function DatasetConditionFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetConditionField;
24
+ export declare function DatasetConditionFieldToJSON(value?: DatasetConditionField | null): any;
@@ -0,0 +1,39 @@
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.DatasetConditionFieldToJSON = exports.DatasetConditionFieldFromJSONTyped = exports.DatasetConditionFieldFromJSON = exports.DatasetConditionField = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var DatasetConditionField;
23
+ (function (DatasetConditionField) {
24
+ DatasetConditionField["DatasetId"] = "DATASET_ID";
25
+ DatasetConditionField["Tag"] = "TAG";
26
+ DatasetConditionField["ProcessId"] = "PROCESS_ID";
27
+ })(DatasetConditionField = exports.DatasetConditionField || (exports.DatasetConditionField = {}));
28
+ function DatasetConditionFieldFromJSON(json) {
29
+ return DatasetConditionFieldFromJSONTyped(json, false);
30
+ }
31
+ exports.DatasetConditionFieldFromJSON = DatasetConditionFieldFromJSON;
32
+ function DatasetConditionFieldFromJSONTyped(json, ignoreDiscriminator) {
33
+ return json;
34
+ }
35
+ exports.DatasetConditionFieldFromJSONTyped = DatasetConditionFieldFromJSONTyped;
36
+ function DatasetConditionFieldToJSON(value) {
37
+ return value;
38
+ }
39
+ exports.DatasetConditionFieldToJSON = DatasetConditionFieldToJSON;
@@ -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;