@cirrobio/api-client 0.0.27-alpha → 0.0.28-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/README.md +1 -1
- package/dist/apis/ProcessesApi.d.ts +54 -1
- package/dist/apis/ProcessesApi.js +223 -0
- package/dist/models/CustomPipelineSettingsDto1.d.ts +61 -0
- package/dist/models/CustomPipelineSettingsDto1.js +65 -0
- package/dist/models/CustomProcessRequest.d.ts +99 -0
- package/dist/models/CustomProcessRequest.js +83 -0
- package/dist/models/CustomProcessRequestPipelineCode.d.ts +50 -0
- package/dist/models/CustomProcessRequestPipelineCode.js +58 -0
- package/dist/models/FileNamePattern.d.ts +0 -6
- package/dist/models/FileNamePattern.js +0 -3
- package/dist/models/GenerateSftpCredentialsRequest.d.ts +2 -2
- package/dist/models/GenerateSftpCredentialsRequest.js +2 -2
- package/dist/models/PipelineCode.d.ts +50 -0
- package/dist/models/PipelineCode.js +58 -0
- package/dist/models/ProcessDetail.d.ts +1 -1
- package/dist/models/RepositoryType.d.ts +25 -0
- package/dist/models/RepositoryType.js +40 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/ProcessesApi.ts +194 -0
- package/src/models/CustomPipelineSettingsDto1.ts +111 -0
- package/src/models/CustomProcessRequest.ts +175 -0
- package/src/models/CustomProcessRequestPipelineCode.ts +97 -0
- package/src/models/FileNamePattern.ts +0 -9
- package/src/models/GenerateSftpCredentialsRequest.ts +3 -4
- package/src/models/PipelineCode.ts +97 -0
- package/src/models/ProcessDetail.ts +1 -1
- package/src/models/RepositoryType.ts +39 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { RepositoryType } from './RepositoryType';
|
|
17
|
+
import {
|
|
18
|
+
RepositoryTypeFromJSON,
|
|
19
|
+
RepositoryTypeFromJSONTyped,
|
|
20
|
+
RepositoryTypeToJSON,
|
|
21
|
+
} from './RepositoryType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CustomProcessRequestPipelineCode
|
|
27
|
+
*/
|
|
28
|
+
export interface CustomProcessRequestPipelineCode {
|
|
29
|
+
/**
|
|
30
|
+
* GitHub repository which contains the workflow code
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CustomProcessRequestPipelineCode
|
|
33
|
+
*/
|
|
34
|
+
repositoryPath: string;
|
|
35
|
+
/**
|
|
36
|
+
* Branch, tag, or commit hash of the pipeline code
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CustomProcessRequestPipelineCode
|
|
39
|
+
*/
|
|
40
|
+
version?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {RepositoryType}
|
|
44
|
+
* @memberof CustomProcessRequestPipelineCode
|
|
45
|
+
*/
|
|
46
|
+
repositoryType?: RepositoryType;
|
|
47
|
+
/**
|
|
48
|
+
* Main script for running the pipeline
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CustomProcessRequestPipelineCode
|
|
51
|
+
*/
|
|
52
|
+
entryPoint?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the CustomProcessRequestPipelineCode interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfCustomProcessRequestPipelineCode(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
isInstance = isInstance && "repositoryPath" in value;
|
|
61
|
+
|
|
62
|
+
return isInstance;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CustomProcessRequestPipelineCodeFromJSON(json: any): CustomProcessRequestPipelineCode {
|
|
66
|
+
return CustomProcessRequestPipelineCodeFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function CustomProcessRequestPipelineCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomProcessRequestPipelineCode {
|
|
70
|
+
if ((json === undefined) || (json === null)) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'repositoryPath': json['repositoryPath'],
|
|
76
|
+
'version': !exists(json, 'version') ? undefined : json['version'],
|
|
77
|
+
'repositoryType': !exists(json, 'repositoryType') ? undefined : RepositoryTypeFromJSON(json['repositoryType']),
|
|
78
|
+
'entryPoint': !exists(json, 'entryPoint') ? undefined : json['entryPoint'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function CustomProcessRequestPipelineCodeToJSON(value?: CustomProcessRequestPipelineCode | null): any {
|
|
83
|
+
if (value === undefined) {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
if (value === null) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'repositoryPath': value.repositoryPath,
|
|
92
|
+
'version': value.version,
|
|
93
|
+
'repositoryType': RepositoryTypeToJSON(value.repositoryType),
|
|
94
|
+
'entryPoint': value.entryPoint,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -31,12 +31,6 @@ export interface FileNamePattern {
|
|
|
31
31
|
* @memberof FileNamePattern
|
|
32
32
|
*/
|
|
33
33
|
description: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof FileNamePattern
|
|
38
|
-
*/
|
|
39
|
-
sampleMatchingPattern: string;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
/**
|
|
@@ -46,7 +40,6 @@ export function instanceOfFileNamePattern(value: object): boolean {
|
|
|
46
40
|
let isInstance = true;
|
|
47
41
|
isInstance = isInstance && "exampleName" in value;
|
|
48
42
|
isInstance = isInstance && "description" in value;
|
|
49
|
-
isInstance = isInstance && "sampleMatchingPattern" in value;
|
|
50
43
|
|
|
51
44
|
return isInstance;
|
|
52
45
|
}
|
|
@@ -63,7 +56,6 @@ export function FileNamePatternFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
63
56
|
|
|
64
57
|
'exampleName': json['exampleName'],
|
|
65
58
|
'description': json['description'],
|
|
66
|
-
'sampleMatchingPattern': json['sampleMatchingPattern'],
|
|
67
59
|
};
|
|
68
60
|
}
|
|
69
61
|
|
|
@@ -78,7 +70,6 @@ export function FileNamePatternToJSON(value?: FileNamePattern | null): any {
|
|
|
78
70
|
|
|
79
71
|
'exampleName': value.exampleName,
|
|
80
72
|
'description': value.description,
|
|
81
|
-
'sampleMatchingPattern': value.sampleMatchingPattern,
|
|
82
73
|
};
|
|
83
74
|
}
|
|
84
75
|
|
|
@@ -20,11 +20,11 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface GenerateSftpCredentialsRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Number of days the credentials are valid for
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof GenerateSftpCredentialsRequest
|
|
26
26
|
*/
|
|
27
|
-
lifetimeDays
|
|
27
|
+
lifetimeDays?: number;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -32,7 +32,6 @@ export interface GenerateSftpCredentialsRequest {
|
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfGenerateSftpCredentialsRequest(value: object): boolean {
|
|
34
34
|
let isInstance = true;
|
|
35
|
-
isInstance = isInstance && "lifetimeDays" in value;
|
|
36
35
|
|
|
37
36
|
return isInstance;
|
|
38
37
|
}
|
|
@@ -47,7 +46,7 @@ export function GenerateSftpCredentialsRequestFromJSONTyped(json: any, ignoreDis
|
|
|
47
46
|
}
|
|
48
47
|
return {
|
|
49
48
|
|
|
50
|
-
'lifetimeDays': json['lifetimeDays'],
|
|
49
|
+
'lifetimeDays': !exists(json, 'lifetimeDays') ? undefined : json['lifetimeDays'],
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
52
|
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { RepositoryType } from './RepositoryType';
|
|
17
|
+
import {
|
|
18
|
+
RepositoryTypeFromJSON,
|
|
19
|
+
RepositoryTypeFromJSONTyped,
|
|
20
|
+
RepositoryTypeToJSON,
|
|
21
|
+
} from './RepositoryType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Used to describe the pipeline analysis code
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PipelineCode
|
|
27
|
+
*/
|
|
28
|
+
export interface PipelineCode {
|
|
29
|
+
/**
|
|
30
|
+
* GitHub repository which contains the workflow code
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PipelineCode
|
|
33
|
+
*/
|
|
34
|
+
repositoryPath: string;
|
|
35
|
+
/**
|
|
36
|
+
* Branch, tag, or commit hash of the pipeline code
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PipelineCode
|
|
39
|
+
*/
|
|
40
|
+
version?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {RepositoryType}
|
|
44
|
+
* @memberof PipelineCode
|
|
45
|
+
*/
|
|
46
|
+
repositoryType?: RepositoryType;
|
|
47
|
+
/**
|
|
48
|
+
* Main script for running the pipeline
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof PipelineCode
|
|
51
|
+
*/
|
|
52
|
+
entryPoint?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the PipelineCode interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfPipelineCode(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
isInstance = isInstance && "repositoryPath" in value;
|
|
61
|
+
|
|
62
|
+
return isInstance;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PipelineCodeFromJSON(json: any): PipelineCode {
|
|
66
|
+
return PipelineCodeFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PipelineCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineCode {
|
|
70
|
+
if ((json === undefined) || (json === null)) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'repositoryPath': json['repositoryPath'],
|
|
76
|
+
'version': !exists(json, 'version') ? undefined : json['version'],
|
|
77
|
+
'repositoryType': !exists(json, 'repositoryType') ? undefined : RepositoryTypeFromJSON(json['repositoryType']),
|
|
78
|
+
'entryPoint': !exists(json, 'entryPoint') ? undefined : json['entryPoint'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function PipelineCodeToJSON(value?: PipelineCode | null): any {
|
|
83
|
+
if (value === undefined) {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
if (value === null) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'repositoryPath': value.repositoryPath,
|
|
92
|
+
'version': value.version,
|
|
93
|
+
'repositoryType': RepositoryTypeToJSON(value.repositoryType),
|
|
94
|
+
'entryPoint': value.entryPoint,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* Type of repository
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum RepositoryType {
|
|
21
|
+
None = 'NONE',
|
|
22
|
+
Aws = 'AWS',
|
|
23
|
+
GithubPublic = 'GITHUB_PUBLIC',
|
|
24
|
+
GithubPrivate = 'GITHUB_PRIVATE'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function RepositoryTypeFromJSON(json: any): RepositoryType {
|
|
29
|
+
return RepositoryTypeFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function RepositoryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepositoryType {
|
|
33
|
+
return json as RepositoryType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function RepositoryTypeToJSON(value?: RepositoryType | null): any {
|
|
37
|
+
return value as any;
|
|
38
|
+
}
|
|
39
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -10,6 +10,9 @@ 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';
|
|
13
16
|
export * from './CustomerType';
|
|
14
17
|
export * from './Dashboard';
|
|
15
18
|
export * from './DashboardRequest';
|
|
@@ -34,6 +37,7 @@ export * from './NotebookInstanceStatusResponse';
|
|
|
34
37
|
export * from './OpenNotebookInstanceResponse';
|
|
35
38
|
export * from './PaginatedResponseDatasetListDto';
|
|
36
39
|
export * from './PaginatedResponseSampleDto';
|
|
40
|
+
export * from './PipelineCode';
|
|
37
41
|
export * from './Process';
|
|
38
42
|
export * from './ProcessDetail';
|
|
39
43
|
export * from './Project';
|
|
@@ -45,6 +49,7 @@ export * from './ProjectSettings';
|
|
|
45
49
|
export * from './ProjectUser';
|
|
46
50
|
export * from './Reference';
|
|
47
51
|
export * from './ReferenceType';
|
|
52
|
+
export * from './RepositoryType';
|
|
48
53
|
export * from './RunAnalysisRequest';
|
|
49
54
|
export * from './S3Credentials';
|
|
50
55
|
export * from './Sample';
|