@cirrobio/api-client 0.0.28-alpha → 0.0.30-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 (46) hide show
  1. package/.openapi-generator/FILES +3 -3
  2. package/README.md +1 -1
  3. package/dist/apis/ProcessesApi.d.ts +5 -5
  4. package/dist/apis/ProcessesApi.js +7 -7
  5. package/dist/models/CustomPipelineSettings.d.ts +13 -12
  6. package/dist/models/CustomPipelineSettings.js +9 -12
  7. package/dist/models/ErrorMessage.d.ts +31 -0
  8. package/dist/models/ErrorMessage.js +50 -0
  9. package/dist/models/Executor.d.ts +1 -1
  10. package/dist/models/Executor.js +1 -1
  11. package/dist/models/PipelineCode.d.ts +4 -4
  12. package/dist/models/PipelineCode.js +6 -4
  13. package/dist/models/PortalErrorResponse.d.ts +50 -0
  14. package/dist/models/PortalErrorResponse.js +60 -0
  15. package/dist/models/Process.d.ts +2 -2
  16. package/dist/models/ProcessDetail.d.ts +13 -6
  17. package/dist/models/ProcessDetail.js +6 -6
  18. package/dist/models/ProcessDetailAllOfPipelineCode.d.ts +50 -0
  19. package/dist/models/ProcessDetailAllOfPipelineCode.js +58 -0
  20. package/dist/models/ProjectRequest.d.ts +2 -2
  21. package/dist/models/ProjectRequest.js +4 -5
  22. package/dist/models/SyncStatus.d.ts +23 -0
  23. package/dist/models/SyncStatus.js +38 -0
  24. package/dist/models/ValidateFileRequirementsRequest.d.ts +4 -4
  25. package/dist/models/ValidateFileRequirementsRequest.js +3 -3
  26. package/dist/models/index.d.ts +3 -3
  27. package/dist/models/index.js +3 -3
  28. package/package.json +1 -1
  29. package/src/apis/ProcessesApi.ts +20 -17
  30. package/src/models/CustomPipelineSettings.ts +26 -24
  31. package/src/models/{Region.ts → ErrorMessage.ts} +14 -13
  32. package/src/models/Executor.ts +1 -1
  33. package/src/models/PipelineCode.ts +10 -7
  34. package/src/models/PortalErrorResponse.ts +100 -0
  35. package/src/models/Process.ts +2 -2
  36. package/src/models/ProcessDetail.ts +23 -12
  37. package/src/models/ProjectRequest.ts +5 -7
  38. package/src/models/{DatasetType.ts → SyncStatus.ts} +9 -9
  39. package/src/models/ValidateFileRequirementsRequest.ts +7 -7
  40. package/src/models/index.ts +3 -3
  41. package/src/models/CreateDashboardRequest.ts +0 -65
  42. package/src/models/CustomPipelineSettingsDto1.ts +0 -111
  43. package/src/models/CustomProcessRequest.ts +0 -175
  44. package/src/models/CustomProcessRequestPipelineCode.ts +0 -97
  45. package/src/models/RegisterDatasetRequest.ts +0 -92
  46. package/src/models/RegisterPublicDataRequest.ts +0 -83
@@ -27,9 +27,6 @@ src/models/Contact.ts
27
27
  src/models/CreateNotebookInstanceRequest.ts
28
28
  src/models/CreateResponse.ts
29
29
  src/models/CustomPipelineSettings.ts
30
- src/models/CustomPipelineSettingsDto1.ts
31
- src/models/CustomProcessRequest.ts
32
- src/models/CustomProcessRequestPipelineCode.ts
33
30
  src/models/CustomerType.ts
34
31
  src/models/Dashboard.ts
35
32
  src/models/DashboardRequest.ts
@@ -38,6 +35,7 @@ src/models/DatasetAssetsManifest.ts
38
35
  src/models/DatasetDetail.ts
39
36
  src/models/DatasetFile.ts
40
37
  src/models/DatasetViz.ts
38
+ src/models/ErrorMessage.ts
41
39
  src/models/Executor.ts
42
40
  src/models/FileNamePattern.ts
43
41
  src/models/FileRequirements.ts
@@ -55,6 +53,7 @@ src/models/OpenNotebookInstanceResponse.ts
55
53
  src/models/PaginatedResponseDatasetListDto.ts
56
54
  src/models/PaginatedResponseSampleDto.ts
57
55
  src/models/PipelineCode.ts
56
+ src/models/PortalErrorResponse.ts
58
57
  src/models/Process.ts
