@cirrobio/api-client 0.0.2-alpha → 0.0.4-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 (40) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +1 -1
  3. package/dist/apis/ExecutionApi.js +1 -1
  4. package/dist/apis/MetadataApi.d.ts +29 -0
  5. package/dist/apis/MetadataApi.js +133 -0
  6. package/dist/apis/NotebooksApi.js +6 -6
  7. package/dist/apis/ProcessesApi.d.ts +22 -6
  8. package/dist/apis/ProcessesApi.js +66 -7
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/CustomPipelineSettings.d.ts +61 -0
  12. package/dist/models/CustomPipelineSettings.js +60 -0
  13. package/dist/models/Process.d.ts +19 -1
  14. package/dist/models/Process.js +8 -1
  15. package/dist/models/ProcessDetail.d.ts +99 -0
  16. package/dist/models/ProcessDetail.js +85 -0
  17. package/dist/models/ProjectMetrics.d.ts +8 -6
  18. package/dist/models/ProjectMetrics.js +3 -4
  19. package/dist/models/ProjectSettings.d.ts +24 -0
  20. package/dist/models/ProjectSettings.js +8 -0
  21. package/dist/models/ReferenceType.d.ts +20 -0
  22. package/dist/models/ReferenceType.js +9 -0
  23. package/dist/models/Sample.d.ts +39 -0
  24. package/dist/models/Sample.js +53 -0
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/package.json +1 -1
  28. package/src/apis/ExecutionApi.ts +1 -1
  29. package/src/apis/MetadataApi.ts +72 -0
  30. package/src/apis/NotebooksApi.ts +6 -6
  31. package/src/apis/ProcessesApi.ts +63 -8
  32. package/src/apis/index.ts +1 -0
  33. package/src/models/CustomPipelineSettings.ts +105 -0
  34. package/src/models/Process.ts +27 -2
  35. package/src/models/ProcessDetail.ts +177 -0
  36. package/src/models/ProjectMetrics.ts +7 -9
  37. package/src/models/ProjectSettings.ts +32 -0
  38. package/src/models/ReferenceType.ts +27 -0
  39. package/src/models/Sample.ts +75 -0
  40. package/src/models/index.ts +3 -0
@@ -5,6 +5,7 @@ package.json
5
5
  src/apis/BillingApi.ts
6
6
  src/apis/DatasetsApi.ts
7
7
  src/apis/ExecutionApi.ts
8
+ src/apis/MetadataApi.ts
8
9
  src/apis/MetricsApi.ts
9
10
  src/apis/NotebooksApi.ts
10
11
  src/apis/ProcessesApi.ts
@@ -20,6 +21,7 @@ src/models/CloudAccount.ts
20
21
  src/models/Contact.ts
21
22
  src/models/CreateNotebookInstanceRequest.ts
22
23
  src/models/CreateResponse.ts
24
+ src/models/CustomPipelineSettings.ts
23
25
  src/models/CustomerType.ts
24
26
  src/models/Dataset.ts
25
27
  src/models/DatasetDetail.ts
@@ -31,6 +33,7 @@ src/models/LogEntry.ts
31
33
  src/models/NotebookInstance.ts
32
34
  src/models/OpenNotebookInstanceResponse.ts
33
35
  src/models/Process.ts
36
+ src/models/ProcessDetail.ts
34
37
  src/models/Project.ts
35
38
  src/models/ProjectDetail.ts
36
39
  src/models/ProjectMetrics.ts
@@ -40,6 +43,7 @@ src/models/ProjectSettings.ts
40
43
  src/models/ReferenceType.ts
41
44
  src/models/Region.ts
42
45
  src/models/RegisterDatasetRequest.ts
46
+ src/models/Sample.ts
43
47
  src/models/ServiceConnection.ts
44
48
  src/models/SetUserProjectRoleRequest.ts
45
49
  src/models/StopExecutionResponse.ts
