Issue #601: implement PUT on columns (#605)

* Also Add includeHidden param for GET on columns
This commit is contained in:
Florent
2023-08-11 15:12:43 +02:00
committed by GitHub
parent 605a3022e9
commit e93ad5a0c5
4 changed files with 197 additions and 4 deletions

View File

@@ -68,6 +68,10 @@ export const ColumnsPatch = t.iface([], {
"columns": t.tuple("RecordWithStringId", t.rest(t.array("RecordWithStringId"))),
});
export const ColumnsPut = t.iface([], {
"columns": t.tuple("RecordWithStringId", t.rest(t.array("RecordWithStringId"))),
});
export const TablePost = t.iface(["ColumnsPost"], {
"id": t.opt("string"),
});
@@ -93,6 +97,7 @@ const exportedTypeSuite: t.ITypeSuite = {
MinimalRecord,
ColumnsPost,
ColumnsPatch,
ColumnsPut,
TablePost,
TablesPost,
TablesPatch,

View File

@@ -88,6 +88,10 @@ export interface ColumnsPatch {
columns: [RecordWithStringId, ...RecordWithStringId[]]; // at least one column is required
}
export interface ColumnsPut {
columns: [RecordWithStringId, ...RecordWithStringId[]]; // at least one column is required
}
/**
* Creating tables requires a list of columns.
* `fields` is not accepted because it's not generally sensible to set the metadata fields on new tables.