59
58
  src/models/ProcessDetail.ts
60
59
  src/models/Project.ts
@@ -76,6 +75,7 @@ src/models/SetUserProjectRoleRequest.ts
76
75
  src/models/SftpCredentials.ts
77
76
  src/models/Status.ts
78
77
  src/models/StopExecutionResponse.ts
78
+ src/models/SyncStatus.ts
79
79
  src/models/SystemInfoResponse.ts
80
80
  src/models/Tag.ts
81
81
  src/models/Task.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.28-alpha --save
39
+ npm install @cirrobio/api-client@0.0.30-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,12 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateResponse, CustomPipelineSettingsDto1, CustomProcessRequest, FileRequirements, FormSchema, Process, ProcessDetail, ValidateFileRequirementsRequest } from '../models/index';
13
+ import type { CreateResponse, CustomPipelineSettings, FileRequirements, FormSchema, Process, ProcessDetail, ValidateFileRequirementsRequest } from '../models/index';
14
14
  export interface ArchiveCustomProcessRequest {
15
15
  processId: string;
16
16
  }
17
17
  export interface CreateCustomProcessRequest {
18
- customProcessRequest: CustomProcessRequest;
18
+ processDetail: ProcessDetail;
19
19
  }
20
20
  export interface GetProcessRequest {
21
21
  processId: string;
@@ -31,7 +31,7 @@ export interface SyncCustomProcessRequest {
31
31
  }
32
32
  export interface UpdateCustomProcessRequest {
33
33
  processId: string;
34
- customProcessRequest: CustomProcessRequest;
34
+ processDetail: ProcessDetail;
35
35
  }
36
36
  export interface ValidateFileRequirementsOperationRequest {
37
37
  processId: string;
@@ -95,12 +95,12 @@ export declare class ProcessesApi extends runtime.BaseAPI {
95
95
  * Updates the process definition from the repository
96
96
  * Sync custom process
97
97
  */
98
- syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettingsDto1>>;
98
+ syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettings>>;
99
99
  /**
100
100
  * Updates the process definition from the repository
101
101
  * Sync custom process
102
102
  */
103
- syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettingsDto1>;
103
+ syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettings>;
104
104
  /**
105
105
  * Updates the custom process
106
106
  * Update custom process
@@ -138,8 +138,8 @@ var ProcessesApi = /** @class */ (function (_super) {
138
138
  return __generator(this, function (_a) {
139
139
  switch (_a.label) {
140
140
  case 0:
141
- if (requestParameters.customProcessRequest === null || requestParameters.customProcessRequest === undefined) {
142
- throw new runtime.RequiredError('customProcessRequest', 'Required parameter requestParameters.customProcessRequest was null or undefined when calling createCustomProcess.');
141
+ if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
142
+ throw new runtime.RequiredError('processDetail', 'Required parameter requestParameters.processDetail was null or undefined when calling createCustomProcess.');
143
143
  }
144
144
  queryParameters = {};
145
145
  headerParameters = {};
@@ -158,7 +158,7 @@ var ProcessesApi = /** @class */ (function (_super) {
158
158
  method: 'POST',
159
159
  headers: headerParameters,
160
160
  query: queryParameters,
161
- body: (0, index_1.CustomProcessRequestToJSON)(requestParameters.customProcessRequest),
161
+ body: (0, index_1.ProcessDetailToJSON)(requestParameters.processDetail),
162
162
  }, initOverrides)];
163
163
  case 3:
164
164
  response = _a.sent();
@@ -383,7 +383,7 @@ var ProcessesApi = /** @class */ (function (_super) {
383
383
  }, initOverrides)];
384
384
  case 3:
385
385
  response = _a.sent();
386
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CustomPipelineSettingsDto1FromJSON)(jsonValue); })];
386
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CustomPipelineSettingsFromJSON)(jsonValue); })];
387
387
  }
388
388
  });
389
389
  });
