@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
@@ -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 ProcessDetailAllOfPipelineCode
17
+ */
18
+ export interface ProcessDetailAllOfPipelineCode {
19
+ /**
20
+ * GitHub repository which contains the workflow code
21
+ * @type {string}
22
+ * @memberof ProcessDetailAllOfPipelineCode
23
+ */
24
+ repositoryPath: string;
25
+ /**
26
+ * Branch, tag, or commit hash of the pipeline code
27
+ * @type {string}
28
+ * @memberof ProcessDetailAllOfPipelineCode
29
+ */
30
+ version?: string;
31
+ /**
32
+ *
33
+ * @type {RepositoryType}
34
+ * @memberof ProcessDetailAllOfPipelineCode
35
+ */
36
+ repositoryType?: RepositoryType;
37
+ /**
38
+ * Main script for running the pipeline
39
+ * @type {string}
40
+ * @memberof ProcessDetailAllOfPipelineCode
41
+ */
42
+ entryPoint?: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ProcessDetailAllOfPipelineCode interface.
46
+ */
47
+ export declare function instanceOfProcessDetailAllOfPipelineCode(value: object): boolean;
48
+ export declare function ProcessDetailAllOfPipelineCodeFromJSON(json: any): ProcessDetailAllOfPipelineCode;
49
+ export declare function ProcessDetailAllOfPipelineCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDetailAllOfPipelineCode;
50
+ export declare function ProcessDetailAllOfPipelineCodeToJSON(value?: ProcessDetailAllOfPipelineCode | 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.ProcessDetailAllOfPipelineCodeToJSON = exports.ProcessDetailAllOfPipelineCodeFromJSONTyped = exports.ProcessDetailAllOfPipelineCodeFromJSON = exports.instanceOfProcessDetailAllOfPipelineCode = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var RepositoryType_1 = require("./RepositoryType");
19
+ /**
20
+ * Check if a given object implements the ProcessDetailAllOfPipelineCode interface.
21
+ */
22
+ function instanceOfProcessDetailAllOfPipelineCode(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "repositoryPath" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfProcessDetailAllOfPipelineCode = instanceOfProcessDetailAllOfPipelineCode;
28
+ function ProcessDetailAllOfPipelineCodeFromJSON(json) {
29
+ return ProcessDetailAllOfPipelineCodeFromJSONTyped(json, false);
30
+ }
31
+ exports.ProcessDetailAllOfPipelineCodeFromJSON = ProcessDetailAllOfPipelineCodeFromJSON;
32
+ function ProcessDetailAllOfPipelineCodeFromJSONTyped(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.ProcessDetailAllOfPipelineCodeFromJSONTyped = ProcessDetailAllOfPipelineCodeFromJSONTyped;
44
+ function ProcessDetailAllOfPipelineCodeToJSON(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.ProcessDetailAllOfPipelineCodeToJSON = ProcessDetailAllOfPipelineCodeToJSON;
@@ -54,13 +54,13 @@ export interface ProjectRequest {
54
54
  * @type {CloudAccount}
55
55
  * @memberof ProjectRequest
56
56
  */
57
- account: CloudAccount | null;
57
+ account?: CloudAccount | null;
58
58
  /**
59
59
  *
60
60
  * @type {Array<Tag>}
61
61
  * @memberof ProjectRequest
62
62
  */
63
- tags: Array<Tag> | null;
63
+ tags?: Array<Tag> | null;
64
64
  }
65
65
  /**
66
66
  * Check if a given object implements the ProjectRequest interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectRequestToJSON = exports.ProjectRequestFromJSONTyped = exports.ProjectRequestFromJSON = exports.instanceOfProjectRequest = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  var CloudAccount_1 = require("./CloudAccount");
18
19
  var Contact_1 = require("./Contact");
19
20
  var ProjectSettings_1 = require("./ProjectSettings");
@@ -28,8 +29,6 @@ function instanceOfProjectRequest(value) {
28
29
  isInstance = isInstance && "billingAccountId" in value;
29
30
  isInstance = isInstance && "settings" in value;
30
31
  isInstance = isInstance && "contacts" in value;
31
- isInstance = isInstance && "account" in value;
32
- isInstance = isInstance && "tags" in value;
33
32
  return isInstance;
34
33
  }
35
34
  exports.instanceOfProjectRequest = instanceOfProjectRequest;
@@ -47,8 +46,8 @@ function ProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
47
46
  'billingAccountId': json['billingAccountId'],
48
47
  'settings': (0, ProjectSettings_1.ProjectSettingsFromJSON)(json['settings']),
49
48
  'contacts': (json['contacts'].map(Contact_1.ContactFromJSON)),
50
- 'account': (0, CloudAccount_1.CloudAccountFromJSON)(json['account']),
51
- 'tags': (json['tags'] === null ? null : json['tags'].map(Tag_1.TagFromJSON)),
49
+ 'account': !(0, runtime_1.exists)(json, 'account') ? undefined : (0, CloudAccount_1.CloudAccountFromJSON)(json['account']),
50
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : (json['tags'] === null ? null : json['tags'].map(Tag_1.TagFromJSON)),
52
51
  };
53
52
  }
54
53
  exports.ProjectRequestFromJSONTyped = ProjectRequestFromJSONTyped;
@@ -66,7 +65,7 @@ function ProjectRequestToJSON(value) {
66
65
  'settings': (0, ProjectSettings_1.ProjectSettingsToJSON)(value.settings),
67
66
  'contacts': (value.contacts.map(Contact_1.ContactToJSON)),
68
67
  'account': (0, CloudAccount_1.CloudAccountToJSON)(value.account),
69
- 'tags': (value.tags === null ? null : value.tags.map(Tag_1.TagToJSON)),
68
+ 'tags': value.tags === undefined ? undefined : (value.tags === null ? null : value.tags.map(Tag_1.TagToJSON)),
70
69
  };
71
70
  }
72
71
  exports.ProjectRequestToJSON = ProjectRequestToJSON;
@@ -0,0 +1,23 @@
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
+ * Status of last sync
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum SyncStatus {
18
+ Successful = "SUCCESSFUL",
19
+ Failed = "FAILED"
20
+ }
21
+ export declare function SyncStatusFromJSON(json: any): SyncStatus;
22
+ export declare function SyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncStatus;
23
+ export declare function SyncStatusToJSON(value?: SyncStatus | null): any;
@@ -0,0 +1,38 @@
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.SyncStatusToJSON = exports.SyncStatusFromJSONTyped = exports.SyncStatusFromJSON = exports.SyncStatus = void 0;
17
+ /**
18
+ * Status of last sync
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var SyncStatus;
23
+ (function (SyncStatus) {
24
+ SyncStatus["Successful"] = "SUCCESSFUL";
25
+ SyncStatus["Failed"] = "FAILED";
26
+ })(SyncStatus = exports.SyncStatus || (exports.SyncStatus = {}));
27
+ function SyncStatusFromJSON(json) {
28
+ return SyncStatusFromJSONTyped(json, false);
29
+ }
30
+ exports.SyncStatusFromJSON = SyncStatusFromJSON;
31
+ function SyncStatusFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.SyncStatusFromJSONTyped = SyncStatusFromJSONTyped;
35
+ function SyncStatusToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.SyncStatusToJSON = SyncStatusToJSON;
@@ -17,16 +17,16 @@
17
17
  export interface ValidateFileRequirementsRequest {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {Array<string>}
21
21
  * @memberof ValidateFileRequirementsRequest
22
22
  */
23
- sampleSheet: string;
23
+ fileNames: Array<string>;
24
24
  /**
25
25
  *
26
- * @type {Array<string>}
26
+ * @type {string}
27
27
  * @memberof ValidateFileRequirementsRequest
28
28
  */
29
- fileNames: Array<string>;
29
+ sampleSheet: string;
30
30
  }
31
31
  /**
32
32
  * Check if a given object implements the ValidateFileRequirementsRequest interface.
@@ -19,8 +19,8 @@ exports.ValidateFileRequirementsRequestToJSON = exports.ValidateFileRequirements
19
19
  */
20
20
  function instanceOfValidateFileRequirementsRequest(value) {
21
21
  var isInstance = true;
22
- isInstance = isInstance && "sampleSheet" in value;
23
22
  isInstance = isInstance && "fileNames" in value;
23
+ isInstance = isInstance && "sampleSheet" in value;
24
24
  return isInstance;
25
25
  }
26
26
  exports.instanceOfValidateFileRequirementsRequest = instanceOfValidateFileRequirementsRequest;
@@ -33,8 +33,8 @@ function ValidateFileRequirementsRequestFromJSONTyped(json, ignoreDiscriminator)
33
33
  return json;
34
34
  }
35
35
  return {
36
- 'sampleSheet': json['sampleSheet'],
37
36
  'fileNames': json['fileNames'],
37
+ 'sampleSheet': json['sampleSheet'],
38
38
  };
39
39
  }
40
40
  exports.ValidateFileRequirementsRequestFromJSONTyped = ValidateFileRequirementsRequestFromJSONTyped;
@@ -46,8 +46,8 @@ function ValidateFileRequirementsRequestToJSON(value) {
46
46
  return null;
47
47
  }
48
48
  return {
49
- 'sampleSheet': value.sampleSheet,
50
49
  'fileNames': value.fileNames,
50
+ 'sampleSheet': value.sampleSheet,
51
51
  };
52
52
  }
53
53
  exports.ValidateFileRequirementsRequestToJSON = ValidateFileRequirementsRequestToJSON;
@@ -8,9 +8,6 @@ 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';
14
11
  export * from './CustomerType';
15
12
  export * from './Dashboard';
16
13
  export * from './DashboardRequest';
@@ -19,6 +16,7 @@ export * from './DatasetAssetsManifest';
19
16
  export * from './DatasetDetail';
20
17
  export * from './DatasetFile';
21
18
  export * from './DatasetViz';
19
+ export * from './ErrorMessage';
22
20
  export * from './Executor';
23
21
  export * from './FileNamePattern';
24
22
  export * from './FileRequirements';
@@ -36,6 +34,7 @@ export * from './OpenNotebookInstanceResponse';
36
34
  export * from './PaginatedResponseDatasetListDto';
37
35
  export * from './PaginatedResponseSampleDto';
38
36
  export * from './PipelineCode';
37
+ export * from './PortalErrorResponse';
39
38
  export * from './Process';
40
39
  export * from './ProcessDetail';
41
40
  export * from './Project';
@@ -57,6 +56,7 @@ export * from './SetUserProjectRoleRequest';
57
56
  export * from './SftpCredentials';
58
57
  export * from './Status';
59
58
  export * from './StopExecutionResponse';
59
+ export * from './SyncStatus';
60
60
  export * from './SystemInfoResponse';
61
61
  export * from './Tag';
62
62
  export * from './Task';
@@ -26,9 +26,6 @@ __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);
32
29
  __exportStar(require("./CustomerType"), exports);
