@cirrobio/api-client 0.0.27-alpha → 0.0.29-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 (47) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +1 -1
  3. package/dist/apis/ProcessesApi.d.ts +54 -1
  4. package/dist/apis/ProcessesApi.js +223 -0
  5. package/dist/models/CustomPipelineSettings.d.ts +8 -8
  6. package/dist/models/CustomPipelineSettings.js +7 -11
  7. package/dist/models/CustomPipelineSettingsDto1.d.ts +61 -0
  8. package/dist/models/CustomPipelineSettingsDto1.js +65 -0
  9. package/dist/models/CustomProcessRequest.d.ts +99 -0
  10. package/dist/models/CustomProcessRequest.js +83 -0
  11. package/dist/models/CustomProcessRequestPipelineCode.d.ts +50 -0
  12. package/dist/models/CustomProcessRequestPipelineCode.js +58 -0
  13. package/dist/models/Executor.d.ts +1 -1
  14. package/dist/models/Executor.js +1 -1
  15. package/dist/models/FileNamePattern.d.ts +0 -6
  16. package/dist/models/FileNamePattern.js +0 -3
  17. package/dist/models/GenerateSftpCredentialsRequest.d.ts +2 -2
  18. package/dist/models/GenerateSftpCredentialsRequest.js +2 -2
  19. package/dist/models/PipelineCode.d.ts +50 -0
  20. package/dist/models/PipelineCode.js +58 -0
  21. package/dist/models/Process.d.ts +3 -3
  22. package/dist/models/Process.js +2 -1
  23. package/dist/models/ProcessDetail.d.ts +10 -3
  24. package/dist/models/ProcessDetail.js +6 -2
  25. package/dist/models/ProcessDetailAllOfPipelineCode.d.ts +50 -0
  26. package/dist/models/ProcessDetailAllOfPipelineCode.js +58 -0
  27. package/dist/models/RepositoryType.d.ts +25 -0
  28. package/dist/models/RepositoryType.js +40 -0
  29. package/dist/models/index.d.ts +3 -0
  30. package/dist/models/index.js +3 -0
  31. package/package.json +1 -1
  32. package/src/apis/ProcessesApi.ts +191 -0
  33. package/src/models/CustomPipelineSettings.ts +14 -19
  34. package/src/models/Executor.ts +1 -1
  35. package/src/models/FileNamePattern.ts +0 -9
  36. package/src/models/GenerateSftpCredentialsRequest.ts +3 -4
  37. package/src/models/PipelineCode.ts +97 -0
  38. package/src/models/Process.ts +5 -4
  39. package/src/models/ProcessDetail.ts +20 -4
  40. package/src/models/ProcessDetailAllOfPipelineCode.ts +97 -0
  41. package/src/models/RepositoryType.ts +39 -0
  42. package/src/models/index.ts +3 -0
  43. package/src/models/CreateDashboardRequest.ts +0 -65
  44. package/src/models/DatasetType.ts +0 -37
  45. package/src/models/Region.ts +0 -65
  46. package/src/models/RegisterDatasetRequest.ts +0 -92
  47. package/src/models/RegisterPublicDataRequest.ts +0 -83
