@cirrobio/api-client 0.0.28-alpha → 0.0.29-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 +1 -3
- package/README.md +1 -1
- package/dist/apis/ProcessesApi.d.ts +5 -5
- package/dist/apis/ProcessesApi.js +7 -7
- package/dist/models/CustomPipelineSettings.d.ts +8 -8
- package/dist/models/CustomPipelineSettings.js +7 -11
- package/dist/models/Executor.d.ts +1 -1
- package/dist/models/Executor.js +1 -1
- package/dist/models/Process.d.ts +3 -3
- package/dist/models/Process.js +2 -1
- package/dist/models/ProcessDetail.d.ts +9 -2
- package/dist/models/ProcessDetail.js +6 -2
- package/dist/models/ProcessDetailAllOfPipelineCode.d.ts +50 -0
- package/dist/models/ProcessDetailAllOfPipelineCode.js +58 -0
- package/dist/models/index.d.ts +1 -3
- package/dist/models/index.js +1 -3
- package/package.json +1 -1
- package/src/apis/ProcessesApi.ts +14 -17
- package/src/models/CustomPipelineSettings.ts +14 -19
- package/src/models/Executor.ts +1 -1
- package/src/models/Process.ts +5 -4
- package/src/models/ProcessDetail.ts +19 -3
- package/src/models/{CustomProcessRequestPipelineCode.ts → ProcessDetailAllOfPipelineCode.ts} +12 -12
- package/src/models/index.ts +1 -3
- package/src/models/CreateDashboardRequest.ts +0 -65
- package/src/models/CustomPipelineSettingsDto1.ts +0 -111
- package/src/models/CustomProcessRequest.ts +0 -175
- package/src/models/DatasetType.ts +0 -37
- package/src/models/Region.ts +0 -65
- package/src/models/RegisterDatasetRequest.ts +0 -92
- package/src/models/RegisterPublicDataRequest.ts +0 -83
|
@@ -20,41 +20,41 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface CustomPipelineSettings {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* GitHub repository that contains the process definition
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CustomPipelineSettings
|
|
26
26
|
*/
|
|
27
27
|
repository: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Branch, tag, or commit hash of the repo that contains the process definition
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CustomPipelineSettings
|
|
32
32
|
*/
|
|
33
|
-
branch
|
|
33
|
+
branch?: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Folder within the repo that contains the process definition
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof CustomPipelineSettings
|
|
38
38
|
*/
|
|
39
|
-
folder
|
|
39
|
+
folder?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {Date}
|
|
43
43
|
* @memberof CustomPipelineSettings
|
|
44
44
|
*/
|
|
45
|
-
lastSync
|
|
45
|
+
lastSync?: Date | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof CustomPipelineSettings
|
|
50
50
|
*/
|
|
51
|
-
syncStatus
|
|
51
|
+
syncStatus?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof CustomPipelineSettings
|
|
56
56
|
*/
|
|
57
|
-
commitHash
|
|
57
|
+
commitHash?: string | null;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -63,11 +63,6 @@ export interface CustomPipelineSettings {
|
|
|
63
63
|
export function instanceOfCustomPipelineSettings(value: object): boolean {
|
|
64
64
|
let isInstance = true;
|
|
65
65
|
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
66
|
|
|
72
67
|
return isInstance;
|
|
73
68
|
}
|
|
@@ -83,11 +78,11 @@ export function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
83
78
|
return {
|
|
84
79
|
|
|
85
80
|
'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'],
|
|
81
|
+
'branch': !exists(json, 'branch') ? undefined : json['branch'],
|
|
82
|
+
'folder': !exists(json, 'folder') ? undefined : json['folder'],
|
|
83
|
+
'lastSync': !exists(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
|
|
84
|
+
'syncStatus': !exists(json, 'syncStatus') ? undefined : json['syncStatus'],
|
|
85
|
+
'commitHash': !exists(json, 'commitHash') ? undefined : json['commitHash'],
|
|
91
86
|
};
|
|
92
87
|
}
|
|
93
88
|
|
|
@@ -103,7 +98,7 @@ export function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | nu
|
|
|
103
98
|
'repository': value.repository,
|
|
104
99
|
'branch': value.branch,
|
|
105
100
|
'folder': value.folder,
|
|
106
|
-
'lastSync': (value.lastSync.toISOString()),
|
|
101
|
+
'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
|
|
107
102
|
'syncStatus': value.syncStatus,
|
|
108
103
|
'commitHash': value.commitHash,
|
|
109
104
|
};
|
package/src/models/Executor.ts
CHANGED
package/src/models/Process.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface Process {
|
|
|
33
33
|
*/
|
|
34
34
|
id: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Friendly name for the process
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof Process
|
|
39
39
|
*/
|
|
@@ -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 | null;
|
|
65
65
|
/**
|
|
66
66
|
* IDs of pipelines that can be ran downstream
|
|
67
67
|
* @type {Array<string>}
|
|
@@ -94,6 +94,7 @@ 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;
|
|
97
98
|
|
|
98
99
|
return isInstance;
|
|
99
100
|
}
|
|
@@ -110,7 +111,7 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
110
111
|
|
|
111
112
|
'id': json['id'],
|
|
112
113
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
113
|
-
'description':
|
|
114
|
+
'description': json['description'],
|
|
114
115
|
'executor': !exists(json, 'executor') ? undefined : ExecutorFromJSON(json['executor']),
|
|
115
116
|
'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
116
117
|
'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
ExecutorFromJSONTyped,
|
|
26
26
|
ExecutorToJSON,
|
|
27
27
|
} from './Executor';
|
|
28
|
+
import type { ProcessDetailAllOfPipelineCode } from './ProcessDetailAllOfPipelineCode';
|
|
29
|
+
import {
|
|
30
|
+
ProcessDetailAllOfPipelineCodeFromJSON,
|
|
31
|
+
ProcessDetailAllOfPipelineCodeFromJSONTyped,
|
|
32
|
+
ProcessDetailAllOfPipelineCodeToJSON,
|
|
33
|
+
} from './ProcessDetailAllOfPipelineCode';
|
|
28
34
|
|
|
29
35
|
/**
|
|
30
36
|
*
|
|
@@ -63,11 +69,11 @@ export interface ProcessDetail {
|
|
|
63
69
|
*/
|
|
64
70
|
documentationUrl: string;
|
|
65
71
|
/**
|
|
66
|
-
*
|
|
72
|
+
*
|
|
67
73
|
* @type {string}
|
|
68
74
|
* @memberof ProcessDetail
|
|
69
75
|
*/
|
|
70
|
-
fileRequirementsMessage
|
|
76
|
+
fileRequirementsMessage: string;
|
|
71
77
|
/**
|
|
72
78
|
*
|
|
73
79
|
* @type {Array<string>}
|
|
@@ -92,6 +98,12 @@ export interface ProcessDetail {
|
|
|
92
98
|
* @memberof ProcessDetail
|
|
93
99
|
*/
|
|
94
100
|
linkedProjectIds: Array<string>;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {ProcessDetailAllOfPipelineCode}
|
|
104
|
+
* @memberof ProcessDetail
|
|
105
|
+
*/
|
|
106
|
+
pipelineCode: ProcessDetailAllOfPipelineCode;
|
|
95
107
|
/**
|
|
96
108
|
*
|
|
97
109
|
* @type {CustomPipelineSettings}
|
|
@@ -116,10 +128,12 @@ export function instanceOfProcessDetail(value: object): boolean {
|
|
|
116
128
|
isInstance = isInstance && "description" in value;
|
|
117
129
|
isInstance = isInstance && "executor" in value;
|
|
118
130
|
isInstance = isInstance && "documentationUrl" in value;
|
|
131
|
+
isInstance = isInstance && "fileRequirementsMessage" in value;
|
|
119
132
|
isInstance = isInstance && "childProcessIds" in value;
|
|
120
133
|
isInstance = isInstance && "parentProcessIds" in value;
|
|
121
134
|
isInstance = isInstance && "owner" in value;
|
|
122
135
|
isInstance = isInstance && "linkedProjectIds" in value;
|
|
136
|
+
isInstance = isInstance && "pipelineCode" in value;
|
|
123
137
|
isInstance = isInstance && "customSettings" in value;
|
|
124
138
|
isInstance = isInstance && "isArchived" in value;
|
|
125
139
|
|
|
@@ -141,11 +155,12 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
141
155
|
'description': json['description'],
|
|
142
156
|
'executor': ExecutorFromJSON(json['executor']),
|
|
143
157
|
'documentationUrl': json['documentationUrl'],
|
|
144
|
-
'fileRequirementsMessage':
|
|
158
|
+
'fileRequirementsMessage': json['fileRequirementsMessage'],
|
|
145
159
|
'childProcessIds': json['childProcessIds'],
|
|
146
160
|
'parentProcessIds': json['parentProcessIds'],
|
|
147
161
|
'owner': json['owner'],
|
|
148
162
|
'linkedProjectIds': json['linkedProjectIds'],
|
|
163
|
+
'pipelineCode': ProcessDetailAllOfPipelineCodeFromJSON(json['pipelineCode']),
|
|
149
164
|
'customSettings': CustomPipelineSettingsFromJSON(json['customSettings']),
|
|
150
165
|
'isArchived': json['isArchived'],
|
|
151
166
|
};
|
|
@@ -170,6 +185,7 @@ export function ProcessDetailToJSON(value?: ProcessDetail | null): any {
|
|
|
170
185
|
'parentProcessIds': value.parentProcessIds,
|
|
171
186
|
'owner': value.owner,
|
|
172
187
|
'linkedProjectIds': value.linkedProjectIds,
|
|
188
|
+
'pipelineCode': ProcessDetailAllOfPipelineCodeToJSON(value.pipelineCode),
|
|
173
189
|
'customSettings': CustomPipelineSettingsToJSON(value.customSettings),
|
|
174
190
|
'isArchived': value.isArchived,
|
|
175
191
|
};
|
package/src/models/{CustomProcessRequestPipelineCode.ts → ProcessDetailAllOfPipelineCode.ts}
RENAMED
|
@@ -23,50 +23,50 @@ import {
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @export
|
|
26
|
-
* @interface
|
|
26
|
+
* @interface ProcessDetailAllOfPipelineCode
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface ProcessDetailAllOfPipelineCode {
|
|
29
29
|
/**
|
|
30
30
|
* GitHub repository which contains the workflow code
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof ProcessDetailAllOfPipelineCode
|
|
33
33
|
*/
|
|
34
34
|
repositoryPath: string;
|
|
35
35
|
/**
|
|
36
36
|
* Branch, tag, or commit hash of the pipeline code
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof ProcessDetailAllOfPipelineCode
|
|
39
39
|
*/
|
|
40
40
|
version?: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {RepositoryType}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof ProcessDetailAllOfPipelineCode
|
|
45
45
|
*/
|
|
46
46
|
repositoryType?: RepositoryType;
|
|
47
47
|
/**
|
|
48
48
|
* Main script for running the pipeline
|
|
49
49
|
* @type {string}
|
|
50
|
-
* @memberof
|
|
50
|
+
* @memberof ProcessDetailAllOfPipelineCode
|
|
51
51
|
*/
|
|
52
52
|
entryPoint?: string;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Check if a given object implements the
|
|
56
|
+
* Check if a given object implements the ProcessDetailAllOfPipelineCode interface.
|
|
57
57
|
*/
|
|
58
|
-
export function
|
|
58
|
+
export function instanceOfProcessDetailAllOfPipelineCode(value: object): boolean {
|
|
59
59
|
let isInstance = true;
|
|
60
60
|
isInstance = isInstance && "repositoryPath" in value;
|
|
61
61
|
|
|
62
62
|
return isInstance;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export function
|
|
66
|
-
return
|
|
65
|
+
export function ProcessDetailAllOfPipelineCodeFromJSON(json: any): ProcessDetailAllOfPipelineCode {
|
|
66
|
+
return ProcessDetailAllOfPipelineCodeFromJSONTyped(json, false);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export function
|
|
69
|
+
export function ProcessDetailAllOfPipelineCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDetailAllOfPipelineCode {
|
|
70
70
|
if ((json === undefined) || (json === null)) {
|
|
71
71
|
return json;
|
|
72
72
|
}
|
|
@@ -79,7 +79,7 @@ export function CustomProcessRequestPipelineCodeFromJSONTyped(json: any, ignoreD
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
export function
|
|
82
|
+
export function ProcessDetailAllOfPipelineCodeToJSON(value?: ProcessDetailAllOfPipelineCode | null): any {
|
|
83
83
|
if (value === undefined) {
|
|
84
84
|
return undefined;
|
|
85
85
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -10,9 +10,6 @@ export * from './Contact';
|
|
|
10
10
|
export * from './CreateNotebookInstanceRequest';
|
|
11
11
|
export * from './CreateResponse';
|
|
12
12
|
export * from './CustomPipelineSettings';
|
|
13
|
-
export * from './CustomPipelineSettingsDto1';
|
|
14
|
-
export * from './CustomProcessRequest';
|
|
15
|
-
export * from './CustomProcessRequestPipelineCode';
|
|
16
13
|
export * from './CustomerType';
|
|
17
14
|
export * from './Dashboard';
|
|
18
15
|
export * from './DashboardRequest';
|
|
@@ -40,6 +37,7 @@ export * from './PaginatedResponseSampleDto';
|
|
|
40
37
|
export * from './PipelineCode';
|
|
41
38
|
export * from './Process';
|
|
42
39
|
export * from './ProcessDetail';
|
|
40
|
+
export * from './ProcessDetailAllOfPipelineCode';
|
|
43
41
|
export * from './Project';
|
|
44
42
|
export * from './ProjectDetail';
|
|
45
43
|
export * from './ProjectMetrics';
|
|
@@ -1,65 +0,0 @@
|
|
|
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 CreateDashboardRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface CreateDashboardRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {object}
|
|
25
|
-
* @memberof CreateDashboardRequest
|
|
26
|
-
*/
|
|
27
|
-
dashboardRequest?: object;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the CreateDashboardRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfCreateDashboardRequest(value: object): boolean {
|
|
34
|
-
let isInstance = true;
|
|
35
|
-
|
|
36
|
-
return isInstance;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function CreateDashboardRequestFromJSON(json: any): CreateDashboardRequest {
|
|
40
|
-
return CreateDashboardRequestFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function CreateDashboardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDashboardRequest {
|
|
44
|
-
if ((json === undefined) || (json === null)) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
|
|
49
|
-
'dashboardRequest': !exists(json, 'dashboardRequest') ? undefined : json['dashboardRequest'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function CreateDashboardRequestToJSON(value?: CreateDashboardRequest | null): any {
|
|
54
|
-
if (value === undefined) {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
if (value === null) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'dashboardRequest': value.dashboardRequest,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
@@ -1,111 +0,0 @@
|
|
|
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 CustomPipelineSettingsDto1
|
|
20
|
-
*/
|
|
21
|
-
export interface CustomPipelineSettingsDto1 {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CustomPipelineSettingsDto1
|
|
26
|
-
*/
|
|
27
|
-
repository: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof CustomPipelineSettingsDto1
|
|
32
|
-
*/
|
|
33
|
-
branch: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CustomPipelineSettingsDto1
|
|
38
|
-
*/
|
|
39
|
-
folder: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Date}
|
|
43
|
-
* @memberof CustomPipelineSettingsDto1
|
|
44
|
-
*/
|
|
45
|
-
lastSync: Date;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof CustomPipelineSettingsDto1
|
|
50
|
-
*/
|
|
51
|
-
syncStatus: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof CustomPipelineSettingsDto1
|
|
56
|
-
*/
|
|
57
|
-
commitHash: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Check if a given object implements the CustomPipelineSettingsDto1 interface.
|
|
62
|
-
*/
|
|
63
|
-
export function instanceOfCustomPipelineSettingsDto1(value: object): boolean {
|
|
64
|
-
let isInstance = true;
|
|
65
|
-
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
|
-
|
|
72
|
-
return isInstance;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function CustomPipelineSettingsDto1FromJSON(json: any): CustomPipelineSettingsDto1 {
|
|
76
|
-
return CustomPipelineSettingsDto1FromJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function CustomPipelineSettingsDto1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomPipelineSettingsDto1 {
|
|
80
|
-
if ((json === undefined) || (json === null)) {
|
|
81
|
-
return json;
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
|
|
85
|
-
'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'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function CustomPipelineSettingsDto1ToJSON(value?: CustomPipelineSettingsDto1 | null): any {
|
|
95
|
-
if (value === undefined) {
|
|
96
|
-
return undefined;
|
|
97
|
-
}
|
|
98
|
-
if (value === null) {
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
return {
|
|
102
|
-
|
|
103
|
-
'repository': value.repository,
|
|
104
|
-
'branch': value.branch,
|
|
105
|
-
'folder': value.folder,
|
|
106
|
-
'lastSync': (value.lastSync.toISOString()),
|
|
107
|
-
'syncStatus': value.syncStatus,
|
|
108
|
-
'commitHash': value.commitHash,
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
@@ -1,175 +0,0 @@
|
|
|
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 { CustomProcessRequestPipelineCode } from './CustomProcessRequestPipelineCode';
|
|
17
|
-
import {
|
|
18
|
-
CustomProcessRequestPipelineCodeFromJSON,
|
|
19
|
-
CustomProcessRequestPipelineCodeFromJSONTyped,
|
|
20
|
-
CustomProcessRequestPipelineCodeToJSON,
|
|
21
|
-
} from './CustomProcessRequestPipelineCode';
|
|
22
|
-
import type { Executor } from './Executor';
|
|
23
|
-
import {
|
|
24
|
-
ExecutorFromJSON,
|
|
25
|
-
ExecutorFromJSONTyped,
|
|
26
|
-
ExecutorToJSON,
|
|
27
|
-
} from './Executor';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @interface CustomProcessRequest
|
|
33
|
-
*/
|
|
34
|
-
export interface CustomProcessRequest {
|
|
35
|
-
/**
|
|
36
|
-
* Unique ID for the process
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof CustomProcessRequest
|
|
39
|
-
*/
|
|
40
|
-
processId?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Friendly name for the process
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof CustomProcessRequest
|
|
45
|
-
*/
|
|
46
|
-
name?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Describes the analysis performed by the process
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof CustomProcessRequest
|
|
51
|
-
*/
|
|
52
|
-
description: string;
|
|
53
|
-
/**
|
|
54
|
-
* Link to pipeline documentation
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof CustomProcessRequest
|
|
57
|
-
*/
|
|
58
|
-
documentationUrl?: string;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {Executor}
|
|
62
|
-
* @memberof CustomProcessRequest
|
|
63
|
-
*/
|
|
64
|
-
executor: Executor;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {CustomProcessRequestPipelineCode}
|
|
68
|
-
* @memberof CustomProcessRequest
|
|
69
|
-
*/
|
|
70
|
-
pipelineCode: CustomProcessRequestPipelineCode;
|
|
71
|
-
/**
|
|
72
|
-
* Downstream pipeline IDs, the pipelines which can be run off of the outputs to this pipeline
|
|
73
|
-
* @type {Array<string>}
|
|
74
|
-
* @memberof CustomProcessRequest
|
|
75
|
-
*/
|
|
76
|
-
childProcessIds: Array<string>;
|
|
77
|
-
/**
|
|
78
|
-
* Upstream process IDs, these processes provide the type of input data required for this pipeline
|
|
79
|
-
* @type {Array<string>}
|
|
80
|
-
* @memberof CustomProcessRequest
|
|
81
|
-
*/
|
|
82
|
-
parentProcessIds: Array<string>;
|
|
83
|
-
/**
|
|
84
|
-
* Projects that this process is linked to
|
|
85
|
-
* @type {Array<string>}
|
|
86
|
-
* @memberof CustomProcessRequest
|
|
87
|
-
*/
|
|
88
|
-
projectIds: Array<string>;
|
|
89
|
-
/**
|
|
90
|
-
* GitHub repository that contains the process definition
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof CustomProcessRequest
|
|
93
|
-
*/
|
|
94
|
-
definitionRepository: string;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof CustomProcessRequest
|
|
99
|
-
*/
|
|
100
|
-
definitionBranch: string;
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof CustomProcessRequest
|
|
105
|
-
*/
|
|
106
|
-
definitionFolder: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Check if a given object implements the CustomProcessRequest interface.
|
|
111
|
-
*/
|
|
112
|
-
export function instanceOfCustomProcessRequest(value: object): boolean {
|
|
113
|
-
let isInstance = true;
|
|
114
|
-
isInstance = isInstance && "description" in value;
|
|
115
|
-
isInstance = isInstance && "executor" in value;
|
|
116
|
-
isInstance = isInstance && "pipelineCode" in value;
|
|
117
|
-
isInstance = isInstance && "childProcessIds" in value;
|
|
118
|
-
isInstance = isInstance && "parentProcessIds" in value;
|
|
119
|
-
isInstance = isInstance && "projectIds" in value;
|
|
120
|
-
isInstance = isInstance && "definitionRepository" in value;
|
|
121
|
-
isInstance = isInstance && "definitionBranch" in value;
|
|
122
|
-
isInstance = isInstance && "definitionFolder" in value;
|
|
123
|
-
|
|
124
|
-
return isInstance;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export function CustomProcessRequestFromJSON(json: any): CustomProcessRequest {
|
|
128
|
-
return CustomProcessRequestFromJSONTyped(json, false);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export function CustomProcessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomProcessRequest {
|
|
132
|
-
if ((json === undefined) || (json === null)) {
|
|
133
|
-
return json;
|
|
134
|
-
}
|
|
135
|
-
return {
|
|
136
|
-
|
|
137
|
-
'processId': !exists(json, 'processId') ? undefined : json['processId'],
|
|
138
|
-
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
139
|
-
'description': json['description'],
|
|
140
|
-
'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
141
|
-
'executor': ExecutorFromJSON(json['executor']),
|
|
142
|
-
'pipelineCode': CustomProcessRequestPipelineCodeFromJSON(json['pipelineCode']),
|
|
143
|
-
'childProcessIds': json['childProcessIds'],
|
|
144
|
-
'parentProcessIds': json['parentProcessIds'],
|
|
145
|
-
'projectIds': json['projectIds'],
|
|
146
|
-
'definitionRepository': json['definitionRepository'],
|
|
147
|
-
'definitionBranch': json['definitionBranch'],
|
|
148
|
-
'definitionFolder': json['definitionFolder'],
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export function CustomProcessRequestToJSON(value?: CustomProcessRequest | null): any {
|
|
153
|
-
if (value === undefined) {
|
|
154
|
-
return undefined;
|
|
155
|
-
}
|
|
156
|
-
if (value === null) {
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
return {
|
|
160
|
-
|
|
161
|
-
'processId': value.processId,
|
|
162
|
-
'name': value.name,
|
|
163
|
-
'description': value.description,
|
|
164
|
-
'documentationUrl': value.documentationUrl,
|
|
165
|
-
'executor': ExecutorToJSON(value.executor),
|
|
166
|
-
'pipelineCode': CustomProcessRequestPipelineCodeToJSON(value.pipelineCode),
|
|
167
|
-
'childProcessIds': value.childProcessIds,
|
|
168
|
-
'parentProcessIds': value.parentProcessIds,
|
|
169
|
-
'projectIds': value.projectIds,
|
|
170
|
-
'definitionRepository': value.definitionRepository,
|
|
171
|
-
'definitionBranch': value.definitionBranch,
|
|
172
|
-
'definitionFolder': value.definitionFolder,
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
|