@cirrobio/api-client 0.3.0 → 0.4.1
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 -0
- package/README.md +1 -1
- package/dist/apis/BillingApi.d.ts +0 -10
- package/dist/apis/BillingApi.js +0 -50
- package/dist/apis/ProcessesApi.d.ts +3 -3
- package/dist/apis/ProcessesApi.js +6 -6
- package/dist/models/CustomProcessInput.d.ts +131 -0
- package/dist/models/CustomProcessInput.js +93 -0
- package/dist/models/DatasetDetail.d.ts +6 -0
- package/dist/models/DatasetDetail.js +3 -0
- package/dist/models/Process.d.ts +35 -17
- package/dist/models/Process.js +25 -12
- package/dist/models/ProcessDetail.d.ts +30 -18
- package/dist/models/ProcessDetail.js +15 -6
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +0 -35
- package/src/apis/ProcessesApi.ts +11 -8
- package/src/models/CustomProcessInput.ts +225 -0
- package/src/models/DatasetDetail.ts +9 -0
- package/src/models/Process.ts +60 -29
- package/src/models/ProcessDetail.ts +45 -24
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -52,6 +52,7 @@ src/models/CreateProjectAccessRequest.ts
|
|
|
52
52
|
src/models/CreateReferenceRequest.ts
|
|
53
53
|
src/models/CreateResponse.ts
|
|
54
54
|
src/models/CustomPipelineSettings.ts
|
|
55
|
+
src/models/CustomProcessInput.ts
|
|
55
56
|
src/models/CustomerType.ts
|
|
56
57
|
src/models/Dashboard.ts
|
|
57
58
|
src/models/DashboardRequest.ts
|
package/README.md
CHANGED
|
@@ -48,16 +48,6 @@ export declare class BillingApi extends runtime.BaseAPI {
|
|
|
48
48
|
* Delete billing account
|
|
49
49
|
*/
|
|
50
50
|
deleteBillingAccount(requestParameters: DeleteBillingAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Generates a billing report xlsx with cost information
|
|
53
|
-
* Generate billing report
|
|
54
|
-
*/
|
|
55
|
-
generateBillingReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
56
|
-
/**
|
|
57
|
-
* Generates a billing report xlsx with cost information
|
|
58
|
-
* Generate billing report
|
|
59
|
-
*/
|
|
60
|
-
generateBillingReport(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
61
51
|
/**
|
|
62
52
|
* Gets a list of billing accounts the current user has access to
|
|
63
53
|
* List billing accounts
|
package/dist/apis/BillingApi.js
CHANGED
|
@@ -185,56 +185,6 @@ var BillingApi = /** @class */ (function (_super) {
|
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
|
-
/**
|
|
189
|
-
* Generates a billing report xlsx with cost information
|
|
190
|
-
* Generate billing report
|
|
191
|
-
*/
|
|
192
|
-
BillingApi.prototype.generateBillingReportRaw = function (initOverrides) {
|
|
193
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
194
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
195
|
-
return __generator(this, function (_a) {
|
|
196
|
-
switch (_a.label) {
|
|
197
|
-
case 0:
|
|
198
|
-
queryParameters = {};
|
|
199
|
-
headerParameters = {};
|
|
200
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
201
|
-
token = this.configuration.accessToken;
|
|
202
|
-
return [4 /*yield*/, token("accessToken", [])];
|
|
203
|
-
case 1:
|
|
204
|
-
tokenString = _a.sent();
|
|
205
|
-
if (tokenString) {
|
|
206
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
207
|
-
}
|
|
208
|
-
_a.label = 2;
|
|
209
|
-
case 2: return [4 /*yield*/, this.request({
|
|
210
|
-
path: "/billing-report",
|
|
211
|
-
method: 'GET',
|
|
212
|
-
headers: headerParameters,
|
|
213
|
-
query: queryParameters,
|
|
214
|
-
}, initOverrides)];
|
|
215
|
-
case 3:
|
|
216
|
-
response = _a.sent();
|
|
217
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* Generates a billing report xlsx with cost information
|
|
224
|
-
* Generate billing report
|
|
225
|
-
*/
|
|
226
|
-
BillingApi.prototype.generateBillingReport = function (initOverrides) {
|
|
227
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
-
return __generator(this, function (_a) {
|
|
229
|
-
switch (_a.label) {
|
|
230
|
-
case 0: return [4 /*yield*/, this.generateBillingReportRaw(initOverrides)];
|
|
231
|
-
case 1:
|
|
232
|
-
_a.sent();
|
|
233
|
-
return [2 /*return*/];
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
};
|
|
238
188
|
/**
|
|
239
189
|
* Gets a list of billing accounts the current user has access to
|
|
240
190
|
* List billing accounts
|
|
@@ -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, CustomPipelineSettings, FileRequirements, FormSchema, PipelineCost, Process, ProcessDetail, ValidateFileRequirementsRequest } from '../models/index';
|
|
13
|
+
import type { CreateResponse, CustomPipelineSettings, CustomProcessInput, FileRequirements, FormSchema, PipelineCost, Process, ProcessDetail, ValidateFileRequirementsRequest } from '../models/index';
|
|
14
14
|
export interface ArchiveCustomProcessRequest {
|
|
15
15
|
processId: string;
|
|
16
16
|
}
|
|
@@ -19,7 +19,7 @@ export interface CalculatePipelineCostRequest {
|
|
|
19
19
|
body: object;
|
|
20
20
|
}
|
|
21
21
|
export interface CreateCustomProcessRequest {
|
|
22
|
-
|
|
22
|
+
customProcessInput: CustomProcessInput;
|
|
23
23
|
}
|
|
24
24
|
export interface GetProcessRequest {
|
|
25
25
|
processId: string;
|
|
@@ -35,7 +35,7 @@ export interface SyncCustomProcessRequest {
|
|
|
35
35
|
}
|
|
36
36
|
export interface UpdateCustomProcessRequest {
|
|
37
37
|
processId: string;
|
|
38
|
-
|
|
38
|
+
customProcessInput: CustomProcessInput;
|
|
39
39
|
}
|
|
40
40
|
export interface ValidateFileRequirementsOperationRequest {
|
|
41
41
|
processId: string;
|
|
@@ -198,8 +198,8 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
198
198
|
return __generator(this, function (_a) {
|
|
199
199
|
switch (_a.label) {
|
|
200
200
|
case 0:
|
|
201
|
-
if (requestParameters.
|
|
202
|
-
throw new runtime.RequiredError('
|
|
201
|
+
if (requestParameters.customProcessInput === null || requestParameters.customProcessInput === undefined) {
|
|
202
|
+
throw new runtime.RequiredError('customProcessInput', 'Required parameter requestParameters.customProcessInput was null or undefined when calling createCustomProcess.');
|
|
203
203
|
}
|
|
204
204
|
queryParameters = {};
|
|
205
205
|
headerParameters = {};
|
|
@@ -218,7 +218,7 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
218
218
|
method: 'POST',
|
|
219
219
|
headers: headerParameters,
|
|
220
220
|
query: queryParameters,
|
|
221
|
-
body: (0, index_1.
|
|
221
|
+
body: (0, index_1.CustomProcessInputToJSON)(requestParameters.customProcessInput),
|
|
222
222
|
}, initOverrides)];
|
|
223
223
|
case 3:
|
|
224
224
|
response = _a.sent();
|
|
@@ -479,8 +479,8 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
479
479
|
if (requestParameters.processId === null || requestParameters.processId === undefined) {
|
|
480
480
|
throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling updateCustomProcess.');
|
|
481
481
|
}
|
|
482
|
-
if (requestParameters.
|
|
483
|
-
throw new runtime.RequiredError('
|
|
482
|
+
if (requestParameters.customProcessInput === null || requestParameters.customProcessInput === undefined) {
|
|
483
|
+
throw new runtime.RequiredError('customProcessInput', 'Required parameter requestParameters.customProcessInput was null or undefined when calling updateCustomProcess.');
|
|
484
484
|
}
|
|
485
485
|
queryParameters = {};
|
|
486
486
|
headerParameters = {};
|
|
@@ -499,7 +499,7 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
499
499
|
method: 'PUT',
|
|
500
500
|
headers: headerParameters,
|
|
501
501
|
query: queryParameters,
|
|
502
|
-
body: (0, index_1.
|
|
502
|
+
body: (0, index_1.CustomProcessInputToJSON)(requestParameters.customProcessInput),
|
|
503
503
|
}, initOverrides)];
|
|
504
504
|
case 3:
|
|
505
505
|
response = _a.sent();
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CustomPipelineSettings } from './CustomPipelineSettings';
|
|
13
|
+
import type { Executor } from './Executor';
|
|
14
|
+
import type { FileMappingRule } from './FileMappingRule';
|
|
15
|
+
import type { PipelineCode } from './PipelineCode';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CustomProcessInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomProcessInput {
|
|
22
|
+
/**
|
|
23
|
+
* Unique ID of the Process
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CustomProcessInput
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Friendly name for the process
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomProcessInput
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Description of the process
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomProcessInput
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
/**
|
|
41
|
+
* Name of the data type this pipeline produces (if it is not defined, use the name)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CustomProcessInput
|
|
44
|
+
*/
|
|
45
|
+
dataType?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Executor}
|
|
49
|
+
* @memberof CustomProcessInput
|
|
50
|
+
*/
|
|
51
|
+
executor: Executor;
|
|
52
|
+
/**
|
|
53
|
+
* Category of the process
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CustomProcessInput
|
|
56
|
+
*/
|
|
57
|
+
category?: string;
|
|
58
|
+
/**
|
|
59
|
+
* IDs of pipelines that can be run downstream
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof CustomProcessInput
|
|
62
|
+
*/
|
|
63
|
+
childProcessIds: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
* IDs of processes that can run this pipeline
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof CustomProcessInput
|
|
68
|
+
*/
|
|
69
|
+
parentProcessIds: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Link to process documentation
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CustomProcessInput
|
|
74
|
+
*/
|
|
75
|
+
documentationUrl?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Description of the files to be uploaded (optional)
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof CustomProcessInput
|
|
80
|
+
*/
|
|
81
|
+
fileRequirementsMessage?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {PipelineCode}
|
|
85
|
+
* @memberof CustomProcessInput
|
|
86
|
+
*/
|
|
87
|
+
pipelineCode?: PipelineCode | null;
|
|
88
|
+
/**
|
|
89
|
+
* Projects that can run this process
|
|
90
|
+
* @type {Array<string>}
|
|
91
|
+
* @memberof CustomProcessInput
|
|
92
|
+
*/
|
|
93
|
+
linkedProjectIds: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the process is shared with the tenant
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof CustomProcessInput
|
|
98
|
+
*/
|
|
99
|
+
isTenantWide?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the pipeline is allowed to have multiple dataset sources
|
|
102
|
+
* @type {boolean}
|
|
103
|
+
* @memberof CustomProcessInput
|
|
104
|
+
*/
|
|
105
|
+
allowMultipleSources?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the pipeline uses the Cirro-provided sample sheet
|
|
108
|
+
* @type {boolean}
|
|
109
|
+
* @memberof CustomProcessInput
|
|
110
|
+
*/
|
|
111
|
+
usesSampleSheet?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {CustomPipelineSettings}
|
|
115
|
+
* @memberof CustomProcessInput
|
|
116
|
+
*/
|
|
117
|
+
customSettings?: CustomPipelineSettings | null;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {Array<FileMappingRule>}
|
|
121
|
+
* @memberof CustomProcessInput
|
|
122
|
+
*/
|
|
123
|
+
fileMappingRules?: Array<FileMappingRule> | null;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Check if a given object implements the CustomProcessInput interface.
|
|
127
|
+
*/
|
|
128
|
+
export declare function instanceOfCustomProcessInput(value: object): boolean;
|
|
129
|
+
export declare function CustomProcessInputFromJSON(json: any): CustomProcessInput;
|
|
130
|
+
export declare function CustomProcessInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomProcessInput;
|
|
131
|
+
export declare function CustomProcessInputToJSON(value?: CustomProcessInput | null): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomProcessInputToJSON = exports.CustomProcessInputFromJSONTyped = exports.CustomProcessInputFromJSON = exports.instanceOfCustomProcessInput = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var CustomPipelineSettings_1 = require("./CustomPipelineSettings");
|
|
19
|
+
var Executor_1 = require("./Executor");
|
|
20
|
+
var FileMappingRule_1 = require("./FileMappingRule");
|
|
21
|
+
var PipelineCode_1 = require("./PipelineCode");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CustomProcessInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCustomProcessInput(value) {
|
|
26
|
+
var isInstance = true;
|
|
27
|
+
isInstance = isInstance && "id" in value;
|
|
28
|
+
isInstance = isInstance && "name" in value;
|
|
29
|
+
isInstance = isInstance && "description" in value;
|
|
30
|
+
isInstance = isInstance && "executor" in value;
|
|
31
|
+
isInstance = isInstance && "childProcessIds" in value;
|
|
32
|
+
isInstance = isInstance && "parentProcessIds" in value;
|
|
33
|
+
isInstance = isInstance && "linkedProjectIds" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfCustomProcessInput = instanceOfCustomProcessInput;
|
|
37
|
+
function CustomProcessInputFromJSON(json) {
|
|
38
|
+
return CustomProcessInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.CustomProcessInputFromJSON = CustomProcessInputFromJSON;
|
|
41
|
+
function CustomProcessInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'description': json['description'],
|
|
49
|
+
'dataType': !(0, runtime_1.exists)(json, 'dataType') ? undefined : json['dataType'],
|
|
50
|
+
'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
|
|
51
|
+
'category': !(0, runtime_1.exists)(json, 'category') ? undefined : json['category'],
|
|
52
|
+
'childProcessIds': json['childProcessIds'],
|
|
53
|
+
'parentProcessIds': json['parentProcessIds'],
|
|
54
|
+
'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
55
|
+
'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
|
|
56
|
+
'pipelineCode': !(0, runtime_1.exists)(json, 'pipelineCode') ? undefined : (0, PipelineCode_1.PipelineCodeFromJSON)(json['pipelineCode']),
|
|
57
|
+
'linkedProjectIds': json['linkedProjectIds'],
|
|
58
|
+
'isTenantWide': !(0, runtime_1.exists)(json, 'isTenantWide') ? undefined : json['isTenantWide'],
|
|
59
|
+
'allowMultipleSources': !(0, runtime_1.exists)(json, 'allowMultipleSources') ? undefined : json['allowMultipleSources'],
|
|
60
|
+
'usesSampleSheet': !(0, runtime_1.exists)(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
|
|
61
|
+
'customSettings': !(0, runtime_1.exists)(json, 'customSettings') ? undefined : (0, CustomPipelineSettings_1.CustomPipelineSettingsFromJSON)(json['customSettings']),
|
|
62
|
+
'fileMappingRules': !(0, runtime_1.exists)(json, 'fileMappingRules') ? undefined : (json['fileMappingRules'] === null ? null : json['fileMappingRules'].map(FileMappingRule_1.FileMappingRuleFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.CustomProcessInputFromJSONTyped = CustomProcessInputFromJSONTyped;
|
|
66
|
+
function CustomProcessInputToJSON(value) {
|
|
67
|
+
if (value === undefined) {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
if (value === null) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value.id,
|
|
75
|
+
'name': value.name,
|
|
76
|
+
'description': value.description,
|
|
77
|
+
'dataType': value.dataType,
|
|
78
|
+
'executor': (0, Executor_1.ExecutorToJSON)(value.executor),
|
|
79
|
+
'category': value.category,
|
|
80
|
+
'childProcessIds': value.childProcessIds,
|
|
81
|
+
'parentProcessIds': value.parentProcessIds,
|
|
82
|
+
'documentationUrl': value.documentationUrl,
|
|
83
|
+
'fileRequirementsMessage': value.fileRequirementsMessage,
|
|
84
|
+
'pipelineCode': (0, PipelineCode_1.PipelineCodeToJSON)(value.pipelineCode),
|
|
85
|
+
'linkedProjectIds': value.linkedProjectIds,
|
|
86
|
+
'isTenantWide': value.isTenantWide,
|
|
87
|
+
'allowMultipleSources': value.allowMultipleSources,
|
|
88
|
+
'usesSampleSheet': value.usesSampleSheet,
|
|
89
|
+
'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsToJSON)(value.customSettings),
|
|
90
|
+
'fileMappingRules': value.fileMappingRules === undefined ? undefined : (value.fileMappingRules === null ? null : value.fileMappingRules.map(FileMappingRule_1.FileMappingRuleToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
exports.CustomProcessInputToJSON = CustomProcessInputToJSON;
|
|
@@ -31,6 +31,7 @@ function instanceOfDatasetDetail(value) {
|
|
|
31
31
|
isInstance = isInstance && "projectId" in value;
|
|
32
32
|
isInstance = isInstance && "sourceDatasetIds" in value;
|
|
33
33
|
isInstance = isInstance && "sourceDatasets" in value;
|
|
34
|
+
isInstance = isInstance && "sourceSampleIds" in value;
|
|
34
35
|
isInstance = isInstance && "status" in value;
|
|
35
36
|
isInstance = isInstance && "statusMessage" in value;
|
|
36
37
|
isInstance = isInstance && "tags" in value;
|
|
@@ -60,6 +61,7 @@ function DatasetDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'projectId': json['projectId'],
|
|
61
62
|
'sourceDatasetIds': json['sourceDatasetIds'],
|
|
62
63
|
'sourceDatasets': (json['sourceDatasets'].map(NamedItem_1.NamedItemFromJSON)),
|
|
64
|
+
'sourceSampleIds': json['sourceSampleIds'],
|
|
63
65
|
'status': (0, Status_1.StatusFromJSON)(json['status']),
|
|
64
66
|
'statusMessage': json['statusMessage'],
|
|
65
67
|
'tags': (json['tags'].map(Tag_1.TagFromJSON)),
|
|
@@ -89,6 +91,7 @@ function DatasetDetailToJSON(value) {
|
|
|
89
91
|
'projectId': value.projectId,
|
|
90
92
|
'sourceDatasetIds': value.sourceDatasetIds,
|
|
91
93
|
'sourceDatasets': (value.sourceDatasets.map(NamedItem_1.NamedItemToJSON)),
|
|
94
|
+
'sourceSampleIds': value.sourceSampleIds,
|
|
92
95
|
'status': (0, Status_1.StatusToJSON)(value.status),
|
|
93
96
|
'statusMessage': value.statusMessage,
|
|
94
97
|
'tags': (value.tags.map(Tag_1.TagToJSON)),
|
package/dist/models/Process.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Executor } from './Executor';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Identifies a data type or pipeline in Cirro
|
|
15
15
|
* @export
|
|
16
16
|
* @interface Process
|
|
17
17
|
*/
|
|
@@ -29,17 +29,17 @@ export interface Process {
|
|
|
29
29
|
*/
|
|
30
30
|
name: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Description of the process
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof Process
|
|
35
35
|
*/
|
|
36
|
-
description
|
|
36
|
+
description: string;
|
|
37
37
|
/**
|
|
38
38
|
* Name of the data type this pipeline produces (if it is not defined, use the name)
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof Process
|
|
41
41
|
*/
|
|
42
|
-
dataType
|
|
42
|
+
dataType: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {Executor}
|
|
@@ -51,15 +51,15 @@ export interface Process {
|
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof Process
|
|
53
53
|
*/
|
|
54
|
-
category
|
|
54
|
+
category?: string;
|
|
55
55
|
/**
|
|
56
56
|
* Type of pipeline
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof Process
|
|
59
59
|
*/
|
|
60
|
-
pipelineType
|
|
60
|
+
pipelineType?: string;
|
|
61
61
|
/**
|
|
62
|
-
* Link to
|
|
62
|
+
* Link to process documentation
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof Process
|
|
65
65
|
*/
|
|
@@ -75,43 +75,61 @@ export interface Process {
|
|
|
75
75
|
* @type {Array<string>}
|
|
76
76
|
* @memberof Process
|
|
77
77
|
*/
|
|
78
|
-
childProcessIds
|
|
78
|
+
childProcessIds: Array<string>;
|
|
79
79
|
/**
|
|
80
|
-
* IDs of
|
|
80
|
+
* IDs of processes that can run this pipeline
|
|
81
81
|
* @type {Array<string>}
|
|
82
82
|
* @memberof Process
|
|
83
83
|
*/
|
|
84
|
-
parentProcessIds
|
|
84
|
+
parentProcessIds: Array<string>;
|
|
85
85
|
/**
|
|
86
86
|
* Username of the pipeline creator (blank if Cirro curated)
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @memberof Process
|
|
89
89
|
*/
|
|
90
|
-
owner?: string;
|
|
90
|
+
owner?: string | null;
|
|
91
91
|
/**
|
|
92
|
-
* Projects that can run this
|
|
92
|
+
* Projects that can run this process
|
|
93
93
|
* @type {Array<string>}
|
|
94
94
|
* @memberof Process
|
|
95
95
|
*/
|
|
96
|
-
linkedProjectIds
|
|
96
|
+
linkedProjectIds: Array<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Whether the process is shared with the tenant
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof Process
|
|
101
|
+
*/
|
|
102
|
+
isTenantWide: boolean;
|
|
97
103
|
/**
|
|
98
104
|
* Whether the pipeline is allowed to have multiple dataset sources
|
|
99
105
|
* @type {boolean}
|
|
100
106
|
* @memberof Process
|
|
101
107
|
*/
|
|
102
|
-
allowMultipleSources
|
|
108
|
+
allowMultipleSources: boolean;
|
|
103
109
|
/**
|
|
104
110
|
* Whether the pipeline uses the Cirro-provided sample sheet
|
|
105
111
|
* @type {boolean}
|
|
106
112
|
* @memberof Process
|
|
107
113
|
*/
|
|
108
|
-
usesSampleSheet
|
|
114
|
+
usesSampleSheet: boolean;
|
|
109
115
|
/**
|
|
110
|
-
* Whether the
|
|
116
|
+
* Whether the process is marked as archived
|
|
111
117
|
* @type {boolean}
|
|
112
118
|
* @memberof Process
|
|
113
119
|
*/
|
|
114
|
-
isArchived
|
|
120
|
+
isArchived: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* When the process was created (does not reflect the pipeline code)
|
|
123
|
+
* @type {Date}
|
|
124
|
+
* @memberof Process
|
|
125
|
+
*/
|
|
126
|
+
createdAt?: Date;
|
|
127
|
+
/**
|
|
128
|
+
* When the process was updated (does not reflect the pipeline code)
|
|
129
|
+
* @type {Date}
|
|
130
|
+
* @memberof Process
|
|
131
|
+
*/
|
|
132
|
+
updatedAt?: Date;
|
|
115
133
|
}
|
|
116
134
|
/**
|
|
117
135
|
* Check if a given object implements the Process interface.
|
package/dist/models/Process.js
CHANGED
|
@@ -23,9 +23,16 @@ function instanceOfProcess(value) {
|
|
|
23
23
|
var isInstance = true;
|
|
24
24
|
isInstance = isInstance && "id" in value;
|
|
25
25
|
isInstance = isInstance && "name" in value;
|
|
26
|
+
isInstance = isInstance && "description" in value;
|
|
27
|
+
isInstance = isInstance && "dataType" in value;
|
|
26
28
|
isInstance = isInstance && "executor" in value;
|
|
27
|
-
isInstance = isInstance && "
|
|
28
|
-
isInstance = isInstance && "
|
|
29
|
+
isInstance = isInstance && "childProcessIds" in value;
|
|
30
|
+
isInstance = isInstance && "parentProcessIds" in value;
|
|
31
|
+
isInstance = isInstance && "linkedProjectIds" in value;
|
|
32
|
+
isInstance = isInstance && "isTenantWide" in value;
|
|
33
|
+
isInstance = isInstance && "allowMultipleSources" in value;
|
|
34
|
+
isInstance = isInstance && "usesSampleSheet" in value;
|
|
35
|
+
isInstance = isInstance && "isArchived" in value;
|
|
29
36
|
return isInstance;
|
|
30
37
|
}
|
|
31
38
|
exports.instanceOfProcess = instanceOfProcess;
|
|
@@ -40,20 +47,23 @@ function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
47
|
return {
|
|
41
48
|
'id': json['id'],
|
|
42
49
|
'name': json['name'],
|
|
43
|
-
'description':
|
|
44
|
-
'dataType':
|
|
50
|
+
'description': json['description'],
|
|
51
|
+
'dataType': json['dataType'],
|
|
45
52
|
'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
|
|
46
|
-
'category': json['category'],
|
|
47
|
-
'pipelineType': json['pipelineType'],
|
|
53
|
+
'category': !(0, runtime_1.exists)(json, 'category') ? undefined : json['category'],
|
|
54
|
+
'pipelineType': !(0, runtime_1.exists)(json, 'pipelineType') ? undefined : json['pipelineType'],
|
|
48
55
|
'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
49
56
|
'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
|
|
50
|
-
'childProcessIds':
|
|
51
|
-
'parentProcessIds':
|
|
57
|
+
'childProcessIds': json['childProcessIds'],
|
|
58
|
+
'parentProcessIds': json['parentProcessIds'],
|
|
52
59
|
'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : json['owner'],
|
|
53
|
-
'linkedProjectIds':
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
60
|
+
'linkedProjectIds': json['linkedProjectIds'],
|
|
61
|
+
'isTenantWide': json['isTenantWide'],
|
|
62
|
+
'allowMultipleSources': json['allowMultipleSources'],
|
|
63
|
+
'usesSampleSheet': json['usesSampleSheet'],
|
|
64
|
+
'isArchived': json['isArchived'],
|
|
65
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
66
|
+
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
57
67
|
};
|
|
58
68
|
}
|
|
59
69
|
exports.ProcessFromJSONTyped = ProcessFromJSONTyped;
|
|
@@ -78,9 +88,12 @@ function ProcessToJSON(value) {
|
|
|
78
88
|
'parentProcessIds': value.parentProcessIds,
|
|
79
89
|
'owner': value.owner,
|
|
80
90
|
'linkedProjectIds': value.linkedProjectIds,
|
|
91
|
+
'isTenantWide': value.isTenantWide,
|
|
81
92
|
'allowMultipleSources': value.allowMultipleSources,
|
|
82
93
|
'usesSampleSheet': value.usesSampleSheet,
|
|
83
94
|
'isArchived': value.isArchived,
|
|
95
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
96
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
84
97
|
};
|
|
85
98
|
}
|
|
86
99
|
exports.ProcessToJSON = ProcessToJSON;
|