@@ -0,0 +1,40 @@
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.RepositoryTypeToJSON = exports.RepositoryTypeFromJSONTyped = exports.RepositoryTypeFromJSON = exports.RepositoryType = void 0;
17
+ /**
18
+ * Type of repository
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var RepositoryType;
23
+ (function (RepositoryType) {
24
+ RepositoryType["None"] = "NONE";
25
+ RepositoryType["Aws"] = "AWS";
26
+ RepositoryType["GithubPublic"] = "GITHUB_PUBLIC";
27
+ RepositoryType["GithubPrivate"] = "GITHUB_PRIVATE";
28
+ })(RepositoryType = exports.RepositoryType || (exports.RepositoryType = {}));
29
+ function RepositoryTypeFromJSON(json) {
30
+ return RepositoryTypeFromJSONTyped(json, false);
31
+ }
32
+ exports.RepositoryTypeFromJSON = RepositoryTypeFromJSON;
33
+ function RepositoryTypeFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ exports.RepositoryTypeFromJSONTyped = RepositoryTypeFromJSONTyped;
37
+ function RepositoryTypeToJSON(value) {
38
+ return value;
39
+ }
40
+ exports.RepositoryTypeToJSON = RepositoryTypeToJSON;
@@ -32,8 +32,10 @@ export * from './NotebookInstanceStatusResponse';
32
32
  export * from './OpenNotebookInstanceResponse';
33
33
  export * from './PaginatedResponseDatasetListDto';
34
34
  export * from './PaginatedResponseSampleDto';
35
+ export * from './PipelineCode';
35
36
  export * from './Process';
36
37
  export * from './ProcessDetail';
38
+ export * from './ProcessDetailAllOfPipelineCode';
37
39
  export * from './Project';
38
40
  export * from './ProjectDetail';
39
41
  export * from './ProjectMetrics';
@@ -43,6 +45,7 @@ export * from './ProjectSettings';
43
45
  export * from './ProjectUser';
44
46
  export * from './Reference';
45
47
  export * from './ReferenceType';
48
+ export * from './RepositoryType';
46
49
  export * from './RunAnalysisRequest';
47
50
  export * from './S3Credentials';
48
51
  export * from './Sample';
@@ -50,8 +50,10 @@ __exportStar(require("./NotebookInstanceStatusResponse"), exports);
50
50
  __exportStar(require("./OpenNotebookInstanceResponse"), exports);
51
51
  __exportStar(require("./PaginatedResponseDatasetListDto"), exports);
52
52
  __exportStar(require("./PaginatedResponseSampleDto"), exports);
53
+ __exportStar(require("./PipelineCode"), exports);
53
54
  __exportStar(require("./Process"), exports);
54
55
  __exportStar(require("./ProcessDetail"), exports);
56
+ __exportStar(require("./ProcessDetailAllOfPipelineCode"), exports);
55
57
  __exportStar(require("./Project"), exports);
56
58
  __exportStar(require("./ProjectDetail"), exports);
57
59
  __exportStar(require("./ProjectMetrics"), exports);
@@ -61,6 +63,7 @@ __exportStar(require("./ProjectSettings"), exports);
61
63
  __exportStar(require("./ProjectUser"), exports);
62
64
  __exportStar(require("./Reference"), exports);
63
65
  __exportStar(require("./ReferenceType"), exports);
66
+ __exportStar(require("./RepositoryType"), exports);
64
67
  __exportStar(require("./RunAnalysisRequest"), exports);
65
68
  __exportStar(require("./S3Credentials"), exports);
66
69
  __exportStar(require("./Sample"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.27-alpha",
3
+ "version": "0.0.29-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -15,6 +15,8 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ CreateResponse,
19
+ CustomPipelineSettings,
18
20
  FileRequirements,
19
21
  FormSchema,
20
22
  Process,
@@ -22,6 +24,10 @@ import type {
22
24
  ValidateFileRequirementsRequest,
23
25
  } from '../models/index';
24
26
  import {
27
+ CreateResponseFromJSON,
28
+ CreateResponseToJSON,
29
+ CustomPipelineSettingsFromJSON,
30
+ CustomPipelineSettingsToJSON,
25
31
  FileRequirementsFromJSON,
26
32
  FileRequirementsToJSON,
27
33
  FormSchemaFromJSON,
@@ -34,6 +40,14 @@ import {
34
40
  ValidateFileRequirementsRequestToJSON,
35
41
  } from '../models/index';
36
42
 
43
+ export interface ArchiveCustomProcessRequest {
44
+ processId: string;
45
+ }
46
+
47
+ export interface CreateCustomProcessRequest {
48
+ processDetail: ProcessDetail;
49
+ }
50
+
37
51
  export interface GetProcessRequest {
38
52
  processId: string;
39
53
  }
@@ -46,6 +60,15 @@ export interface GetProcessesRequest {
46
60
  includeArchived?: boolean;
47
61
  }
48
62
 
63
+ export interface SyncCustomProcessRequest {
64
+ processId: string;
65
+ }
66
+
67
+ export interface UpdateCustomProcessRequest {
68
+ processId: string;
69
+ processDetail: ProcessDetail;
70
+ }
71
+
49
72
  export interface ValidateFileRequirementsOperationRequest {
50
73
  processId: string;
51
74
  validateFileRequirementsRequest: ValidateFileRequirementsRequest;
@@ -56,6 +79,88 @@ export interface ValidateFileRequirementsOperationRequest {
56
79
  */