@@ -419,8 +419,8 @@ var ProcessesApi = /** @class */ (function (_super) {
419
419
  if (requestParameters.processId === null || requestParameters.processId === undefined) {
420
420
  throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling updateCustomProcess.');
421
421
  }
422
- if (requestParameters.customProcessRequest === null || requestParameters.customProcessRequest === undefined) {
423
- throw new runtime.RequiredError('customProcessRequest', 'Required parameter requestParameters.customProcessRequest was null or undefined when calling updateCustomProcess.');
422
+ if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
423
+ throw new runtime.RequiredError('processDetail', 'Required parameter requestParameters.processDetail was null or undefined when calling updateCustomProcess.');
424
424
  }
425
425
  queryParameters = {};
426
426
  headerParameters = {};
@@ -439,7 +439,7 @@ var ProcessesApi = /** @class */ (function (_super) {
439
439
  method: 'PUT',
440
440
  headers: headerParameters,
441
441
  query: queryParameters,
442
- body: (0, index_1.CustomProcessRequestToJSON)(requestParameters.customProcessRequest),
442
+ body: (0, index_1.ProcessDetailToJSON)(requestParameters.processDetail),
443
443
  }, initOverrides)];
444
444
  case 3:
445
445
  response = _a.sent();
@@ -9,48 +9,49 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SyncStatus } from './SyncStatus';
12
13
  /**
13
- *
14
+ * Used to describe the location of the process definition dependencies
14
15
  * @export
15
16
  * @interface CustomPipelineSettings
16
17
  */
17
18
  export interface CustomPipelineSettings {
18
19
  /**
19
- *
20
+ * GitHub repository that contains the process definition
20
21
  * @type {string}
21
22
  * @memberof CustomPipelineSettings
22
23
  */
23
24
  repository: string;
24
25
  /**
25
- *
26
+ * Branch, tag, or commit hash of the repo that contains the process definition
26
27
  * @type {string}
27
28
  * @memberof CustomPipelineSettings
28
29
  */
29
- branch: string;
30
+ branch?: string;
30
31
  /**
31
- *
32
+ * Folder within the repo that contains the process definition
32
33
  * @type {string}
33
34
  * @memberof CustomPipelineSettings
34
35
  */
35
- folder: string;
36
+ folder?: string;
36
37
  /**
37
- *
38
+ * Time of last sync
38
39
  * @type {Date}
39
40
  * @memberof CustomPipelineSettings
40
41
  */
41
- lastSync: Date;
42
+ lastSync?: Date | null;
42
43
  /**
43
44
  *
44
- * @type {string}
45
+ * @type {SyncStatus}
45
46
  * @memberof CustomPipelineSettings
46
47
  */
47
- syncStatus: string;
48
+ syncStatus?: SyncStatus | null;
48
49
  /**
49
- *
50
+ * Commit hash of the last successful sync
50
51
  * @type {string}
51
52
  * @memberof CustomPipelineSettings
52
53
  */
53
- commitHash: string;
54
+ commitHash?: string | null;
54
55
  }
55
56
  /**
56
57
  * Check if a given object implements the CustomPipelineSettings interface.
@@ -14,17 +14,14 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CustomPipelineSettingsToJSON = exports.CustomPipelineSettingsFromJSONTyped = exports.CustomPipelineSettingsFromJSON = exports.instanceOfCustomPipelineSettings = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var SyncStatus_1 = require("./SyncStatus");
17
19
  /**
18
20
  * Check if a given object implements the CustomPipelineSettings interface.
19
21
  */
20
22
  function instanceOfCustomPipelineSettings(value) {
21
23
  var isInstance = true;
22
24
  isInstance = isInstance && "repository" in value;
23
- isInstance = isInstance && "branch" in value;
24
- isInstance = isInstance && "folder" in value;
25
- isInstance = isInstance && "lastSync" in value;
26
- isInstance = isInstance && "syncStatus" in value;
27
- isInstance = isInstance && "commitHash" in value;
28
25
  return isInstance;
29
26
  }
30
27
  exports.instanceOfCustomPipelineSettings = instanceOfCustomPipelineSettings;
@@ -38,11 +35,11 @@ function CustomPipelineSettingsFromJSONTyped(json, ignoreDiscriminator) {
38
35
  }
39
36
  return {
40
37
  'repository': json['repository'],
41
- 'branch': json['branch'],
42
- 'folder': json['folder'],
43
- 'lastSync': (new Date(json['lastSync'])),
44
- 'syncStatus': json['syncStatus'],
45
- 'commitHash': json['commitHash'],
38
+ 'branch': !(0, runtime_1.exists)(json, 'branch') ? undefined : json['branch'],
39
+ 'folder': !(0, runtime_1.exists)(json, 'folder') ? undefined : json['folder'],
40
+ 'lastSync': !(0, runtime_1.exists)(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
41
+ 'syncStatus': !(0, runtime_1.exists)(json, 'syncStatus') ? undefined : (0, SyncStatus_1.SyncStatusFromJSON)(json['syncStatus']),
42
+ 'commitHash': !(0, runtime_1.exists)(json, 'commitHash') ? undefined : json['commitHash'],
46
43
  };
47
44
  }
