@cirrobio/api-client 0.0.29-alpha → 0.0.31-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 (50) hide show
  1. package/.openapi-generator/FILES +4 -2
  2. package/README.md +1 -1
  3. package/dist/apis/ReferencesApi.d.ts +2 -2
  4. package/dist/apis/ReferencesApi.js +1 -1
  5. package/dist/models/CustomPipelineSettings.d.ts +6 -5
  6. package/dist/models/CustomPipelineSettings.js +3 -2
  7. package/dist/models/DatasetAssetsManifest.d.ts +3 -3
  8. package/dist/models/DatasetAssetsManifest.js +3 -3
  9. package/dist/models/ErrorMessage.d.ts +31 -0
  10. package/dist/models/ErrorMessage.js +50 -0
  11. package/dist/models/FileEntry.d.ts +45 -0
  12. package/dist/models/FileEntry.js +54 -0
  13. package/dist/models/PipelineCode.d.ts +3 -3
  14. package/dist/models/PipelineCode.js +4 -2
  15. package/dist/models/PortalErrorResponse.d.ts +50 -0
  16. package/dist/models/PortalErrorResponse.js +60 -0
  17. package/dist/models/Process.d.ts +3 -3
  18. package/dist/models/Process.js +1 -2
  19. package/dist/models/ProcessDetail.d.ts +8 -8
  20. package/dist/models/ProcessDetail.js +8 -12
  21. package/dist/models/ProjectRequest.d.ts +2 -2
  22. package/dist/models/ProjectRequest.js +4 -5
  23. package/dist/models/ProjectSettings.d.ts +1 -1
  24. package/dist/models/ProjectSettings.js +1 -2
  25. package/dist/models/Reference.d.ts +3 -2
  26. package/dist/models/Reference.js +3 -2
  27. package/dist/models/SyncStatus.d.ts +23 -0
  28. package/dist/models/SyncStatus.js +38 -0
  29. package/dist/models/ValidateFileRequirementsRequest.d.ts +4 -4
  30. package/dist/models/ValidateFileRequirementsRequest.js +3 -3
  31. package/dist/models/index.d.ts +4 -2
  32. package/dist/models/index.js +4 -2
  33. package/package.json +1 -1
  34. package/src/apis/ProcessesApi.ts +6 -0
  35. package/src/apis/ReferencesApi.ts +3 -3
  36. package/src/models/CustomPipelineSettings.ts +14 -7
  37. package/src/models/DatasetAssetsManifest.ts +10 -10
  38. package/src/models/ErrorMessage.ts +66 -0
  39. package/src/models/{DatasetFile.ts → FileEntry.ts} +11 -11
  40. package/src/models/PipelineCode.ts +7 -5
  41. package/src/models/PortalErrorResponse.ts +100 -0
  42. package/src/models/Process.ts +4 -5
  43. package/src/models/ProcessDetail.ts +18 -23
  44. package/src/models/ProjectRequest.ts +5 -7
  45. package/src/models/ProjectSettings.ts +2 -3
  46. package/src/models/Reference.ts +11 -4
  47. package/src/models/SyncStatus.ts +37 -0
  48. package/src/models/ValidateFileRequirementsRequest.ts +7 -7
  49. package/src/models/index.ts +4 -2
  50. package/src/models/ProcessDetailAllOfPipelineCode.ts +0 -97
@@ -33,9 +33,10 @@ src/models/DashboardRequest.ts
33
33
  src/models/Dataset.ts
34
34
  src/models/DatasetAssetsManifest.ts
35
35
  src/models/DatasetDetail.ts
36
- src/models/DatasetFile.ts
37
36
  src/models/DatasetViz.ts
37
+ src/models/ErrorMessage.ts
38
38
  src/models/Executor.ts
39
+ src/models/FileEntry.ts
39
40
  src/models/FileNamePattern.ts
40
41
  src/models/FileRequirements.ts
41
42
  src/models/FormSchema.ts
@@ -52,9 +53,9 @@ src/models/OpenNotebookInstanceResponse.ts
52
53
  src/models/PaginatedResponseDatasetListDto.ts
53
54
  src/models/PaginatedResponseSampleDto.ts
54
55
  src/models/PipelineCode.ts
56
+ src/models/PortalErrorResponse.ts
55
57
  src/models/Process.ts