57
80
  export class ProcessesApi extends runtime.BaseAPI {
58
81
 
82
+ /**
83
+ * Removes the process from the list of available options
84
+ * Archive custom process
85
+ */
86
+ async archiveCustomProcessRaw(requestParameters: ArchiveCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
87
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
88
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling archiveCustomProcess.');
89
+ }
90
+
91
+ const queryParameters: any = {};
92
+
93
+ const headerParameters: runtime.HTTPHeaders = {};
94
+
95
+ if (this.configuration && this.configuration.accessToken) {
96
+ const token = this.configuration.accessToken;
97
+ const tokenString = await token("accessToken", []);
98
+
99
+ if (tokenString) {
100
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
101
+ }
102
+ }
103
+ const response = await this.request({
104
+ path: `/processes/{processId}`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
105
+ method: 'DELETE',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ }, initOverrides);
109
+
110
+ return new runtime.VoidApiResponse(response);
111
+ }
112
+
113
+ /**
114
+ * Removes the process from the list of available options
115
+ * Archive custom process
116
+ */
117
+ async archiveCustomProcess(requestParameters: ArchiveCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
118
+ await this.archiveCustomProcessRaw(requestParameters, initOverrides);
119
+ }
120
+
121
+ /**
122
+ * Creates a custom data type or pipeline which you can use in the listed projects.
123
+ * Create custom process
124
+ */
125
+ async createCustomProcessRaw(requestParameters: CreateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>> {
126
+ if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
127
+ throw new runtime.RequiredError('processDetail','Required parameter requestParameters.processDetail was null or undefined when calling createCustomProcess.');
128
+ }
129
+
130
+ const queryParameters: any = {};
131
+
132
+ const headerParameters: runtime.HTTPHeaders = {};
133
+
134
+ headerParameters['Content-Type'] = 'application/json';
135
+
136
+ if (this.configuration && this.configuration.accessToken) {
137
+ const token = this.configuration.accessToken;
138
+ const tokenString = await token("accessToken", []);
139
+
140
+ if (tokenString) {
141
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
142
+ }
143
+ }
144
+ const response = await this.request({
145
+ path: `/processes`,
146
+ method: 'POST',
147
+ headers: headerParameters,
148
+ query: queryParameters,
149
+ body: ProcessDetailToJSON(requestParameters.processDetail),
150
+ }, initOverrides);
151
+
152
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateResponseFromJSON(jsonValue));
153
+ }
154
+
155
+ /**
156
+ * Creates a custom data type or pipeline which you can use in the listed projects.
157
+ * Create custom process
158
+ */
159
+ async createCustomProcess(requestParameters: CreateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse> {
160
+ const response = await this.createCustomProcessRaw(requestParameters, initOverrides);
161
+ return await response.value();
162
+ }
163
+
59
164
  /**
60
165
  * Retrieves detailed information on a process
61
166
  * Get process
@@ -176,6 +281,92 @@ export class ProcessesApi extends runtime.BaseAPI {
176
281
  return await response.value();
177
282
  }
178
283
 
284
+ /**
285
+ * Updates the process definition from the repository
286
+ * Sync custom process
287
+ */
288
+ async syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettings>> {
289
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
290
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling syncCustomProcess.');
291
+ }
292
+
293
+ const queryParameters: any = {};
294
+
295
+ const headerParameters: runtime.HTTPHeaders = {};
296
+
297
+ if (this.configuration && this.configuration.accessToken) {
298
+ const token = this.configuration.accessToken;
299
+ const tokenString = await token("accessToken", []);
300
+
301
+ if (tokenString) {
302
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
303
+ }
304
+ }
305
+ const response = await this.request({
306
+ path: `/processes/{processId}:sync`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
307
+ method: 'PUT',
308
+ headers: headerParameters,
309
+ query: queryParameters,
310
+ }, initOverrides);
311
+
312
+ return new runtime.JSONApiResponse(response, (jsonValue) => CustomPipelineSettingsFromJSON(jsonValue));
313
+ }
314
+
315
+ /**
316
+ * Updates the process definition from the repository
317
+ * Sync custom process
318
+ */
319
+ async syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettings> {
320
+ const response = await this.syncCustomProcessRaw(requestParameters, initOverrides);
321
+ return await response.value();
322
+ }
323
+
324
+ /**
325
+ * Updates the custom process
326
+ * Update custom process
327
+ */
328
+ async updateCustomProcessRaw(requestParameters: UpdateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
329
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
330
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling updateCustomProcess.');
331
+ }
332
+
333
+ if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
334
+ throw new runtime.RequiredError('processDetail','Required parameter requestParameters.processDetail was null or undefined when calling updateCustomProcess.');
335
+ }
336
+
337
+ const queryParameters: any = {};
338
+
339
+ const headerParameters: runtime.HTTPHeaders = {};
340
+
341
+ headerParameters['Content-Type'] = 'application/json';
342
+
343
+ if (this.configuration && this.configuration.accessToken) {
344
+ const token = this.configuration.accessToken;
345
+ const tokenString = await token("accessToken", []);
346
+
347
+ if (tokenString) {
348
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
349
+ }
350
+ }
351
+ const response = await this.request({
352
+ path: `/processes/{processId}`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
353
+ method: 'PUT',
354
+ headers: headerParameters,
355
+ query: queryParameters,
356
+ body: ProcessDetailToJSON(requestParameters.processDetail),
357
+ }, initOverrides);
358
+
359
+ return new runtime.VoidApiResponse(response);
360
+ }
361
+
362
+ /**
363
+ * Updates the custom process
364
+ * Update custom process
365
+ */
366
+ async updateCustomProcess(requestParameters: UpdateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
367
+ await this.updateCustomProcessRaw(requestParameters, initOverrides);
368
+ }
369
+
179
370
  /**
180
371
  * Checks the input file names with the expected files for a data type (ingest processes only)
181
372
  * Validate file requirements
@@ -20,41 +20,41 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface CustomPipelineSettings {
22
22
  /**
23
- *
23
+ * GitHub repository that contains the process definition
24
24
  * @type {string}
25
25
  * @memberof CustomPipelineSettings
26
26
  */