33
30
  __exportStar(require("./Dashboard"), exports);
34
31
  __exportStar(require("./DashboardRequest"), exports);
@@ -37,6 +34,7 @@ __exportStar(require("./DatasetAssetsManifest"), exports);
37
34
  __exportStar(require("./DatasetDetail"), exports);
38
35
  __exportStar(require("./DatasetFile"), exports);
39
36
  __exportStar(require("./DatasetViz"), exports);
37
+ __exportStar(require("./ErrorMessage"), exports);
40
38
  __exportStar(require("./Executor"), exports);
41
39
  __exportStar(require("./FileNamePattern"), exports);
42
40
  __exportStar(require("./FileRequirements"), exports);
@@ -54,6 +52,7 @@ __exportStar(require("./OpenNotebookInstanceResponse"), exports);
54
52
  __exportStar(require("./PaginatedResponseDatasetListDto"), exports);
55
53
  __exportStar(require("./PaginatedResponseSampleDto"), exports);
56
54
  __exportStar(require("./PipelineCode"), exports);
55
+ __exportStar(require("./PortalErrorResponse"), exports);
57
56
  __exportStar(require("./Process"), exports);
58
57
  __exportStar(require("./ProcessDetail"), exports);
59
58
  __exportStar(require("./Project"), exports);
