Fix client linting.

This commit is contained in:
John Chilton
2025-12-22 14:12:11 -05:00
parent f4bfd3b6d9
commit c6c00aec2f
3 changed files with 13 additions and 1 deletions
+5
View File
@@ -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 {
+3
View File
@@ -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):