@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
@@ -8,6 +8,9 @@ export * from './Contact';
8
8
  export * from './CreateNotebookInstanceRequest';
9
9
  export * from './CreateResponse';
10
10
  export * from './CustomPipelineSettings';
11
+ export * from './CustomPipelineSettingsDto1';
12
+ export * from './CustomProcessRequest';
13
+ export * from './CustomProcessRequestPipelineCode';
11
14
  export * from './CustomerType';
12
15
  export * from './Dashboard';
13
16
  export * from './DashboardRequest';
@@ -18,6 +21,7 @@ export * from './DatasetFile';
18
21
  export * from './DatasetViz';
19
22
  export * from './Executor';
20
23
  export * from './FileNamePattern';
24
+ export * from './FileRequirements';
21
25
  export * from './FormSchema';
22
26
  export * from './GenerateSftpCredentialsRequest';
23
27
  export * from './GetExecutionLogsResponse';
@@ -31,6 +35,7 @@ export * from './NotebookInstanceStatusResponse';
31
35
  export * from './OpenNotebookInstanceResponse';
32
36
  export * from './PaginatedResponseDatasetListDto';
33
37
  export * from './PaginatedResponseSampleDto';
38
+ export * from './PipelineCode';
34
39
  export * from './Process';
35
40
  export * from './ProcessDetail';
36
41
  export * from './Project';
@@ -42,6 +47,7 @@ export * from './ProjectSettings';
42
47
  export * from './ProjectUser';
43
48
  export * from './Reference';
44
49
  export * from './ReferenceType';
50
+ export * from './RepositoryType';
45
51
  export * from './RunAnalysisRequest';
46
52
  export * from './S3Credentials';
47
53
  export * from './Sample';
@@ -59,5 +65,4 @@ export * from './UpdateUserRequest';
59
65
  export * from './UploadDatasetCreateResponse';
60
66
  export * from './UploadDatasetRequest';
61
67
  export * from './User';
62
- export * from './ValidateDataInputsRequest';
63
- export * from './ValidateDataInputsResponse';
68
+ export * from './ValidateFileRequirementsRequest';
@@ -26,6 +26,9 @@ __exportStar(require("./Contact"), exports);
26
26
  __exportStar(require("./CreateNotebookInstanceRequest"), exports);
27
27
  __exportStar(require("./CreateResponse"), exports);
28
28
  __exportStar(require("./CustomPipelineSettings"), exports);
29
+ __exportStar(require("./CustomPipelineSettingsDto1"), exports);
30
+ __exportStar(require("./CustomProcessRequest"), exports);
31
+ __exportStar(require("./CustomProcessRequestPipelineCode"), exports);
29
32
  __exportStar(require("./CustomerType"), exports);
30
33
  __exportStar(require("./Dashboard"), exports);
31
34
  __exportStar(require("./DashboardRequest"), exports);
@@ -36,6 +39,7 @@ __exportStar(require("./DatasetFile"), exports);
36
39
  __exportStar(require("./DatasetViz"), exports);
37
40
  __exportStar(require("./Executor"), exports);
38
41
  __exportStar(require("./FileNamePattern"), exports);
42
+ __exportStar(require("./FileRequirements"), exports);
39
43
  __exportStar(require("./FormSchema"), exports);
40
44
  __exportStar(require("./GenerateSftpCredentialsRequest"), exports);
41
45
  __exportStar(require("./GetExecutionLogsResponse"), exports);
@@ -49,6 +53,7 @@ __exportStar(require("./NotebookInstanceStatusResponse"), exports);
49
53
  __exportStar(require("./OpenNotebookInstanceResponse"), exports);
50
54
  __exportStar(require("./PaginatedResponseDatasetListDto"), exports);
51
55
  __exportStar(require("./PaginatedResponseSampleDto"), exports);
56
+ __exportStar(require("./PipelineCode"), exports);
52
57
  __exportStar(require("./Process"), exports);
53
58
  __exportStar(require("./ProcessDetail"), exports);
54
59
  __exportStar(require("./Project"), exports);
@@ -60,6 +65,7 @@ __exportStar(require("./ProjectSettings"), exports);
60
65
  __exportStar(require("./ProjectUser"), exports);