@@ -75,6 +74,7 @@ __exportStar(require("./SetUserProjectRoleRequest"), exports);
75
74
  __exportStar(require("./SftpCredentials"), exports);
76
75
  __exportStar(require("./Status"), exports);
77
76
  __exportStar(require("./StopExecutionResponse"), exports);
77
+ __exportStar(require("./SyncStatus"), exports);
78
78
  __exportStar(require("./SystemInfoResponse"), exports);
79
79
  __exportStar(require("./Tag"), exports);
80
80
  __exportStar(require("./Task"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.28-alpha",
3
+ "version": "0.0.30-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -16,10 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  CreateResponse,
19
- CustomPipelineSettingsDto1,
20
- CustomProcessRequest,
19
+ CustomPipelineSettings,
20
+ ErrorMessage,
21
21
  FileRequirements,
22
22
  FormSchema,
23
+ PortalErrorResponse,
23
24
  Process,
24
25
  ProcessDetail,
25
26
  ValidateFileRequirementsRequest,
@@ -27,14 +28,16 @@ import type {
27
28
  import {
28
29
  CreateResponseFromJSON,
29
30
  CreateResponseToJSON,
30
- CustomPipelineSettingsDto1FromJSON,
31
- CustomPipelineSettingsDto1ToJSON,
32
- CustomProcessRequestFromJSON,
33
- CustomProcessRequestToJSON,
31
+ CustomPipelineSettingsFromJSON,
32
+ CustomPipelineSettingsToJSON,
33
+ ErrorMessageFromJSON,
34
+ ErrorMessageToJSON,
34
35
  FileRequirementsFromJSON,
35
36
  FileRequirementsToJSON,
36
37
  FormSchemaFromJSON,
37
38
  FormSchemaToJSON,
39
+ PortalErrorResponseFromJSON,
40
+ PortalErrorResponseToJSON,
38
41
  ProcessFromJSON,
39
42
  ProcessToJSON,
40
43
  ProcessDetailFromJSON,
@@ -48,7 +51,7 @@ export interface ArchiveCustomProcessRequest {
48
51
  }
49
52
 
50
53
  export interface CreateCustomProcessRequest {
51
- customProcessRequest: CustomProcessRequest;
54
+ processDetail: ProcessDetail;
52
55
  }
53
56
 
54
57
  export interface GetProcessRequest {
@@ -69,7 +72,7 @@ export interface SyncCustomProcessRequest {
69
72
 
70
73
  export interface UpdateCustomProcessRequest {
71
74
  processId: string;
72
- customProcessRequest: CustomProcessRequest;
75
+ processDetail: ProcessDetail;
73
76
  }
74
77
 
75
78
  export interface ValidateFileRequirementsOperationRequest {
@@ -126,8 +129,8 @@ export class ProcessesApi extends runtime.BaseAPI {
126
129
  * Create custom process
127
130
  */
128
131
  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.');
132
+ if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
133
+ throw new runtime.RequiredError('processDetail','Required parameter requestParameters.processDetail was null or undefined when calling createCustomProcess.');
131
134
  }
132
135
 
133
136
  const queryParameters: any = {};
@@ -149,7 +152,7 @@ export class ProcessesApi extends runtime.BaseAPI {
149
152
  method: 'POST',
150
153
  headers: headerParameters,
151
154
  query: queryParameters,
152
- body: CustomProcessRequestToJSON(requestParameters.customProcessRequest),
155
+ body: ProcessDetailToJSON(requestParameters.processDetail),
153
156
  }, initOverrides);
154
157
 
155
158
  return new runtime.JSONApiResponse(response, (jsonValue) => CreateResponseFromJSON(jsonValue));
@@ -288,7 +291,7 @@ export class ProcessesApi extends runtime.BaseAPI {
288
291
  * Updates the process definition from the repository
289
292
  * Sync custom process
290
293
  */
291
- async syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettingsDto1>> {
294
+ async syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettings>> {
292
295
  if (requestParameters.processId === null || requestParameters.processId === undefined) {
293
296
  throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling syncCustomProcess.');
294
297
  }
@@ -312,14 +315,14 @@ export class ProcessesApi extends runtime.BaseAPI {
312
315
  query: queryParameters,
313
316
  }, initOverrides);
314
317
 
315
- return new runtime.JSONApiResponse(response, (jsonValue) => CustomPipelineSettingsDto1FromJSON(jsonValue));
318
+ return new runtime.JSONApiResponse(response, (jsonValue) => CustomPipelineSettingsFromJSON(jsonValue));
316
319
  }
317
320
 
318
321
  /**
319
322
  * Updates the process definition from the repository
320
323
  * Sync custom process
321
324
  */
322
- async syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettingsDto1> {
325
+ async syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettings> {
323
326
  const response = await this.syncCustomProcessRaw(requestParameters, initOverrides);
324
327
  return await response.value();
325
328
  }
@@ -333,8 +336,8 @@ export class ProcessesApi extends runtime.BaseAPI {
333
336
  throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling updateCustomProcess.');
334
337
  }
335
338
 
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.');
339
+ if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
340
+ throw new runtime.RequiredError('processDetail','Required parameter requestParameters.processDetail was null or undefined when calling updateCustomProcess.');
338
341
  }
339
342
 
340
343
  const queryParameters: any = {};
@@ -356,7 +359,7 @@ export class ProcessesApi extends runtime.BaseAPI {
356
359
  method: 'PUT',
357
360
  headers: headerParameters,
358
361
  query: queryParameters,
359
- body: CustomProcessRequestToJSON(requestParameters.customProcessRequest),
362
+ body: ProcessDetailToJSON(requestParameters.processDetail),
360
363
  }, initOverrides);
361
364
 
362
365
  return new runtime.VoidApiResponse(response);
@@ -13,48 +13,55 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { SyncStatus } from './SyncStatus';
17
+ import {
18
+ SyncStatusFromJSON,
19
+ SyncStatusFromJSONTyped,
20
+ SyncStatusToJSON,
21
+ } from './SyncStatus';
22
+
16
23
  /**
17
- *
24
+ * Used to describe the location of the process definition dependencies
18
25
  * @export
19
26
  * @interface CustomPipelineSettings
20
27
  */
21
28
  export interface CustomPipelineSettings {
22
29
  /**
23
- *
30
+ * GitHub repository that contains the process definition
24
31
  * @type {string}
25
32
  * @memberof CustomPipelineSettings
26
33
  */
27
34
  repository: string;
28
35
  /**
29
- *
36
+ * Branch, tag, or commit hash of the repo that contains the process definition
30
37
  * @type {string}
31
38
  * @memberof CustomPipelineSettings
32
39
  */
33
- branch: string;
40
+ branch?: string;
34
41
  /**
35
- *
42
+ * Folder within the repo that contains the process definition
36
43
  * @type {string}
37
44
  * @memberof CustomPipelineSettings
38
45
  */
39
- folder: string;
46
+ folder?: string;
40
47
  /**
41
- *
48
+ * Time of last sync
42
49
  * @type {Date}
43
50
  * @memberof CustomPipelineSettings
44
51
  */
45
- lastSync: Date;
52
+ lastSync?: Date | null;
46
53
  /**
47
54
  *
48
- * @type {string}
55
+ * @type {SyncStatus}
49
56
  * @memberof CustomPipelineSettings
50
57
  */
51
- syncStatus: string;
58
+ syncStatus?: SyncStatus | null;
52
59
  /**
53
- *
60
+ * Commit hash of the last successful sync
54
61
  * @type {string}
55
62
  * @memberof CustomPipelineSettings
56
63
  */
57
- commitHash: string;
64
+ commitHash?: string | null;
58
65
  }
59
66
 
60
67
  /**
@@ -63,11 +70,6 @@ export interface CustomPipelineSettings {
63
70
  export function instanceOfCustomPipelineSettings(value: object): boolean {
64
71
  let isInstance = true;
65
72
  isInstance = isInstance && "repository" in value;
66
- isInstance = isInstance && "branch" in value;
67
- isInstance = isInstance && "folder" in value;
68
- isInstance = isInstance && "lastSync" in value;
69
- isInstance = isInstance && "syncStatus" in value;
70
- isInstance = isInstance && "commitHash" in value;
71
73
 
72
74
  return isInstance;
73
75
  }
@@ -83,11 +85,11 @@ export function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminat
83
85
  return {
84
86
 
85
87
  'repository': json['repository'],
86
- 'branch': json['branch'],
87
- 'folder': json['folder'],
88
- 'lastSync': (new Date(json['lastSync'])),
89
- 'syncStatus': json['syncStatus'],
90
- 'commitHash': json['commitHash'],
88
+ 'branch': !exists(json, 'branch') ? undefined : json['branch'],
89
+ 'folder': !exists(json, 'folder') ? undefined : json['folder'],
90
+ 'lastSync': !exists(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
91
+ 'syncStatus': !exists(json, 'syncStatus') ? undefined : SyncStatusFromJSON(json['syncStatus']),
92
+ 'commitHash': !exists(json, 'commitHash') ? undefined : json['commitHash'],
91
93
  };
92
94
  }
93
95
 
@@ -103,8 +105,8 @@ export function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | nu
103
105
  'repository': value.repository,
104
106
  'branch': value.branch,
105
107
  'folder': value.folder,
106
- 'lastSync': (value.lastSync.toISOString()),
107
- 'syncStatus': value.syncStatus,
108
+ 'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
109
+ 'syncStatus': SyncStatusToJSON(value.syncStatus),
108
110
  'commitHash': value.commitHash,
109
111
  };
110
112
  }
@@ -16,41 +16,42 @@ import { exists, mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface Region
19
+ * @interface ErrorMessage
20
20
  */
21
- export interface Region {
21
+ export interface ErrorMessage {
22
22
  /**
23
23
  *
24
- * @type {boolean}
25
- * @memberof Region
24
+ * @type {string}
25
+ * @memberof ErrorMessage
26
26
  */
27
- globalRegion?: boolean;
27
+ message: string;
28
28
  }
29
29
 
30
30
  /**
31
- * Check if a given object implements the Region interface.
31
+ * Check if a given object implements the ErrorMessage interface.
32
32
  */
33
- export function instanceOfRegion(value: object): boolean {
33
+ export function instanceOfErrorMessage(value: object): boolean {
34
34
  let isInstance = true;
35
+ isInstance = isInstance && "message" in value;
35
36
 
36
37
  return isInstance;
37
38
  }
38
39
 
39
- export function RegionFromJSON(json: any): Region {
40
- return RegionFromJSONTyped(json, false);
40
+ export function ErrorMessageFromJSON(json: any): ErrorMessage {
41
+ return ErrorMessageFromJSONTyped(json, false);
41
42
  }
42
43
 
43
- export function RegionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Region {
44
+ export function ErrorMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorMessage {
44
45
  if ((json === undefined) || (json === null)) {
45
46
  return json;
46
47
  }
47
48
  return {
48
49
 
49
- 'globalRegion': !exists(json, 'globalRegion') ? undefined : json['globalRegion'],
50
+ 'message': json['message'],
50
51
  };
51
52
  }
52
53
 
53
- export function RegionToJSON(value?: Region | null): any {
54
+ export function ErrorMessageToJSON(value?: ErrorMessage | null): any {
54
55
  if (value === undefined) {
55
56
  return undefined;
56
57
  }
@@ -59,7 +60,7 @@ export function RegionToJSON(value?: Region | null): any {
59
60
  }
60
61
  return {
61
62
 
62
- 'globalRegion': value.globalRegion,
63
+ 'message': value.message,
63
64
  };
64
65
  }
65
66
 
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  /**
16
- * Process executor
16
+ * How the workflow is executed
17
17
  * @export
18
18
  * @enum {string}
19
19
  */