48
45
  exports.CustomPipelineSettingsFromJSONTyped = CustomPipelineSettingsFromJSONTyped;
@@ -57,8 +54,8 @@ function CustomPipelineSettingsToJSON(value) {
57
54
  'repository': value.repository,
58
55
  'branch': value.branch,
59
56
  'folder': value.folder,
60
- 'lastSync': (value.lastSync.toISOString()),
61
- 'syncStatus': value.syncStatus,
57
+ 'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
58
+ 'syncStatus': (0, SyncStatus_1.SyncStatusToJSON)(value.syncStatus),
62
59
  'commitHash': value.commitHash,
63
60
  };
64
61
  }
@@ -0,0 +1,31 @@
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 ErrorMessage
16
+ */
17
+ export interface ErrorMessage {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ErrorMessage
22
+ */
23
+ message: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ErrorMessage interface.
27
+ */
28
+ export declare function instanceOfErrorMessage(value: object): boolean;
29
+ export declare function ErrorMessageFromJSON(json: any): ErrorMessage;
30
+ export declare function ErrorMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorMessage;
31
+ export declare function ErrorMessageToJSON(value?: ErrorMessage | null): any;
@@ -0,0 +1,50 @@
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.ErrorMessageToJSON = exports.ErrorMessageFromJSONTyped = exports.ErrorMessageFromJSON = exports.instanceOfErrorMessage = void 0;
17
+ /**
18
+ * Check if a given object implements the ErrorMessage interface.
19
+ */
20
+ function instanceOfErrorMessage(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "message" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfErrorMessage = instanceOfErrorMessage;
26
+ function ErrorMessageFromJSON(json) {
27
+ return ErrorMessageFromJSONTyped(json, false);
28
+ }
29
+ exports.ErrorMessageFromJSON = ErrorMessageFromJSON;
30
+ function ErrorMessageFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'message': json['message'],
36
+ };
37
+ }
38
+ exports.ErrorMessageFromJSONTyped = ErrorMessageFromJSONTyped;
39
+ function ErrorMessageToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'message': value.message,
48
+ };
49
+ }
50
+ exports.ErrorMessageToJSON = ErrorMessageToJSON;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Process executor
13
+ * How the workflow is executed
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ExecutorToJSON = exports.ExecutorFromJSONTyped = exports.ExecutorFromJSON = exports.Executor = void 0;
17
17
  /**
18
- * Process executor
18
+ * How the workflow is executed
19
19
  * @export
20
20
  * @enum {string}
21
21
  */
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { RepositoryType } from './RepositoryType';
13
13
  /**
14
- * Used to describe the pipeline analysis code
14
+ * Used to describe the pipeline analysis code, not required for ingest processes
15
15
  * @export
16
16
  * @interface PipelineCode
17
17
  */
@@ -27,19 +27,19 @@ export interface PipelineCode {
27
27
  * @type {string}
28
28
  * @memberof PipelineCode
29
29
  */
30
- version?: string;
30
+ version: string;
31
31
  /**
32
32
  *
33
33
  * @type {RepositoryType}
34
34
  * @memberof PipelineCode
35
35
  */
36
- repositoryType?: RepositoryType;
36
+ repositoryType: RepositoryType;
37
37
  /**
38
38
  * Main script for running the pipeline
39
39
  * @type {string}
40
40
  * @memberof PipelineCode
41
41
  */
42
- entryPoint?: string;
42
+ entryPoint: string;
43
43
  }