27
27
  repository: string;
28
28
  /**
29
- *
29
+ * Branch, tag, or commit hash of the repo that contains the process definition
30
30
  * @type {string}
31
31
  * @memberof CustomPipelineSettings
32
32
  */
33
- branch: string;
33
+ branch?: string;
34
34
  /**
35
- *
35
+ * Folder within the repo that contains the process definition
36
36
  * @type {string}
37
37
  * @memberof CustomPipelineSettings
38
38
  */
39
- folder: string;
39
+ folder?: string;
40
40
  /**
41
41
  *
42
42
  * @type {Date}
43
43
  * @memberof CustomPipelineSettings
44
44
  */
45
- lastSync: Date;
45
+ lastSync?: Date | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof CustomPipelineSettings
50
50
  */
51
- syncStatus: string;
51
+ syncStatus?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
55
55
  * @memberof CustomPipelineSettings
56
56
  */
57
- commitHash: string;
57
+ commitHash?: string | null;
58
58
  }
59
59
 
60
60
  /**
@@ -63,11 +63,6 @@ export interface CustomPipelineSettings {
63
63
  export function instanceOfCustomPipelineSettings(value: object): boolean {
64
64
  let isInstance = true;
65
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
66
 
72
67
  return isInstance;
73
68
  }
@@ -83,11 +78,11 @@ export function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminat
83
78
  return {
84
79
 
85
80
  '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'],
81
+ 'branch': !exists(json, 'branch') ? undefined : json['branch'],
82
+ 'folder': !exists(json, 'folder') ? undefined : json['folder'],
83
+ 'lastSync': !exists(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
84
+ 'syncStatus': !exists(json, 'syncStatus') ? undefined : json['syncStatus'],
85
+ 'commitHash': !exists(json, 'commitHash') ? undefined : json['commitHash'],
91
86
  };
92
87
  }
93
88
 
@@ -103,7 +98,7 @@ export function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | nu
103
98
  'repository': value.repository,
104
99
  'branch': value.branch,
105
100
  'folder': value.folder,
106
- 'lastSync': (value.lastSync.toISOString()),
101
+ 'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
107
102
  'syncStatus': value.syncStatus,
108
103
  'commitHash': value.commitHash,
109
104
  };
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  /**
16
- * Process executor
16
+ * How the workflow is executed
17
17
  * @export
18
18
  * @enum {string}
19
19
  */
