@cirrobio/api-client 0.0.26-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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +7 -2
  2. package/README.md +1 -1
  3. package/dist/apis/ProcessesApi.d.ts +60 -7
  4. package/dist/apis/ProcessesApi.js +234 -11
  5. package/dist/models/CustomPipelineSettingsDto1.d.ts +61 -0
  6. package/dist/models/CustomPipelineSettingsDto1.js +65 -0
  7. package/dist/models/CustomProcessRequest.d.ts +99 -0
  8. package/dist/models/CustomProcessRequest.js +83 -0
  9. package/dist/models/CustomProcessRequestPipelineCode.d.ts +50 -0
  10. package/dist/models/CustomProcessRequestPipelineCode.js +58 -0
  11. package/dist/models/FileNamePattern.d.ts +0 -6
  12. package/dist/models/FileNamePattern.js +0 -3
  13. package/dist/models/FileRequirements.d.ts +44 -0
  14. package/dist/models/FileRequirements.js +57 -0
  15. package/dist/models/GenerateSftpCredentialsRequest.d.ts +2 -2
  16. package/dist/models/GenerateSftpCredentialsRequest.js +2 -2
  17. package/dist/models/PipelineCode.d.ts +50 -0
  18. package/dist/models/PipelineCode.js +58 -0
  19. package/dist/models/ProcessDetail.d.ts +1 -1
  20. package/dist/models/RepositoryType.d.ts +25 -0
  21. package/dist/models/RepositoryType.js +40 -0
  22. package/dist/models/ValidateFileRequirementsRequest.d.ts +37 -0
  23. package/dist/models/ValidateFileRequirementsRequest.js +53 -0
  24. package/dist/models/index.d.ts +7 -2
  25. package/dist/models/index.js +7 -2
  26. package/package.json +1 -1
  27. package/src/apis/ProcessesApi.ts +213 -19
  28. package/src/models/CustomPipelineSettingsDto1.ts +111 -0
  29. package/src/models/CustomProcessRequest.ts +175 -0
  30. package/src/models/CustomProcessRequestPipelineCode.ts +97 -0
  31. package/src/models/FileNamePattern.ts +0 -9
  32. package/src/models/{ValidateDataInputsResponse.ts → FileRequirements.ts} +11 -11
  33. package/src/models/GenerateSftpCredentialsRequest.ts +3 -4
  34. package/src/models/PipelineCode.ts +97 -0
  35. package/src/models/ProcessDetail.ts +1 -1
  36. package/src/models/RepositoryType.ts +39 -0
  37. package/src/models/{ValidateDataInputsRequest.ts → ValidateFileRequirementsRequest.ts} +10 -10
  38. package/src/models/index.ts +7 -2
@@ -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
@@ -37,6 +40,7 @@ src/models/DatasetFile.ts
37
40
  src/models/DatasetViz.ts
38
41
  src/models/Executor.ts
39
42
  src/models/FileNamePattern.ts
43
+ src/models/FileRequirements.ts
40
44
  src/models/FormSchema.ts
41
45
  src/models/GenerateSftpCredentialsRequest.ts
42
46
  src/models/GetExecutionLogsResponse.ts
@@ -50,6 +54,7 @@ src/models/NotebookInstanceStatusResponse.ts
50
54
  src/models/OpenNotebookInstanceResponse.ts
51
55
  src/models/PaginatedResponseDatasetListDto.ts
52
56
  src/models/PaginatedResponseSampleDto.ts
57
+ src/models/PipelineCode.ts
53
58
  src/models/Process.ts
54
59
  src/models/ProcessDetail.ts
55
60
  src/models/Project.ts
@@ -61,6 +66,7 @@ src/models/ProjectSettings.ts
61
66
  src/models/ProjectUser.ts
62
67
  src/models/Reference.ts
63
68
  src/models/ReferenceType.ts
69
+ src/models/RepositoryType.ts
64
70
  src/models/RunAnalysisRequest.ts
65
71
  src/models/S3Credentials.ts
66
72
  src/models/Sample.ts
@@ -78,8 +84,7 @@ src/models/UpdateUserRequest.ts
78
84
  src/models/UploadDatasetCreateResponse.ts
79
85
  src/models/UploadDatasetRequest.ts
80
86
  src/models/User.ts
81
- src/models/ValidateDataInputsRequest.ts
82
- src/models/ValidateDataInputsResponse.ts
87
+ src/models/ValidateFileRequirementsRequest.ts
83
88
  src/models/index.ts
84
89
  src/runtime.ts
