@cirrobio/api-client 0.0.27-alpha → 0.0.28-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 +5 -0
- package/README.md +1 -1
- package/dist/apis/ProcessesApi.d.ts +54 -1
- package/dist/apis/ProcessesApi.js +223 -0
- package/dist/models/CustomPipelineSettingsDto1.d.ts +61 -0
- package/dist/models/CustomPipelineSettingsDto1.js +65 -0
- package/dist/models/CustomProcessRequest.d.ts +99 -0
- package/dist/models/CustomProcessRequest.js +83 -0
- package/dist/models/CustomProcessRequestPipelineCode.d.ts +50 -0
- package/dist/models/CustomProcessRequestPipelineCode.js +58 -0
- package/dist/models/FileNamePattern.d.ts +0 -6
- package/dist/models/FileNamePattern.js +0 -3
- package/dist/models/GenerateSftpCredentialsRequest.d.ts +2 -2
- package/dist/models/GenerateSftpCredentialsRequest.js +2 -2
- package/dist/models/PipelineCode.d.ts +50 -0
- package/dist/models/PipelineCode.js +58 -0
- package/dist/models/ProcessDetail.d.ts +1 -1
- package/dist/models/RepositoryType.d.ts +25 -0
- package/dist/models/RepositoryType.js +40 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/ProcessesApi.ts +194 -0
- package/src/models/CustomPipelineSettingsDto1.ts +111 -0
- package/src/models/CustomProcessRequest.ts +175 -0
- package/src/models/CustomProcessRequestPipelineCode.ts +97 -0
- package/src/models/FileNamePattern.ts +0 -9
- package/src/models/GenerateSftpCredentialsRequest.ts +3 -4
- package/src/models/PipelineCode.ts +97 -0
- package/src/models/ProcessDetail.ts +1 -1
- package/src/models/RepositoryType.ts +39 -0
- package/src/models/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -27,6 +27,9 @@ src/models/Contact.ts
|
|
|
27
27
|
src/models/CreateNotebookInstanceRequest.ts
|
|
28
28
|
src/models/CreateResponse.ts
|
|
29
29
|
src/models/CustomPipelineSettings.ts
|
|
30
|
+
src/models/CustomPipelineSettingsDto1.ts
|
|
31
|
+
src/models/CustomProcessRequest.ts
|
|
32
|
+
src/models/CustomProcessRequestPipelineCode.ts
|
|
30
33
|
src/models/CustomerType.ts
|
|
31
34
|
src/models/Dashboard.ts
|
|
32
35
|
src/models/DashboardRequest.ts
|
|
@@ -51,6 +54,7 @@ src/models/NotebookInstanceStatusResponse.ts
|
|
|
51
54
|
src/models/OpenNotebookInstanceResponse.ts
|
|
52
55
|
src/models/PaginatedResponseDatasetListDto.ts
|
|
53
56
|
src/models/PaginatedResponseSampleDto.ts
|
|
57
|
+
src/models/PipelineCode.ts
|
|
54
58
|
src/models/Process.ts
|
|
55
59
|
src/models/ProcessDetail.ts
|
|
56
60
|
src/models/Project.ts
|
|
@@ -62,6 +66,7 @@ src/models/ProjectSettings.ts
|
|
|
62
66
|
src/models/ProjectUser.ts
|
|
63
67
|
src/models/Reference.ts
|
|
64
68
|
src/models/ReferenceType.ts
|
|
69
|
+
src/models/RepositoryType.ts
|
|
65
70
|
src/models/RunAnalysisRequest.ts
|
|
66
71
|
src/models/S3Credentials.ts
|
|
67
72
|
src/models/Sample.ts
|
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cirrobio/api-client@0.0.
|
|
39
|
+
npm install @cirrobio/api-client@0.0.28-alpha --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { FileRequirements, FormSchema, Process, ProcessDetail, ValidateFileRequirementsRequest } from '../models/index';
|
|
13
|
+
import type { CreateResponse, CustomPipelineSettingsDto1, CustomProcessRequest, FileRequirements, FormSchema, Process, ProcessDetail, ValidateFileRequirementsRequest } from '../models/index';
|
|
14
|
+
export interface ArchiveCustomProcessRequest {
|
|
15
|
+
processId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateCustomProcessRequest {
|
|
18
|
+
customProcessRequest: CustomProcessRequest;
|
|
19
|
+
}
|
|
14
20
|
export interface GetProcessRequest {
|
|
15
21
|
processId: string;
|
|
16
22
|
}
|
|
@@ -20,6 +26,13 @@ export interface GetProcessParametersRequest {
|
|
|
20
26
|
export interface GetProcessesRequest {
|
|
21
27
|
includeArchived?: boolean;
|
|
22
28
|
}
|
|
29
|
+
export interface SyncCustomProcessRequest {
|
|
30
|
+
processId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface UpdateCustomProcessRequest {
|
|
33
|
+
processId: string;
|
|
34
|
+
customProcessRequest: CustomProcessRequest;
|
|
35
|
+
}
|
|
23
36
|
export interface ValidateFileRequirementsOperationRequest {
|
|
24
37
|
processId: string;
|
|
25
38
|
validateFileRequirementsRequest: ValidateFileRequirementsRequest;
|
|
@@ -28,6 +41,26 @@ export interface ValidateFileRequirementsOperationRequest {
|
|
|
28
41
|
*
|
|
29
42
|
*/
|
|
30
43
|
export declare class ProcessesApi extends runtime.BaseAPI {
|
|
44
|
+
/**
|
|
45
|
+
* Removes the process from the list of available options
|
|
46
|
+
* Archive custom process
|
|
47
|
+
*/
|
|
48
|
+
archiveCustomProcessRaw(requestParameters: ArchiveCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
49
|
+
/**
|
|
50
|
+
* Removes the process from the list of available options
|
|
51
|
+
* Archive custom process
|
|
52
|
+
*/
|
|
53
|
+
archiveCustomProcess(requestParameters: ArchiveCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a custom data type or pipeline which you can use in the listed projects.
|
|
56
|
+
* Create custom process
|
|
57
|
+
*/
|
|
58
|
+
createCustomProcessRaw(requestParameters: CreateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates a custom data type or pipeline which you can use in the listed projects.
|
|
61
|
+
* Create custom process
|
|
62
|
+
*/
|
|
63
|
+
createCustomProcess(requestParameters: CreateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
|
|
31
64
|
/**
|
|
32
65
|
* Retrieves detailed information on a process
|
|
33
66
|
* Get process
|
|
@@ -58,6 +91,26 @@ export declare class ProcessesApi extends runtime.BaseAPI {
|
|
|
58
91
|
* List processes
|
|
59
92
|
*/
|
|
60
93
|
getProcesses(requestParameters?: GetProcessesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Process>>;
|
|
94
|
+
/**
|
|
95
|
+
* Updates the process definition from the repository
|
|
96
|
+
* Sync custom process
|
|
97
|
+
*/
|
|
98
|
+
syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettingsDto1>>;
|
|
99
|
+
/**
|
|
100
|
+
* Updates the process definition from the repository
|
|
101
|
+
* Sync custom process
|
|
102
|
+
*/
|
|
103
|
+
syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettingsDto1>;
|
|
104
|
+
/**
|
|
105
|
+
* Updates the custom process
|
|
106
|
+
* Update custom process
|
|
107
|
+
*/
|
|
108
|
+
updateCustomProcessRaw(requestParameters: UpdateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
109
|
+
/**
|
|
110
|
+
* Updates the custom process
|
|
111
|
+
* Update custom process
|
|
112
|
+
*/
|
|
113
|
+
updateCustomProcess(requestParameters: UpdateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
61
114
|
/**
|
|
62
115
|
* Checks the input file names with the expected files for a data type (ingest processes only)
|
|
63
116
|
* Validate file requirements
|
|
@@ -75,6 +75,116 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ProcessesApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Removes the process from the list of available options
|
|
80
|
+
* Archive custom process
|
|
81
|
+
*/
|
|
82
|
+
ProcessesApi.prototype.archiveCustomProcessRaw = 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.processId === null || requestParameters.processId === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling archiveCustomProcess.');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
94
|
+
token = this.configuration.accessToken;
|
|
95
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
96
|
+
case 1:
|
|
97
|
+
tokenString = _a.sent();
|
|
98
|
+
if (tokenString) {
|
|
99
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
100
|
+
}
|
|
101
|
+
_a.label = 2;
|
|
102
|
+
case 2: return [4 /*yield*/, this.request({
|
|
103
|
+
path: "/processes/{processId}".replace("{".concat("processId", "}"), encodeURIComponent(String(requestParameters.processId))),
|
|
104
|
+
method: 'DELETE',
|
|
105
|
+
headers: headerParameters,
|
|
106
|
+
query: queryParameters,
|
|
107
|
+
}, initOverrides)];
|
|
108
|
+
case 3:
|
|
109
|
+
response = _a.sent();
|
|
110
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Removes the process from the list of available options
|
|
117
|
+
* Archive custom process
|
|
118
|
+
*/
|
|
119
|
+
ProcessesApi.prototype.archiveCustomProcess = function (requestParameters, initOverrides) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
121
|
+
return __generator(this, function (_a) {
|
|
122
|
+
switch (_a.label) {
|
|
123
|
+
case 0: return [4 /*yield*/, this.archiveCustomProcessRaw(requestParameters, initOverrides)];
|
|
124
|
+
case 1:
|
|
125
|
+
_a.sent();
|
|
126
|
+
return [2 /*return*/];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Creates a custom data type or pipeline which you can use in the listed projects.
|
|
133
|
+
* Create custom process
|
|
134
|
+
*/
|
|
135
|
+
ProcessesApi.prototype.createCustomProcessRaw = function (requestParameters, initOverrides) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
137
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
138
|
+
return __generator(this, function (_a) {
|
|
139
|
+
switch (_a.label) {
|
|
140
|
+
case 0:
|
|
141
|
+
if (requestParameters.customProcessRequest === null || requestParameters.customProcessRequest === undefined) {
|
|
142
|
+
throw new runtime.RequiredError('customProcessRequest', 'Required parameter requestParameters.customProcessRequest was null or undefined when calling createCustomProcess.');
|
|
143
|
+
}
|
|
144
|
+
queryParameters = {};
|
|
145
|
+
headerParameters = {};
|
|
146
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
147
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
148
|
+
token = this.configuration.accessToken;
|
|
149
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
150
|
+
case 1:
|
|
151
|
+
tokenString = _a.sent();
|
|
152
|
+
if (tokenString) {
|
|
153
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
154
|
+
}
|
|
155
|
+
_a.label = 2;
|
|
156
|
+
case 2: return [4 /*yield*/, this.request({
|
|
157
|
+
path: "/processes",
|
|
158
|
+
method: 'POST',
|
|
159
|
+
headers: headerParameters,
|
|
160
|
+
query: queryParameters,
|
|
161
|
+
body: (0, index_1.CustomProcessRequestToJSON)(requestParameters.customProcessRequest),
|
|
162
|
+
}, initOverrides)];
|
|
163
|
+
case 3:
|
|
164
|
+
response = _a.sent();
|
|
165
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateResponseFromJSON)(jsonValue); })];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Creates a custom data type or pipeline which you can use in the listed projects.
|
|
172
|
+
* Create custom process
|
|
173
|
+
*/
|
|
174
|
+
ProcessesApi.prototype.createCustomProcess = function (requestParameters, initOverrides) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
176
|
+
var response;
|
|
177
|
+
return __generator(this, function (_a) {
|
|
178
|
+
switch (_a.label) {
|
|
179
|
+
case 0: return [4 /*yield*/, this.createCustomProcessRaw(requestParameters, initOverrides)];
|
|
180
|
+
case 1:
|
|
181
|
+
response = _a.sent();
|
|
182
|
+
return [4 /*yield*/, response.value()];
|
|
183
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
};
|
|
78
188
|
/**
|
|
79
189
|
* Retrieves detailed information on a process
|
|
80
190
|
* Get process
|
|
@@ -241,6 +351,119 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
241
351
|
});
|
|
242
352
|
});
|
|
243
353
|
};
|
|
354
|
+
/**
|
|
355
|
+
* Updates the process definition from the repository
|
|
356
|
+
* Sync custom process
|
|
357
|
+
*/
|
|
358
|
+
ProcessesApi.prototype.syncCustomProcessRaw = function (requestParameters, initOverrides) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
360
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
361
|
+
return __generator(this, function (_a) {
|
|
362
|
+
switch (_a.label) {
|
|
363
|
+
case 0:
|
|
364
|
+
if (requestParameters.processId === null || requestParameters.processId === undefined) {
|
|
365
|
+
throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling syncCustomProcess.');
|
|
366
|
+
}
|
|
367
|
+
queryParameters = {};
|
|
368
|
+
headerParameters = {};
|
|
369
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
370
|
+
token = this.configuration.accessToken;
|
|
371
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
372
|
+
case 1:
|
|
373
|
+
tokenString = _a.sent();
|
|
374
|
+
if (tokenString) {
|
|
375
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
376
|
+
}
|
|
377
|
+
_a.label = 2;
|
|
378
|
+
case 2: return [4 /*yield*/, this.request({
|
|
379
|
+
path: "/processes/{processId}:sync".replace("{".concat("processId", "}"), encodeURIComponent(String(requestParameters.processId))),
|
|
380
|
+
method: 'PUT',
|
|
381
|
+
headers: headerParameters,
|
|
382
|
+
query: queryParameters,
|
|
383
|
+
}, initOverrides)];
|
|
384
|
+
case 3:
|
|
385
|
+
response = _a.sent();
|
|
386
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CustomPipelineSettingsDto1FromJSON)(jsonValue); })];
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* Updates the process definition from the repository
|
|
393
|
+
* Sync custom process
|
|
394
|
+
*/
|
|
395
|
+
ProcessesApi.prototype.syncCustomProcess = function (requestParameters, initOverrides) {
|
|
396
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
397
|
+
var response;
|
|
398
|
+
return __generator(this, function (_a) {
|
|
399
|
+
switch (_a.label) {
|
|
400
|
+
case 0: return [4 /*yield*/, this.syncCustomProcessRaw(requestParameters, initOverrides)];
|
|
401
|
+
case 1:
|
|
402
|
+
response = _a.sent();
|
|
403
|
+
return [4 /*yield*/, response.value()];
|
|
404
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* Updates the custom process
|
|
411
|
+
* Update custom process
|
|
412
|
+
*/
|
|
413
|
+
ProcessesApi.prototype.updateCustomProcessRaw = function (requestParameters, initOverrides) {
|
|
414
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
415
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
416
|
+
return __generator(this, function (_a) {
|
|
417
|
+
switch (_a.label) {
|
|
418
|
+
case 0:
|
|
419
|
+
if (requestParameters.processId === null || requestParameters.processId === undefined) {
|
|
420
|
+
throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling updateCustomProcess.');
|
|
421
|
+
}
|
|
422
|
+
if (requestParameters.customProcessRequest === null || requestParameters.customProcessRequest === undefined) {
|
|
423
|
+
throw new runtime.RequiredError('customProcessRequest', 'Required parameter requestParameters.customProcessRequest was null or undefined when calling updateCustomProcess.');
|
|
424
|
+
}
|
|
425
|
+
queryParameters = {};
|
|
426
|
+
headerParameters = {};
|
|
427
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
428
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
429
|
+
token = this.configuration.accessToken;
|
|
430
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
431
|
+
case 1:
|
|
432
|
+
tokenString = _a.sent();
|
|
433
|
+
if (tokenString) {
|
|
434
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
435
|
+
}
|
|
436
|
+
_a.label = 2;
|
|
437
|
+
case 2: return [4 /*yield*/, this.request({
|
|
438
|
+
path: "/processes/{processId}".replace("{".concat("processId", "}"), encodeURIComponent(String(requestParameters.processId))),
|
|
439
|
+
method: 'PUT',
|
|
440
|
+
headers: headerParameters,
|
|
441
|
+
query: queryParameters,
|
|
442
|
+
body: (0, index_1.CustomProcessRequestToJSON)(requestParameters.customProcessRequest),
|
|
443
|
+
}, initOverrides)];
|
|
444
|
+
case 3:
|
|
445
|
+
response = _a.sent();
|
|
446
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
});
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* Updates the custom process
|
|
453
|
+
* Update custom process
|
|
454
|
+
*/
|
|
455
|
+
ProcessesApi.prototype.updateCustomProcess = function (requestParameters, initOverrides) {
|
|
456
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
457
|
+
return __generator(this, function (_a) {
|
|
458
|
+
switch (_a.label) {
|
|
459
|
+
case 0: return [4 /*yield*/, this.updateCustomProcessRaw(requestParameters, initOverrides)];
|
|
460
|
+
case 1:
|
|
461
|
+
_a.sent();
|
|
462
|
+
return [2 /*return*/];
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
};
|
|
244
467
|
/**
|
|
245
468
|
* Checks the input file names with the expected files for a data type (ingest processes only)
|
|
246
469
|
* Validate file requirements
|
|
@@ -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 CustomPipelineSettingsDto1
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomPipelineSettingsDto1 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomPipelineSettingsDto1
|
|
22
|
+
*/
|
|
23
|
+
repository: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomPipelineSettingsDto1
|
|
28
|
+
*/
|
|
29
|
+
branch: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomPipelineSettingsDto1
|
|
34
|
+
*/
|
|
35
|
+
folder: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof CustomPipelineSettingsDto1
|
|
40
|
+
*/
|
|
41
|
+
lastSync: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomPipelineSettingsDto1
|
|
46
|
+
*/
|
|
47
|
+
syncStatus: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CustomPipelineSettingsDto1
|
|
52
|
+
*/
|
|
53
|
+
commitHash: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the CustomPipelineSettingsDto1 interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfCustomPipelineSettingsDto1(value: object): boolean;
|
|
59
|
+
export declare function CustomPipelineSettingsDto1FromJSON(json: any): CustomPipelineSettingsDto1;
|
|
60
|
+
export declare function CustomPipelineSettingsDto1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomPipelineSettingsDto1;
|
|
61
|
+
export declare function CustomPipelineSettingsDto1ToJSON(value?: CustomPipelineSettingsDto1 | 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.CustomPipelineSettingsDto1ToJSON = exports.CustomPipelineSettingsDto1FromJSONTyped = exports.CustomPipelineSettingsDto1FromJSON = exports.instanceOfCustomPipelineSettingsDto1 = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CustomPipelineSettingsDto1 interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCustomPipelineSettingsDto1(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "repository" in value;
|
|
23
|
+
isInstance = isInstance && "branch" in value;
|
|
24
|
+
isInstance = isInstance && "folder" in value;
|
|
25
|
+
isInstance = isInstance && "lastSync" in value;
|
|
26
|
+
isInstance = isInstance && "syncStatus" in value;
|
|
27
|
+
isInstance = isInstance && "commitHash" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfCustomPipelineSettingsDto1 = instanceOfCustomPipelineSettingsDto1;
|
|
31
|
+
function CustomPipelineSettingsDto1FromJSON(json) {
|
|
32
|
+
return CustomPipelineSettingsDto1FromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.CustomPipelineSettingsDto1FromJSON = CustomPipelineSettingsDto1FromJSON;
|
|
35
|
+
function CustomPipelineSettingsDto1FromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'repository': json['repository'],
|
|
41
|
+
'branch': json['branch'],
|
|
42
|
+
'folder': json['folder'],
|
|
43
|
+
'lastSync': (new Date(json['lastSync'])),
|
|
44
|
+
'syncStatus': json['syncStatus'],
|
|
45
|
+
'commitHash': json['commitHash'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.CustomPipelineSettingsDto1FromJSONTyped = CustomPipelineSettingsDto1FromJSONTyped;
|
|
49
|
+
function CustomPipelineSettingsDto1ToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'repository': value.repository,
|
|
58
|
+
'branch': value.branch,
|
|
59
|
+
'folder': value.folder,
|
|
60
|
+
'lastSync': (value.lastSync.toISOString()),
|
|
61
|
+
'syncStatus': value.syncStatus,
|
|
62
|
+
'commitHash': value.commitHash,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.CustomPipelineSettingsDto1ToJSON = CustomPipelineSettingsDto1ToJSON;
|
|
@@ -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 { CustomProcessRequestPipelineCode } from './CustomProcessRequestPipelineCode';
|
|
13
|
+
import type { Executor } from './Executor';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CustomProcessRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface CustomProcessRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Unique ID for the process
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CustomProcessRequest
|
|
24
|
+
*/
|
|
25
|
+
processId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Friendly name for the process
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CustomProcessRequest
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Describes the analysis performed by the process
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CustomProcessRequest
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
* Link to pipeline documentation
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CustomProcessRequest
|
|
42
|
+
*/
|
|
43
|
+
documentationUrl?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Executor}
|
|
47
|
+
* @memberof CustomProcessRequest
|
|
48
|
+
*/
|
|
49
|
+
executor: Executor;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {CustomProcessRequestPipelineCode}
|
|
53
|
+
* @memberof CustomProcessRequest
|
|
54
|
+
*/
|
|
55
|
+
pipelineCode: CustomProcessRequestPipelineCode;
|
|
56
|
+
/**
|
|
57
|
+
* Downstream pipeline IDs, the pipelines which can be run off of the outputs to this pipeline
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof CustomProcessRequest
|
|
60
|
+
*/
|
|
61
|
+
childProcessIds: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Upstream process IDs, these processes provide the type of input data required for this pipeline
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof CustomProcessRequest
|
|
66
|
+
*/
|
|
67
|
+
parentProcessIds: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Projects that this process is linked to
|
|
70
|
+
* @type {Array<string>}
|
|
71
|
+
* @memberof CustomProcessRequest
|
|
72
|
+
*/
|
|
73
|
+
projectIds: Array<string>;
|
|
74
|
+
/**
|
|
75
|
+
* GitHub repository that contains the process definition
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof CustomProcessRequest
|
|
78
|
+
*/
|
|
79
|
+
definitionRepository: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof CustomProcessRequest
|
|
84
|
+
*/
|
|
85
|
+
definitionBranch: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof CustomProcessRequest
|
|
90
|
+
*/
|
|
91
|
+
definitionFolder: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the CustomProcessRequest interface.
|
|
95
|
+
*/
|
|
96
|
+
export declare function instanceOfCustomProcessRequest(value: object): boolean;
|
|
97
|
+
export declare function CustomProcessRequestFromJSON(json: any): CustomProcessRequest;
|
|
98
|
+
export declare function CustomProcessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomProcessRequest;
|
|
99
|
+
export declare function CustomProcessRequestToJSON(value?: CustomProcessRequest | null): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.CustomProcessRequestToJSON = exports.CustomProcessRequestFromJSONTyped = exports.CustomProcessRequestFromJSON = exports.instanceOfCustomProcessRequest = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var CustomProcessRequestPipelineCode_1 = require("./CustomProcessRequestPipelineCode");
|
|
19
|
+
var Executor_1 = require("./Executor");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CustomProcessRequest interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCustomProcessRequest(value) {
|
|
24
|
+
var isInstance = true;
|
|
25
|
+
isInstance = isInstance && "description" in value;
|
|
26
|
+
isInstance = isInstance && "executor" in value;
|
|
27
|
+
isInstance = isInstance && "pipelineCode" in value;
|
|
28
|
+
isInstance = isInstance && "childProcessIds" in value;
|
|
29
|
+
isInstance = isInstance && "parentProcessIds" in value;
|
|
30
|
+
isInstance = isInstance && "projectIds" in value;
|
|
31
|
+
isInstance = isInstance && "definitionRepository" in value;
|
|
32
|
+
isInstance = isInstance && "definitionBranch" in value;
|
|
33
|
+
isInstance = isInstance && "definitionFolder" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfCustomProcessRequest = instanceOfCustomProcessRequest;
|
|
37
|
+
function CustomProcessRequestFromJSON(json) {
|
|
38
|
+
return CustomProcessRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.CustomProcessRequestFromJSON = CustomProcessRequestFromJSON;
|
|
41
|
+
function CustomProcessRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'processId': !(0, runtime_1.exists)(json, 'processId') ? undefined : json['processId'],
|
|
47
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
48
|
+
'description': json['description'],
|
|
49
|
+
'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
50
|
+
'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
|
|
51
|
+
'pipelineCode': (0, CustomProcessRequestPipelineCode_1.CustomProcessRequestPipelineCodeFromJSON)(json['pipelineCode']),
|
|
52
|
+
'childProcessIds': json['childProcessIds'],
|
|
53
|
+
'parentProcessIds': json['parentProcessIds'],
|
|
54
|
+
'projectIds': json['projectIds'],
|
|
55
|
+
'definitionRepository': json['definitionRepository'],
|
|
56
|
+
'definitionBranch': json['definitionBranch'],
|
|
57
|
+
'definitionFolder': json['definitionFolder'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.CustomProcessRequestFromJSONTyped = CustomProcessRequestFromJSONTyped;
|
|
61
|
+
function CustomProcessRequestToJSON(value) {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'processId': value.processId,
|
|
70
|
+
'name': value.name,
|
|
71
|
+
'description': value.description,
|
|
72
|
+
'documentationUrl': value.documentationUrl,
|
|
73
|
+
'executor': (0, Executor_1.ExecutorToJSON)(value.executor),
|
|
74
|
+
'pipelineCode': (0, CustomProcessRequestPipelineCode_1.CustomProcessRequestPipelineCodeToJSON)(value.pipelineCode),
|
|
75
|
+
'childProcessIds': value.childProcessIds,
|
|
76
|
+
'parentProcessIds': value.parentProcessIds,
|
|
77
|
+
'projectIds': value.projectIds,
|
|
78
|
+
'definitionRepository': value.definitionRepository,
|
|
79
|
+
'definitionBranch': value.definitionBranch,
|
|
80
|
+
'definitionFolder': value.definitionFolder,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.CustomProcessRequestToJSON = CustomProcessRequestToJSON;
|