@@ -31,12 +31,6 @@ export interface FileNamePattern {
31
31
  * @memberof FileNamePattern
32
32
  */
33
33
  description: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof FileNamePattern
38
- */
39
- sampleMatchingPattern: string;
40
34
  }
41
35
 
42
36
  /**
@@ -46,7 +40,6 @@ export function instanceOfFileNamePattern(value: object): boolean {
46
40
  let isInstance = true;
47
41
  isInstance = isInstance && "exampleName" in value;
48
42
  isInstance = isInstance && "description" in value;
49
- isInstance = isInstance && "sampleMatchingPattern" in value;
50
43
 
51
44
  return isInstance;
52
45
  }
@@ -63,7 +56,6 @@ export function FileNamePatternFromJSONTyped(json: any, ignoreDiscriminator: boo
63
56
 
64
57
  'exampleName': json['exampleName'],
65
58
  'description': json['description'],
66
- 'sampleMatchingPattern': json['sampleMatchingPattern'],
67
59
  };
68
60
  }
69
61
 
@@ -78,7 +70,6 @@ export function FileNamePatternToJSON(value?: FileNamePattern | null): any {
78
70
 
79
71
  'exampleName': value.exampleName,
80
72
  'description': value.description,
81
- 'sampleMatchingPattern': value.sampleMatchingPattern,
82
73
  };
83
74
  }
84
75
 
@@ -20,11 +20,11 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface GenerateSftpCredentialsRequest {
22
22
  /**
23
- *
23
+ * Number of days the credentials are valid for
24
24
  * @type {number}
25
25
  * @memberof GenerateSftpCredentialsRequest
26
26
  */
27
- lifetimeDays: number;
27
+ lifetimeDays?: number;
28
28
  }
29
29
 
30
30
  /**
@@ -32,7 +32,6 @@ export interface GenerateSftpCredentialsRequest {
32
32
  */
33
33
  export function instanceOfGenerateSftpCredentialsRequest(value: object): boolean {
34
34
  let isInstance = true;
35
- isInstance = isInstance && "lifetimeDays" in value;
36
35
 
37
36
  return isInstance;
38
37
  }
@@ -47,7 +46,7 @@ export function GenerateSftpCredentialsRequestFromJSONTyped(json: any, ignoreDis
47
46
  }
48
47
  return {
49
48
 
50
- 'lifetimeDays': json['lifetimeDays'],
49
+ 'lifetimeDays': !exists(json, 'lifetimeDays') ? undefined : json['lifetimeDays'],
51
50
  };
52
51
  }
53
52
 