56
58
  src/models/ProcessDetail.ts
57
- src/models/ProcessDetailAllOfPipelineCode.ts
58
59
  src/models/Project.ts
59
60
  src/models/ProjectDetail.ts
60
61
  src/models/ProjectMetrics.ts
@@ -74,6 +75,7 @@ src/models/SetUserProjectRoleRequest.ts
74
75
  src/models/SftpCredentials.ts
75
76
  src/models/Status.ts
76
77
  src/models/StopExecutionResponse.ts
78
+ src/models/SyncStatus.ts
77
79
  src/models/SystemInfoResponse.ts
78
80
  src/models/Tag.ts
79
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.29-alpha --save
39
+ npm install @cirrobio/api-client@0.0.31-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -42,10 +42,10 @@ export declare class ReferencesApi extends runtime.BaseAPI {
42
42
  * List available references for a given project
43
43
  * Get project references
44
44
  */
45
- getReferencesForProjectRaw(requestParameters: GetReferencesForProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Reference>>;
45
+ getReferencesForProjectRaw(requestParameters: GetReferencesForProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Reference>>>;
46
46
  /**
47
47
  * List available references for a given project
48
48
  * Get project references
49
49
  */
50
- getReferencesForProject(requestParameters: GetReferencesForProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Reference>;
50
+ getReferencesForProject(requestParameters: GetReferencesForProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Reference>>;
51
51
  }
@@ -211,7 +211,7 @@ var ReferencesApi = /** @class */ (function (_super) {
211
211
  }, initOverrides)];
212
212
  case 3:
213
213
  response = _a.sent();
214
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ReferenceFromJSON)(jsonValue); })];
214
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ReferenceFromJSON); })];
215
215
  }
216
216
  });
217
217
  });
@@ -9,8 +9,9 @@
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
  */
@@ -34,19 +35,19 @@ export interface CustomPipelineSettings {
34
35
  */
35
36
  folder?: string;
36
37
  /**
37
- *
38
+ * Time of last sync
38
39
  * @type {Date}
39
40
  * @memberof CustomPipelineSettings
40
41
  */
41
42
  lastSync?: Date | null;
42
43
  /**
43
44
  *
44
- * @type {string}
45
+ * @type {SyncStatus}
45
46
  * @memberof CustomPipelineSettings
46
47
  */
47
- syncStatus?: string | null;
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
  */
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CustomPipelineSettingsToJSON = exports.CustomPipelineSettingsFromJSONTyped = exports.CustomPipelineSettingsFromJSON = exports.instanceOfCustomPipelineSettings = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var SyncStatus_1 = require("./SyncStatus");
18
19
  /**
19
20
  * Check if a given object implements the CustomPipelineSettings interface.
20
21
  */
@@ -37,7 +38,7 @@ function CustomPipelineSettingsFromJSONTyped(json, ignoreDiscriminator) {
37
38
  'branch': !(0, runtime_1.exists)(json, 'branch') ? undefined : json['branch'],
38
39
  'folder': !(0, runtime_1.exists)(json, 'folder') ? undefined : json['folder'],
39
40
  'lastSync': !(0, runtime_1.exists)(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
40
- 'syncStatus': !(0, runtime_1.exists)(json, 'syncStatus') ? undefined : json['syncStatus'],
41
+ 'syncStatus': !(0, runtime_1.exists)(json, 'syncStatus') ? undefined : (0, SyncStatus_1.SyncStatusFromJSON)(json['syncStatus']),
41
42
  'commitHash': !(0, runtime_1.exists)(json, 'commitHash') ? undefined : json['commitHash'],
42
43
  };
43
44
  }
@@ -54,7 +55,7 @@ function CustomPipelineSettingsToJSON(value) {
54
55
  'branch': value.branch,
55
56
  'folder': value.folder,
56
57
  'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
57
- 'syncStatus': value.syncStatus,
58
+ 'syncStatus': (0, SyncStatus_1.SyncStatusToJSON)(value.syncStatus),
58
59
  'commitHash': value.commitHash,
59
60
  };
60
61
  }
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { DatasetFile } from './DatasetFile';
13
12
  import type { DatasetViz } from './DatasetViz';
