mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
* Also Add includeHidden param for GET on columns
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user