@@ -0,0 +1,97 @@
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 { RepositoryType } from './RepositoryType';
17
+ import {
18
+ RepositoryTypeFromJSON,
19
+ RepositoryTypeFromJSONTyped,
20
+ RepositoryTypeToJSON,
21
+ } from './RepositoryType';
22
+
23
+ /**
24
+ * Used to describe the pipeline analysis code
25
+ * @export
26
+ * @interface PipelineCode
27
+ */
28
+ export interface PipelineCode {
29
+ /**
30
+ * GitHub repository which contains the workflow code
31
+ * @type {string}
32
+ * @memberof PipelineCode
33
+ */
34
+ repositoryPath: string;
35
+ /**
36
+ * Branch, tag, or commit hash of the pipeline code
37
+ * @type {string}
38
+ * @memberof PipelineCode
39
+ */
40
+ version?: string;
41
+ /**
42
+ *
43
+ * @type {RepositoryType}
44
+ * @memberof PipelineCode
45
+ */
46
+ repositoryType?: RepositoryType;
47
+ /**
48
+ * Main script for running the pipeline
49
+ * @type {string}
50
+ * @memberof PipelineCode
51
+ */
52
+ entryPoint?: string;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the PipelineCode interface.
57
+ */
58
+ export function instanceOfPipelineCode(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "repositoryPath" in value;
61
+
62
+ return isInstance;
63
+ }
64
+
65
+ export function PipelineCodeFromJSON(json: any): PipelineCode {
66
+ return PipelineCodeFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function PipelineCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineCode {
70
+ if ((json === undefined) || (json === null)) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'repositoryPath': json['repositoryPath'],
76
+ 'version': !exists(json, 'version') ? undefined : json['version'],
77
+ 'repositoryType': !exists(json, 'repositoryType') ? undefined : RepositoryTypeFromJSON(json['repositoryType']),
78
+ 'entryPoint': !exists(json, 'entryPoint') ? undefined : json['entryPoint'],
79
+ };
80
+ }
81
+
82
+ export function PipelineCodeToJSON(value?: PipelineCode | null): any {
83
+ if (value === undefined) {
84
+ return undefined;
85
+ }
86
+ if (value === null) {
87
+ return null;
88
+ }
89
+ return {
90
+
91
+ 'repositoryPath': value.repositoryPath,
92
+ 'version': value.version,
93
+ 'repositoryType': RepositoryTypeToJSON(value.repositoryType),
94
+ 'entryPoint': value.entryPoint,
95
+ };
96
+ }
97
+
@@ -33,7 +33,7 @@ export interface Process {
33
33
  */
34
34
  id: string;
35
35
  /**
36
- *
36
+ * Friendly name for the process
37
37
  * @type {string}
38
38
  * @memberof Process
39
39
  */
@@ -43,7 +43,7 @@ export interface Process {
43
43
  * @type {string}
44
44
  * @memberof Process
45
45
  */
46
- description?: string;
46
+ description: string;
47
47
  /**
48
48
  *
49
49
  * @type {Executor}
@@ -61,7 +61,7 @@ export interface Process {
61
61
  * @type {string}
62
62
  * @memberof Process
63
63
  */
64
- fileRequirementsMessage?: string;
64
+ fileRequirementsMessage?: string | null;
65
65
  /**
66
66
  * IDs of pipelines that can be ran downstream
67
67
  * @type {Array<string>}
@@ -94,6 +94,7 @@ export interface Process {
94
94
  export function instanceOfProcess(value: object): boolean {
95
95
  let isInstance = true;
96
96
  isInstance = isInstance && "id" in value;
97
+ isInstance = isInstance && "description" in value;
97
98
 
98
99
  return isInstance;
99
100
  }
@@ -110,7 +111,7 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
110
111
 
111
112
  'id': json['id'],
112
113
  'name': !exists(json, 'name') ? undefined : json['name'],
113
- 'description': !exists(json, 'description') ? undefined : json['description'],
114
+ 'description': json['description'],
114
115
  'executor': !exists(json, 'executor') ? undefined : ExecutorFromJSON(json['executor']),
115
116
  'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
116
117
  'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],