@cirrobio/api-client 0.0.3-alpha → 0.0.5-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +1 -1
  3. package/dist/apis/MetadataApi.d.ts +29 -0
  4. package/dist/apis/MetadataApi.js +133 -0
  5. package/dist/apis/NotebooksApi.js +6 -6
  6. package/dist/apis/ProcessesApi.d.ts +26 -10
  7. package/dist/apis/ProcessesApi.js +70 -11
  8. package/dist/apis/ProjectsApi.d.ts +4 -4
  9. package/dist/apis/ProjectsApi.js +4 -4
  10. package/dist/apis/ReferencesApi.d.ts +51 -0
  11. package/dist/apis/ReferencesApi.js +239 -0
  12. package/dist/apis/SystemApi.d.ts +1 -11
  13. package/dist/apis/SystemApi.js +0 -52
  14. package/dist/apis/index.d.ts +2 -0
  15. package/dist/apis/index.js +2 -0
  16. package/dist/models/CustomPipelineSettings.d.ts +61 -0
  17. package/dist/models/CustomPipelineSettings.js +60 -0
  18. package/dist/models/Process.d.ts +19 -1
  19. package/dist/models/Process.js +8 -1
  20. package/dist/models/ProcessDetail.d.ts +99 -0
  21. package/dist/models/ProcessDetail.js +85 -0
  22. package/dist/models/ProjectMetrics.d.ts +8 -6
  23. package/dist/models/ProjectMetrics.js +3 -4
  24. package/dist/models/ProjectSettings.d.ts +24 -0
  25. package/dist/models/ProjectSettings.js +8 -0
  26. package/dist/models/Reference.d.ts +55 -0
  27. package/dist/models/Reference.js +62 -0
  28. package/dist/models/ReferenceType.d.ts +20 -0
  29. package/dist/models/ReferenceType.js +9 -0
  30. package/dist/models/Sample.d.ts +39 -0
  31. package/dist/models/Sample.js +53 -0
  32. package/dist/models/ServiceConnection.d.ts +6 -0
  33. package/dist/models/ServiceConnection.js +3 -0
  34. package/dist/models/index.d.ts +4 -0
  35. package/dist/models/index.js +4 -0
  36. package/package.json +1 -1
  37. package/src/apis/MetadataApi.ts +72 -0
  38. package/src/apis/NotebooksApi.ts +6 -6
  39. package/src/apis/ProcessesApi.ts +67 -12
  40. package/src/apis/ProjectsApi.ts +4 -4
  41. package/src/apis/ReferencesApi.ts +149 -0
  42. package/src/apis/SystemApi.ts +0 -39
  43. package/src/apis/index.ts +2 -0
  44. package/src/models/CustomPipelineSettings.ts +105 -0
  45. package/src/models/Process.ts +27 -2
  46. package/src/models/ProcessDetail.ts +177 -0
  47. package/src/models/ProjectMetrics.ts +7 -9
  48. package/src/models/ProjectSettings.ts +32 -0
  49. package/src/models/Reference.ts +102 -0
  50. package/src/models/ReferenceType.ts +27 -0
  51. package/src/models/Sample.ts +75 -0
  52. package/src/models/ServiceConnection.ts +9 -0
  53. package/src/models/index.ts +4 -0
@@ -91,7 +91,7 @@ export class NotebooksApi extends runtime.BaseAPI {
91
91
  }
92
92
  }