13
+ import type { FileEntry } from './FileEntry';
14
14
  /**
15
15
  *
16
16
  * @export
@@ -25,10 +25,10 @@ export interface DatasetAssetsManifest {
25
25
  domain?: string;
26
26
  /**
27
27
  * List of files in the dataset, including metadata
28
- * @type {Array<DatasetFile>}
28
+ * @type {Array<FileEntry>}
29
29
  * @memberof DatasetAssetsManifest
30
30
  */
31
- files?: Array<DatasetFile>;
31
+ files?: Array<FileEntry>;
32
32
  /**
33
33
  * List of viz to render for the dataset
34
34
  * @type {Array<DatasetViz>}
@@ -15,8 +15,8 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DatasetAssetsManifestToJSON = exports.DatasetAssetsManifestFromJSONTyped = exports.DatasetAssetsManifestFromJSON = exports.instanceOfDatasetAssetsManifest = void 0;
17
17
  var runtime_1 = require("../runtime");
18
- var DatasetFile_1 = require("./DatasetFile");
19
18
  var DatasetViz_1 = require("./DatasetViz");
19
+ var FileEntry_1 = require("./FileEntry");
20
20
  /**
21
21
  * Check if a given object implements the DatasetAssetsManifest interface.
22
22
  */
@@ -35,7 +35,7 @@ function DatasetAssetsManifestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'domain': !(0, runtime_1.exists)(json, 'domain') ? undefined : json['domain'],
38
- 'files': !(0, runtime_1.exists)(json, 'files') ? undefined : (json['files'].map(DatasetFile_1.DatasetFileFromJSON)),
38
+ 'files': !(0, runtime_1.exists)(json, 'files') ? undefined : (json['files'].map(FileEntry_1.FileEntryFromJSON)),
39
39
  'viz': !(0, runtime_1.exists)(json, 'viz') ? undefined : (json['viz'].map(DatasetViz_1.DatasetVizFromJSON)),
40
40
  };
41
41
  }
@@ -49,7 +49,7 @@ function DatasetAssetsManifestToJSON(value) {
49
49
  }
50
50
  return {
51
51
  'domain': value.domain,
52
- 'files': value.files === undefined ? undefined : (value.files.map(DatasetFile_1.DatasetFileToJSON)),
52
+ 'files': value.files === undefined ? undefined : (value.files.map(FileEntry_1.FileEntryToJSON)),
53
53
  'viz': value.viz === undefined ? undefined : (value.viz.map(DatasetViz_1.DatasetVizToJSON)),
54
54
  };
55
55
  }
