@cirrobio/api-client 0.0.29-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.
- package/.openapi-generator/FILES +3 -1
- package/README.md +1 -1
- package/dist/models/CustomPipelineSettings.d.ts +6 -5
- package/dist/models/CustomPipelineSettings.js +3 -2
- package/dist/models/ErrorMessage.d.ts +31 -0
- package/dist/models/ErrorMessage.js +50 -0
- package/dist/models/PipelineCode.d.ts +4 -4
- package/dist/models/PipelineCode.js +6 -4
- package/dist/models/PortalErrorResponse.d.ts +50 -0
- package/dist/models/PortalErrorResponse.js +60 -0
- package/dist/models/Process.d.ts +3 -3
- package/dist/models/Process.js +1 -2
- package/dist/models/ProcessDetail.d.ts +8 -8
- package/dist/models/ProcessDetail.js +8 -12
- package/dist/models/ProjectRequest.d.ts +2 -2
- package/dist/models/ProjectRequest.js +4 -5
- package/dist/models/SyncStatus.d.ts +23 -0
- package/dist/models/SyncStatus.js +38 -0
- package/dist/models/ValidateFileRequirementsRequest.d.ts +4 -4
- package/dist/models/ValidateFileRequirementsRequest.js +3 -3
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/apis/ProcessesApi.ts +6 -0
- package/src/models/CustomPipelineSettings.ts +14 -7
- package/src/models/ErrorMessage.ts +66 -0
- package/src/models/PipelineCode.ts +10 -7
- package/src/models/PortalErrorResponse.ts +100 -0
- package/src/models/Process.ts +4 -5
- package/src/models/ProcessDetail.ts +18 -23
- package/src/models/ProjectRequest.ts +5 -7
- package/src/models/SyncStatus.ts +37 -0
- package/src/models/ValidateFileRequirementsRequest.ts +7 -7
- package/src/models/index.ts +3 -1
- package/src/models/ProcessDetailAllOfPipelineCode.ts +0 -97
|
@@ -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;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './DatasetAssetsManifest';
|
|
|
16
16
|
export * from './DatasetDetail';
|
|
17
17
|
export * from './DatasetFile';
|
|
18
18
|
export * from './DatasetViz';
|
|
19
|
+
export * from './ErrorMessage';
|
|
19
20
|
export * from './Executor';
|
|
20
21
|
export * from './FileNamePattern';
|
|
21
22
|
export * from './FileRequirements';
|
|
@@ -33,9 +34,9 @@ export * from './OpenNotebookInstanceResponse';
|
|
|
33
34
|
export * from './PaginatedResponseDatasetListDto';
|
|
34
35
|
export * from './PaginatedResponseSampleDto';
|
|
35
36
|
export * from './PipelineCode';
|
|
37
|
+
export * from './PortalErrorResponse';
|
|
36
38
|
export * from './Process';
|
|
37
39
|
export * from './ProcessDetail';
|
|
38
|
-
export * from './ProcessDetailAllOfPipelineCode';
|
|
39
40
|
export * from './Project';
|
|
40
41
|
export * from './ProjectDetail';
|
|
41
42
|
export * from './ProjectMetrics';
|
|
@@ -55,6 +56,7 @@ export * from './SetUserProjectRoleRequest';
|
|
|
55
56
|
export * from './SftpCredentials';
|
|
56
57
|
export * from './Status';
|
|
57
58
|
export * from './StopExecutionResponse';
|
|
59
|
+
export * from './SyncStatus';
|
|
58
60
|
export * from './SystemInfoResponse';
|
|
59
61
|
export * from './Tag';
|
|
60
62
|
export * from './Task';
|
package/dist/models/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./DatasetAssetsManifest"), exports);
|
|
|
34
34
|
__exportStar(require("./DatasetDetail"), exports);
|
|
35
35
|
__exportStar(require("./DatasetFile"), exports);
|
|
36
36
|
__exportStar(require("./DatasetViz"), exports);
|
|
37
|
+
__exportStar(require("./ErrorMessage"), exports);
|
|
37
38
|
__exportStar(require("./Executor"), exports);
|
|
38
39
|
__exportStar(require("./FileNamePattern"), exports);
|
|
39
40
|
__exportStar(require("./FileRequirements"), exports);
|
|
@@ -51,9 +52,9 @@ __exportStar(require("./OpenNotebookInstanceResponse"), exports);
|
|
|
51
52
|
__exportStar(require("./PaginatedResponseDatasetListDto"), exports);
|
|
52
53
|
__exportStar(require("./PaginatedResponseSampleDto"), exports);
|
|
53
54
|
__exportStar(require("./PipelineCode"), exports);
|
|
55
|
+
__exportStar(require("./PortalErrorResponse"), exports);
|
|
54
56
|
__exportStar(require("./Process"), exports);
|
|
55
57
|
__exportStar(require("./ProcessDetail"), exports);
|
|
56
|
-
__exportStar(require("./ProcessDetailAllOfPipelineCode"), exports);
|
|
57
58
|
__exportStar(require("./Project"), exports);
|
|
58
59
|
__exportStar(require("./ProjectDetail"), exports);
|
|
59
60
|
__exportStar(require("./ProjectMetrics"), exports);
|
|
@@ -73,6 +74,7 @@ __exportStar(require("./SetUserProjectRoleRequest"), exports);
|
|
|
73
74
|
__exportStar(require("./SftpCredentials"), exports);
|
|
74
75
|
__exportStar(require("./Status"), exports);
|
|
75
76
|
__exportStar(require("./StopExecutionResponse"), exports);
|
|
77
|
+
__exportStar(require("./SyncStatus"), exports);
|
|
76
78
|
__exportStar(require("./SystemInfoResponse"), exports);
|
|
77
79
|
__exportStar(require("./Tag"), exports);
|
|
78
80
|
__exportStar(require("./Task"), exports);
|
package/package.json
CHANGED
package/src/apis/ProcessesApi.ts
CHANGED
|
@@ -17,8 +17,10 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
CreateResponse,
|
|
19
19
|
CustomPipelineSettings,
|
|
20
|
+
ErrorMessage,
|
|
20
21
|
FileRequirements,
|
|
21
22
|
FormSchema,
|
|
23
|
+
PortalErrorResponse,
|
|
22
24
|
Process,
|
|
23
25
|
ProcessDetail,
|
|
24
26
|
ValidateFileRequirementsRequest,
|
|
@@ -28,10 +30,14 @@ import {
|
|
|
28
30
|
CreateResponseToJSON,
|
|
29
31
|
CustomPipelineSettingsFromJSON,
|
|
30
32
|
CustomPipelineSettingsToJSON,
|
|
33
|
+
ErrorMessageFromJSON,
|
|
34
|
+
ErrorMessageToJSON,
|
|
31
35
|
FileRequirementsFromJSON,
|
|
32
36
|
FileRequirementsToJSON,
|
|
33
37
|
FormSchemaFromJSON,
|
|
34
38
|
FormSchemaToJSON,
|
|
39
|
+
PortalErrorResponseFromJSON,
|
|
40
|
+
PortalErrorResponseToJSON,
|
|
35
41
|
ProcessFromJSON,
|
|
36
42
|
ProcessToJSON,
|
|
37
43
|
ProcessDetailFromJSON,
|
|
@@ -13,8 +13,15 @@
|
|
|
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
|
*/
|
|
@@ -38,19 +45,19 @@ export interface CustomPipelineSettings {
|
|
|
38
45
|
*/
|
|
39
46
|
folder?: string;
|
|
40
47
|
/**
|
|
41
|
-
*
|
|
48
|
+
* Time of last sync
|
|
42
49
|
* @type {Date}
|
|
43
50
|
* @memberof CustomPipelineSettings
|
|
44
51
|
*/
|
|
45
52
|
lastSync?: Date | null;
|
|
46
53
|
/**
|
|
47
54
|
*
|
|
48
|
-
* @type {
|
|
55
|
+
* @type {SyncStatus}
|
|
49
56
|
* @memberof CustomPipelineSettings
|
|
50
57
|
*/
|
|
51
|
-
syncStatus?:
|
|
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
|
*/
|
|
@@ -81,7 +88,7 @@ export function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
81
88
|
'branch': !exists(json, 'branch') ? undefined : json['branch'],
|
|
82
89
|
'folder': !exists(json, 'folder') ? undefined : json['folder'],
|
|
83
90
|
'lastSync': !exists(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
|
|
84
|
-
'syncStatus': !exists(json, 'syncStatus') ? undefined : json['syncStatus'],
|
|
91
|
+
'syncStatus': !exists(json, 'syncStatus') ? undefined : SyncStatusFromJSON(json['syncStatus']),
|
|
85
92
|
'commitHash': !exists(json, 'commitHash') ? undefined : json['commitHash'],
|
|
86
93
|
};
|
|
87
94
|
}
|
|
@@ -99,7 +106,7 @@ export function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | nu
|
|
|
99
106
|
'branch': value.branch,
|
|
100
107
|
'folder': value.folder,
|
|
101
108
|
'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
|
|
102
|
-
'syncStatus': value.syncStatus,
|
|
109
|
+
'syncStatus': SyncStatusToJSON(value.syncStatus),
|
|
103
110
|
'commitHash': value.commitHash,
|
|
104
111
|
};
|
|
105
112
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cirro Data
|
|
5
|
+
* Cirro Data Platform service API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
* Contact: support@cirro.bio
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ErrorMessage
|
|
20
|
+
*/
|
|
21
|
+
export interface ErrorMessage {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ErrorMessage
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ErrorMessage interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfErrorMessage(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "message" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ErrorMessageFromJSON(json: any): ErrorMessage {
|
|
41
|
+
return ErrorMessageFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ErrorMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorMessage {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'message': json['message'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ErrorMessageToJSON(value?: ErrorMessage | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value.message,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from './RepositoryType';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Used to describe the pipeline analysis code
|
|
24
|
+
* Used to describe the pipeline analysis code, not required for ingest processes
|
|
25
25
|
* @export
|
|
26
26
|
* @interface PipelineCode
|
|
27
27
|
*/
|
|
@@ -37,19 +37,19 @@ export interface PipelineCode {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof PipelineCode
|
|
39
39
|
*/
|
|
40
|
-
version
|
|
40
|
+
version: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {RepositoryType}
|
|
44
44
|
* @memberof PipelineCode
|
|
45
45
|
*/
|
|
46
|
-
repositoryType
|
|
46
|
+
repositoryType: RepositoryType;
|
|
47
47
|
/**
|
|
48
48
|
* Main script for running the pipeline
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof PipelineCode
|
|
51
51
|
*/
|
|
52
|
-
entryPoint
|
|
52
|
+
entryPoint: string;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -58,6 +58,9 @@ export interface PipelineCode {
|
|
|
58
58
|
export function instanceOfPipelineCode(value: object): boolean {
|
|
59
59
|
let isInstance = true;
|
|
60
60
|
isInstance = isInstance && "repositoryPath" in value;
|
|
61
|
+
isInstance = isInstance && "version" in value;
|
|
62
|
+
isInstance = isInstance && "repositoryType" in value;
|
|
63
|
+
isInstance = isInstance && "entryPoint" in value;
|
|
61
64
|
|
|
62
65
|
return isInstance;
|
|
63
66
|
}
|
|
@@ -73,9 +76,9 @@ export function PipelineCodeFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
73
76
|
return {
|
|
74
77
|
|
|
75
78
|
'repositoryPath': json['repositoryPath'],
|
|
76
|
-
'version':
|
|
77
|
-
'repositoryType':
|
|
78
|
-
'entryPoint':
|
|
79
|
+
'version': json['version'],
|
|
80
|
+
'repositoryType': RepositoryTypeFromJSON(json['repositoryType']),
|
|
81
|
+
'entryPoint': json['entryPoint'],
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cirro Data
|
|
5
|
+
* Cirro Data Platform service API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
* Contact: support@cirro.bio
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ErrorMessage } from './ErrorMessage';
|
|
17
|
+
import {
|
|
18
|
+
ErrorMessageFromJSON,
|
|
19
|
+
ErrorMessageFromJSONTyped,
|
|
20
|
+
ErrorMessageToJSON,
|
|
21
|
+
} from './ErrorMessage';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PortalErrorResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface PortalErrorResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof PortalErrorResponse
|
|
33
|
+
*/
|
|
34
|
+
statusCode: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PortalErrorResponse
|
|
39
|
+
*/
|
|
40
|
+
errorCode: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PortalErrorResponse
|
|
45
|
+
*/
|
|
46
|
+
errorDetail: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<ErrorMessage>}
|
|
50
|
+
* @memberof PortalErrorResponse
|
|
51
|
+
*/
|
|
52
|
+
errors: Array<ErrorMessage>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the PortalErrorResponse interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfPortalErrorResponse(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
isInstance = isInstance && "statusCode" in value;
|
|
61
|
+
isInstance = isInstance && "errorCode" in value;
|
|
62
|
+
isInstance = isInstance && "errorDetail" in value;
|
|
63
|
+
isInstance = isInstance && "errors" in value;
|
|
64
|
+
|
|
65
|
+
return isInstance;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PortalErrorResponseFromJSON(json: any): PortalErrorResponse {
|
|
69
|
+
return PortalErrorResponseFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PortalErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalErrorResponse {
|
|
73
|
+
if ((json === undefined) || (json === null)) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'statusCode': json['statusCode'],
|
|
79
|
+
'errorCode': json['errorCode'],
|
|
80
|
+
'errorDetail': json['errorDetail'],
|
|
81
|
+
'errors': ((json['errors'] as Array<any>).map(ErrorMessageFromJSON)),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function PortalErrorResponseToJSON(value?: PortalErrorResponse | null): any {
|
|
86
|
+
if (value === undefined) {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
if (value === null) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'statusCode': value.statusCode,
|
|
95
|
+
'errorCode': value.errorCode,
|
|
96
|
+
'errorDetail': value.errorDetail,
|
|
97
|
+
'errors': ((value.errors as Array<any>).map(ErrorMessageToJSON)),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/src/models/Process.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface Process {
|
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof Process
|
|
45
45
|
*/
|
|
46
|
-
description
|
|
46
|
+
description?: string;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {Executor}
|
|
@@ -61,7 +61,7 @@ export interface Process {
|
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof Process
|
|
63
63
|
*/
|
|
64
|
-
fileRequirementsMessage?: string
|
|
64
|
+
fileRequirementsMessage?: string;
|
|
65
65
|
/**
|
|
66
66
|
* IDs of pipelines that can be ran downstream
|
|
67
67
|
* @type {Array<string>}
|
|
@@ -69,7 +69,7 @@ export interface Process {
|
|
|
69
69
|
*/
|
|
70
70
|
childProcessIds?: Array<string>;
|
|
71
71
|
/**
|
|
72
|
-
* IDs of pipelines that can
|
|
72
|
+
* IDs of pipelines that can run this pipeline
|
|
73
73
|
* @type {Array<string>}
|
|
74
74
|
* @memberof Process
|
|
75
75
|
*/
|
|
@@ -94,7 +94,6 @@ export interface Process {
|
|
|
94
94
|
export function instanceOfProcess(value: object): boolean {
|
|
95
95
|
let isInstance = true;
|
|
96
96
|
isInstance = isInstance && "id" in value;
|
|
97
|
-
isInstance = isInstance && "description" in value;
|
|
98
97
|
|
|
99
98
|
return isInstance;
|
|
100
99
|
}
|
|
@@ -111,7 +110,7 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
111
110
|
|
|
112
111
|
'id': json['id'],
|
|
113
112
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
114
|
-
'description': json['description'],
|
|
113
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
115
114
|
'executor': !exists(json, 'executor') ? undefined : ExecutorFromJSON(json['executor']),
|
|
116
115
|
'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
117
116
|
'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
ExecutorFromJSONTyped,
|
|
26
26
|
ExecutorToJSON,
|
|
27
27
|
} from './Executor';
|
|
28
|
-
import type {
|
|
28
|
+
import type { PipelineCode } from './PipelineCode';
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} from './
|
|
30
|
+
PipelineCodeFromJSON,
|
|
31
|
+
PipelineCodeFromJSONTyped,
|
|
32
|
+
PipelineCodeToJSON,
|
|
33
|
+
} from './PipelineCode';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
@@ -67,13 +67,13 @@ export interface ProcessDetail {
|
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof ProcessDetail
|
|
69
69
|
*/
|
|
70
|
-
documentationUrl
|
|
70
|
+
documentationUrl?: string | null;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
74
74
|
* @memberof ProcessDetail
|
|
75
75
|
*/
|
|
76
|
-
fileRequirementsMessage
|
|
76
|
+
fileRequirementsMessage?: string | null;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @type {Array<string>}
|
|
@@ -91,7 +91,7 @@ export interface ProcessDetail {
|
|
|
91
91
|
* @type {string}
|
|
92
92
|
* @memberof ProcessDetail
|
|
93
93
|
*/
|
|
94
|
-
owner
|
|
94
|
+
owner?: string;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {Array<string>}
|
|
@@ -100,10 +100,10 @@ export interface ProcessDetail {
|
|
|
100
100
|
linkedProjectIds: Array<string>;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
|
-
* @type {
|
|
103
|
+
* @type {PipelineCode}
|
|
104
104
|
* @memberof ProcessDetail
|
|
105
105
|
*/
|
|
106
|
-
pipelineCode
|
|
106
|
+
pipelineCode?: PipelineCode | null;
|
|
107
107
|
/**
|
|
108
108
|
*
|
|
109
109
|
* @type {CustomPipelineSettings}
|
|
@@ -111,11 +111,11 @@ export interface ProcessDetail {
|
|
|
111
111
|
*/
|
|
112
112
|
customSettings: CustomPipelineSettings;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Whether the process is marked for removal
|
|
115
115
|
* @type {boolean}
|
|
116
116
|
* @memberof ProcessDetail
|
|
117
117
|
*/
|
|
118
|
-
isArchived
|
|
118
|
+
isArchived?: boolean;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/**
|
|
@@ -127,15 +127,10 @@ export function instanceOfProcessDetail(value: object): boolean {
|
|
|
127
127
|
isInstance = isInstance && "name" in value;
|
|
128
128
|
isInstance = isInstance && "description" in value;
|
|
129
129
|
isInstance = isInstance && "executor" in value;
|
|
130
|
-
isInstance = isInstance && "documentationUrl" in value;
|
|
131
|
-
isInstance = isInstance && "fileRequirementsMessage" in value;
|
|
132
130
|
isInstance = isInstance && "childProcessIds" in value;
|
|
133
131
|
isInstance = isInstance && "parentProcessIds" in value;
|
|
134
|
-
isInstance = isInstance && "owner" in value;
|
|
135
132
|
isInstance = isInstance && "linkedProjectIds" in value;
|
|
136
|
-
isInstance = isInstance && "pipelineCode" in value;
|
|
137
133
|
isInstance = isInstance && "customSettings" in value;
|
|
138
|
-
isInstance = isInstance && "isArchived" in value;
|
|
139
134
|
|
|
140
135
|
return isInstance;
|
|
141
136
|
}
|
|
@@ -154,15 +149,15 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
154
149
|
'name': json['name'],
|
|
155
150
|
'description': json['description'],
|
|
156
151
|
'executor': ExecutorFromJSON(json['executor']),
|
|
157
|
-
'documentationUrl': json['documentationUrl'],
|
|
158
|
-
'fileRequirementsMessage': json['fileRequirementsMessage'],
|
|
152
|
+
'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
153
|
+
'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
|
|
159
154
|
'childProcessIds': json['childProcessIds'],
|
|
160
155
|
'parentProcessIds': json['parentProcessIds'],
|
|
161
|
-
'owner': json['owner'],
|
|
156
|
+
'owner': !exists(json, 'owner') ? undefined : json['owner'],
|
|
162
157
|
'linkedProjectIds': json['linkedProjectIds'],
|
|
163
|
-
'pipelineCode':
|
|
158
|
+
'pipelineCode': !exists(json, 'pipelineCode') ? undefined : PipelineCodeFromJSON(json['pipelineCode']),
|
|
164
159
|
'customSettings': CustomPipelineSettingsFromJSON(json['customSettings']),
|
|
165
|
-
'isArchived': json['isArchived'],
|
|
160
|
+
'isArchived': !exists(json, 'isArchived') ? undefined : json['isArchived'],
|
|
166
161
|
};
|
|
167
162
|
}
|
|
168
163
|
|
|
@@ -185,7 +180,7 @@ export function ProcessDetailToJSON(value?: ProcessDetail | null): any {
|
|
|
185
180
|
'parentProcessIds': value.parentProcessIds,
|
|
186
181
|
'owner': value.owner,
|
|
187
182
|
'linkedProjectIds': value.linkedProjectIds,
|
|
188
|
-
'pipelineCode':
|
|
183
|
+
'pipelineCode': PipelineCodeToJSON(value.pipelineCode),
|
|
189
184
|
'customSettings': CustomPipelineSettingsToJSON(value.customSettings),
|
|
190
185
|
'isArchived': value.isArchived,
|
|
191
186
|
};
|
|
@@ -79,13 +79,13 @@ export interface ProjectRequest {
|
|
|
79
79
|
* @type {CloudAccount}
|
|
80
80
|
* @memberof ProjectRequest
|
|
81
81
|
*/
|
|
82
|
-
account
|
|
82
|
+
account?: CloudAccount | null;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {Array<Tag>}
|
|
86
86
|
* @memberof ProjectRequest
|
|
87
87
|
*/
|
|
88
|
-
tags
|
|
88
|
+
tags?: Array<Tag> | null;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
@@ -98,8 +98,6 @@ export function instanceOfProjectRequest(value: object): boolean {
|
|
|
98
98
|
isInstance = isInstance && "billingAccountId" in value;
|
|
99
99
|
isInstance = isInstance && "settings" in value;
|
|
100
100
|
isInstance = isInstance && "contacts" in value;
|
|
101
|
-
isInstance = isInstance && "account" in value;
|
|
102
|
-
isInstance = isInstance && "tags" in value;
|
|
103
101
|
|
|
104
102
|
return isInstance;
|
|
105
103
|
}
|
|
@@ -119,8 +117,8 @@ export function ProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
119
117
|
'billingAccountId': json['billingAccountId'],
|
|
120
118
|
'settings': ProjectSettingsFromJSON(json['settings']),
|
|
121
119
|
'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
|
|
122
|
-
'account': CloudAccountFromJSON(json['account']),
|
|
123
|
-
'tags': (json['tags'] === null ? null : (json['tags'] as Array<any>).map(TagFromJSON)),
|
|
120
|
+
'account': !exists(json, 'account') ? undefined : CloudAccountFromJSON(json['account']),
|
|
121
|
+
'tags': !exists(json, 'tags') ? undefined : (json['tags'] === null ? null : (json['tags'] as Array<any>).map(TagFromJSON)),
|
|
124
122
|
};
|
|
125
123
|
}
|
|
126
124
|
|
|
@@ -139,7 +137,7 @@ export function ProjectRequestToJSON(value?: ProjectRequest | null): any {
|
|
|
139
137
|
'settings': ProjectSettingsToJSON(value.settings),
|
|
140
138
|
'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
|
|
141
139
|
'account': CloudAccountToJSON(value.account),
|
|
142
|
-
'tags': (value.tags === null ? null : (value.tags as Array<any>).map(TagToJSON)),
|
|
140
|
+
'tags': value.tags === undefined ? undefined : (value.tags === null ? null : (value.tags as Array<any>).map(TagToJSON)),
|
|
143
141
|
};
|
|
144
142
|
}
|
|
145
143
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cirro Data
|
|
5
|
+
* Cirro Data Platform service API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
* Contact: support@cirro.bio
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Status of last sync
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum SyncStatus {
|
|
21
|
+
Successful = 'SUCCESSFUL',
|
|
22
|
+
Failed = 'FAILED'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function SyncStatusFromJSON(json: any): SyncStatus {
|
|
27
|
+
return SyncStatusFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function SyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncStatus {
|
|
31
|
+
return json as SyncStatus;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function SyncStatusToJSON(value?: SyncStatus | null): any {
|
|
35
|
+
return value as any;
|
|
36
|
+
}
|
|
37
|
+
|