@cirrobio/api-client 0.0.3-alpha → 0.0.5-alpha
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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +1 -1
- package/dist/apis/MetadataApi.d.ts +29 -0
- package/dist/apis/MetadataApi.js +133 -0
- package/dist/apis/NotebooksApi.js +6 -6
- package/dist/apis/ProcessesApi.d.ts +26 -10
- package/dist/apis/ProcessesApi.js +70 -11
- package/dist/apis/ProjectsApi.d.ts +4 -4
- package/dist/apis/ProjectsApi.js +4 -4
- package/dist/apis/ReferencesApi.d.ts +51 -0
- package/dist/apis/ReferencesApi.js +239 -0
- package/dist/apis/SystemApi.d.ts +1 -11
- package/dist/apis/SystemApi.js +0 -52
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/CustomPipelineSettings.d.ts +61 -0
- package/dist/models/CustomPipelineSettings.js +60 -0
- package/dist/models/Process.d.ts +19 -1
- package/dist/models/Process.js +8 -1
- package/dist/models/ProcessDetail.d.ts +99 -0
- package/dist/models/ProcessDetail.js +85 -0
- package/dist/models/ProjectMetrics.d.ts +8 -6
- package/dist/models/ProjectMetrics.js +3 -4
- package/dist/models/ProjectSettings.d.ts +24 -0
- package/dist/models/ProjectSettings.js +8 -0
- package/dist/models/Reference.d.ts +55 -0
- package/dist/models/Reference.js +62 -0
- package/dist/models/ReferenceType.d.ts +20 -0
- package/dist/models/ReferenceType.js +9 -0
- package/dist/models/Sample.d.ts +39 -0
- package/dist/models/Sample.js +53 -0
- package/dist/models/ServiceConnection.d.ts +6 -0
- package/dist/models/ServiceConnection.js +3 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/MetadataApi.ts +72 -0
- package/src/apis/NotebooksApi.ts +6 -6
- package/src/apis/ProcessesApi.ts +67 -12
- package/src/apis/ProjectsApi.ts +4 -4
- package/src/apis/ReferencesApi.ts +149 -0
- package/src/apis/SystemApi.ts +0 -39
- package/src/apis/index.ts +2 -0
- package/src/models/CustomPipelineSettings.ts +105 -0
- package/src/models/Process.ts +27 -2
- package/src/models/ProcessDetail.ts +177 -0
- package/src/models/ProjectMetrics.ts +7 -9
- package/src/models/ProjectSettings.ts +32 -0
- package/src/models/Reference.ts +102 -0
- package/src/models/ReferenceType.ts +27 -0
- package/src/models/Sample.ts +75 -0
- package/src/models/ServiceConnection.ts +9 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,239 @@
|
|
|
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.ReferencesApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var ReferencesApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ReferencesApi, _super);
|
|
75
|
+
function ReferencesApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* List available reference types
|
|
80
|
+
* Get reference types
|
|
81
|
+
*/
|
|
82
|
+
ReferencesApi.prototype.getReferenceTypesRaw = function (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
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
91
|
+
token = this.configuration.accessToken;
|
|
92
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
93
|
+
case 1:
|
|
94
|
+
tokenString = _a.sent();
|
|
95
|
+
if (tokenString) {
|
|
96
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
97
|
+
}
|
|
98
|
+
_a.label = 2;
|
|
99
|
+
case 2: return [4 /*yield*/, this.request({
|
|
100
|
+
path: "/reference-types",
|
|
101
|
+
method: 'GET',
|
|
102
|
+
headers: headerParameters,
|
|
103
|
+
query: queryParameters,
|
|
104
|
+
}, initOverrides)];
|
|
105
|
+
case 3:
|
|
106
|
+
response = _a.sent();
|
|
107
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ReferenceTypeFromJSON); })];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* List available reference types
|
|
114
|
+
* Get reference types
|
|
115
|
+
*/
|
|
116
|
+
ReferencesApi.prototype.getReferenceTypes = function (initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
+
var response;
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0: return [4 /*yield*/, this.getReferenceTypesRaw(initOverrides)];
|
|
122
|
+
case 1:
|
|
123
|
+
response = _a.sent();
|
|
124
|
+
return [4 /*yield*/, response.value()];
|
|
125
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* List available references (available to everyone)
|
|
132
|
+
* Get global references
|
|
133
|
+
*/
|
|
134
|
+
ReferencesApi.prototype.getReferencesRaw = function (initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
137
|
+
return __generator(this, function (_a) {
|
|
138
|
+
switch (_a.label) {
|
|
139
|
+
case 0:
|
|
140
|
+
queryParameters = {};
|
|
141
|
+
headerParameters = {};
|
|
142
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
143
|
+
token = this.configuration.accessToken;
|
|
144
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
145
|
+
case 1:
|
|
146
|
+
tokenString = _a.sent();
|
|
147
|
+
if (tokenString) {
|
|
148
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
149
|
+
}
|
|
150
|
+
_a.label = 2;
|
|
151
|
+
case 2: return [4 /*yield*/, this.request({
|
|
152
|
+
path: "/references",
|
|
153
|
+
method: 'GET',
|
|
154
|
+
headers: headerParameters,
|
|
155
|
+
query: queryParameters,
|
|
156
|
+
}, initOverrides)];
|
|
157
|
+
case 3:
|
|
158
|
+
response = _a.sent();
|
|
159
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ReferenceFromJSON); })];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* List available references (available to everyone)
|
|
166
|
+
* Get global references
|
|
167
|
+
*/
|
|
168
|
+
ReferencesApi.prototype.getReferences = function (initOverrides) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
170
|
+
var response;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0: return [4 /*yield*/, this.getReferencesRaw(initOverrides)];
|
|
174
|
+
case 1:
|
|
175
|
+
response = _a.sent();
|
|
176
|
+
return [4 /*yield*/, response.value()];
|
|
177
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* List available references for a given project
|
|
184
|
+
* Get project references
|
|
185
|
+
*/
|
|
186
|
+
ReferencesApi.prototype.getReferencesForProjectRaw = function (requestParameters, initOverrides) {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
188
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
189
|
+
return __generator(this, function (_a) {
|
|
190
|
+
switch (_a.label) {
|
|
191
|
+
case 0:
|
|
192
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
193
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getReferencesForProject.');
|
|
194
|
+
}
|
|
195
|
+
queryParameters = {};
|
|
196
|
+
headerParameters = {};
|
|
197
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
198
|
+
token = this.configuration.accessToken;
|
|
199
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
200
|
+
case 1:
|
|
201
|
+
tokenString = _a.sent();
|
|
202
|
+
if (tokenString) {
|
|
203
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
204
|
+
}
|
|
205
|
+
_a.label = 2;
|
|
206
|
+
case 2: return [4 /*yield*/, this.request({
|
|
207
|
+
path: "/projects/{projectId}/references".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
208
|
+
method: 'GET',
|
|
209
|
+
headers: headerParameters,
|
|
210
|
+
query: queryParameters,
|
|
211
|
+
}, initOverrides)];
|
|
212
|
+
case 3:
|
|
213
|
+
response = _a.sent();
|
|
214
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ReferenceFromJSON)(jsonValue); })];
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* List available references for a given project
|
|
221
|
+
* Get project references
|
|
222
|
+
*/
|
|
223
|
+
ReferencesApi.prototype.getReferencesForProject = function (requestParameters, initOverrides) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
225
|
+
var response;
|
|
226
|
+
return __generator(this, function (_a) {
|
|
227
|
+
switch (_a.label) {
|
|
228
|
+
case 0: return [4 /*yield*/, this.getReferencesForProjectRaw(requestParameters, initOverrides)];
|
|
229
|
+
case 1:
|
|
230
|
+
response = _a.sent();
|
|
231
|
+
return [4 /*yield*/, response.value()];
|
|
232
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
return ReferencesApi;
|
|
238
|
+
}(runtime.BaseAPI));
|
|
239
|
+
exports.ReferencesApi = ReferencesApi;
|
package/dist/apis/SystemApi.d.ts
CHANGED
|
@@ -10,21 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { ServiceConnection, SystemInfoResponse } from '../models/index';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
export declare class SystemApi extends runtime.BaseAPI {
|
|
18
|
-
/**
|
|
19
|
-
* List available reference types
|
|
20
|
-
* Get reference types
|
|
21
|
-
*/
|
|
22
|
-
getReferenceTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ReferenceType>>>;
|
|
23
|
-
/**
|
|
24
|
-
* List available reference types
|
|
25
|
-
* Get reference types
|
|
26
|
-
*/
|
|
27
|
-
getReferenceTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ReferenceType>>;
|
|
28
18
|
/**
|
|
29
19
|
* List available service connections
|
|
30
20
|
* Get service connections
|
package/dist/apis/SystemApi.js
CHANGED
|
@@ -75,58 +75,6 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function SystemApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* List available reference types
|
|
80
|
-
* Get reference types
|
|
81
|
-
*/
|
|
82
|
-
SystemApi.prototype.getReferenceTypesRaw = function (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
|
-
queryParameters = {};
|
|
89
|
-
headerParameters = {};
|
|
90
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
91
|
-
token = this.configuration.accessToken;
|
|
92
|
-
return [4 /*yield*/, token("accessToken", [])];
|
|
93
|
-
case 1:
|
|
94
|
-
tokenString = _a.sent();
|
|
95
|
-
if (tokenString) {
|
|
96
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
97
|
-
}
|
|
98
|
-
_a.label = 2;
|
|
99
|
-
case 2: return [4 /*yield*/, this.request({
|
|
100
|
-
path: "/reference-types",
|
|
101
|
-
method: 'GET',
|
|
102
|
-
headers: headerParameters,
|
|
103
|
-
query: queryParameters,
|
|
104
|
-
}, initOverrides)];
|
|
105
|
-
case 3:
|
|
106
|
-
response = _a.sent();
|
|
107
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ReferenceTypeFromJSON); })];
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* List available reference types
|
|
114
|
-
* Get reference types
|
|
115
|
-
*/
|
|
116
|
-
SystemApi.prototype.getReferenceTypes = function (initOverrides) {
|
|
117
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
-
var response;
|
|
119
|
-
return __generator(this, function (_a) {
|
|
120
|
-
switch (_a.label) {
|
|
121
|
-
case 0: return [4 /*yield*/, this.getReferenceTypesRaw(initOverrides)];
|
|
122
|
-
case 1:
|
|
123
|
-
response = _a.sent();
|
|
124
|
-
return [4 /*yield*/, response.value()];
|
|
125
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
78
|
/**
|
|
131
79
|
* List available service connections
|
|
132
80
|
* Get service connections
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './BillingApi';
|
|
2
2
|
export * from './DatasetsApi';
|
|
3
3
|
export * from './ExecutionApi';
|
|
4
|
+
export * from './MetadataApi';
|
|
4
5
|
export * from './MetricsApi';
|
|
5
6
|
export * from './NotebooksApi';
|
|
6
7
|
export * from './ProcessesApi';
|
|
7
8
|
export * from './ProjectsApi';
|
|
9
|
+
export * from './ReferencesApi';
|
|
8
10
|
export * from './SystemApi';
|
|
9
11
|
export * from './UsersApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -19,9 +19,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./BillingApi"), exports);
|
|
20
20
|
__exportStar(require("./DatasetsApi"), exports);
|
|
21
21
|
__exportStar(require("./ExecutionApi"), exports);
|
|
22
|
+
__exportStar(require("./MetadataApi"), exports);
|
|
22
23
|
__exportStar(require("./MetricsApi"), exports);
|
|
23
24
|
__exportStar(require("./NotebooksApi"), exports);
|
|
24
25
|
__exportStar(require("./ProcessesApi"), exports);
|
|
25
26
|
__exportStar(require("./ProjectsApi"), exports);
|
|
27
|
+
__exportStar(require("./ReferencesApi"), exports);
|
|
26
28
|
__exportStar(require("./SystemApi"), exports);
|
|
27
29
|
__exportStar(require("./UsersApi"), exports);
|
|
@@ -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 CustomPipelineSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomPipelineSettings {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomPipelineSettings
|
|
22
|
+
*/
|
|
23
|
+
repository?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomPipelineSettings
|
|
28
|
+
*/
|
|
29
|
+
branch?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomPipelineSettings
|
|
34
|
+
*/
|
|
35
|
+
folder?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof CustomPipelineSettings
|
|
40
|
+
*/
|
|
41
|
+
lastSync?: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomPipelineSettings
|
|
46
|
+
*/
|
|
47
|
+
syncStatus?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CustomPipelineSettings
|
|
52
|
+
*/
|
|
53
|
+
commitHash?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the CustomPipelineSettings interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfCustomPipelineSettings(value: object): boolean;
|
|
59
|
+
export declare function CustomPipelineSettingsFromJSON(json: any): CustomPipelineSettings;
|
|
60
|
+
export declare function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomPipelineSettings;
|
|
61
|
+
export declare function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.CustomPipelineSettingsToJSON = exports.CustomPipelineSettingsFromJSONTyped = exports.CustomPipelineSettingsFromJSON = exports.instanceOfCustomPipelineSettings = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CustomPipelineSettings interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCustomPipelineSettings(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCustomPipelineSettings = instanceOfCustomPipelineSettings;
|
|
26
|
+
function CustomPipelineSettingsFromJSON(json) {
|
|
27
|
+
return CustomPipelineSettingsFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CustomPipelineSettingsFromJSON = CustomPipelineSettingsFromJSON;
|
|
30
|
+
function CustomPipelineSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'repository': !(0, runtime_1.exists)(json, 'repository') ? undefined : json['repository'],
|
|
36
|
+
'branch': !(0, runtime_1.exists)(json, 'branch') ? undefined : json['branch'],
|
|
37
|
+
'folder': !(0, runtime_1.exists)(json, 'folder') ? undefined : json['folder'],
|
|
38
|
+
'lastSync': !(0, runtime_1.exists)(json, 'lastSync') ? undefined : (new Date(json['lastSync'])),
|
|
39
|
+
'syncStatus': !(0, runtime_1.exists)(json, 'syncStatus') ? undefined : json['syncStatus'],
|
|
40
|
+
'commitHash': !(0, runtime_1.exists)(json, 'commitHash') ? undefined : json['commitHash'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.CustomPipelineSettingsFromJSONTyped = CustomPipelineSettingsFromJSONTyped;
|
|
44
|
+
function CustomPipelineSettingsToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'repository': value.repository,
|
|
53
|
+
'branch': value.branch,
|
|
54
|
+
'folder': value.folder,
|
|
55
|
+
'lastSync': value.lastSync === undefined ? undefined : (value.lastSync.toISOString()),
|
|
56
|
+
'syncStatus': value.syncStatus,
|
|
57
|
+
'commitHash': value.commitHash,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.CustomPipelineSettingsToJSON = CustomPipelineSettingsToJSON;
|
package/dist/models/Process.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface Process {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Process
|
|
23
23
|
*/
|
|
24
|
-
id
|
|
24
|
+
id: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -58,6 +58,24 @@ export interface Process {
|
|
|
58
58
|
* @memberof Process
|
|
59
59
|
*/
|
|
60
60
|
childProcessIds?: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* IDs of pipelines that can be ran upstream
|
|
63
|
+
* @type {Array<string>}
|
|
64
|
+
* @memberof Process
|
|
65
|
+
*/
|
|
66
|
+
parentProcessIds?: Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Username of the pipeline creator (blank if Cirro curated)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof Process
|
|
71
|
+
*/
|
|
72
|
+
owner?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Projects that can run this pipeline
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof Process
|
|
77
|
+
*/
|
|
78
|
+
linkedProjectIds?: Array<string>;
|
|
61
79
|
}
|
|
62
80
|
/**
|
|
63
81
|
* Check if a given object implements the Process interface.
|
package/dist/models/Process.js
CHANGED
|
@@ -21,6 +21,7 @@ var Executor_1 = require("./Executor");
|
|
|
21
21
|
*/
|
|
22
22
|
function instanceOfProcess(value) {
|
|
23
23
|
var isInstance = true;
|
|
24
|
+
isInstance = isInstance && "id" in value;
|
|
24
25
|
return isInstance;
|
|
25
26
|
}
|
|
26
27
|
exports.instanceOfProcess = instanceOfProcess;
|
|
@@ -33,13 +34,16 @@ function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
return json;
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
36
|
-
'id':
|
|
37
|
+
'id': json['id'],
|
|
37
38
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
38
39
|
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
39
40
|
'executor': !(0, runtime_1.exists)(json, 'executor') ? undefined : (0, Executor_1.ExecutorFromJSON)(json['executor']),
|
|
40
41
|
'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
41
42
|
'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
|
|
42
43
|
'childProcessIds': !(0, runtime_1.exists)(json, 'childProcessIds') ? undefined : json['childProcessIds'],
|
|
44
|
+
'parentProcessIds': !(0, runtime_1.exists)(json, 'parentProcessIds') ? undefined : json['parentProcessIds'],
|
|
45
|
+
'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : json['owner'],
|
|
46
|
+
'linkedProjectIds': !(0, runtime_1.exists)(json, 'linkedProjectIds') ? undefined : json['linkedProjectIds'],
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
exports.ProcessFromJSONTyped = ProcessFromJSONTyped;
|
|
@@ -58,6 +62,9 @@ function ProcessToJSON(value) {
|
|
|
58
62
|
'documentationUrl': value.documentationUrl,
|
|
59
63
|
'fileRequirementsMessage': value.fileRequirementsMessage,
|
|
60
64
|
'childProcessIds': value.childProcessIds,
|
|
65
|
+
'parentProcessIds': value.parentProcessIds,
|
|
66
|
+
'owner': value.owner,
|
|
67
|
+
'linkedProjectIds': value.linkedProjectIds,
|
|
61
68
|
};
|
|
62
69
|
}
|
|
63
70
|
exports.ProcessToJSON = ProcessToJSON;
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { CustomPipelineSettings } from './CustomPipelineSettings';
|
|
13
|
+
import type { Executor } from './Executor';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ProcessDetail
|
|
18
|
+
*/
|
|
19
|
+
export interface ProcessDetail {
|
|
20
|
+
/**
|
|
21
|
+
* Unique ID of the Process
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ProcessDetail
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ProcessDetail
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ProcessDetail
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Executor}
|
|
41
|
+
* @memberof ProcessDetail
|
|
42
|
+
*/
|
|
43
|
+
executor: Executor;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ProcessDetail
|
|
48
|
+
*/
|
|
49
|
+
documentationUrl: string;
|
|
50
|
+
/**
|
|
51
|
+
* Description of the files to be uploaded (optional)
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProcessDetail
|
|
54
|
+
*/
|
|
55
|
+
fileRequirementsMessage?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof ProcessDetail
|
|
60
|
+
*/
|
|
61
|
+
childProcessIds: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof ProcessDetail
|
|
66
|
+
*/
|
|
67
|
+
parentProcessIds: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ProcessDetail
|
|
72
|
+
*/
|
|
73
|
+
owner: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<string>}
|
|
77
|
+
* @memberof ProcessDetail
|
|
78
|
+
*/
|
|
79
|
+
linkedProjectIds: Array<string>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {CustomPipelineSettings}
|
|
83
|
+
* @memberof ProcessDetail
|
|
84
|
+
*/
|
|
85
|
+
customSettings: CustomPipelineSettings;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof ProcessDetail
|
|
90
|
+
*/
|
|
91
|
+
isArchived: boolean;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the ProcessDetail interface.
|
|
95
|
+
*/
|
|
96
|
+
export declare function instanceOfProcessDetail(value: object): boolean;
|
|
97
|
+
export declare function ProcessDetailFromJSON(json: any): ProcessDetail;
|
|
98
|
+
export declare function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDetail;
|
|
99
|
+
export declare function ProcessDetailToJSON(value?: ProcessDetail | null): any;
|