@@ -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;
@@ -0,0 +1,45 @@
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 FileEntry
16
+ */
17
+ export interface FileEntry {
18
+ /**
19
+ * Relative path to file
20
+ * @type {string}
21
+ * @memberof FileEntry
22
+ */
23
+ path?: string;
24
+ /**
25
+ * File size (in bytes)
26
+ * @type {number}
27
+ * @memberof FileEntry
28
+ */
29
+ size?: number;
30
+ /**
31
+ * Metadata associated with the file
32
+ * @type {{ [key: string]: string; }}
33
+ * @memberof FileEntry
34
+ */
35
+ metadata?: {
36
+ [key: string]: string;
37
+ };
38
+ }
39
+ /**
40
+ * Check if a given object implements the FileEntry interface.
41
+ */
42
+ export declare function instanceOfFileEntry(value: object): boolean;
43
+ export declare function FileEntryFromJSON(json: any): FileEntry;
44
+ export declare function FileEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileEntry;
45
+ export declare function FileEntryToJSON(value?: FileEntry | null): any;
@@ -0,0 +1,54 @@
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.FileEntryToJSON = exports.FileEntryFromJSONTyped = exports.FileEntryFromJSON = exports.instanceOfFileEntry = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the FileEntry interface.
20
+ */
21
+ function instanceOfFileEntry(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfFileEntry = instanceOfFileEntry;
26
+ function FileEntryFromJSON(json) {
27
+ return FileEntryFromJSONTyped(json, false);
28
+ }
29
+ exports.FileEntryFromJSON = FileEntryFromJSON;
30
+ function FileEntryFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
36
+ 'size': !(0, runtime_1.exists)(json, 'size') ? undefined : json['size'],
37
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
38
+ };
39
+ }
40
+ exports.FileEntryFromJSONTyped = FileEntryFromJSONTyped;
41
+ function FileEntryToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'path': value.path,
50
+ 'size': value.size,
51
+ 'metadata': value.metadata,
52
+ };
53
+ }
54
+ exports.FileEntryToJSON = FileEntryToJSON;
@@ -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,7 +27,7 @@ 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}
@@ -39,7 +39,7 @@ export interface PipelineCode {
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.
@@ -22,6 +22,8 @@ var RepositoryType_1 = require("./RepositoryType");
22
22
  function instanceOfPipelineCode(value) {
23
23
  var isInstance = true;
24
24
  isInstance = isInstance && "repositoryPath" in value;
25
+ isInstance = isInstance && "version" 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'],
40
+ 'version': json['version'],
39
41
  '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'],
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;
@@ -33,7 +33,7 @@ export interface Process {
33
33
  * @type {string}
34
34
  * @memberof Process
35
35
  */
36
- description: string;
36
+ description?: string;
37
37
  /**
38
38
  *
39
39
  * @type {Executor}
@@ -51,7 +51,7 @@ export interface Process {
51
51
  * @type {string}
52
52
  * @memberof Process
53
53
  */
54
- fileRequirementsMessage?: string | null;
54
+ fileRequirementsMessage?: string;
55
55
  /**
56
56
  * IDs of pipelines that can be ran downstream
57
57
  * @type {Array<string>}
@@ -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
  */
@@ -22,7 +22,6 @@ var Executor_1 = require("./Executor");
22
22
  function instanceOfProcess(value) {
23
23
  var isInstance = true;
24
24
  isInstance = isInstance && "id" in value;
25
- isInstance = isInstance && "description" in value;
26
25
  return isInstance;
27
26
  }
28
27
  exports.instanceOfProcess = instanceOfProcess;
@@ -37,7 +36,7 @@ function ProcessFromJSONTyped(json, ignoreDiscriminator) {
37
36
  return {
38
37
  'id': json['id'],
39
38
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
40
- 'description': json['description'],
39
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
41
40
  'executor': !(0, runtime_1.exists)(json, 'executor') ? undefined : (0, Executor_1.ExecutorFromJSON)(json['executor']),
42
41
  'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
43
42
  'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { CustomPipelineSettings } from './CustomPipelineSettings';
13
13
  import type { Executor } from './Executor';
14
- import type { ProcessDetailAllOfPipelineCode } from './ProcessDetailAllOfPipelineCode';
14
+ import type { PipelineCode } from './PipelineCode';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -47,13 +47,13 @@ export interface ProcessDetail {
47
47
  * @type {string}
48
48
  * @memberof ProcessDetail
49
49
  */
50
- documentationUrl: string;
50
+ documentationUrl?: string | null;
51
51
  /**
52
52
  *
53
53
  * @type {string}
54
54
  * @memberof ProcessDetail
55
55
  */
56
- fileRequirementsMessage: string;
56
+ fileRequirementsMessage?: string | null;
57
57
  /**
58
58
  *
59
59
  * @type {Array<string>}
@@ -71,7 +71,7 @@ export interface ProcessDetail {
71
71
  * @type {string}
72
72
  * @memberof ProcessDetail
73
73
  */
74
- owner: string;
74
+ owner?: string;
75
75
  /**
76
76
  *
77
77
  * @type {Array<string>}
@@ -80,10 +80,10 @@ export interface ProcessDetail {
80
80
  linkedProjectIds: Array<string>;
81
81
  /**
82
82
  *
83
- * @type {ProcessDetailAllOfPipelineCode}
83
+ * @type {PipelineCode}
84
84
  * @memberof ProcessDetail
85
85
  */
86
- pipelineCode: ProcessDetailAllOfPipelineCode;
86
+ pipelineCode?: PipelineCode | null;
87
87
  /**
88
88
  *
89
89
  * @type {CustomPipelineSettings}
@@ -91,11 +91,11 @@ export interface ProcessDetail {
91
91
  */
92
92
  customSettings: CustomPipelineSettings;
93
93
  /**
94
- *
94
+ * Whether the process is marked for removal
95
95
  * @type {boolean}
96
96
  * @memberof ProcessDetail
97
97
  */
98
- isArchived: boolean;
98
+ isArchived?: boolean;
99
99
  }
100
100
  /**
101
101
  * Check if a given object implements the ProcessDetail interface.