mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-03 21:34:30 +08:00
Fix client linting.
This commit is contained in:
@@ -9392,6 +9392,11 @@ export interface components {
|
||||
* @description The type of the collection, can be `list`, `paired`, or define subcollections using `:` as separator like `list:paired` or `list:list`.
|
||||
*/
|
||||
collection_type: string;
|
||||
/**
|
||||
* Column Definitions
|
||||
* @description Column definitions for sample sheet collections.
|
||||
*/
|
||||
column_definitions?: components["schemas"]["SampleSheetColumnDefinition"][] | null;
|
||||
/** Contents Url */
|
||||
contents_url?: string | null;
|
||||
/**
|
||||
|
||||
@@ -564,7 +564,11 @@ function getElementAttributes(element: HistoryOrCollectionItem): {
|
||||
// we already know it is a collection element by this point
|
||||
if (isCollectionElement(element)) {
|
||||
collectionType = element.object.collection_type;
|
||||
columnDefinitions = element.object.column_definitions;
|
||||
// Cast needed: schema has two structurally identical SampleSheetColumnDefinition types
|
||||
columnDefinitions = element.object.column_definitions as
|
||||
| SampleSheetColumnDefinition[]
|
||||
| null
|
||||
| undefined;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -1067,6 +1067,9 @@ class DCObject(Model, WithModelClass):
|
||||
elements_datatypes: set[str] = Field(
|
||||
..., description="A set containing all the different element datatypes in the collection."
|
||||
)
|
||||
column_definitions: Optional[SampleSheetColumnDefinitions] = Field(
|
||||
None, description="Column definitions for sample sheet collections."
|
||||
)
|
||||
|
||||
|
||||
class DCESummary(Model, WithModelClass):
|
||||
|
||||
Reference in New Issue
Block a user