mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
a8e0f96813
Summary: - Adding new option 'strictType' to widget mapping - Refreshing mappings when widget options are changed Test Plan: Updated Reviewers: JakubSerafin Reviewed By: JakubSerafin Differential Revision: https://phab.getgrist.com/D4061
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
/**
|
|
* This module was automatically generated by `ts-interface-builder`
|
|
*/
|
|
import * as t from "ts-interface-checker";
|
|
// tslint:disable:object-literal-key-quotes
|
|
|
|
export const ColumnToMap = t.iface([], {
|
|
"name": "string",
|
|
"title": t.opt(t.union("string", "null")),
|
|
"description": t.opt(t.union("string", "null")),
|
|
"type": t.opt("string"),
|
|
"optional": t.opt("boolean"),
|
|
"allowMultiple": t.opt("boolean"),
|
|
"strictType": t.opt("boolean"),
|
|
});
|
|
|
|
export const ColumnsToMap = t.array(t.union("string", "ColumnToMap"));
|
|
|
|
export const InteractionOptionsRequest = t.iface([], {
|
|
"requiredAccess": t.opt("string"),
|
|
"hasCustomOptions": t.opt("boolean"),
|
|
"columns": t.opt("ColumnsToMap"),
|
|
"allowSelectBy": t.opt("boolean"),
|
|
});
|
|
|
|
export const InteractionOptions = t.iface([], {
|
|
"accessLevel": "string",
|
|
"theme": "any",
|
|
});
|
|
|
|
export const WidgetColumnMap = t.iface([], {
|
|
[t.indexKey]: t.union("string", t.array("string"), "null"),
|
|
});
|
|
|
|
export const CustomSectionAPI = t.iface([], {
|
|
"configure": t.func("void", t.param("customOptions", "InteractionOptionsRequest")),
|
|
"mappings": t.func(t.union("WidgetColumnMap", "null")),
|
|
});
|
|
|
|
const exportedTypeSuite: t.ITypeSuite = {
|
|
ColumnToMap,
|
|
ColumnsToMap,
|
|
InteractionOptionsRequest,
|
|
InteractionOptions,
|
|
WidgetColumnMap,
|
|
CustomSectionAPI,
|
|
};
|
|
export default exportedTypeSuite;
|