61
66
  __exportStar(require("./Reference"), exports);
62
67
  __exportStar(require("./ReferenceType"), exports);
68
+ __exportStar(require("./RepositoryType"), exports);
63
69
  __exportStar(require("./RunAnalysisRequest"), exports);
64
70
  __exportStar(require("./S3Credentials"), exports);
65
71
  __exportStar(require("./Sample"), exports);
@@ -77,5 +83,4 @@ __exportStar(require("./UpdateUserRequest"), exports);
77
83
  __exportStar(require("./UploadDatasetCreateResponse"), exports);
78
84
  __exportStar(require("./UploadDatasetRequest"), exports);
79
85
  __exportStar(require("./User"), exports);
80
- __exportStar(require("./ValidateDataInputsRequest"), exports);
81
- __exportStar(require("./ValidateDataInputsResponse"), exports);
86
+ __exportStar(require("./ValidateFileRequirementsRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.26-alpha",
3
+ "version": "0.0.28-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -15,25 +15,42 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ CreateResponse,
19
+ CustomPipelineSettingsDto1,
20
+ CustomProcessRequest,
21
+ FileRequirements,
18
22
  FormSchema,
19
23
  Process,
20
24
  ProcessDetail,
21
- ValidateDataInputsRequest,
22
- ValidateDataInputsResponse,
25
+ ValidateFileRequirementsRequest,
23
26
  } from '../models/index';
24
27
  import {
28
+ CreateResponseFromJSON,
29
+ CreateResponseToJSON,
30
+ CustomPipelineSettingsDto1FromJSON,
31
+ CustomPipelineSettingsDto1ToJSON,
32
+ CustomProcessRequestFromJSON,
33
+ CustomProcessRequestToJSON,
34
+ FileRequirementsFromJSON,
35
+ FileRequirementsToJSON,
25
36
  FormSchemaFromJSON,
26
37
  FormSchemaToJSON,
27
38
  ProcessFromJSON,
28
39
  ProcessToJSON,
29
40
  ProcessDetailFromJSON,
30
41
  ProcessDetailToJSON,
31
- ValidateDataInputsRequestFromJSON,
32
- ValidateDataInputsRequestToJSON,
33
- ValidateDataInputsResponseFromJSON,
34
- ValidateDataInputsResponseToJSON,
42
+ ValidateFileRequirementsRequestFromJSON,
43
+ ValidateFileRequirementsRequestToJSON,
35
44
  } from '../models/index';
36
45
 
46
+ export interface ArchiveCustomProcessRequest {
47
+ processId: string;
48
+ }
49
+
50
+ export interface CreateCustomProcessRequest {
51
+ customProcessRequest: CustomProcessRequest;
52
+ }
53
+
37
54
  export interface GetProcessRequest {
38
55
  processId: string;
39
56
  }
@@ -46,9 +63,18 @@ export interface GetProcessesRequest {
46
63
  includeArchived?: boolean;
47
64
  }
48
65
 
49
- export interface ValidateDataInputsOperationRequest {
66
+ export interface SyncCustomProcessRequest {
50
67
  processId: string;
51
- validateDataInputsRequest: ValidateDataInputsRequest;
68
+ }
69
+
70
+ export interface UpdateCustomProcessRequest {
71
+ processId: string;
72
+ customProcessRequest: CustomProcessRequest;
73
+ }
74
+
75
+ export interface ValidateFileRequirementsOperationRequest {
76
+ processId: string;
77
+ validateFileRequirementsRequest: ValidateFileRequirementsRequest;
52
78
  }
53
79
 
54
80
  /**
@@ -56,6 +82,88 @@ export interface ValidateDataInputsOperationRequest {
56
82
  */
57
83
  export class ProcessesApi extends runtime.BaseAPI {
58
84
 
85
+ /**
86
+ * Removes the process from the list of available options
87
+ * Archive custom process
88
+ */
89
+ async archiveCustomProcessRaw(requestParameters: ArchiveCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
90
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
91
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling archiveCustomProcess.');
92
+ }
93
+
94
+ const queryParameters: any = {};
95
+
96
+ const headerParameters: runtime.HTTPHeaders = {};
97
+
98
+ if (this.configuration && this.configuration.accessToken) {
99
+ const token = this.configuration.accessToken;
100
+ const tokenString = await token("accessToken", []);
101
+
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
104
+ }
105
+ }
106
+ const response = await this.request({
107
+ path: `/processes/{processId}`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
108
+ method: 'DELETE',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ }, initOverrides);
112
+
113
+ return new runtime.VoidApiResponse(response);
114
+ }
115
+
116
+ /**
117
+ * Removes the process from the list of available options
118
+ * Archive custom process
119
+ */
120
+ async archiveCustomProcess(requestParameters: ArchiveCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
121
+ await this.archiveCustomProcessRaw(requestParameters, initOverrides);
122
+ }
123
+
124
+ /**
125
+ * Creates a custom data type or pipeline which you can use in the listed projects.
126
+ * Create custom process
127
+ */
128
+ async createCustomProcessRaw(requestParameters: CreateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>> {
129
+ if (requestParameters.customProcessRequest === null || requestParameters.customProcessRequest === undefined) {
130
+ throw new runtime.RequiredError('customProcessRequest','Required parameter requestParameters.customProcessRequest was null or undefined when calling createCustomProcess.');
131
+ }
132
+
133
+ const queryParameters: any = {};
134
+
135
+ const headerParameters: runtime.HTTPHeaders = {};
136
+
137
+ headerParameters['Content-Type'] = 'application/json';
138
+
139
+ if (this.configuration && this.configuration.accessToken) {
140
+ const token = this.configuration.accessToken;
141
+ const tokenString = await token("accessToken", []);
142
+
143
+ if (tokenString) {
144
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
145
+ }
146
+ }
147
+ const response = await this.request({
148
+ path: `/processes`,
149
+ method: 'POST',
150
+ headers: headerParameters,
151
+ query: queryParameters,
152
+ body: CustomProcessRequestToJSON(requestParameters.customProcessRequest),
153
+ }, initOverrides);
154
+
155
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateResponseFromJSON(jsonValue));
156
+ }
157
+
158
+ /**
159
+ * Creates a custom data type or pipeline which you can use in the listed projects.
160
+ * Create custom process
161
+ */
162
+ async createCustomProcess(requestParameters: CreateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse> {
163
+ const response = await this.createCustomProcessRaw(requestParameters, initOverrides);
164
+ return await response.value();
165
+ }
166
+
59
167
  /**
60
168
  * Retrieves detailed information on a process
61
169
  * Get process
@@ -176,17 +284,103 @@ export class ProcessesApi extends runtime.BaseAPI {
176
284
  return await response.value();
177
285
  }
178
286
 
287
+ /**
288
+ * Updates the process definition from the repository
289
+ * Sync custom process
290
+ */
291
+ async syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettingsDto1>> {
292
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
293
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling syncCustomProcess.');
294
+ }
295
+
296
+ const queryParameters: any = {};
297
+
298
+ const headerParameters: runtime.HTTPHeaders = {};
299
+
300
+ if (this.configuration && this.configuration.accessToken) {
301
+ const token = this.configuration.accessToken;
302
+ const tokenString = await token("accessToken", []);
303
+
304
+ if (tokenString) {
305
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
306
+ }
307
+ }
308
+ const response = await this.request({
309
+ path: `/processes/{processId}:sync`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
310
+ method: 'PUT',
311
+ headers: headerParameters,
312
+ query: queryParameters,
313
+ }, initOverrides);
314
+
315
+ return new runtime.JSONApiResponse(response, (jsonValue) => CustomPipelineSettingsDto1FromJSON(jsonValue));
316
+ }
317
+
318
+ /**
319
+ * Updates the process definition from the repository
320
+ * Sync custom process
321
+ */
322
+ async syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettingsDto1> {
323
+ const response = await this.syncCustomProcessRaw(requestParameters, initOverrides);
324
+ return await response.value();
325
+ }
326
+
327
+ /**
328
+ * Updates the custom process
329
+ * Update custom process
330
+ */
331
+ async updateCustomProcessRaw(requestParameters: UpdateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
332
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
333
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling updateCustomProcess.');
334
+ }
335
+
336
+ if (requestParameters.customProcessRequest === null || requestParameters.customProcessRequest === undefined) {
337
+ throw new runtime.RequiredError('customProcessRequest','Required parameter requestParameters.customProcessRequest was null or undefined when calling updateCustomProcess.');
338
+ }
339
+
340
+ const queryParameters: any = {};
341
+
342
+ const headerParameters: runtime.HTTPHeaders = {};
343
+
344
+ headerParameters['Content-Type'] = 'application/json';
345
+
346
+ if (this.configuration && this.configuration.accessToken) {
347
+ const token = this.configuration.accessToken;
348
+ const tokenString = await token("accessToken", []);
349
+
350
+ if (tokenString) {
351
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
352
+ }
353
+ }
354
+ const response = await this.request({
355
+ path: `/processes/{processId}`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
356
+ method: 'PUT',
357
+ headers: headerParameters,
358
+ query: queryParameters,
359
+ body: CustomProcessRequestToJSON(requestParameters.customProcessRequest),
360
+ }, initOverrides);
361
+
362
+ return new runtime.VoidApiResponse(response);
363
+ }
364
+
365
+ /**
366
+ * Updates the custom process
367
+ * Update custom process
368
+ */
369
+ async updateCustomProcess(requestParameters: UpdateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
370
+ await this.updateCustomProcessRaw(requestParameters, initOverrides);
371
+ }
372
+
179
373
  /**
180
374
  * Checks the input file names with the expected files for a data type (ingest processes only)
181
- * Validate data inputs
375
+ * Validate file requirements
182
376
  */