93
93
  const response = await this.request({
94
- path: `/projects/{projectId}/notebooks/instance`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
94
+ path: `/projects/{projectId}/notebook-instances`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
95
95
  method: 'POST',
96
96
  headers: headerParameters,
97
97
  query: queryParameters,
@@ -132,7 +132,7 @@ export class NotebooksApi extends runtime.BaseAPI {
132
132
  }
133
133
  }
134
134
  const response = await this.request({
135
- path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
135
+ path: `/projects/{projectId}/notebook-instances/{notebookInstanceId}`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
136
136
  method: 'DELETE',
137
137
  headers: headerParameters,
138
138
  query: queryParameters,
@@ -171,7 +171,7 @@ export class NotebooksApi extends runtime.BaseAPI {
171
171
  }
172
172
  }
173
173
  const response = await this.request({
174
- path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:generate-url`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
174
+ path: `/projects/{projectId}/notebook-instances/{notebookInstanceId}:generate-url`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
175
175
  method: 'GET',
176
176
  headers: headerParameters,
177
177
  query: queryParameters,
@@ -211,7 +211,7 @@ export class NotebooksApi extends runtime.BaseAPI {
211
211
  }
212
212
  }
213
213
  const response = await this.request({
214
- path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:status`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
214
+ path: `/projects/{projectId}/notebook-instances/{notebookInstanceId}:status`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
215
215
  method: 'GET',
216
216
  headers: headerParameters,
217
217
  query: queryParameters,
@@ -251,7 +251,7 @@ export class NotebooksApi extends runtime.BaseAPI {
251
251
  }
252
252
  }
253
253
  const response = await this.request({
254
- path: `/projects/{projectId}/notebooks/instance`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
254
+ path: `/projects/{projectId}/notebook-instances`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
255
255
  method: 'GET',
256
256
  headers: headerParameters,
257
257
  query: queryParameters,
@@ -291,7 +291,7 @@ export class NotebooksApi extends runtime.BaseAPI {
291
291
  }
292
292
  }
293
293
  const response = await this.request({
294
- path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:stop`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
294
+ path: `/projects/{projectId}/notebook-instances/{notebookInstanceId}:stop`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
295
295
  method: 'POST',
296
296
  headers: headerParameters,
297
297
  query: queryParameters,
@@ -17,30 +17,81 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  FormSchema,
19
19
  Process,
20
+ ProcessDetail,
20
21
  } from '../models/index';
21
22
  import {
22
23
  FormSchemaFromJSON,
23
24
  FormSchemaToJSON,
24
25
  ProcessFromJSON,
25
26
  ProcessToJSON,
27
+ ProcessDetailFromJSON,
28
+ ProcessDetailToJSON,
26
29
  } from '../models/index';
27
30
 
28
- export interface GetProcessFormRequest {
31
+ export interface GetProcessRequest {
29
32
  processId: string;
30
33
  }
31
34
 
35
+ export interface GetProcessParametersRequest {
36
+ processId: string;
37
+ }
38
+
39
+ export interface GetProcessesRequest {
40
+ includeArchived?: boolean;
41
+ }
42
+
32
43
  /**
33
44
  *
34
45
  */
35
46
  export class ProcessesApi extends runtime.BaseAPI {
36
47
 
48
+ /**
49
+ * Retrieves detailed information on a process
50
+ * Get process
51
+ */
52
+ async getProcessRaw(requestParameters: GetProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProcessDetail>> {
53
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
54
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling getProcess.');
55
+ }
56
+
57
+ const queryParameters: any = {};
58
+
59
+ const headerParameters: runtime.HTTPHeaders = {};
60
+
61
+ if (this.configuration && this.configuration.accessToken) {
62
+ const token = this.configuration.accessToken;
63
+ const tokenString = await token("accessToken", []);
64
+
65
+ if (tokenString) {
66
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
67
+ }
68
+ }
69
+ const response = await this.request({
70
+ path: `/processes/{processId}`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
71
+ method: 'GET',
72
+ headers: headerParameters,
73
+ query: queryParameters,
74
+ }, initOverrides);
75
+
76
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProcessDetailFromJSON(jsonValue));
77
+ }
78
+
79
+ /**
80
+ * Retrieves detailed information on a process
81
+ * Get process
82
+ */
83
+ async getProcess(requestParameters: GetProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessDetail> {
84
+ const response = await this.getProcessRaw(requestParameters, initOverrides);
85
+ return await response.value();
86
+ }
87
+
37
88
  /**
38
89
  * Retrieves the input parameters for a process
39
- * Get Process Parameters
90
+ * Get process parameters
40
91
  */
41
- async getProcessFormRaw(requestParameters: GetProcessFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>> {
92
+ async getProcessParametersRaw(requestParameters: GetProcessParametersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>> {
42
93
  if (requestParameters.processId === null || requestParameters.processId === undefined) {
43
- throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling getProcessForm.');
94
+ throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling getProcessParameters.');
44
95
  }
45
96
 
46
97
  const queryParameters: any = {};
@@ -67,20 +118,24 @@ export class ProcessesApi extends runtime.BaseAPI {
67
118
 
68
119
  /**
69
120
  * Retrieves the input parameters for a process
70
- * Get Process Parameters
121
+ * Get process parameters
71
122
  */
72
- async getProcessForm(requestParameters: GetProcessFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema> {
73
- const response = await this.getProcessFormRaw(requestParameters, initOverrides);
123
+ async getProcessParameters(requestParameters: GetProcessParametersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema> {
124
+ const response = await this.getProcessParametersRaw(requestParameters, initOverrides);
74
125
  return await response.value();
75
126
  }
76
127
 
77
128
  /**
78
129
  * Retrieves a list of available processes
79
- * List Processes
130
+ * List processes
80
131
  */
81
- async getProcessesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Process>>> {
132
+ async getProcessesRaw(requestParameters: GetProcessesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Process>>> {
82
133
  const queryParameters: any = {};
83
134
 
135
+ if (requestParameters.includeArchived !== undefined) {
136
+ queryParameters['includeArchived'] = requestParameters.includeArchived;
137
+ }
138
+
84
139
  const headerParameters: runtime.HTTPHeaders = {};
85
140
 
86
141
  if (this.configuration && this.configuration.accessToken) {
@@ -103,10 +158,10 @@ export class ProcessesApi extends runtime.BaseAPI {
103
158
 
104
159
  /**
105
160
  * Retrieves a list of available processes
106
- * List Processes
161
+ * List processes
107
162
  */
108
- async getProcesses(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Process>> {
109
- const response = await this.getProcessesRaw(initOverrides);
163
+ async getProcesses(requestParameters: GetProcessesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Process>> {
164
+ const response = await this.getProcessesRaw(requestParameters, initOverrides);
110
165
  return await response.value();
111
166
  }
112
167
 
@@ -111,7 +111,7 @@ export class ProjectsApi extends runtime.BaseAPI {
111
111
 
112
112
  /**
113
113
  * Get detailed project information
114
- * Get Project
114
+ * Get project
115
115
  */
116
116
  async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDetail>> {
117
117
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
@@ -142,7 +142,7 @@ export class ProjectsApi extends runtime.BaseAPI {
142
142
 
143
143
  /**
144
144
  * Get detailed project information
145
- * Get Project
145
+ * Get project
146
146
  */
147
147
  async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDetail> {
148
148
  const response = await this.getProjectRaw(requestParameters, initOverrides);
@@ -151,7 +151,7 @@ export class ProjectsApi extends runtime.BaseAPI {
151
151
 
152
152
  /**
153
153
  * Retrieve a list of projects
154
- * Get Projects
154
+ * Get projects
155
155
  */
156
156
  async getProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
157
157
  const queryParameters: any = {};
@@ -178,7 +178,7 @@ export class ProjectsApi extends runtime.BaseAPI {
178
178
 
179
179
  /**
180
180
  * Retrieve a list of projects
181
- * Get Projects
181
+ * Get projects
182
182
  */
183
183
  async getProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>> {
184
184
  const response = await this.getProjectsRaw(initOverrides);
@@ -0,0 +1,149 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ Reference,
19
+ ReferenceType,
20
+ } from '../models/index';
21
+ import {
22
+ ReferenceFromJSON,
23
+ ReferenceToJSON,
24
+ ReferenceTypeFromJSON,
25
+ ReferenceTypeToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface GetReferencesForProjectRequest {
29
+ projectId: string;
30
+ }
31
+
32
+ /**
33
+ *
34
+ */
35
+ export class ReferencesApi extends runtime.BaseAPI {
36
+
37
+ /**
38
+ * List available reference types
39
+ * Get reference types
40
+ */
41
+ async getReferenceTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ReferenceType>>> {
42
+ const queryParameters: any = {};
43
+
44
+ const headerParameters: runtime.HTTPHeaders = {};
45
+
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ const token = this.configuration.accessToken;
48
+ const tokenString = await token("accessToken", []);
49
+
50
+ if (tokenString) {
51
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
52
+ }
53
+ }
54
+ const response = await this.request({
55
+ path: `/reference-types`,
56
+ method: 'GET',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ }, initOverrides);
60
+
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ReferenceTypeFromJSON));
62
+ }
63
+
64
+ /**
65
+ * List available reference types
66
+ * Get reference types
67
+ */
68
+ async getReferenceTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ReferenceType>> {
69
+ const response = await this.getReferenceTypesRaw(initOverrides);
70
+ return await response.value();
71
+ }
72
+
73
+ /**
74
+ * List available references (available to everyone)
75
+ * Get global references
76
+ */
77
+ async getReferencesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Reference>>> {
78
+ const queryParameters: any = {};
79
+
80
+ const headerParameters: runtime.HTTPHeaders = {};
81
+
82
+ if (this.configuration && this.configuration.accessToken) {
83
+ const token = this.configuration.accessToken;
84
+ const tokenString = await token("accessToken", []);
85
+
86
+ if (tokenString) {
87
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
88
+ }
89
+ }
90
+ const response = await this.request({
91
+ path: `/references`,
92
+ method: 'GET',
93
+ headers: headerParameters,
94
+ query: queryParameters,
95
+ }, initOverrides);
96
+
97
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ReferenceFromJSON));
98
+ }
99
+
100
+ /**
101
+ * List available references (available to everyone)
102
+ * Get global references
103
+ */
104
+ async getReferences(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Reference>> {
105
+ const response = await this.getReferencesRaw(initOverrides);
106
+ return await response.value();
107
+ }
108
+
109
+ /**
110
+ * List available references for a given project
111
+ * Get project references
112
+ */
113
+ async getReferencesForProjectRaw(requestParameters: GetReferencesForProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Reference>> {
114
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
115
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getReferencesForProject.');
116
+ }
117
+
118
+ const queryParameters: any = {};
119
+
120
+ const headerParameters: runtime.HTTPHeaders = {};
121
+
122
+ if (this.configuration && this.configuration.accessToken) {
123
+ const token = this.configuration.accessToken;
124
+ const tokenString = await token("accessToken", []);
125
+
126
+ if (tokenString) {
127
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
128
+ }
129
+ }
130
+ const response = await this.request({
131
+ path: `/projects/{projectId}/references`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
132
+ method: 'GET',
133
+ headers: headerParameters,
134
+ query: queryParameters,
135
+ }, initOverrides);
136
+
137
+ return new runtime.JSONApiResponse(response, (jsonValue) => ReferenceFromJSON(jsonValue));
138
+ }
139
+
140
+ /**
141
+ * List available references for a given project
142
+ * Get project references
143
+ */
144
+ async getReferencesForProject(requestParameters: GetReferencesForProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Reference> {
145
+ const response = await this.getReferencesForProjectRaw(requestParameters, initOverrides);
146
+ return await response.value();
147
+ }
148
+
149
+ }
@@ -15,13 +15,10 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- ReferenceType,
19
18
  ServiceConnection,
20
19
  SystemInfoResponse,
21
20
  } from '../models/index';
22
21
  import {
23
- ReferenceTypeFromJSON,
24
- ReferenceTypeToJSON,
25
22
  ServiceConnectionFromJSON,
26
23
  ServiceConnectionToJSON,
27
24
  SystemInfoResponseFromJSON,
@@ -33,42 +30,6 @@ import {
33
30
  */
34
31
  export class SystemApi extends runtime.BaseAPI {
35
32
 
36
- /**
37
- * List available reference types
38
- * Get reference types
39
- */
40
- async getReferenceTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ReferenceType>>> {
41
- const queryParameters: any = {};
42
-
43
- const headerParameters: runtime.HTTPHeaders = {};
44
-
45
- if (this.configuration && this.configuration.accessToken) {
46
- const token = this.configuration.accessToken;
47
- const tokenString = await token("accessToken", []);
48
-
49
- if (tokenString) {
50
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
51
- }
52
- }
53
- const response = await this.request({
54
- path: `/reference-types`,
55
- method: 'GET',
56
- headers: headerParameters,
57
- query: queryParameters,
58
- }, initOverrides);
59
-
60
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ReferenceTypeFromJSON));
61
- }
62
-
63
- /**
64
- * List available reference types
65
- * Get reference types
66
- */
67
- async getReferenceTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ReferenceType>> {
68
- const response = await this.getReferenceTypesRaw(initOverrides);
69
- return await response.value();
70
- }
71
-
72
33
  /**
73
34
  * List available service connections
74
35
  * Get service connections
package/src/apis/index.ts CHANGED
@@ -3,9 +3,11 @@
3
3
  export * from './BillingApi';
4
4
  export * from './DatasetsApi';
5
5
  export * from './ExecutionApi';
6
+ export * from './MetadataApi';
6
7
  export * from './MetricsApi';
7
8
  export * from './NotebooksApi';
8
9
  export * from './ProcessesApi';
9
10
  export * from './ProjectsApi';
11
+ export * from './ReferencesApi';
10
12
  export * from './SystemApi';
11
13
  export * from './UsersApi';
@@ -0,0 +1,105 @@
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 CustomPipelineSettings
20
+ */
21
+ export interface CustomPipelineSettings {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CustomPipelineSettings
26
+ */
27
+ repository?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CustomPipelineSettings
32
+ */
33
+ branch?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CustomPipelineSettings
38
+ */
39
+ folder?: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof CustomPipelineSettings
44
+ */
45
+ lastSync?: Date;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CustomPipelineSettings
50
+ */
51
+ syncStatus?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof CustomPipelineSettings
56
+ */
57
+ commitHash?: string;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the CustomPipelineSettings interface.
62
+ */
63
+ export function instanceOfCustomPipelineSettings(value: object): boolean {
64
+ let isInstance = true;
65
+
66
+ return isInstance;
67
+ }
68
+
69
+ export function CustomPipelineSettingsFromJSON(json: any): CustomPipelineSettings {
70
+ return CustomPipelineSettingsFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomPipelineSettings {
74
+ if ((json === undefined) || (json === null)) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'repository': !exists(json, 'repository') ? undefined : json['repository'],
80
+ 'branch': !exists(json, 'branch') ? undefined : json['branch'],
81
+ 'folder': !exists(json, 'folder') ? undefined : json['folder'],
82
+ 'lastSync': !exists(json, 'lastSync') ? undefined : (new Date(json['lastSync'])),
83
+ 'syncStatus': !exists(json, 'syncStatus') ? undefined : json['syncStatus'],
84
+ 'commitHash': !exists(json, 'commitHash') ? undefined : json['commitHash'],
85
+ };
86
+ }
87
+
88
+ export function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | null): any {
89
+ if (value === undefined) {
90
+ return undefined;
91
+ }
92
+ if (value === null) {
93
+ return null;
94
+ }
95
+ return {
96
+
97
+ 'repository': value.repository,
98
+ 'branch': value.branch,
99
+ 'folder': value.folder,
100
+ 'lastSync': value.lastSync === undefined ? undefined : (value.lastSync.toISOString()),
101
+ 'syncStatus': value.syncStatus,
102
+ 'commitHash': value.commitHash,
103
+ };
104
+ }
105
+
@@ -31,7 +31,7 @@ export interface Process {
31
31
  * @type {string}
32
32
  * @memberof Process
33
33
  */
34
- id?: string;
34
+ id: string;
35
35
  /**
36
36
  *
37
37
  * @type {string}
@@ -68,6 +68,24 @@ export interface Process {
68
68
  * @memberof Process
69
69
  */
70
70
  childProcessIds?: Array<string>;
71
+ /**
72
+ * IDs of pipelines that can be ran upstream
73
+ * @type {Array<string>}
74
+ * @memberof Process
75
+ */
76
+ parentProcessIds?: Array<string>;
77
+ /**
78
+ * Username of the pipeline creator (blank if Cirro curated)
79
+ * @type {string}
80
+ * @memberof Process
81
+ */
82
+ owner?: string;
83
+ /**
84
+ * Projects that can run this pipeline
85
+ * @type {Array<string>}
86
+ * @memberof Process
87
+ */
88
+ linkedProjectIds?: Array<string>;
71
89
  }
72
90
 
73
91
  /**
@@ -75,6 +93,7 @@ export interface Process {
75
93
  */
76
94
  export function instanceOfProcess(value: object): boolean {
77
95
  let isInstance = true;
96
+ isInstance = isInstance && "id" in value;
78
97
 
79
98
  return isInstance;
80
99
  }
@@ -89,13 +108,16 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
89
108
  }
90
109
  return {
91
110
 
92
- 'id': !exists(json, 'id') ? undefined : json['id'],
111
+ 'id': json['id'],
93
112
  'name': !exists(json, 'name') ? undefined : json['name'],
94
113
  'description': !exists(json, 'description') ? undefined : json['description'],
95
114
  'executor': !exists(json, 'executor') ? undefined : ExecutorFromJSON(json['executor']),
96
115
  'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
97
116
  'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
98
117
  'childProcessIds': !exists(json, 'childProcessIds') ? undefined : json['childProcessIds'],
118
+ 'parentProcessIds': !exists(json, 'parentProcessIds') ? undefined : json['parentProcessIds'],
119
+ 'owner': !exists(json, 'owner') ? undefined : json['owner'],
120
+ 'linkedProjectIds': !exists(json, 'linkedProjectIds') ? undefined : json['linkedProjectIds'],
99
121
  };
100
122
  }
101
123
 
@@ -115,6 +137,9 @@ export function ProcessToJSON(value?: Process | null): any {
115
137
  'documentationUrl': value.documentationUrl,
116
138
  'fileRequirementsMessage': value.fileRequirementsMessage,
117
139
  'childProcessIds': value.childProcessIds,
140
+ 'parentProcessIds': value.parentProcessIds,
141
+ 'owner': value.owner,
142
+ 'linkedProjectIds': value.linkedProjectIds,
118
143
  };
119
144
  }
120
145