@cirrobio/api-client 0.2.19 → 0.2.21
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 +2 -0
- package/README.md +1 -1
- package/dist/apis/MetadataApi.d.ts +14 -0
- package/dist/apis/MetadataApi.js +58 -0
- package/dist/models/DataFile.d.ts +39 -0
- package/dist/models/DataFile.js +53 -0
- package/dist/models/Process.d.ts +6 -0
- package/dist/models/Process.js +2 -0
- package/dist/models/ProcessDetail.d.ts +6 -0
- package/dist/models/ProcessDetail.js +2 -0
- package/dist/models/RunAnalysisRequest.d.ts +6 -0
- package/dist/models/RunAnalysisRequest.js +2 -0
- package/dist/models/Sample.d.ts +7 -0
- package/dist/models/Sample.js +3 -0
- package/dist/models/UpdateUserRequest.d.ts +10 -5
- package/dist/models/UpdateUserRequest.js +5 -2
- package/dist/models/UserDetail.d.ts +13 -0
- package/dist/models/UserDetail.js +7 -0
- package/dist/models/UserSettings.d.ts +32 -0
- package/dist/models/UserSettings.js +57 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/MetadataApi.ts +49 -0
- package/src/models/DataFile.ts +75 -0
- package/src/models/Process.ts +8 -0
- package/src/models/ProcessDetail.ts +8 -0
- package/src/models/RunAnalysisRequest.ts +8 -0
- package/src/models/Sample.ts +15 -0
- package/src/models/UpdateUserRequest.ts +20 -5
- package/src/models/UserDetail.ts +24 -0
- package/src/models/UserSettings.ts +69 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -55,6 +55,7 @@ src/models/CustomPipelineSettings.ts
|
|
|
55
55
|
src/models/CustomerType.ts
|
|
56
56
|
src/models/Dashboard.ts
|
|
57
57
|
src/models/DashboardRequest.ts
|
|
58
|
+
src/models/DataFile.ts
|
|
58
59
|
src/models/Dataset.ts
|
|
59
60
|
src/models/DatasetAssetsManifest.ts
|
|
60
61
|
src/models/DatasetCondition.ts
|
|
@@ -150,6 +151,7 @@ src/models/UploadDatasetRequest.ts
|
|
|
150
151
|
src/models/User.ts
|
|
151
152
|
src/models/UserDetail.ts
|
|
152
153
|
src/models/UserProjectAssignment.ts
|
|
154
|
+
src/models/UserSettings.ts
|
|
153
155
|
src/models/ValidateFileRequirementsRequest.ts
|
|
154
156
|
src/models/index.ts
|
|
155
157
|
src/runtime.ts
|
package/README.md
CHANGED
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { FormSchema, PaginatedResponseSampleDto, Sample, SampleRequest } from '../models/index';
|
|
14
|
+
export interface GetDatasetSamplesRequest {
|
|
15
|
+
projectId: string;
|
|
16
|
+
datasetId: string;
|
|
17
|
+
}
|
|
14
18
|
export interface GetProjectSamplesRequest {
|
|
15
19
|
projectId: string;
|
|
16
20
|
limit?: number;
|
|
@@ -32,6 +36,16 @@ export interface UpdateSampleRequest {
|
|
|
32
36
|
*
|
|
33
37
|
*/
|
|
34
38
|
export declare class MetadataApi extends runtime.BaseAPI {
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves a list of samples associated with a dataset along with their metadata
|
|
41
|
+
* Get dataset samples
|
|
42
|
+
*/
|
|
43
|
+
getDatasetSamplesRaw(requestParameters: GetDatasetSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Sample>>>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves a list of samples associated with a dataset along with their metadata
|
|
46
|
+
* Get dataset samples
|
|
47
|
+
*/
|
|
48
|
+
getDatasetSamples(requestParameters: GetDatasetSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>>;
|
|
35
49
|
/**
|
|
36
50
|
* Retrieves a list of samples associated with a project along with their metadata
|
|
37
51
|
* Get project samples
|
package/dist/apis/MetadataApi.js
CHANGED
|
@@ -75,6 +75,64 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function MetadataApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves a list of samples associated with a dataset along with their metadata
|
|
80
|
+
* Get dataset samples
|
|
81
|
+
*/
|
|
82
|
+
MetadataApi.prototype.getDatasetSamplesRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getDatasetSamples.');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters.datasetId === null || requestParameters.datasetId === undefined) {
|
|
92
|
+
throw new runtime.RequiredError('datasetId', 'Required parameter requestParameters.datasetId was null or undefined when calling getDatasetSamples.');
|
|
93
|
+
}
|
|
94
|
+
queryParameters = {};
|
|
95
|
+
headerParameters = {};
|
|
96
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
97
|
+
token = this.configuration.accessToken;
|
|
98
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
99
|
+
case 1:
|
|
100
|
+
tokenString = _a.sent();
|
|
101
|
+
if (tokenString) {
|
|
102
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
103
|
+
}
|
|
104
|
+
_a.label = 2;
|
|
105
|
+
case 2: return [4 /*yield*/, this.request({
|
|
106
|
+
path: "/projects/{projectId}/datasets/{datasetId}/samples".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("datasetId", "}"), encodeURIComponent(String(requestParameters.datasetId))),
|
|
107
|
+
method: 'GET',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
}, initOverrides)];
|
|
111
|
+
case 3:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SampleFromJSON); })];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves a list of samples associated with a dataset along with their metadata
|
|
120
|
+
* Get dataset samples
|
|
121
|
+
*/
|
|
122
|
+
MetadataApi.prototype.getDatasetSamples = function (requestParameters, initOverrides) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
124
|
+
var response;
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
switch (_a.label) {
|
|
127
|
+
case 0: return [4 /*yield*/, this.getDatasetSamplesRaw(requestParameters, initOverrides)];
|
|
128
|
+
case 1:
|
|
129
|
+
response = _a.sent();
|
|
130
|
+
return [4 /*yield*/, response.value()];
|
|
131
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
78
136
|
/**
|
|
79
137
|
* Retrieves a list of samples associated with a project along with their metadata
|
|
80
138
|
* Get project samples
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DataFile
|
|
16
|
+
*/
|
|
17
|
+
export interface DataFile {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DataFile
|
|
22
|
+
*/
|
|
23
|
+
path: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof DataFile
|
|
28
|
+
*/
|
|
29
|
+
metadata: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the DataFile interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfDataFile(value: object): boolean;
|
|
37
|
+
export declare function DataFileFromJSON(json: any): DataFile;
|
|
38
|
+
export declare function DataFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataFile;
|
|
39
|
+
export declare function DataFileToJSON(value?: DataFile | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.DataFileToJSON = exports.DataFileFromJSONTyped = exports.DataFileFromJSON = exports.instanceOfDataFile = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the DataFile interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfDataFile(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "path" in value;
|
|
23
|
+
isInstance = isInstance && "metadata" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfDataFile = instanceOfDataFile;
|
|
27
|
+
function DataFileFromJSON(json) {
|
|
28
|
+
return DataFileFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.DataFileFromJSON = DataFileFromJSON;
|
|
31
|
+
function DataFileFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'path': json['path'],
|
|
37
|
+
'metadata': json['metadata'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.DataFileFromJSONTyped = DataFileFromJSONTyped;
|
|
41
|
+
function DataFileToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'path': value.path,
|
|
50
|
+
'metadata': value.metadata,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.DataFileToJSON = DataFileToJSON;
|
package/dist/models/Process.d.ts
CHANGED
|
@@ -100,6 +100,12 @@ export interface Process {
|
|
|
100
100
|
* @memberof Process
|
|
101
101
|
*/
|
|
102
102
|
allowMultipleSources?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Whether the pipeline uses the Cirro-provided sample sheet
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof Process
|
|
107
|
+
*/
|
|
108
|
+
usesSampleSheet?: boolean;
|
|
103
109
|
/**
|
|
104
110
|
* Whether the pipeline is marked as archived
|
|
105
111
|
* @type {boolean}
|
package/dist/models/Process.js
CHANGED
|
@@ -52,6 +52,7 @@ function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : json['owner'],
|
|
53
53
|
'linkedProjectIds': !(0, runtime_1.exists)(json, 'linkedProjectIds') ? undefined : json['linkedProjectIds'],
|
|
54
54
|
'allowMultipleSources': !(0, runtime_1.exists)(json, 'allowMultipleSources') ? undefined : json['allowMultipleSources'],
|
|
55
|
+
'usesSampleSheet': !(0, runtime_1.exists)(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
|
|
55
56
|
'isArchived': !(0, runtime_1.exists)(json, 'isArchived') ? undefined : json['isArchived'],
|
|
56
57
|
};
|
|
57
58
|
}
|
|
@@ -78,6 +79,7 @@ function ProcessToJSON(value) {
|
|
|
78
79
|
'owner': value.owner,
|
|
79
80
|
'linkedProjectIds': value.linkedProjectIds,
|
|
80
81
|
'allowMultipleSources': value.allowMultipleSources,
|
|
82
|
+
'usesSampleSheet': value.usesSampleSheet,
|
|
81
83
|
'isArchived': value.isArchived,
|
|
82
84
|
};
|
|
83
85
|
}
|
|
@@ -115,6 +115,12 @@ export interface ProcessDetail {
|
|
|
115
115
|
* @memberof ProcessDetail
|
|
116
116
|
*/
|
|
117
117
|
allowMultipleSources?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the pipeline uses the Cirro-provided sample sheet
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
* @memberof ProcessDetail
|
|
122
|
+
*/
|
|
123
|
+
usesSampleSheet?: boolean;
|
|
118
124
|
/**
|
|
119
125
|
*
|
|
120
126
|
* @type {CustomPipelineSettings}
|
|
@@ -59,6 +59,7 @@ function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'linkedProjectIds': json['linkedProjectIds'],
|
|
60
60
|
'isTenantWide': !(0, runtime_1.exists)(json, 'isTenantWide') ? undefined : json['isTenantWide'],
|
|
61
61
|
'allowMultipleSources': !(0, runtime_1.exists)(json, 'allowMultipleSources') ? undefined : json['allowMultipleSources'],
|
|
62
|
+
'usesSampleSheet': !(0, runtime_1.exists)(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
|
|
62
63
|
'customSettings': !(0, runtime_1.exists)(json, 'customSettings') ? undefined : (0, CustomPipelineSettings_1.CustomPipelineSettingsFromJSON)(json['customSettings']),
|
|
63
64
|
'isArchived': !(0, runtime_1.exists)(json, 'isArchived') ? undefined : json['isArchived'],
|
|
64
65
|
'fileMappingRules': !(0, runtime_1.exists)(json, 'fileMappingRules') ? undefined : (json['fileMappingRules'] === null ? null : json['fileMappingRules'].map(FileMappingRule_1.FileMappingRuleFromJSON)),
|
|
@@ -89,6 +90,7 @@ function ProcessDetailToJSON(value) {
|
|
|
89
90
|
'linkedProjectIds': value.linkedProjectIds,
|
|
90
91
|
'isTenantWide': value.isTenantWide,
|
|
91
92
|
'allowMultipleSources': value.allowMultipleSources,
|
|
93
|
+
'usesSampleSheet': value.usesSampleSheet,
|
|
92
94
|
'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsToJSON)(value.customSettings),
|
|
93
95
|
'isArchived': value.isArchived,
|
|
94
96
|
'fileMappingRules': value.fileMappingRules === undefined ? undefined : (value.fileMappingRules === null ? null : value.fileMappingRules.map(FileMappingRule_1.FileMappingRuleToJSON)),
|
|
@@ -39,6 +39,12 @@ export interface RunAnalysisRequest {
|
|
|
39
39
|
* @memberof RunAnalysisRequest
|
|
40
40
|
*/
|
|
41
41
|
sourceDatasetIds: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Samples within the source datasets that will be used as inputs to this workflow. If not specified, all samples will be used.
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof RunAnalysisRequest
|
|
46
|
+
*/
|
|
47
|
+
sourceSampleIds?: Array<string> | null;
|
|
42
48
|
/**
|
|
43
49
|
* Used for caching task execution. If the parameters are the same as the dataset specified here, it will re-use the output to minimize duplicate work
|
|
44
50
|
* @type {string}
|
|
@@ -41,6 +41,7 @@ function RunAnalysisRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
42
42
|
'processId': json['processId'],
|
|
43
43
|
'sourceDatasetIds': json['sourceDatasetIds'],
|
|
44
|
+
'sourceSampleIds': !(0, runtime_1.exists)(json, 'sourceSampleIds') ? undefined : json['sourceSampleIds'],
|
|
44
45
|
'resumeDatasetId': !(0, runtime_1.exists)(json, 'resumeDatasetId') ? undefined : json['resumeDatasetId'],
|
|
45
46
|
'params': json['params'],
|
|
46
47
|
'notificationEmails': json['notificationEmails'],
|
|
@@ -60,6 +61,7 @@ function RunAnalysisRequestToJSON(value) {
|
|
|
60
61
|
'description': value.description,
|
|
61
62
|
'processId': value.processId,
|
|
62
63
|
'sourceDatasetIds': value.sourceDatasetIds,
|
|
64
|
+
'sourceSampleIds': value.sourceSampleIds,
|
|
63
65
|
'resumeDatasetId': value.resumeDatasetId,
|
|
64
66
|
'params': value.params,
|
|
65
67
|
'notificationEmails': value.notificationEmails,
|
package/dist/models/Sample.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DataFile } from './DataFile';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -35,6 +36,12 @@ export interface Sample {
|
|
|
35
36
|
metadata?: {
|
|
36
37
|
[key: string]: any;
|
|
37
38
|
} | null;
|
|
39
|
+
/**
|
|
40
|
+
* Files associated with this sample
|
|
41
|
+
* @type {Array<DataFile>}
|
|
42
|
+
* @memberof Sample
|
|
43
|
+
*/
|
|
44
|
+
files?: Array<DataFile> | null;
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
40
47
|
* @type {Array<string>}
|
package/dist/models/Sample.js
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SampleToJSON = exports.SampleFromJSONTyped = exports.SampleFromJSON = exports.instanceOfSample = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var DataFile_1 = require("./DataFile");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the Sample interface.
|
|
20
21
|
*/
|
|
@@ -37,6 +38,7 @@ function SampleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
'id': json['id'],
|
|
38
39
|
'name': json['name'],
|
|
39
40
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
|
|
41
|
+
'files': !(0, runtime_1.exists)(json, 'files') ? undefined : (json['files'] === null ? null : json['files'].map(DataFile_1.DataFileFromJSON)),
|
|
40
42
|
'datasetIds': !(0, runtime_1.exists)(json, 'datasetIds') ? undefined : json['datasetIds'],
|
|
41
43
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (json['createdAt'] === null ? null : new Date(json['createdAt'])),
|
|
42
44
|
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (json['updatedAt'] === null ? null : new Date(json['updatedAt'])),
|
|
@@ -54,6 +56,7 @@ function SampleToJSON(value) {
|
|
|
54
56
|
'id': value.id,
|
|
55
57
|
'name': value.name,
|
|
56
58
|
'metadata': value.metadata,
|
|
59
|
+
'files': value.files === undefined ? undefined : (value.files === null ? null : value.files.map(DataFile_1.DataFileToJSON)),
|
|
57
60
|
'datasetIds': value.datasetIds,
|
|
58
61
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),
|
|
59
62
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt === null ? null : value.updatedAt.toISOString()),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UserSettings } from './UserSettings';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface UpdateUserRequest {
|
|
|
39
40
|
* @memberof UpdateUserRequest
|
|
40
41
|
*/
|
|
41
42
|
department?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Job title or role of the user
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateUserRequest
|
|
47
|
+
*/
|
|
48
|
+
jobTitle?: string;
|
|
42
49
|
/**
|
|
43
50
|
* The organization the user belongs to, only editable by administrators
|
|
44
51
|
* @type {string}
|
|
@@ -46,13 +53,11 @@ export interface UpdateUserRequest {
|
|
|
46
53
|
*/
|
|
47
54
|
organization?: string;
|
|
48
55
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {
|
|
56
|
+
*
|
|
57
|
+
* @type {UserSettings}
|
|
51
58
|
* @memberof UpdateUserRequest
|
|
52
59
|
*/
|
|
53
|
-
settings?:
|
|
54
|
-
[key: string]: any;
|
|
55
|
-
};
|
|
60
|
+
settings?: UserSettings | null;
|
|
56
61
|
/**
|
|
57
62
|
* Groups the user belongs to, only editable by administrators
|
|
58
63
|
* @type {Array<string>}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UpdateUserRequestToJSON = exports.UpdateUserRequestFromJSONTyped = exports.UpdateUserRequestFromJSON = exports.instanceOfUpdateUserRequest = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var UserSettings_1 = require("./UserSettings");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
20
21
|
*/
|
|
@@ -38,8 +39,9 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
'email': json['email'],
|
|
39
40
|
'phone': !(0, runtime_1.exists)(json, 'phone') ? undefined : json['phone'],
|
|
40
41
|
'department': !(0, runtime_1.exists)(json, 'department') ? undefined : json['department'],
|
|
42
|
+
'jobTitle': !(0, runtime_1.exists)(json, 'jobTitle') ? undefined : json['jobTitle'],
|
|
41
43
|
'organization': !(0, runtime_1.exists)(json, 'organization') ? undefined : json['organization'],
|
|
42
|
-
'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : json['settings'],
|
|
44
|
+
'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : (0, UserSettings_1.UserSettingsFromJSON)(json['settings']),
|
|
43
45
|
'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : json['groups'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
@@ -56,8 +58,9 @@ function UpdateUserRequestToJSON(value) {
|
|
|
56
58
|
'email': value.email,
|
|
57
59
|
'phone': value.phone,
|
|
58
60
|
'department': value.department,
|
|
61
|
+
'jobTitle': value.jobTitle,
|
|
59
62
|
'organization': value.organization,
|
|
60
|
-
'settings': value.settings,
|
|
63
|
+
'settings': (0, UserSettings_1.UserSettingsToJSON)(value.settings),
|
|
61
64
|
'groups': value.groups,
|
|
62
65
|
};
|
|
63
66
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { UserProjectAssignment } from './UserProjectAssignment';
|
|
13
|
+
import type { UserSettings } from './UserSettings';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface UserDetail {
|
|
|
46
47
|
* @memberof UserDetail
|
|
47
48
|
*/
|
|
48
49
|
organization: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof UserDetail
|
|
54
|
+
*/
|
|
55
|
+
jobTitle: string;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {string}
|
|
@@ -76,6 +83,12 @@ export interface UserDetail {
|
|
|
76
83
|
* @memberof UserDetail
|
|
77
84
|
*/
|
|
78
85
|
groups: Array<string>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {UserSettings}
|
|
89
|
+
* @memberof UserDetail
|
|
90
|
+
*/
|
|
91
|
+
settings: UserSettings;
|
|
79
92
|
}
|
|
80
93
|
/**
|
|
81
94
|
* Check if a given object implements the UserDetail interface.
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.UserDetailToJSON = exports.UserDetailFromJSONTyped = exports.UserDetailFromJSON = exports.instanceOfUserDetail = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var UserProjectAssignment_1 = require("./UserProjectAssignment");
|
|
19
|
+
var UserSettings_1 = require("./UserSettings");
|
|
19
20
|
/**
|
|
20
21
|
* Check if a given object implements the UserDetail interface.
|
|
21
22
|
*/
|
|
@@ -26,10 +27,12 @@ function instanceOfUserDetail(value) {
|
|
|
26
27
|
isInstance = isInstance && "phone" in value;
|
|
27
28
|
isInstance = isInstance && "email" in value;
|
|
28
29
|
isInstance = isInstance && "organization" in value;
|
|
30
|
+
isInstance = isInstance && "jobTitle" in value;
|
|
29
31
|
isInstance = isInstance && "department" in value;
|
|
30
32
|
isInstance = isInstance && "invitedBy" in value;
|
|
31
33
|
isInstance = isInstance && "projectAssignments" in value;
|
|
32
34
|
isInstance = isInstance && "groups" in value;
|
|
35
|
+
isInstance = isInstance && "settings" in value;
|
|
33
36
|
return isInstance;
|
|
34
37
|
}
|
|
35
38
|
exports.instanceOfUserDetail = instanceOfUserDetail;
|
|
@@ -47,11 +50,13 @@ function UserDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
50
|
'phone': json['phone'],
|
|
48
51
|
'email': json['email'],
|
|
49
52
|
'organization': json['organization'],
|
|
53
|
+
'jobTitle': json['jobTitle'],
|
|
50
54
|
'department': json['department'],
|
|
51
55
|
'invitedBy': json['invitedBy'],
|
|
52
56
|
'signUpTime': !(0, runtime_1.exists)(json, 'signUpTime') ? undefined : (json['signUpTime'] === null ? null : new Date(json['signUpTime'])),
|
|
53
57
|
'projectAssignments': (json['projectAssignments'].map(UserProjectAssignment_1.UserProjectAssignmentFromJSON)),
|
|
54
58
|
'groups': json['groups'],
|
|
59
|
+
'settings': (0, UserSettings_1.UserSettingsFromJSON)(json['settings']),
|
|
55
60
|
};
|
|
56
61
|
}
|
|
57
62
|
exports.UserDetailFromJSONTyped = UserDetailFromJSONTyped;
|
|
@@ -68,11 +73,13 @@ function UserDetailToJSON(value) {
|
|
|
68
73
|
'phone': value.phone,
|
|
69
74
|
'email': value.email,
|
|
70
75
|
'organization': value.organization,
|
|
76
|
+
'jobTitle': value.jobTitle,
|
|
71
77
|
'department': value.department,
|
|
72
78
|
'invitedBy': value.invitedBy,
|
|
73
79
|
'signUpTime': value.signUpTime === undefined ? undefined : (value.signUpTime === null ? null : value.signUpTime.toISOString()),
|
|
74
80
|
'projectAssignments': (value.projectAssignments.map(UserProjectAssignment_1.UserProjectAssignmentToJSON)),
|
|
75
81
|
'groups': value.groups,
|
|
82
|
+
'settings': (0, UserSettings_1.UserSettingsToJSON)(value.settings),
|
|
76
83
|
};
|
|
77
84
|
}
|
|
78
85
|
exports.UserDetailToJSON = UserDetailToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Additional settings for the user
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface UserSettings {
|
|
18
|
+
[key: string]: any | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof UserSettings
|
|
23
|
+
*/
|
|
24
|
+
analysisUpdateNotificationsEnabled: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UserSettings interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUserSettings(value: object): boolean;
|
|
30
|
+
export declare function UserSettingsFromJSON(json: any): UserSettings;
|
|
31
|
+
export declare function UserSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSettings;
|
|
32
|
+
export declare function UserSettingsToJSON(value?: UserSettings | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.UserSettingsToJSON = exports.UserSettingsFromJSONTyped = exports.UserSettingsFromJSON = exports.instanceOfUserSettings = void 0;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the UserSettings interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfUserSettings(value) {
|
|
32
|
+
var isInstance = true;
|
|
33
|
+
isInstance = isInstance && "analysisUpdateNotificationsEnabled" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfUserSettings = instanceOfUserSettings;
|
|
37
|
+
function UserSettingsFromJSON(json) {
|
|
38
|
+
return UserSettingsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.UserSettingsFromJSON = UserSettingsFromJSON;
|
|
41
|
+
function UserSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return __assign(__assign({}, json), { 'analysisUpdateNotificationsEnabled': json['analysisUpdateNotificationsEnabled'] });
|
|
46
|
+
}
|
|
47
|
+
exports.UserSettingsFromJSONTyped = UserSettingsFromJSONTyped;
|
|
48
|
+
function UserSettingsToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return __assign(__assign({}, value), { 'analysisUpdateNotificationsEnabled': value.analysisUpdateNotificationsEnabled });
|
|
56
|
+
}
|
|
57
|
+
exports.UserSettingsToJSON = UserSettingsToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './CustomPipelineSettings';
|
|
|
30
30
|
export * from './CustomerType';
|
|
31
31
|
export * from './Dashboard';
|
|
32
32
|
export * from './DashboardRequest';
|
|
33
|
+
export * from './DataFile';
|
|
33
34
|
export * from './Dataset';
|
|
34
35
|
export * from './DatasetAssetsManifest';
|
|
35
36
|
export * from './DatasetCondition';
|
|
@@ -125,4 +126,5 @@ export * from './UploadDatasetRequest';
|
|
|
125
126
|
export * from './User';
|
|
126
127
|
export * from './UserDetail';
|
|
127
128
|
export * from './UserProjectAssignment';
|
|
129
|
+
export * from './UserSettings';
|
|
128
130
|
export * from './ValidateFileRequirementsRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __exportStar(require("./CustomPipelineSettings"), exports);
|
|
|
48
48
|
__exportStar(require("./CustomerType"), exports);
|
|
49
49
|
__exportStar(require("./Dashboard"), exports);
|
|
50
50
|
__exportStar(require("./DashboardRequest"), exports);
|
|
51
|
+
__exportStar(require("./DataFile"), exports);
|
|
51
52
|
__exportStar(require("./Dataset"), exports);
|
|
52
53
|
__exportStar(require("./DatasetAssetsManifest"), exports);
|
|
53
54
|
__exportStar(require("./DatasetCondition"), exports);
|
|
@@ -143,4 +144,5 @@ __exportStar(require("./UploadDatasetRequest"), exports);
|
|
|
143
144
|
__exportStar(require("./User"), exports);
|
|
144
145
|
__exportStar(require("./UserDetail"), exports);
|
|
145
146
|
__exportStar(require("./UserProjectAssignment"), exports);
|
|
147
|
+
__exportStar(require("./UserSettings"), exports);
|
|
146
148
|
__exportStar(require("./ValidateFileRequirementsRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/MetadataApi.ts
CHANGED
|
@@ -31,6 +31,11 @@ import {
|
|
|
31
31
|
SampleRequestToJSON,
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
|
+
export interface GetDatasetSamplesRequest {
|
|
35
|
+
projectId: string;
|
|
36
|
+
datasetId: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
export interface GetProjectSamplesRequest {
|
|
35
40
|
projectId: string;
|
|
36
41
|
limit?: number;
|
|
@@ -57,6 +62,50 @@ export interface UpdateSampleRequest {
|
|
|
57
62
|
*/
|
|
58
63
|
export class MetadataApi extends runtime.BaseAPI {
|
|
59
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves a list of samples associated with a dataset along with their metadata
|
|
67
|
+
* Get dataset samples
|
|
68
|
+
*/
|
|
69
|
+
async getDatasetSamplesRaw(requestParameters: GetDatasetSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Sample>>> {
|
|
70
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
71
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getDatasetSamples.');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (requestParameters.datasetId === null || requestParameters.datasetId === undefined) {
|
|
75
|
+
throw new runtime.RequiredError('datasetId','Required parameter requestParameters.datasetId was null or undefined when calling getDatasetSamples.');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const queryParameters: any = {};
|
|
79
|
+
|
|
80
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
81
|
+
|
|
82
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
83
|
+
const token = this.configuration.accessToken;
|
|
84
|
+
const tokenString = await token("accessToken", []);
|
|
85
|
+
|
|
86
|
+
if (tokenString) {
|
|
87
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const response = await this.request({
|
|
91
|
+
path: `/projects/{projectId}/datasets/{datasetId}/samples`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))),
|
|
92
|
+
method: 'GET',
|
|
93
|
+
headers: headerParameters,
|
|
94
|
+
query: queryParameters,
|
|
95
|
+
}, initOverrides);
|
|
96
|
+
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SampleFromJSON));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Retrieves a list of samples associated with a dataset along with their metadata
|
|
102
|
+
* Get dataset samples
|
|
103
|
+
*/
|
|
104
|
+
async getDatasetSamples(requestParameters: GetDatasetSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>> {
|
|
105
|
+
const response = await this.getDatasetSamplesRaw(requestParameters, initOverrides);
|
|
106
|
+
return await response.value();
|
|
107
|
+
}
|
|
108
|
+
|
|
60
109
|
/**
|
|
61
110
|
* Retrieves a list of samples associated with a project along with their metadata
|
|
62
111
|
* Get project samples
|
|
@@ -0,0 +1,75 @@
|
|
|
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 DataFile
|
|
20
|
+
*/
|
|
21
|
+
export interface DataFile {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DataFile
|
|
26
|
+
*/
|
|
27
|
+
path: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof DataFile
|
|
32
|
+
*/
|
|
33
|
+
metadata: { [key: string]: any; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DataFile interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDataFile(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "path" in value;
|
|
42
|
+
isInstance = isInstance && "metadata" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function DataFileFromJSON(json: any): DataFile {
|
|
48
|
+
return DataFileFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DataFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataFile {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'path': json['path'],
|
|
58
|
+
'metadata': json['metadata'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function DataFileToJSON(value?: DataFile | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'path': value.path,
|
|
72
|
+
'metadata': value.metadata,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/Process.ts
CHANGED
|
@@ -110,6 +110,12 @@ export interface Process {
|
|
|
110
110
|
* @memberof Process
|
|
111
111
|
*/
|
|
112
112
|
allowMultipleSources?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the pipeline uses the Cirro-provided sample sheet
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof Process
|
|
117
|
+
*/
|
|
118
|
+
usesSampleSheet?: boolean;
|
|
113
119
|
/**
|
|
114
120
|
* Whether the pipeline is marked as archived
|
|
115
121
|
* @type {boolean}
|
|
@@ -156,6 +162,7 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
156
162
|
'owner': !exists(json, 'owner') ? undefined : json['owner'],
|
|
157
163
|
'linkedProjectIds': !exists(json, 'linkedProjectIds') ? undefined : json['linkedProjectIds'],
|
|
158
164
|
'allowMultipleSources': !exists(json, 'allowMultipleSources') ? undefined : json['allowMultipleSources'],
|
|
165
|
+
'usesSampleSheet': !exists(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
|
|
159
166
|
'isArchived': !exists(json, 'isArchived') ? undefined : json['isArchived'],
|
|
160
167
|
};
|
|
161
168
|
}
|
|
@@ -183,6 +190,7 @@ export function ProcessToJSON(value?: Process | null): any {
|
|
|
183
190
|
'owner': value.owner,
|
|
184
191
|
'linkedProjectIds': value.linkedProjectIds,
|
|
185
192
|
'allowMultipleSources': value.allowMultipleSources,
|
|
193
|
+
'usesSampleSheet': value.usesSampleSheet,
|
|
186
194
|
'isArchived': value.isArchived,
|
|
187
195
|
};
|
|
188
196
|
}
|
|
@@ -140,6 +140,12 @@ export interface ProcessDetail {
|
|
|
140
140
|
* @memberof ProcessDetail
|
|
141
141
|
*/
|
|
142
142
|
allowMultipleSources?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Whether the pipeline uses the Cirro-provided sample sheet
|
|
145
|
+
* @type {boolean}
|
|
146
|
+
* @memberof ProcessDetail
|
|
147
|
+
*/
|
|
148
|
+
usesSampleSheet?: boolean;
|
|
143
149
|
/**
|
|
144
150
|
*
|
|
145
151
|
* @type {CustomPipelineSettings}
|
|
@@ -202,6 +208,7 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
202
208
|
'linkedProjectIds': json['linkedProjectIds'],
|
|
203
209
|
'isTenantWide': !exists(json, 'isTenantWide') ? undefined : json['isTenantWide'],
|
|
204
210
|
'allowMultipleSources': !exists(json, 'allowMultipleSources') ? undefined : json['allowMultipleSources'],
|
|
211
|
+
'usesSampleSheet': !exists(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
|
|
205
212
|
'customSettings': !exists(json, 'customSettings') ? undefined : CustomPipelineSettingsFromJSON(json['customSettings']),
|
|
206
213
|
'isArchived': !exists(json, 'isArchived') ? undefined : json['isArchived'],
|
|
207
214
|
'fileMappingRules': !exists(json, 'fileMappingRules') ? undefined : (json['fileMappingRules'] === null ? null : (json['fileMappingRules'] as Array<any>).map(FileMappingRuleFromJSON)),
|
|
@@ -233,6 +240,7 @@ export function ProcessDetailToJSON(value?: ProcessDetail | null): any {
|
|
|
233
240
|
'linkedProjectIds': value.linkedProjectIds,
|
|
234
241
|
'isTenantWide': value.isTenantWide,
|
|
235
242
|
'allowMultipleSources': value.allowMultipleSources,
|
|
243
|
+
'usesSampleSheet': value.usesSampleSheet,
|
|
236
244
|
'customSettings': CustomPipelineSettingsToJSON(value.customSettings),
|
|
237
245
|
'isArchived': value.isArchived,
|
|
238
246
|
'fileMappingRules': value.fileMappingRules === undefined ? undefined : (value.fileMappingRules === null ? null : (value.fileMappingRules as Array<any>).map(FileMappingRuleToJSON)),
|
|
@@ -43,6 +43,12 @@ export interface RunAnalysisRequest {
|
|
|
43
43
|
* @memberof RunAnalysisRequest
|
|
44
44
|
*/
|
|
45
45
|
sourceDatasetIds: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Samples within the source datasets that will be used as inputs to this workflow. If not specified, all samples will be used.
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof RunAnalysisRequest
|
|
50
|
+
*/
|
|
51
|
+
sourceSampleIds?: Array<string> | null;
|
|
46
52
|
/**
|
|
47
53
|
* Used for caching task execution. If the parameters are the same as the dataset specified here, it will re-use the output to minimize duplicate work
|
|
48
54
|
* @type {string}
|
|
@@ -97,6 +103,7 @@ export function RunAnalysisRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
97
103
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
98
104
|
'processId': json['processId'],
|
|
99
105
|
'sourceDatasetIds': json['sourceDatasetIds'],
|
|
106
|
+
'sourceSampleIds': !exists(json, 'sourceSampleIds') ? undefined : json['sourceSampleIds'],
|
|
100
107
|
'resumeDatasetId': !exists(json, 'resumeDatasetId') ? undefined : json['resumeDatasetId'],
|
|
101
108
|
'params': json['params'],
|
|
102
109
|
'notificationEmails': json['notificationEmails'],
|
|
@@ -117,6 +124,7 @@ export function RunAnalysisRequestToJSON(value?: RunAnalysisRequest | null): any
|
|
|
117
124
|
'description': value.description,
|
|
118
125
|
'processId': value.processId,
|
|
119
126
|
'sourceDatasetIds': value.sourceDatasetIds,
|
|
127
|
+
'sourceSampleIds': value.sourceSampleIds,
|
|
120
128
|
'resumeDatasetId': value.resumeDatasetId,
|
|
121
129
|
'params': value.params,
|
|
122
130
|
'notificationEmails': value.notificationEmails,
|
package/src/models/Sample.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { DataFile } from './DataFile';
|
|
17
|
+
import {
|
|
18
|
+
DataFileFromJSON,
|
|
19
|
+
DataFileFromJSONTyped,
|
|
20
|
+
DataFileToJSON,
|
|
21
|
+
} from './DataFile';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -37,6 +44,12 @@ export interface Sample {
|
|
|
37
44
|
* @memberof Sample
|
|
38
45
|
*/
|
|
39
46
|
metadata?: { [key: string]: any; } | null;
|
|
47
|
+
/**
|
|
48
|
+
* Files associated with this sample
|
|
49
|
+
* @type {Array<DataFile>}
|
|
50
|
+
* @memberof Sample
|
|
51
|
+
*/
|
|
52
|
+
files?: Array<DataFile> | null;
|
|
40
53
|
/**
|
|
41
54
|
*
|
|
42
55
|
* @type {Array<string>}
|
|
@@ -81,6 +94,7 @@ export function SampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sa
|
|
|
81
94
|
'id': json['id'],
|
|
82
95
|
'name': json['name'],
|
|
83
96
|
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
97
|
+
'files': !exists(json, 'files') ? undefined : (json['files'] === null ? null : (json['files'] as Array<any>).map(DataFileFromJSON)),
|
|
84
98
|
'datasetIds': !exists(json, 'datasetIds') ? undefined : json['datasetIds'],
|
|
85
99
|
'createdAt': !exists(json, 'createdAt') ? undefined : (json['createdAt'] === null ? null : new Date(json['createdAt'])),
|
|
86
100
|
'updatedAt': !exists(json, 'updatedAt') ? undefined : (json['updatedAt'] === null ? null : new Date(json['updatedAt'])),
|
|
@@ -99,6 +113,7 @@ export function SampleToJSON(value?: Sample | null): any {
|
|
|
99
113
|
'id': value.id,
|
|
100
114
|
'name': value.name,
|
|
101
115
|
'metadata': value.metadata,
|
|
116
|
+
'files': value.files === undefined ? undefined : (value.files === null ? null : (value.files as Array<any>).map(DataFileToJSON)),
|
|
102
117
|
'datasetIds': value.datasetIds,
|
|
103
118
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),
|
|
104
119
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt === null ? null : value.updatedAt.toISOString()),
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { UserSettings } from './UserSettings';
|
|
17
|
+
import {
|
|
18
|
+
UserSettingsFromJSON,
|
|
19
|
+
UserSettingsFromJSONTyped,
|
|
20
|
+
UserSettingsToJSON,
|
|
21
|
+
} from './UserSettings';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -43,6 +50,12 @@ export interface UpdateUserRequest {
|
|
|
43
50
|
* @memberof UpdateUserRequest
|
|
44
51
|
*/
|
|
45
52
|
department?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Job title or role of the user
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof UpdateUserRequest
|
|
57
|
+
*/
|
|
58
|
+
jobTitle?: string;
|
|
46
59
|
/**
|
|
47
60
|
* The organization the user belongs to, only editable by administrators
|
|
48
61
|
* @type {string}
|
|
@@ -50,11 +63,11 @@ export interface UpdateUserRequest {
|
|
|
50
63
|
*/
|
|
51
64
|
organization?: string;
|
|
52
65
|
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {
|
|
66
|
+
*
|
|
67
|
+
* @type {UserSettings}
|
|
55
68
|
* @memberof UpdateUserRequest
|
|
56
69
|
*/
|
|
57
|
-
settings?:
|
|
70
|
+
settings?: UserSettings | null;
|
|
58
71
|
/**
|
|
59
72
|
* Groups the user belongs to, only editable by administrators
|
|
60
73
|
* @type {Array<string>}
|
|
@@ -88,8 +101,9 @@ export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
88
101
|
'email': json['email'],
|
|
89
102
|
'phone': !exists(json, 'phone') ? undefined : json['phone'],
|
|
90
103
|
'department': !exists(json, 'department') ? undefined : json['department'],
|
|
104
|
+
'jobTitle': !exists(json, 'jobTitle') ? undefined : json['jobTitle'],
|
|
91
105
|
'organization': !exists(json, 'organization') ? undefined : json['organization'],
|
|
92
|
-
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
106
|
+
'settings': !exists(json, 'settings') ? undefined : UserSettingsFromJSON(json['settings']),
|
|
93
107
|
'groups': !exists(json, 'groups') ? undefined : json['groups'],
|
|
94
108
|
};
|
|
95
109
|
}
|
|
@@ -107,8 +121,9 @@ export function UpdateUserRequestToJSON(value?: UpdateUserRequest | null): any {
|
|
|
107
121
|
'email': value.email,
|
|
108
122
|
'phone': value.phone,
|
|
109
123
|
'department': value.department,
|
|
124
|
+
'jobTitle': value.jobTitle,
|
|
110
125
|
'organization': value.organization,
|
|
111
|
-
'settings': value.settings,
|
|
126
|
+
'settings': UserSettingsToJSON(value.settings),
|
|
112
127
|
'groups': value.groups,
|
|
113
128
|
};
|
|
114
129
|
}
|
package/src/models/UserDetail.ts
CHANGED
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
UserProjectAssignmentFromJSONTyped,
|
|
20
20
|
UserProjectAssignmentToJSON,
|
|
21
21
|
} from './UserProjectAssignment';
|
|
22
|
+
import type { UserSettings } from './UserSettings';
|
|
23
|
+
import {
|
|
24
|
+
UserSettingsFromJSON,
|
|
25
|
+
UserSettingsFromJSONTyped,
|
|
26
|
+
UserSettingsToJSON,
|
|
27
|
+
} from './UserSettings';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
@@ -56,6 +62,12 @@ export interface UserDetail {
|
|
|
56
62
|
* @memberof UserDetail
|
|
57
63
|
*/
|
|
58
64
|
organization: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof UserDetail
|
|
69
|
+
*/
|
|
70
|
+
jobTitle: string;
|
|
59
71
|
/**
|
|
60
72
|
*
|
|
61
73
|
* @type {string}
|
|
@@ -86,6 +98,12 @@ export interface UserDetail {
|
|
|
86
98
|
* @memberof UserDetail
|
|
87
99
|
*/
|
|
88
100
|
groups: Array<string>;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {UserSettings}
|
|
104
|
+
* @memberof UserDetail
|
|
105
|
+
*/
|
|
106
|
+
settings: UserSettings;
|
|
89
107
|
}
|
|
90
108
|
|
|
91
109
|
/**
|
|
@@ -98,10 +116,12 @@ export function instanceOfUserDetail(value: object): boolean {
|
|
|
98
116
|
isInstance = isInstance && "phone" in value;
|
|
99
117
|
isInstance = isInstance && "email" in value;
|
|
100
118
|
isInstance = isInstance && "organization" in value;
|
|
119
|
+
isInstance = isInstance && "jobTitle" in value;
|
|
101
120
|
isInstance = isInstance && "department" in value;
|
|
102
121
|
isInstance = isInstance && "invitedBy" in value;
|
|
103
122
|
isInstance = isInstance && "projectAssignments" in value;
|
|
104
123
|
isInstance = isInstance && "groups" in value;
|
|
124
|
+
isInstance = isInstance && "settings" in value;
|
|
105
125
|
|
|
106
126
|
return isInstance;
|
|
107
127
|
}
|
|
@@ -121,11 +141,13 @@ export function UserDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
121
141
|
'phone': json['phone'],
|
|
122
142
|
'email': json['email'],
|
|
123
143
|
'organization': json['organization'],
|
|
144
|
+
'jobTitle': json['jobTitle'],
|
|
124
145
|
'department': json['department'],
|
|
125
146
|
'invitedBy': json['invitedBy'],
|
|
126
147
|
'signUpTime': !exists(json, 'signUpTime') ? undefined : (json['signUpTime'] === null ? null : new Date(json['signUpTime'])),
|
|
127
148
|
'projectAssignments': ((json['projectAssignments'] as Array<any>).map(UserProjectAssignmentFromJSON)),
|
|
128
149
|
'groups': json['groups'],
|
|
150
|
+
'settings': UserSettingsFromJSON(json['settings']),
|
|
129
151
|
};
|
|
130
152
|
}
|
|
131
153
|
|
|
@@ -143,11 +165,13 @@ export function UserDetailToJSON(value?: UserDetail | null): any {
|
|
|
143
165
|
'phone': value.phone,
|
|
144
166
|
'email': value.email,
|
|
145
167
|
'organization': value.organization,
|
|
168
|
+
'jobTitle': value.jobTitle,
|
|
146
169
|
'department': value.department,
|
|
147
170
|
'invitedBy': value.invitedBy,
|
|
148
171
|
'signUpTime': value.signUpTime === undefined ? undefined : (value.signUpTime === null ? null : value.signUpTime.toISOString()),
|
|
149
172
|
'projectAssignments': ((value.projectAssignments as Array<any>).map(UserProjectAssignmentToJSON)),
|
|
150
173
|
'groups': value.groups,
|
|
174
|
+
'settings': UserSettingsToJSON(value.settings),
|
|
151
175
|
};
|
|
152
176
|
}
|
|
153
177
|
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* Additional settings for the user
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserSettings
|
|
20
|
+
*/
|
|
21
|
+
export interface UserSettings {
|
|
22
|
+
[key: string]: any | any;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof UserSettings
|
|
27
|
+
*/
|
|
28
|
+
analysisUpdateNotificationsEnabled: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UserSettings interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfUserSettings(value: object): boolean {
|
|
35
|
+
let isInstance = true;
|
|
36
|
+
isInstance = isInstance && "analysisUpdateNotificationsEnabled" in value;
|
|
37
|
+
|
|
38
|
+
return isInstance;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function UserSettingsFromJSON(json: any): UserSettings {
|
|
42
|
+
return UserSettingsFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UserSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSettings {
|
|
46
|
+
if ((json === undefined) || (json === null)) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
...json,
|
|
52
|
+
'analysisUpdateNotificationsEnabled': json['analysisUpdateNotificationsEnabled'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UserSettingsToJSON(value?: UserSettings | null): any {
|
|
57
|
+
if (value === undefined) {
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
if (value === null) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
...value,
|
|
66
|
+
'analysisUpdateNotificationsEnabled': value.analysisUpdateNotificationsEnabled,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './CustomPipelineSettings';
|
|
|
32
32
|
export * from './CustomerType';
|
|
33
33
|
export * from './Dashboard';
|
|
34
34
|
export * from './DashboardRequest';
|
|
35
|
+
export * from './DataFile';
|
|
35
36
|
export * from './Dataset';
|
|
36
37
|
export * from './DatasetAssetsManifest';
|
|
37
38
|
export * from './DatasetCondition';
|
|
@@ -127,4 +128,5 @@ export * from './UploadDatasetRequest';
|
|
|
127
128
|
export * from './User';
|
|
128
129
|
export * from './UserDetail';
|
|
129
130
|
export * from './UserProjectAssignment';
|
|
131
|
+
export * from './UserSettings';
|
|
130
132
|
export * from './ValidateFileRequirementsRequest';
|