183
- async validateDataInputsRaw(requestParameters: ValidateDataInputsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateDataInputsResponse>> {
377
+ async validateFileRequirementsRaw(requestParameters: ValidateFileRequirementsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileRequirements>> {
184
378
  if (requestParameters.processId === null || requestParameters.processId === undefined) {
185
- throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling validateDataInputs.');
379
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling validateFileRequirements.');
186
380
  }
187
381
 
188
- if (requestParameters.validateDataInputsRequest === null || requestParameters.validateDataInputsRequest === undefined) {
189
- throw new runtime.RequiredError('validateDataInputsRequest','Required parameter requestParameters.validateDataInputsRequest was null or undefined when calling validateDataInputs.');
382
+ if (requestParameters.validateFileRequirementsRequest === null || requestParameters.validateFileRequirementsRequest === undefined) {
383
+ throw new runtime.RequiredError('validateFileRequirementsRequest','Required parameter requestParameters.validateFileRequirementsRequest was null or undefined when calling validateFileRequirements.');
190
384
  }
191
385
 
192
386
  const queryParameters: any = {};
@@ -204,22 +398,22 @@ export class ProcessesApi extends runtime.BaseAPI {
204
398
  }
205
399
  }
206
400
  const response = await this.request({
207
- path: `/processes/{processId}/validate-inputs`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
401
+ path: `/processes/{processId}/validate-files`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
208
402
  method: 'POST',
209
403
  headers: headerParameters,
210
404
  query: queryParameters,
211
- body: ValidateDataInputsRequestToJSON(requestParameters.validateDataInputsRequest),
405
+ body: ValidateFileRequirementsRequestToJSON(requestParameters.validateFileRequirementsRequest),
212
406
  }, initOverrides);
213
407
 
214
- return new runtime.JSONApiResponse(response, (jsonValue) => ValidateDataInputsResponseFromJSON(jsonValue));
408
+ return new runtime.JSONApiResponse(response, (jsonValue) => FileRequirementsFromJSON(jsonValue));
215
409
  }
216
410
 
217
411
  /**
218
412
  * Checks the input file names with the expected files for a data type (ingest processes only)
219
- * Validate data inputs
413
+ * Validate file requirements
220
414
  */
221
- async validateDataInputs(requestParameters: ValidateDataInputsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateDataInputsResponse> {
222
- const response = await this.validateDataInputsRaw(requestParameters, initOverrides);
415
+ async validateFileRequirements(requestParameters: ValidateFileRequirementsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileRequirements> {
416
+ const response = await this.validateFileRequirementsRaw(requestParameters, initOverrides);
223
417
  return await response.value();
224
418
  }
225
419
 
@@ -0,0 +1,111 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CustomPipelineSettingsDto1
20
+ */
21
+ export interface CustomPipelineSettingsDto1 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CustomPipelineSettingsDto1
26
+ */
27
+ repository: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CustomPipelineSettingsDto1
32
+ */
33
+ branch: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CustomPipelineSettingsDto1
38
+ */
39
+ folder: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof CustomPipelineSettingsDto1
44
+ */
45
+ lastSync: Date;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CustomPipelineSettingsDto1
50
+ */
51
+ syncStatus: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof CustomPipelineSettingsDto1
56
+ */
57
+ commitHash: string;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the CustomPipelineSettingsDto1 interface.
62
+ */
63
+ export function instanceOfCustomPipelineSettingsDto1(value: object): boolean {
64
+ let isInstance = true;
65
+ isInstance = isInstance && "repository" in value;
66
+ isInstance = isInstance && "branch" in value;
67
+ isInstance = isInstance && "folder" in value;
68
+ isInstance = isInstance && "lastSync" in value;
69
+ isInstance = isInstance && "syncStatus" in value;
70
+ isInstance = isInstance && "commitHash" in value;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function CustomPipelineSettingsDto1FromJSON(json: any): CustomPipelineSettingsDto1 {
76
+ return CustomPipelineSettingsDto1FromJSONTyped(json, false);
77
+ }
78
+
79
+ export function CustomPipelineSettingsDto1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomPipelineSettingsDto1 {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'repository': json['repository'],
86
+ 'branch': json['branch'],
87
+ 'folder': json['folder'],
88
+ 'lastSync': (new Date(json['lastSync'])),
89
+ 'syncStatus': json['syncStatus'],
90
+ 'commitHash': json['commitHash'],
91
+ };
92
+ }
93
+
94
+ export function CustomPipelineSettingsDto1ToJSON(value?: CustomPipelineSettingsDto1 | null): any {
95
+ if (value === undefined) {
96
+ return undefined;
97
+ }
98
+ if (value === null) {
99
+ return null;
100
+ }
101
+ return {
102
+
103
+ 'repository': value.repository,
104
+ 'branch': value.branch,
105
+ 'folder': value.folder,
106
+ 'lastSync': (value.lastSync.toISOString()),
107
+ 'syncStatus': value.syncStatus,
108
+ 'commitHash': value.commitHash,
109
+ };
110
+ }
111
+
@@ -0,0 +1,175 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { CustomProcessRequestPipelineCode } from './CustomProcessRequestPipelineCode';
17
+ import {
18
+ CustomProcessRequestPipelineCodeFromJSON,
19
+ CustomProcessRequestPipelineCodeFromJSONTyped,
20
+ CustomProcessRequestPipelineCodeToJSON,
21
+ } from './CustomProcessRequestPipelineCode';
22
+ import type { Executor } from './Executor';
23
+ import {
24
+ ExecutorFromJSON,
25
+ ExecutorFromJSONTyped,
26
+ ExecutorToJSON,
27
+ } from './Executor';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface CustomProcessRequest
33
+ */
34
+ export interface CustomProcessRequest {
35
+ /**
36
+ * Unique ID for the process
37
+ * @type {string}
38
+ * @memberof CustomProcessRequest
39
+ */
40
+ processId?: string;
41
+ /**
42
+ * Friendly name for the process
43
+ * @type {string}
44
+ * @memberof CustomProcessRequest
45
+ */
46
+ name?: string;
47
+ /**
48
+ * Describes the analysis performed by the process
49
+ * @type {string}
50
+ * @memberof CustomProcessRequest
51
+ */
52
+ description: string;
53
+ /**
54
+ * Link to pipeline documentation
55
+ * @type {string}
56
+ * @memberof CustomProcessRequest
57
+ */
58
+ documentationUrl?: string;
59
+ /**
60
+ *
61
+ * @type {Executor}
62
+ * @memberof CustomProcessRequest
63
+ */
64
+ executor: Executor;
65
+ /**
66
+ *
67
+ * @type {CustomProcessRequestPipelineCode}
68
+ * @memberof CustomProcessRequest
69
+ */
70
+ pipelineCode: CustomProcessRequestPipelineCode;
71
+ /**
72
+ * Downstream pipeline IDs, the pipelines which can be run off of the outputs to this pipeline
73
+ * @type {Array<string>}
74
+ * @memberof CustomProcessRequest
75
+ */
76
+ childProcessIds: Array<string>;
77
+ /**
78
+ * Upstream process IDs, these processes provide the type of input data required for this pipeline
79
+ * @type {Array<string>}
80
+ * @memberof CustomProcessRequest
81
+ */
82
+ parentProcessIds: Array<string>;
83
+ /**
84
+ * Projects that this process is linked to
85
+ * @type {Array<string>}
86
+ * @memberof CustomProcessRequest
87
+ */
88
+ projectIds: Array<string>;
89
+ /**
90
+ * GitHub repository that contains the process definition
91
+ * @type {string}
92
+ * @memberof CustomProcessRequest
93
+ */
94
+ definitionRepository: string;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof CustomProcessRequest
99
+ */
100
+ definitionBranch: string;
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof CustomProcessRequest
105
+ */
106
+ definitionFolder: string;
107
+ }
108
+
109
+ /**
110
+ * Check if a given object implements the CustomProcessRequest interface.
111
+ */
112
+ export function instanceOfCustomProcessRequest(value: object): boolean {
113
+ let isInstance = true;
114
+ isInstance = isInstance && "description" in value;
115
+ isInstance = isInstance && "executor" in value;
116
+ isInstance = isInstance && "pipelineCode" in value;
117
+ isInstance = isInstance && "childProcessIds" in value;
118
+ isInstance = isInstance && "parentProcessIds" in value;
119
+ isInstance = isInstance && "projectIds" in value;
120
+ isInstance = isInstance && "definitionRepository" in value;
121
+ isInstance = isInstance && "definitionBranch" in value;
122
+ isInstance = isInstance && "definitionFolder" in value;
123
+
124
+ return isInstance;
125
+ }
126
+
127
+ export function CustomProcessRequestFromJSON(json: any): CustomProcessRequest {
128
+ return CustomProcessRequestFromJSONTyped(json, false);
129
+ }
130
+
131
+ export function CustomProcessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomProcessRequest {
132
+ if ((json === undefined) || (json === null)) {
133
+ return json;
134
+ }
135
+ return {
136
+
137
+ 'processId': !exists(json, 'processId') ? undefined : json['processId'],
138
+ 'name': !exists(json, 'name') ? undefined : json['name'],
139
+ 'description': json['description'],
140
+ 'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
141
+ 'executor': ExecutorFromJSON(json['executor']),
142
+ 'pipelineCode': CustomProcessRequestPipelineCodeFromJSON(json['pipelineCode']),
143
+ 'childProcessIds': json['childProcessIds'],
144
+ 'parentProcessIds': json['parentProcessIds'],
145
+ 'projectIds': json['projectIds'],
146
+ 'definitionRepository': json['definitionRepository'],
147
+ 'definitionBranch': json['definitionBranch'],
148
+ 'definitionFolder': json['definitionFolder'],
149
+ };
150
+ }
151
+
152
+ export function CustomProcessRequestToJSON(value?: CustomProcessRequest | null): any {
153
+ if (value === undefined) {
154
+ return undefined;
155
+ }
156
+ if (value === null) {
157
+ return null;
158
+ }
159
+ return {
160
+
161
+ 'processId': value.processId,
162
+ 'name': value.name,
163
+ 'description': value.description,
164
+ 'documentationUrl': value.documentationUrl,
165
+ 'executor': ExecutorToJSON(value.executor),
166
+ 'pipelineCode': CustomProcessRequestPipelineCodeToJSON(value.pipelineCode),
167
+ 'childProcessIds': value.childProcessIds,
168
+ 'parentProcessIds': value.parentProcessIds,
169
+ 'projectIds': value.projectIds,
170
+ 'definitionRepository': value.definitionRepository,
171
+ 'definitionBranch': value.definitionBranch,
172
+ 'definitionFolder': value.definitionFolder,
173
+ };
174
+ }
175
+