@cirrobio/api-client 0.12.20 → 0.12.22
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/README.md +1 -1
- package/dist/apis/WorkspacesApi.d.ts +15 -1
- package/dist/apis/WorkspacesApi.js +40 -0
- package/dist/esm/apis/WorkspacesApi.d.ts +15 -1
- package/dist/esm/apis/WorkspacesApi.js +41 -1
- package/dist/esm/models/CustomProcessInput.d.ts +7 -0
- package/dist/esm/models/CustomProcessInput.js +3 -0
- package/dist/esm/models/PipelineCode.d.ts +6 -0
- package/dist/esm/models/PipelineCode.js +3 -0
- package/dist/esm/models/Process.d.ts +7 -0
- package/dist/esm/models/Process.js +4 -0
- package/dist/esm/models/ProcessDetail.d.ts +7 -0
- package/dist/esm/models/ProcessDetail.js +4 -0
- package/dist/models/CustomProcessInput.d.ts +7 -0
- package/dist/models/CustomProcessInput.js +3 -0
- package/dist/models/PipelineCode.d.ts +6 -0
- package/dist/models/PipelineCode.js +3 -0
- package/dist/models/Process.d.ts +7 -0
- package/dist/models/Process.js +4 -0
- package/dist/models/ProcessDetail.d.ts +7 -0
- package/dist/models/ProcessDetail.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateResponse, PostponeWorkspaceAutostopInput, Workspace, WorkspaceConnectionResponse, WorkspaceEnvironment, WorkspaceInput } from '../models/index';
|
|
13
|
+
import type { CreateResponse, LogEntry, PostponeWorkspaceAutostopInput, Workspace, WorkspaceConnectionResponse, WorkspaceEnvironment, WorkspaceInput } from '../models/index';
|
|
14
14
|
export interface ConnectWorkspaceRequest {
|
|
15
15
|
projectId: string;
|
|
16
16
|
workspaceId: string;
|
|
@@ -32,6 +32,10 @@ export interface GetWorkspaceRequest {
|
|
|
32
32
|
projectId: string;
|
|
33
33
|
workspaceId: string;
|
|
34
34
|
}
|
|
35
|
+
export interface GetWorkspaceLogsRequest {
|
|
36
|
+
projectId: string;
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
}
|
|
35
39
|
export interface GetWorkspacesRequest {
|
|
36
40
|
projectId: string;
|
|
37
41
|
}
|
|
@@ -117,6 +121,16 @@ export declare class WorkspacesApi extends runtime.BaseAPI {
|
|
|
117
121
|
* Get workspace environments
|
|
118
122
|
*/
|
|
119
123
|
getWorkspaceEnvironments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkspaceEnvironment>>;
|
|
124
|
+
/**
|
|
125
|
+
* Retrieves logs from the main workspace container
|
|
126
|
+
* Get workspace logs
|
|
127
|
+
*/
|
|
128
|
+
getWorkspaceLogsRaw(requestParameters: GetWorkspaceLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LogEntry>>>;
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves logs from the main workspace container
|
|
131
|
+
* Get workspace logs
|
|
132
|
+
*/
|
|
133
|
+
getWorkspaceLogs(requestParameters: GetWorkspaceLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LogEntry>>;
|
|
120
134
|
/**
|
|
121
135
|
* Retrieves a list of workspaces that the user has access to
|
|
122
136
|
* Get workspaces
|
|
@@ -269,6 +269,46 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
269
269
|
return yield response.value();
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* Retrieves logs from the main workspace container
|
|
274
|
+
* Get workspace logs
|
|
275
|
+
*/
|
|
276
|
+
getWorkspaceLogsRaw(requestParameters, initOverrides) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
279
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getWorkspaceLogs.');
|
|
280
|
+
}
|
|
281
|
+
if (requestParameters.workspaceId === null || requestParameters.workspaceId === undefined) {
|
|
282
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter requestParameters.workspaceId was null or undefined when calling getWorkspaceLogs.');
|
|
283
|
+
}
|
|
284
|
+
const queryParameters = {};
|
|
285
|
+
const headerParameters = {};
|
|
286
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
287
|
+
const token = this.configuration.accessToken;
|
|
288
|
+
const tokenString = yield token("accessToken", []);
|
|
289
|
+
if (tokenString) {
|
|
290
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
const response = yield this.request({
|
|
294
|
+
path: `/projects/{projectId}/workspaces/{workspaceId}/logs`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters.workspaceId))),
|
|
295
|
+
method: 'GET',
|
|
296
|
+
headers: headerParameters,
|
|
297
|
+
query: queryParameters,
|
|
298
|
+
}, initOverrides);
|
|
299
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.LogEntryFromJSON));
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Retrieves logs from the main workspace container
|
|
304
|
+
* Get workspace logs
|
|
305
|
+
*/
|
|
306
|
+
getWorkspaceLogs(requestParameters, initOverrides) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
const response = yield this.getWorkspaceLogsRaw(requestParameters, initOverrides);
|
|
309
|
+
return yield response.value();
|
|
310
|
+
});
|
|
311
|
+
}
|
|
272
312
|
/**
|
|
273
313
|
* Retrieves a list of workspaces that the user has access to
|
|
274
314
|
* Get workspaces
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateResponse, PostponeWorkspaceAutostopInput, Workspace, WorkspaceConnectionResponse, WorkspaceEnvironment, WorkspaceInput } from '../models/index';
|
|
13
|
+
import type { CreateResponse, LogEntry, PostponeWorkspaceAutostopInput, Workspace, WorkspaceConnectionResponse, WorkspaceEnvironment, WorkspaceInput } from '../models/index';
|
|
14
14
|
export interface ConnectWorkspaceRequest {
|
|
15
15
|
projectId: string;
|
|
16
16
|
workspaceId: string;
|
|
@@ -32,6 +32,10 @@ export interface GetWorkspaceRequest {
|
|
|
32
32
|
projectId: string;
|
|
33
33
|
workspaceId: string;
|
|
34
34
|
}
|
|
35
|
+
export interface GetWorkspaceLogsRequest {
|
|
36
|
+
projectId: string;
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
}
|
|
35
39
|
export interface GetWorkspacesRequest {
|
|
36
40
|
projectId: string;
|
|
37
41
|
}
|
|
@@ -117,6 +121,16 @@ export declare class WorkspacesApi extends runtime.BaseAPI {
|
|
|
117
121
|
* Get workspace environments
|
|
118
122
|
*/
|
|
119
123
|
getWorkspaceEnvironments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkspaceEnvironment>>;
|
|
124
|
+
/**
|
|
125
|
+
* Retrieves logs from the main workspace container
|
|
126
|
+
* Get workspace logs
|
|
127
|
+
*/
|
|
128
|
+
getWorkspaceLogsRaw(requestParameters: GetWorkspaceLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LogEntry>>>;
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves logs from the main workspace container
|
|
131
|
+
* Get workspace logs
|
|
132
|
+
*/
|
|
133
|
+
getWorkspaceLogs(requestParameters: GetWorkspaceLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LogEntry>>;
|
|
120
134
|
/**
|
|
121
135
|
* Retrieves a list of workspaces that the user has access to
|
|
122
136
|
* Get workspaces
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CreateResponseFromJSON, PostponeWorkspaceAutostopInputToJSON, WorkspaceFromJSON, WorkspaceConnectionResponseFromJSON, WorkspaceEnvironmentFromJSON, WorkspaceInputToJSON, } from '../models/index';
|
|
24
|
+
import { CreateResponseFromJSON, LogEntryFromJSON, PostponeWorkspaceAutostopInputToJSON, WorkspaceFromJSON, WorkspaceConnectionResponseFromJSON, WorkspaceEnvironmentFromJSON, WorkspaceInputToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -266,6 +266,46 @@ export class WorkspacesApi extends runtime.BaseAPI {
|
|
|
266
266
|
return yield response.value();
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* Retrieves logs from the main workspace container
|
|
271
|
+
* Get workspace logs
|
|
272
|
+
*/
|
|
273
|
+
getWorkspaceLogsRaw(requestParameters, initOverrides) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
276
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getWorkspaceLogs.');
|
|
277
|
+
}
|
|
278
|
+
if (requestParameters.workspaceId === null || requestParameters.workspaceId === undefined) {
|
|
279
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter requestParameters.workspaceId was null or undefined when calling getWorkspaceLogs.');
|
|
280
|
+
}
|
|
281
|
+
const queryParameters = {};
|
|
282
|
+
const headerParameters = {};
|
|
283
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
284
|
+
const token = this.configuration.accessToken;
|
|
285
|
+
const tokenString = yield token("accessToken", []);
|
|
286
|
+
if (tokenString) {
|
|
287
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
const response = yield this.request({
|
|
291
|
+
path: `/projects/{projectId}/workspaces/{workspaceId}/logs`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters.workspaceId))),
|
|
292
|
+
method: 'GET',
|
|
293
|
+
headers: headerParameters,
|
|
294
|
+
query: queryParameters,
|
|
295
|
+
}, initOverrides);
|
|
296
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(LogEntryFromJSON));
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Retrieves logs from the main workspace container
|
|
301
|
+
* Get workspace logs
|
|
302
|
+
*/
|
|
303
|
+
getWorkspaceLogs(requestParameters, initOverrides) {
|
|
304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
const response = yield this.getWorkspaceLogsRaw(requestParameters, initOverrides);
|
|
306
|
+
return yield response.value();
|
|
307
|
+
});
|
|
308
|
+
}
|
|
269
309
|
/**
|
|
270
310
|
* Retrieves a list of workspaces that the user has access to
|
|
271
311
|
* Get workspaces
|
|
@@ -13,6 +13,7 @@ import type { CustomPipelineSettings } from './CustomPipelineSettings';
|
|
|
13
13
|
import type { Executor } from './Executor';
|
|
14
14
|
import type { FileMappingRule } from './FileMappingRule';
|
|
15
15
|
import type { PipelineCode } from './PipelineCode';
|
|
16
|
+
import type { Tag } from './Tag';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
@@ -121,6 +122,12 @@ export interface CustomProcessInput {
|
|
|
121
122
|
* @memberof CustomProcessInput
|
|
122
123
|
*/
|
|
123
124
|
fileMappingRules?: Array<FileMappingRule> | null;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {Array<Tag>}
|
|
128
|
+
* @memberof CustomProcessInput
|
|
129
|
+
*/
|
|
130
|
+
tags?: Array<Tag> | null;
|
|
124
131
|
}
|
|
125
132
|
/**
|
|
126
133
|
* Check if a given object implements the CustomProcessInput interface.
|
|
@@ -16,6 +16,7 @@ import { CustomPipelineSettingsFromJSON, CustomPipelineSettingsToJSON, } from '.
|
|
|
16
16
|
import { ExecutorFromJSON, ExecutorToJSON, } from './Executor';
|
|
17
17
|
import { FileMappingRuleFromJSON, FileMappingRuleToJSON, } from './FileMappingRule';
|
|
18
18
|
import { PipelineCodeFromJSON, PipelineCodeToJSON, } from './PipelineCode';
|
|
19
|
+
import { TagFromJSON, TagToJSON, } from './Tag';
|
|
19
20
|
/**
|
|
20
21
|
* Check if a given object implements the CustomProcessInput interface.
|
|
21
22
|
*/
|
|
@@ -55,6 +56,7 @@ export function CustomProcessInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
56
|
'usesSampleSheet': !exists(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
|
|
56
57
|
'customSettings': !exists(json, 'customSettings') ? undefined : CustomPipelineSettingsFromJSON(json['customSettings']),
|
|
57
58
|
'fileMappingRules': !exists(json, 'fileMappingRules') ? undefined : (json['fileMappingRules'] === null ? null : json['fileMappingRules'].map(FileMappingRuleFromJSON)),
|
|
59
|
+
'tags': !exists(json, 'tags') ? undefined : (json['tags'] === null ? null : json['tags'].map(TagFromJSON)),
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
export function CustomProcessInputToJSON(value) {
|
|
@@ -82,5 +84,6 @@ export function CustomProcessInputToJSON(value) {
|
|
|
82
84
|
'usesSampleSheet': value.usesSampleSheet,
|
|
83
85
|
'customSettings': CustomPipelineSettingsToJSON(value.customSettings),
|
|
84
86
|
'fileMappingRules': value.fileMappingRules === undefined ? undefined : (value.fileMappingRules === null ? null : value.fileMappingRules.map(FileMappingRuleToJSON)),
|
|
87
|
+
'tags': value.tags === undefined ? undefined : (value.tags === null ? null : value.tags.map(TagToJSON)),
|
|
85
88
|
};
|
|
86
89
|
}
|
|
@@ -40,6 +40,12 @@ export interface PipelineCode {
|
|
|
40
40
|
* @memberof PipelineCode
|
|
41
41
|
*/
|
|
42
42
|
entryPoint: string;
|
|
43
|
+
/**
|
|
44
|
+
* Version of the executor
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PipelineCode
|
|
47
|
+
*/
|
|
48
|
+
executorVersion?: string | null;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* Check if a given object implements the PipelineCode interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
14
15
|
import { RepositoryTypeFromJSON, RepositoryTypeToJSON, } from './RepositoryType';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the PipelineCode interface.
|
|
@@ -35,6 +36,7 @@ export function PipelineCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
'version': json['version'],
|
|
36
37
|
'repositoryType': RepositoryTypeFromJSON(json['repositoryType']),
|
|
37
38
|
'entryPoint': json['entryPoint'],
|
|
39
|
+
'executorVersion': !exists(json, 'executorVersion') ? undefined : json['executorVersion'],
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
export function PipelineCodeToJSON(value) {
|
|
@@ -49,5 +51,6 @@ export function PipelineCodeToJSON(value) {
|
|
|
49
51
|
'version': value.version,
|
|
50
52
|
'repositoryType': RepositoryTypeToJSON(value.repositoryType),
|
|
51
53
|
'entryPoint': value.entryPoint,
|
|
54
|
+
'executorVersion': value.executorVersion,
|
|
52
55
|
};
|
|
53
56
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Executor } from './Executor';
|
|
13
|
+
import type { Tag } from './Tag';
|
|
13
14
|
/**
|
|
14
15
|
* Identifies a data type or pipeline in Cirro
|
|
15
16
|
* @export
|
|
@@ -130,6 +131,12 @@ export interface Process {
|
|
|
130
131
|
* @memberof Process
|
|
131
132
|
*/
|
|
132
133
|
updatedAt?: Date;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {Array<Tag>}
|
|
137
|
+
* @memberof Process
|
|
138
|
+
*/
|
|
139
|
+
tags: Array<Tag>;
|
|
133
140
|
}
|
|
134
141
|
/**
|
|
135
142
|
* Check if a given object implements the Process interface.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { ExecutorFromJSON, ExecutorToJSON, } from './Executor';
|
|
16
|
+
import { TagFromJSON, TagToJSON, } from './Tag';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the Process interface.
|
|
18
19
|
*/
|
|
@@ -30,6 +31,7 @@ export function instanceOfProcess(value) {
|
|
|
30
31
|
isInstance = isInstance && "allowMultipleSources" in value;
|
|
31
32
|
isInstance = isInstance && "usesSampleSheet" in value;
|
|
32
33
|
isInstance = isInstance && "isArchived" in value;
|
|
34
|
+
isInstance = isInstance && "tags" in value;
|
|
33
35
|
return isInstance;
|
|
34
36
|
}
|
|
35
37
|
export function ProcessFromJSON(json) {
|
|
@@ -59,6 +61,7 @@ export function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'isArchived': json['isArchived'],
|
|
60
62
|
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
61
63
|
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
64
|
+
'tags': (json['tags'].map(TagFromJSON)),
|
|
62
65
|
};
|
|
63
66
|
}
|
|
64
67
|
export function ProcessToJSON(value) {
|
|
@@ -88,5 +91,6 @@ export function ProcessToJSON(value) {
|
|
|
88
91
|
'isArchived': value.isArchived,
|
|
89
92
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
90
93
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
94
|
+
'tags': (value.tags.map(TagToJSON)),
|
|
91
95
|
};
|
|
92
96
|
}
|
|
@@ -13,6 +13,7 @@ import type { CustomPipelineSettings } from './CustomPipelineSettings';
|
|
|
13
13
|
import type { Executor } from './Executor';
|
|
14
14
|
import type { FileMappingRule } from './FileMappingRule';
|
|
15
15
|
import type { PipelineCode } from './PipelineCode';
|
|
16
|
+
import type { Tag } from './Tag';
|
|
16
17
|
/**
|
|
17
18
|
* Identifies a data type or pipeline in Cirro
|
|
18
19
|
* @export
|
|
@@ -151,6 +152,12 @@ export interface ProcessDetail {
|
|
|
151
152
|
* @memberof ProcessDetail
|
|
152
153
|
*/
|
|
153
154
|
updatedAt?: Date;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @type {Array<Tag>}
|
|
158
|
+
* @memberof ProcessDetail
|
|
159
|
+
*/
|
|
160
|
+
tags: Array<Tag>;
|
|
154
161
|
}
|
|
155
162
|
/**
|
|
156
163
|
* Check if a given object implements the ProcessDetail interface.
|
|
@@ -16,6 +16,7 @@ import { CustomPipelineSettingsFromJSON, CustomPipelineSettingsToJSON, } from '.
|
|
|
16
16
|
import { ExecutorFromJSON, ExecutorToJSON, } from './Executor';
|
|
17
17
|
import { FileMappingRuleFromJSON, FileMappingRuleToJSON, } from './FileMappingRule';
|
|
18
18
|
import { PipelineCodeFromJSON, PipelineCodeToJSON, } from './PipelineCode';
|
|
19
|
+
import { TagFromJSON, TagToJSON, } from './Tag';
|
|
19
20
|
/**
|
|
20
21
|
* Check if a given object implements the ProcessDetail interface.
|
|
21
22
|
*/
|
|
@@ -33,6 +34,7 @@ export function instanceOfProcessDetail(value) {
|
|
|
33
34
|
isInstance = isInstance && "allowMultipleSources" in value;
|
|
34
35
|
isInstance = isInstance && "usesSampleSheet" in value;
|
|
35
36
|
isInstance = isInstance && "isArchived" in value;
|
|
37
|
+
isInstance = isInstance && "tags" in value;
|
|
36
38
|
return isInstance;
|
|
37
39
|
}
|
|
38
40
|
export function ProcessDetailFromJSON(json) {
|
|
@@ -65,6 +67,7 @@ export function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
67
|
'fileMappingRules': !exists(json, 'fileMappingRules') ? undefined : (json['fileMappingRules'] === null ? null : json['fileMappingRules'].map(FileMappingRuleFromJSON)),
|
|
66
68
|
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
67
69
|
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
70
|
+
'tags': (json['tags'].map(TagFromJSON)),
|
|
68
71
|
};
|
|
69
72
|
}
|
|
70
73
|
export function ProcessDetailToJSON(value) {
|
|
@@ -97,5 +100,6 @@ export function ProcessDetailToJSON(value) {
|
|
|
97
100
|
'fileMappingRules': value.fileMappingRules === undefined ? undefined : (value.fileMappingRules === null ? null : value.fileMappingRules.map(FileMappingRuleToJSON)),
|
|
98
101
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
99
102
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
103
|
+
'tags': (value.tags.map(TagToJSON)),
|
|
100
104
|
};
|
|
101
105
|
}
|
|
@@ -13,6 +13,7 @@ import type { CustomPipelineSettings } from './CustomPipelineSettings';
|
|
|
13
13
|
import type { Executor } from './Executor';
|
|
14
14
|
import type { FileMappingRule } from './FileMappingRule';
|
|
15
15
|
import type { PipelineCode } from './PipelineCode';
|
|
16
|
+
import type { Tag } from './Tag';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
@@ -121,6 +122,12 @@ export interface CustomProcessInput {
|
|
|
121
122
|
* @memberof CustomProcessInput
|
|
122
123
|
*/
|
|
123
124
|
fileMappingRules?: Array<FileMappingRule> | null;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {Array<Tag>}
|
|
128
|
+
* @memberof CustomProcessInput
|
|
129
|
+
*/
|
|
130
|
+
tags?: Array<Tag> | null;
|
|
124
131
|
}
|
|
125
132
|
/**
|
|
126
133
|
* Check if a given object implements the CustomProcessInput interface.
|
|
@@ -19,6 +19,7 @@ const CustomPipelineSettings_1 = require("./CustomPipelineSettings");
|
|
|
19
19
|
const Executor_1 = require("./Executor");
|
|
20
20
|
const FileMappingRule_1 = require("./FileMappingRule");
|
|
21
21
|
const PipelineCode_1 = require("./PipelineCode");
|
|
22
|
+
const Tag_1 = require("./Tag");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the CustomProcessInput interface.
|
|
24
25
|
*/
|
|
@@ -60,6 +61,7 @@ function CustomProcessInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'usesSampleSheet': !(0, runtime_1.exists)(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
|
|
61
62
|
'customSettings': !(0, runtime_1.exists)(json, 'customSettings') ? undefined : (0, CustomPipelineSettings_1.CustomPipelineSettingsFromJSON)(json['customSettings']),
|
|
62
63
|
'fileMappingRules': !(0, runtime_1.exists)(json, 'fileMappingRules') ? undefined : (json['fileMappingRules'] === null ? null : json['fileMappingRules'].map(FileMappingRule_1.FileMappingRuleFromJSON)),
|
|
64
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : (json['tags'] === null ? null : json['tags'].map(Tag_1.TagFromJSON)),
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
exports.CustomProcessInputFromJSONTyped = CustomProcessInputFromJSONTyped;
|
|
@@ -88,6 +90,7 @@ function CustomProcessInputToJSON(value) {
|
|
|
88
90
|
'usesSampleSheet': value.usesSampleSheet,
|
|
89
91
|
'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsToJSON)(value.customSettings),
|
|
90
92
|
'fileMappingRules': value.fileMappingRules === undefined ? undefined : (value.fileMappingRules === null ? null : value.fileMappingRules.map(FileMappingRule_1.FileMappingRuleToJSON)),
|
|
93
|
+
'tags': value.tags === undefined ? undefined : (value.tags === null ? null : value.tags.map(Tag_1.TagToJSON)),
|
|
91
94
|
};
|
|
92
95
|
}
|
|
93
96
|
exports.CustomProcessInputToJSON = CustomProcessInputToJSON;
|
|
@@ -40,6 +40,12 @@ export interface PipelineCode {
|
|
|
40
40
|
* @memberof PipelineCode
|
|
41
41
|
*/
|
|
42
42
|
entryPoint: string;
|
|
43
|
+
/**
|
|
44
|
+
* Version of the executor
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PipelineCode
|
|
47
|
+
*/
|
|
48
|
+
executorVersion?: string | null;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* Check if a given object implements the PipelineCode interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.PipelineCodeToJSON = exports.PipelineCodeFromJSONTyped = exports.PipelineCodeFromJSON = exports.instanceOfPipelineCode = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
const RepositoryType_1 = require("./RepositoryType");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the PipelineCode interface.
|
|
@@ -40,6 +41,7 @@ function PipelineCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'version': json['version'],
|
|
41
42
|
'repositoryType': (0, RepositoryType_1.RepositoryTypeFromJSON)(json['repositoryType']),
|
|
42
43
|
'entryPoint': json['entryPoint'],
|
|
44
|
+
'executorVersion': !(0, runtime_1.exists)(json, 'executorVersion') ? undefined : json['executorVersion'],
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
exports.PipelineCodeFromJSONTyped = PipelineCodeFromJSONTyped;
|
|
@@ -55,6 +57,7 @@ function PipelineCodeToJSON(value) {
|
|
|
55
57
|
'version': value.version,
|
|
56
58
|
'repositoryType': (0, RepositoryType_1.RepositoryTypeToJSON)(value.repositoryType),
|
|
57
59
|
'entryPoint': value.entryPoint,
|
|
60
|
+
'executorVersion': value.executorVersion,
|
|
58
61
|
};
|
|
59
62
|
}
|
|
60
63
|
exports.PipelineCodeToJSON = PipelineCodeToJSON;
|
package/dist/models/Process.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Executor } from './Executor';
|
|
13
|
+
import type { Tag } from './Tag';
|
|
13
14
|
/**
|
|
14
15
|
* Identifies a data type or pipeline in Cirro
|
|
15
16
|
* @export
|
|
@@ -130,6 +131,12 @@ export interface Process {
|
|
|
130
131
|
* @memberof Process
|
|
131
132
|
*/
|
|
132
133
|
updatedAt?: Date;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {Array<Tag>}
|
|
137
|
+
* @memberof Process
|
|
138
|
+
*/
|
|
139
|
+
tags: Array<Tag>;
|
|
133
140
|
}
|
|
134
141
|
/**
|
|
135
142
|
* Check if a given object implements the Process interface.
|
package/dist/models/Process.js
CHANGED
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ProcessToJSON = exports.ProcessFromJSONTyped = exports.ProcessFromJSON = exports.instanceOfProcess = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const Executor_1 = require("./Executor");
|
|
19
|
+
const Tag_1 = require("./Tag");
|
|
19
20
|
/**
|
|
20
21
|
* Check if a given object implements the Process interface.
|
|
21
22
|
*/
|
|
@@ -33,6 +34,7 @@ function instanceOfProcess(value) {
|
|
|
33
34
|
isInstance = isInstance && "allowMultipleSources" in value;
|
|
34
35
|
isInstance = isInstance && "usesSampleSheet" in value;
|
|
35
36
|
isInstance = isInstance && "isArchived" in value;
|
|
37
|
+
isInstance = isInstance && "tags" in value;
|
|
36
38
|
return isInstance;
|
|
37
39
|
}
|
|
38
40
|
exports.instanceOfProcess = instanceOfProcess;
|
|
@@ -64,6 +66,7 @@ function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'isArchived': json['isArchived'],
|
|
65
67
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
66
68
|
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
69
|
+
'tags': (json['tags'].map(Tag_1.TagFromJSON)),
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
72
|
exports.ProcessFromJSONTyped = ProcessFromJSONTyped;
|
|
@@ -94,6 +97,7 @@ function ProcessToJSON(value) {
|
|
|
94
97
|
'isArchived': value.isArchived,
|
|
95
98
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
96
99
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
100
|
+
'tags': (value.tags.map(Tag_1.TagToJSON)),
|
|
97
101
|
};
|
|
98
102
|
}
|
|
99
103
|
exports.ProcessToJSON = ProcessToJSON;
|
|
@@ -13,6 +13,7 @@ import type { CustomPipelineSettings } from './CustomPipelineSettings';
|
|
|
13
13
|
import type { Executor } from './Executor';
|
|
14
14
|
import type { FileMappingRule } from './FileMappingRule';
|
|
15
15
|
import type { PipelineCode } from './PipelineCode';
|
|
16
|
+
import type { Tag } from './Tag';
|
|
16
17
|
/**
|
|
17
18
|
* Identifies a data type or pipeline in Cirro
|
|
18
19
|
* @export
|
|
@@ -151,6 +152,12 @@ export interface ProcessDetail {
|
|
|
151
152
|
* @memberof ProcessDetail
|
|
152
153
|
*/
|
|
153
154
|
updatedAt?: Date;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @type {Array<Tag>}
|
|
158
|
+
* @memberof ProcessDetail
|
|
159
|
+
*/
|
|
160
|
+
tags: Array<Tag>;
|
|
154
161
|
}
|
|
155
162
|
/**
|
|
156
163
|
* Check if a given object implements the ProcessDetail interface.
|
|
@@ -19,6 +19,7 @@ const CustomPipelineSettings_1 = require("./CustomPipelineSettings");
|
|
|
19
19
|
const Executor_1 = require("./Executor");
|
|
20
20
|
const FileMappingRule_1 = require("./FileMappingRule");
|
|
21
21
|
const PipelineCode_1 = require("./PipelineCode");
|
|
22
|
+
const Tag_1 = require("./Tag");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ProcessDetail interface.
|
|
24
25
|
*/
|
|
@@ -36,6 +37,7 @@ function instanceOfProcessDetail(value) {
|
|
|
36
37
|
isInstance = isInstance && "allowMultipleSources" in value;
|
|
37
38
|
isInstance = isInstance && "usesSampleSheet" in value;
|
|
38
39
|
isInstance = isInstance && "isArchived" in value;
|
|
40
|
+
isInstance = isInstance && "tags" in value;
|
|
39
41
|
return isInstance;
|
|
40
42
|
}
|
|
41
43
|
exports.instanceOfProcessDetail = instanceOfProcessDetail;
|
|
@@ -70,6 +72,7 @@ function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
72
|
'fileMappingRules': !(0, runtime_1.exists)(json, 'fileMappingRules') ? undefined : (json['fileMappingRules'] === null ? null : json['fileMappingRules'].map(FileMappingRule_1.FileMappingRuleFromJSON)),
|
|
71
73
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
72
74
|
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
75
|
+
'tags': (json['tags'].map(Tag_1.TagFromJSON)),
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
78
|
exports.ProcessDetailFromJSONTyped = ProcessDetailFromJSONTyped;
|
|
@@ -103,6 +106,7 @@ function ProcessDetailToJSON(value) {
|
|
|
103
106
|
'fileMappingRules': value.fileMappingRules === undefined ? undefined : (value.fileMappingRules === null ? null : value.fileMappingRules.map(FileMappingRule_1.FileMappingRuleToJSON)),
|
|
104
107
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
105
108
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
109
|
+
'tags': (value.tags.map(Tag_1.TagToJSON)),
|
|
106
110
|
};
|
|
107
111
|
}
|
|
108
112
|
exports.ProcessDetailToJSON = ProcessDetailToJSON;
|