85
90
  tsconfig.json
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.26-alpha --save
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 { FormSchema, Process, ProcessDetail, ValidateDataInputsRequest, ValidateDataInputsResponse } 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,14 +26,41 @@ export interface GetProcessParametersRequest {
20
26
  export interface GetProcessesRequest {
21
27
  includeArchived?: boolean;
22
28
  }
23
- export interface ValidateDataInputsOperationRequest {
29
+ export interface SyncCustomProcessRequest {
30
+ processId: string;
31
+ }
32
+ export interface UpdateCustomProcessRequest {
33
+ processId: string;
34
+ customProcessRequest: CustomProcessRequest;
35
+ }
36
+ export interface ValidateFileRequirementsOperationRequest {
24
37
  processId: string;
25
- validateDataInputsRequest: ValidateDataInputsRequest;
38
+ validateFileRequirementsRequest: ValidateFileRequirementsRequest;
26
39
  }
27
40
  /**
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,14 +91,34 @@ 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
- * Validate data inputs
116
+ * Validate file requirements
64
117
  */
65
- validateDataInputsRaw(requestParameters: ValidateDataInputsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateDataInputsResponse>>;
118
+ validateFileRequirementsRaw(requestParameters: ValidateFileRequirementsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileRequirements>>;
66
119
  /**
67
120
  * Checks the input file names with the expected files for a data type (ingest processes only)
68
- * Validate data inputs
121
+ * Validate file requirements
69
122
  */
70
- validateDataInputs(requestParameters: ValidateDataInputsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateDataInputsResponse>;
123
+ validateFileRequirements(requestParameters: ValidateFileRequirementsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileRequirements>;
71
124
  }
@@ -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,21 +351,134 @@ 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
- * Validate data inputs
469
+ * Validate file requirements
247
470
  */
248
- ProcessesApi.prototype.validateDataInputsRaw = function (requestParameters, initOverrides) {
471
+ ProcessesApi.prototype.validateFileRequirementsRaw = function (requestParameters, initOverrides) {
249
472
  return __awaiter(this, void 0, void 0, function () {
250
473
  var queryParameters, headerParameters, token, tokenString, response;
251
474
  return __generator(this, function (_a) {
252
475
  switch (_a.label) {
253
476
  case 0:
254
477
  if (requestParameters.processId === null || requestParameters.processId === undefined) {
255
- throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling validateDataInputs.');
478
+ throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling validateFileRequirements.');
256
479
  }
257
- if (requestParameters.validateDataInputsRequest === null || requestParameters.validateDataInputsRequest === undefined) {
258
- throw new runtime.RequiredError('validateDataInputsRequest', 'Required parameter requestParameters.validateDataInputsRequest was null or undefined when calling validateDataInputs.');
480
+ if (requestParameters.validateFileRequirementsRequest === null || requestParameters.validateFileRequirementsRequest === undefined) {
481
+ throw new runtime.RequiredError('validateFileRequirementsRequest', 'Required parameter requestParameters.validateFileRequirementsRequest was null or undefined when calling validateFileRequirements.');
259
482
  }
260
483
  queryParameters = {};
261
484
  headerParameters = {};
@@ -270,29 +493,29 @@ var ProcessesApi = /** @class */ (function (_super) {
270
493
  }
271
494
  _a.label = 2;
272
495
  case 2: return [4 /*yield*/, this.request({
273
- path: "/processes/{processId}/validate-inputs".replace("{".concat("processId", "}"), encodeURIComponent(String(requestParameters.processId))),
496
+ path: "/processes/{processId}/validate-files".replace("{".concat("processId", "}"), encodeURIComponent(String(requestParameters.processId))),
274
497
  method: 'POST',
275
498
  headers: headerParameters,
276
499
  query: queryParameters,
277
- body: (0, index_1.ValidateDataInputsRequestToJSON)(requestParameters.validateDataInputsRequest),
500
+ body: (0, index_1.ValidateFileRequirementsRequestToJSON)(requestParameters.validateFileRequirementsRequest),
278
501
  }, initOverrides)];
279
502
  case 3:
280
503
  response = _a.sent();
281
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ValidateDataInputsResponseFromJSON)(jsonValue); })];
504
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FileRequirementsFromJSON)(jsonValue); })];
282
505
  }
283
506
  });
284
507
  });
285
508
  };
286
509
  /**
287
510
  * Checks the input file names with the expected files for a data type (ingest processes only)
288
- * Validate data inputs
511
+ * Validate file requirements
289
512
  */
290
- ProcessesApi.prototype.validateDataInputs = function (requestParameters, initOverrides) {
513
+ ProcessesApi.prototype.validateFileRequirements = function (requestParameters, initOverrides) {
291
514
  return __awaiter(this, void 0, void 0, function () {
292
515
  var response;
293
516
  return __generator(this, function (_a) {
294
517
  switch (_a.label) {
295
- case 0: return [4 /*yield*/, this.validateDataInputsRaw(requestParameters, initOverrides)];
518
+ case 0: return [4 /*yield*/, this.validateFileRequirementsRaw(requestParameters, initOverrides)];
296
519
  case 1:
297
520
  response = _a.sent();
298
521
  return [4 /*yield*/, response.value()];
@@ -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;