@cirrobio/api-client 0.0.27-alpha → 0.0.28-alpha

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