package/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.0.2-alpha --save
39
+ npm install @cirrobio/api-client@0.0.4-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -228,7 +228,7 @@ var ExecutionApi = /** @class */ (function (_super) {
228
228
  }
229
229
  _a.label = 2;
230
230
  case 2: return [4 /*yield*/, this.request({
231
- path: "/projects/{projectId}/execution/{datasetId}/tasks/{taskId}/log".replace("{".concat("datasetId", "}"), encodeURIComponent(String(requestParameters.datasetId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("taskId", "}"), encodeURIComponent(String(requestParameters.taskId))),
231
+ path: "/projects/{projectId}/execution/{datasetId}/tasks/{taskId}/logs".replace("{".concat("datasetId", "}"), encodeURIComponent(String(requestParameters.datasetId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("taskId", "}"), encodeURIComponent(String(requestParameters.taskId))),
232
232
  method: 'GET',
233
233
  headers: headerParameters,
234
234
  query: queryParameters,
@@ -0,0 +1,29 @@
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 * as runtime from '../runtime';
13
+ import type { Sample } from '../models/index';
14
+ export interface GetProjectSamplesRequest {
15
+ projectId: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class MetadataApi extends runtime.BaseAPI {
21
+ /**
22
+ * Get project samples
23
+ */
24
+ getProjectSamplesRaw(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Sample>>>;
25
+ /**
26
+ * Get project samples
27
+ */
28
+ getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>>;
29
+ }
@@ -0,0 +1,133 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.MetadataApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var MetadataApi = /** @class */ (function (_super) {
74
+ __extends(MetadataApi, _super);
75
+ function MetadataApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Get project samples
80
+ */
81
+ MetadataApi.prototype.getProjectSamplesRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
88
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectSamples.');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
93
+ token = this.configuration.accessToken;
94
+ return [4 /*yield*/, token("accessToken", [])];
95
+ case 1:
96
+ tokenString = _a.sent();
97
+ if (tokenString) {
98
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
99
+ }
100
+ _a.label = 2;
101
+ case 2: return [4 /*yield*/, this.request({
102
+ path: "/projects/{projectId}/metadata/samples".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
103
+ method: 'GET',
104
+ headers: headerParameters,
105
+ query: queryParameters,
106
+ }, initOverrides)];
107
+ case 3:
108
+ response = _a.sent();
109
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SampleFromJSON); })];
110
+ }
111
+ });
112
+ });
113
+ };
114
+ /**
115
+ * Get project samples
116
+ */
117
+ MetadataApi.prototype.getProjectSamples = function (requestParameters, initOverrides) {
118
+ return __awaiter(this, void 0, void 0, function () {
119
+ var response;
120
+ return __generator(this, function (_a) {
121
+ switch (_a.label) {
122
+ case 0: return [4 /*yield*/, this.getProjectSamplesRaw(requestParameters, initOverrides)];
123
+ case 1:
124
+ response = _a.sent();
125
+ return [4 /*yield*/, response.value()];
126
+ case 2: return [2 /*return*/, _a.sent()];
127
+ }
128
+ });
129
+ });
130
+ };
131
+ return MetadataApi;
132
+ }(runtime.BaseAPI));
133
+ exports.MetadataApi = MetadataApi;
@@ -102,7 +102,7 @@ var NotebooksApi = /** @class */ (function (_super) {
102
102
  }
103
103
  _a.label = 2;
104
104
  case 2: return [4 /*yield*/, this.request({
105
- path: "/projects/{projectId}/notebooks/instance".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
105
+ path: "/projects/{projectId}/notebook-instances".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
106
106
  method: 'POST',
107
107
  headers: headerParameters,
108
108
  query: queryParameters,
@@ -157,7 +157,7 @@ var NotebooksApi = /** @class */ (function (_super) {
157
157
  }
158
158
  _a.label = 2;
159
159
  case 2: return [4 /*yield*/, this.request({
160
- path: "/projects/{projectId}/notebooks/instance/{notebookInstanceId}".replace("{".concat("notebookInstanceId", "}"), encodeURIComponent(String(requestParameters.notebookInstanceId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
160
+ path: "/projects/{projectId}/notebook-instances/{notebookInstanceId}".replace("{".concat("notebookInstanceId", "}"), encodeURIComponent(String(requestParameters.notebookInstanceId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
161
161
  method: 'DELETE',
162
162
  headers: headerParameters,
163
163
  query: queryParameters,
@@ -209,7 +209,7 @@ var NotebooksApi = /** @class */ (function (_super) {
209
209
  }
210
210
  _a.label = 2;
211
211
  case 2: return [4 /*yield*/, this.request({
212
- path: "/projects/{projectId}/notebooks/instance/{notebookInstanceId}:generate-url".replace("{".concat("notebookInstanceId", "}"), encodeURIComponent(String(requestParameters.notebookInstanceId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
212
+ path: "/projects/{projectId}/notebook-instances/{notebookInstanceId}:generate-url".replace("{".concat("notebookInstanceId", "}"), encodeURIComponent(String(requestParameters.notebookInstanceId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
213
213
  method: 'GET',
214
214
  headers: headerParameters,
215
215
  query: queryParameters,
@@ -263,7 +263,7 @@ var NotebooksApi = /** @class */ (function (_super) {
263
263
  }
264
264
  _a.label = 2;
265
265
  case 2: return [4 /*yield*/, this.request({
266
- path: "/projects/{projectId}/notebooks/instance/{notebookInstanceId}:status".replace("{".concat("notebookInstanceId", "}"), encodeURIComponent(String(requestParameters.notebookInstanceId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
266
+ path: "/projects/{projectId}/notebook-instances/{notebookInstanceId}:status".replace("{".concat("notebookInstanceId", "}"), encodeURIComponent(String(requestParameters.notebookInstanceId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
267
267
  method: 'GET',
268
268
  headers: headerParameters,
269
269
  query: queryParameters,
@@ -320,7 +320,7 @@ var NotebooksApi = /** @class */ (function (_super) {
320
320
  }
321
321
  _a.label = 2;
322
322
  case 2: return [4 /*yield*/, this.request({
323
- path: "/projects/{projectId}/notebooks/instance".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
323
+ path: "/projects/{projectId}/notebook-instances".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
324
324
  method: 'GET',
325
325
  headers: headerParameters,
326
326
  query: queryParameters,
@@ -374,7 +374,7 @@ var NotebooksApi = /** @class */ (function (_super) {
374
374
  }
375
375
  _a.label = 2;
376
376
  case 2: return [4 /*yield*/, this.request({
377
- path: "/projects/{projectId}/notebooks/instance/{notebookInstanceId}:stop".replace("{".concat("notebookInstanceId", "}"), encodeURIComponent(String(requestParameters.notebookInstanceId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
377
+ path: "/projects/{projectId}/notebook-instances/{notebookInstanceId}:stop".replace("{".concat("notebookInstanceId", "}"), encodeURIComponent(String(requestParameters.notebookInstanceId))).replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
378
378
  method: 'POST',
379
379
  headers: headerParameters,
380
380
  query: queryParameters,
@@ -10,32 +10,48 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { FormSchema, Process } from '../models/index';
14
- export interface GetProcessFormRequest {
13
+ import type { FormSchema, Process, ProcessDetail } from '../models/index';
14
+ export interface GetProcessRequest {
15
15
  processId: string;
16
16
  }
17
+ export interface GetProcessParametersRequest {
18
+ processId: string;
19
+ }
20
+ export interface GetProcessesRequest {
21
+ includeArchived?: boolean;
22
+ }
17
23
  /**
18
24
  *
19
25
  */
20
26
  export declare class ProcessesApi extends runtime.BaseAPI {
27
+ /**
28
+ * Retrieves detailed information on a process
29
+ * Get Process
30
+ */
31
+ getProcessRaw(requestParameters: GetProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProcessDetail>>;
32
+ /**
33
+ * Retrieves detailed information on a process
34
+ * Get Process
35
+ */
36
+ getProcess(requestParameters: GetProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessDetail>;
21
37
  /**
22
38
  * Retrieves the input parameters for a process
23
39
  * Get Process Parameters
24
40
  */
25
- getProcessFormRaw(requestParameters: GetProcessFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>>;
41
+ getProcessParametersRaw(requestParameters: GetProcessParametersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>>;
26
42
  /**
27
43
  * Retrieves the input parameters for a process
28
44
  * Get Process Parameters
29
45
  */
30
- getProcessForm(requestParameters: GetProcessFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema>;
46
+ getProcessParameters(requestParameters: GetProcessParametersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema>;
31
47
  /**
32
48
  * Retrieves a list of available processes
33
49
  * List Processes
34
50
  */
35
- getProcessesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Process>>>;
51
+ getProcessesRaw(requestParameters: GetProcessesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Process>>>;
36
52
  /**
37
53
  * Retrieves a list of available processes
38
54
  * List Processes
39
55
  */
40
- getProcesses(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Process>>;
56
+ getProcesses(requestParameters?: GetProcessesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Process>>;
41
57
  }
@@ -75,18 +75,73 @@ var ProcessesApi = /** @class */ (function (_super) {
75
75
  function ProcessesApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * Retrieves detailed information on a process
80
+ * Get Process
81
+ */
82
+ ProcessesApi.prototype.getProcessRaw = 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 getProcess.');
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: 'GET',
105
+ headers: headerParameters,
106
+ query: queryParameters,
107
+ }, initOverrides)];
108
+ case 3:
109
+ response = _a.sent();
110
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProcessDetailFromJSON)(jsonValue); })];
111
+ }
112
+ });
113
+ });
114
+ };
115
+ /**
116
+ * Retrieves detailed information on a process
117
+ * Get Process
118
+ */
119
+ ProcessesApi.prototype.getProcess = function (requestParameters, initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function () {
121
+ var response;
122
+ return __generator(this, function (_a) {
123
+ switch (_a.label) {
124
+ case 0: return [4 /*yield*/, this.getProcessRaw(requestParameters, initOverrides)];
125
+ case 1:
126
+ response = _a.sent();
127
+ return [4 /*yield*/, response.value()];
128
+ case 2: return [2 /*return*/, _a.sent()];
129
+ }
130
+ });
131
+ });
132
+ };
78
133
  /**
79
134
  * Retrieves the input parameters for a process
80
135
  * Get Process Parameters
81
136
  */
82
- ProcessesApi.prototype.getProcessFormRaw = function (requestParameters, initOverrides) {
137
+ ProcessesApi.prototype.getProcessParametersRaw = function (requestParameters, initOverrides) {
83
138
  return __awaiter(this, void 0, void 0, function () {
84
139
  var queryParameters, headerParameters, token, tokenString, response;
85
140
  return __generator(this, function (_a) {
86
141
  switch (_a.label) {
87
142
  case 0:
88
143
  if (requestParameters.processId === null || requestParameters.processId === undefined) {
89
- throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling getProcessForm.');
144
+ throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling getProcessParameters.');
90
145
  }
91
146
  queryParameters = {};
92
147
  headerParameters = {};
@@ -116,12 +171,12 @@ var ProcessesApi = /** @class */ (function (_super) {
116
171
  * Retrieves the input parameters for a process
117
172
  * Get Process Parameters
118
173
  */
119
- ProcessesApi.prototype.getProcessForm = function (requestParameters, initOverrides) {
174
+ ProcessesApi.prototype.getProcessParameters = function (requestParameters, initOverrides) {
120
175
  return __awaiter(this, void 0, void 0, function () {
121
176
  var response;
122
177
  return __generator(this, function (_a) {
123
178
  switch (_a.label) {
124
- case 0: return [4 /*yield*/, this.getProcessFormRaw(requestParameters, initOverrides)];
179
+ case 0: return [4 /*yield*/, this.getProcessParametersRaw(requestParameters, initOverrides)];
125
180
  case 1:
126
181
  response = _a.sent();
127
182
  return [4 /*yield*/, response.value()];
@@ -134,13 +189,16 @@ var ProcessesApi = /** @class */ (function (_super) {
134
189
  * Retrieves a list of available processes
135
190
  * List Processes
136
191
  */
137
- ProcessesApi.prototype.getProcessesRaw = function (initOverrides) {
192
+ ProcessesApi.prototype.getProcessesRaw = function (requestParameters, initOverrides) {
138
193
  return __awaiter(this, void 0, void 0, function () {
139
194
  var queryParameters, headerParameters, token, tokenString, response;
140
195
  return __generator(this, function (_a) {
141
196
  switch (_a.label) {
142
197
  case 0:
143
198
  queryParameters = {};
199
+ if (requestParameters.includeArchived !== undefined) {
200
+ queryParameters['includeArchived'] = requestParameters.includeArchived;
201
+ }
144
202
  headerParameters = {};
145
203
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
146
204
  token = this.configuration.accessToken;
@@ -168,12 +226,13 @@ var ProcessesApi = /** @class */ (function (_super) {
168
226
  * Retrieves a list of available processes
169
227
  * List Processes
170
228
  */
171
- ProcessesApi.prototype.getProcesses = function (initOverrides) {
229
+ ProcessesApi.prototype.getProcesses = function (requestParameters, initOverrides) {
230
+ if (requestParameters === void 0) { requestParameters = {}; }
172
231
  return __awaiter(this, void 0, void 0, function () {
173
232
  var response;
174
233
  return __generator(this, function (_a) {
175
234
  switch (_a.label) {
176
- case 0: return [4 /*yield*/, this.getProcessesRaw(initOverrides)];
235
+ case 0: return [4 /*yield*/, this.getProcessesRaw(requestParameters, initOverrides)];
177
236
  case 1:
178
237
  response = _a.sent();
179
238
  return [4 /*yield*/, response.value()];
@@ -1,6 +1,7 @@
1
1
  export * from './BillingApi';
2
2
  export * from './DatasetsApi';
3
3
  export * from './ExecutionApi';
4
+ export * from './MetadataApi';
4
5
  export * from './MetricsApi';
5
6
  export * from './NotebooksApi';
6
7
  export * from './ProcessesApi';
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./BillingApi"), exports);
20
20
  __exportStar(require("./DatasetsApi"), exports);
21
21
  __exportStar(require("./ExecutionApi"), exports);
22
+ __exportStar(require("./MetadataApi"), exports);
22
23
  __exportStar(require("./MetricsApi"), exports);
23
24
  __exportStar(require("./NotebooksApi"), exports);
24
25
  __exportStar(require("./ProcessesApi"), exports);
@@ -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 CustomPipelineSettings
16
+ */
17
+ export interface CustomPipelineSettings {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CustomPipelineSettings
22
+ */
23
+ repository?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CustomPipelineSettings
28
+ */
29
+ branch?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CustomPipelineSettings
34
+ */
35
+ folder?: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof CustomPipelineSettings
40
+ */
41
+ lastSync?: Date;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CustomPipelineSettings
46
+ */
47
+ syncStatus?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CustomPipelineSettings
52
+ */
53
+ commitHash?: string;
54
+ }
55
+ /**
56
+ * Check if a given object implements the CustomPipelineSettings interface.
57
+ */
58
+ export declare function instanceOfCustomPipelineSettings(value: object): boolean;
59
+ export declare function CustomPipelineSettingsFromJSON(json: any): CustomPipelineSettings;
60
+ export declare function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomPipelineSettings;
61
+ export declare function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | null): any;
@@ -0,0 +1,60 @@
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.CustomPipelineSettingsToJSON = exports.CustomPipelineSettingsFromJSONTyped = exports.CustomPipelineSettingsFromJSON = exports.instanceOfCustomPipelineSettings = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the CustomPipelineSettings interface.
20
+ */
21
+ function instanceOfCustomPipelineSettings(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfCustomPipelineSettings = instanceOfCustomPipelineSettings;
26
+ function CustomPipelineSettingsFromJSON(json) {
27
+ return CustomPipelineSettingsFromJSONTyped(json, false);
28
+ }
29
+ exports.CustomPipelineSettingsFromJSON = CustomPipelineSettingsFromJSON;
30
+ function CustomPipelineSettingsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'repository': !(0, runtime_1.exists)(json, 'repository') ? undefined : json['repository'],
36
+ 'branch': !(0, runtime_1.exists)(json, 'branch') ? undefined : json['branch'],
37
+ 'folder': !(0, runtime_1.exists)(json, 'folder') ? undefined : json['folder'],
38
+ 'lastSync': !(0, runtime_1.exists)(json, 'lastSync') ? undefined : (new Date(json['lastSync'])),
39
+ 'syncStatus': !(0, runtime_1.exists)(json, 'syncStatus') ? undefined : json['syncStatus'],
40
+ 'commitHash': !(0, runtime_1.exists)(json, 'commitHash') ? undefined : json['commitHash'],
41
+ };
42
+ }
43
+ exports.CustomPipelineSettingsFromJSONTyped = CustomPipelineSettingsFromJSONTyped;
44
+ function CustomPipelineSettingsToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'repository': value.repository,
53
+ 'branch': value.branch,
54
+ 'folder': value.folder,
55
+ 'lastSync': value.lastSync === undefined ? undefined : (value.lastSync.toISOString()),
56
+ 'syncStatus': value.syncStatus,
57
+ 'commitHash': value.commitHash,
58
+ };
59
+ }
60
+ exports.CustomPipelineSettingsToJSON = CustomPipelineSettingsToJSON;
@@ -21,7 +21,7 @@ export interface Process {
21
21
  * @type {string}
22
22
  * @memberof Process
23
23
  */
24
- id?: string;
24
+ id: string;
25
25
  /**
26
26
  *
27
27
  * @type {string}
@@ -58,6 +58,24 @@ export interface Process {
58
58
  * @memberof Process
59
59
  */
60
60
  childProcessIds?: Array<string>;
61
+ /**
62
+ * IDs of pipelines that can be ran upstream
63
+ * @type {Array<string>}
64
+ * @memberof Process
65
+ */
66
+ parentProcessIds?: Array<string>;
67
+ /**
68
+ * Username of the pipeline creator (blank if Cirro curated)
69
+ * @type {string}
70
+ * @memberof Process
71
+ */
72
+ owner?: string;
73
+ /**
74
+ * Projects that can run this pipeline
75
+ * @type {Array<string>}
76
+ * @memberof Process
77
+ */
78
+ linkedProjectIds?: Array<string>;
61
79
  }
62
80
  /**
63
81
  * Check if a given object implements the Process interface.