44
44
  /**
45
45
  * Check if a given object implements the PipelineCode interface.
@@ -14,7 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PipelineCodeToJSON = exports.PipelineCodeFromJSONTyped = exports.PipelineCodeFromJSON = exports.instanceOfPipelineCode = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var RepositoryType_1 = require("./RepositoryType");
19
18
  /**
20
19
  * Check if a given object implements the PipelineCode interface.
@@ -22,6 +21,9 @@ var RepositoryType_1 = require("./RepositoryType");
22
21
  function instanceOfPipelineCode(value) {
23
22
  var isInstance = true;
24
23
  isInstance = isInstance && "repositoryPath" in value;
24
+ isInstance = isInstance && "version" in value;
25
+ isInstance = isInstance && "repositoryType" in value;
26
+ isInstance = isInstance && "entryPoint" in value;
25
27
  return isInstance;
26
28
  }
27
29
  exports.instanceOfPipelineCode = instanceOfPipelineCode;
@@ -35,9 +37,9 @@ function PipelineCodeFromJSONTyped(json, ignoreDiscriminator) {
35
37
  }
36
38
  return {
37
39
  'repositoryPath': json['repositoryPath'],
38
- 'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
39
- 'repositoryType': !(0, runtime_1.exists)(json, 'repositoryType') ? undefined : (0, RepositoryType_1.RepositoryTypeFromJSON)(json['repositoryType']),
40
- 'entryPoint': !(0, runtime_1.exists)(json, 'entryPoint') ? undefined : json['entryPoint'],
40
+ 'version': json['version'],
41
+ 'repositoryType': (0, RepositoryType_1.RepositoryTypeFromJSON)(json['repositoryType']),
42
+ 'entryPoint': json['entryPoint'],
41
43
  };
42
44
  }
43
45
  exports.PipelineCodeFromJSONTyped = PipelineCodeFromJSONTyped;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ErrorMessage } from './ErrorMessage';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PortalErrorResponse
17
+ */
18
+ export interface PortalErrorResponse {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof PortalErrorResponse
23
+ */
24
+ statusCode: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PortalErrorResponse
29
+ */
30
+ errorCode: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof PortalErrorResponse
35
+ */
36
+ errorDetail: string;
37
+ /**
38
+ *
39
+ * @type {Array<ErrorMessage>}
40
+ * @memberof PortalErrorResponse
41
+ */
42
+ errors: Array<ErrorMessage>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PortalErrorResponse interface.
46
+ */
47
+ export declare function instanceOfPortalErrorResponse(value: object): boolean;
48
+ export declare function PortalErrorResponseFromJSON(json: any): PortalErrorResponse;
49
+ export declare function PortalErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalErrorResponse;
50
+ export declare function PortalErrorResponseToJSON(value?: PortalErrorResponse | 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.PortalErrorResponseToJSON = exports.PortalErrorResponseFromJSONTyped = exports.PortalErrorResponseFromJSON = exports.instanceOfPortalErrorResponse = void 0;
17
+ var ErrorMessage_1 = require("./ErrorMessage");
18
+ /**
19
+ * Check if a given object implements the PortalErrorResponse interface.
20
+ */
21
+ function instanceOfPortalErrorResponse(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "statusCode" in value;
24
+ isInstance = isInstance && "errorCode" in value;
25
+ isInstance = isInstance && "errorDetail" in value;
26
+ isInstance = isInstance && "errors" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfPortalErrorResponse = instanceOfPortalErrorResponse;
30
+ function PortalErrorResponseFromJSON(json) {
31
+ return PortalErrorResponseFromJSONTyped(json, false);
32
+ }
33
+ exports.PortalErrorResponseFromJSON = PortalErrorResponseFromJSON;
34
+ function PortalErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'statusCode': json['statusCode'],
40
+ 'errorCode': json['errorCode'],
41
+ 'errorDetail': json['errorDetail'],
42
+ 'errors': (json['errors'].map(ErrorMessage_1.ErrorMessageFromJSON)),
43
+ };
44
+ }
45
+ exports.PortalErrorResponseFromJSONTyped = PortalErrorResponseFromJSONTyped;
46
+ function PortalErrorResponseToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'statusCode': value.statusCode,
55
+ 'errorCode': value.errorCode,
56
+ 'errorDetail': value.errorDetail,
57
+ 'errors': (value.errors.map(ErrorMessage_1.ErrorMessageToJSON)),
58
+ };
59
+ }
60
+ exports.PortalErrorResponseToJSON = PortalErrorResponseToJSON;
@@ -23,7 +23,7 @@ export interface Process {
23
23
  */
24
24
  id: string;
25
25
  /**
26
- *
26
+ * Friendly name for the process
27
27
  * @type {string}
28
28
  * @memberof Process
29
29
  */
@@ -59,7 +59,7 @@ export interface Process {
59
59
  */
60
60
  childProcessIds?: Array<string>;
61
61
  /**
62
- * IDs of pipelines that can be ran upstream
62
+ * IDs of pipelines that can run this pipeline
63
63
  * @type {Array<string>}
64
64
  * @memberof Process
65
65
  */
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { CustomPipelineSettings } from './CustomPipelineSettings';
13
13
  import type { Executor } from './Executor';
14
+ import type { PipelineCode } from './PipelineCode';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -46,13 +47,13 @@ export interface ProcessDetail {
46
47
  * @type {string}
47
48
  * @memberof ProcessDetail
48
49
  */
49
- documentationUrl: string;
50
+ documentationUrl?: string | null;
50
51
  /**
51
- * Description of the files to be uploaded (optional)
52
+ *
52
53
  * @type {string}
53
54
  * @memberof ProcessDetail
54
55
  */
55
- fileRequirementsMessage?: string;
56
+ fileRequirementsMessage?: string | null;
56
57
  /**
57
58
  *
58
59
  * @type {Array<string>}
@@ -70,13 +71,19 @@ export interface ProcessDetail {
70
71
  * @type {string}
71
72
  * @memberof ProcessDetail
72
73
  */
73
- owner: string;
74
+ owner?: string;
74
75
  /**
75
76
  *
76
77
  * @type {Array<string>}
77
78
  * @memberof ProcessDetail
78
79
  */
79
80
  linkedProjectIds: Array<string>;
81
+ /**
82
+ *
83
+ * @type {PipelineCode}
84
+ * @memberof ProcessDetail
85
+ */
86
+ pipelineCode?: PipelineCode | null;
80
87
  /**
81
88
  *
82
89
  * @type {CustomPipelineSettings}
@@ -84,11 +91,11 @@ export interface ProcessDetail {
84
91
  */
85
92
  customSettings: CustomPipelineSettings;
86
93
  /**
87
- *
94
+ * Whether the process is marked for removal
88
95
  * @type {boolean}
89
96
  * @memberof ProcessDetail
90
97
  */
91
- isArchived: boolean;
98
+ isArchived?: boolean;
92
99
  }
93
100
  /**
94
101
  * Check if a given object implements the ProcessDetail interface.
@@ -17,6 +17,7 @@ exports.ProcessDetailToJSON = exports.ProcessDetailFromJSONTyped = exports.Proce
17
17
  var runtime_1 = require("../runtime");
18
18
  var CustomPipelineSettings_1 = require("./CustomPipelineSettings");
19
19
  var Executor_1 = require("./Executor");
20
+ var PipelineCode_1 = require("./PipelineCode");
20
21
  /**
21
22
  * Check if a given object implements the ProcessDetail interface.
22
23
  */
@@ -26,13 +27,10 @@ function instanceOfProcessDetail(value) {
26
27
  isInstance = isInstance && "name" in value;
27
28
  isInstance = isInstance && "description" in value;
28
29
  isInstance = isInstance && "executor" in value;
29
- isInstance = isInstance && "documentationUrl" in value;
30
30
  isInstance = isInstance && "childProcessIds" in value;
31
31
  isInstance = isInstance && "parentProcessIds" in value;
32
- isInstance = isInstance && "owner" in value;
33
32
  isInstance = isInstance && "linkedProjectIds" in value;
34
33
  isInstance = isInstance && "customSettings" in value;
35
- isInstance = isInstance && "isArchived" in value;
36
34
  return isInstance;
37
35
  }
38
36
  exports.instanceOfProcessDetail = instanceOfProcessDetail;
@@ -49,14 +47,15 @@ function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
49
47
  'name': json['name'],
50
48
  'description': json['description'],
51
49
  'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
52
- 'documentationUrl': json['documentationUrl'],
50
+ 'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
53
51
  'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
54
52
  'childProcessIds': json['childProcessIds'],
55
53
  'parentProcessIds': json['parentProcessIds'],
56
- 'owner': json['owner'],
54
+ 'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : json['owner'],
57
55
  'linkedProjectIds': json['linkedProjectIds'],
56
+ 'pipelineCode': !(0, runtime_1.exists)(json, 'pipelineCode') ? undefined : (0, PipelineCode_1.PipelineCodeFromJSON)(json['pipelineCode']),
58
57
  'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsFromJSON)(json['customSettings']),
59
- 'isArchived': json['isArchived'],
58
+ 'isArchived': !(0, runtime_1.exists)(json, 'isArchived') ? undefined : json['isArchived'],
60
59
  };
61
60
  }
62
61
  exports.ProcessDetailFromJSONTyped = ProcessDetailFromJSONTyped;
@@ -78,6 +77,7 @@ function ProcessDetailToJSON(value) {
78
77
  'parentProcessIds': value.parentProcessIds,
79
78
  'owner': value.owner,
80
79
  'linkedProjectIds': value.linkedProjectIds,
80
+ 'pipelineCode': (0, PipelineCode_1.PipelineCodeToJSON)(value.pipelineCode),
81
81
  'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsToJSON)(value.customSettings),
82
82
  'isArchived': value.isArchived,
83
83
  };