2021-10-15 09:31:13 +00:00
|
|
|
/**
|
|
|
|
* This module was automatically generated by `ts-interface-builder`
|
|
|
|
*/
|
2020-07-21 13:20:51 +00:00
|
|
|
import * as t from "ts-interface-checker";
|
|
|
|
// tslint:disable:object-literal-key-quotes
|
|
|
|
|
2022-02-08 15:23:14 +00:00
|
|
|
export const ColumnToMap = t.iface([], {
|
|
|
|
"name": "string",
|
|
|
|
"title": t.opt(t.union("string", "null")),
|
|
|
|
"type": t.opt("string"),
|
|
|
|
"optional": t.opt("boolean"),
|
|
|
|
"allowMultiple": t.opt("boolean"),
|
|
|
|
});
|
|
|
|
|
|
|
|
export const ColumnsToMap = t.array(t.union("string", "ColumnToMap"));
|
|
|
|
|
|
|
|
export const InteractionOptionsRequest = t.iface([], {
|
2022-01-12 13:30:51 +00:00
|
|
|
"requiredAccess": t.opt("string"),
|
|
|
|
"hasCustomOptions": t.opt("boolean"),
|
2022-02-08 15:23:14 +00:00
|
|
|
"columns": t.opt("ColumnsToMap"),
|
2022-01-12 13:30:51 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const InteractionOptions = t.iface([], {
|
|
|
|
"accessLevel": "string",
|
|
|
|
});
|
|
|
|
|
2022-02-08 15:23:14 +00:00
|
|
|
export const WidgetColumnMap = t.iface([], {
|
|
|
|
[t.indexKey]: t.union("string", t.array("string"), "null"),
|
|
|
|
});
|
|
|
|
|
2020-07-21 13:20:51 +00:00
|
|
|
export const CustomSectionAPI = t.iface([], {
|
2022-02-08 15:23:14 +00:00
|
|
|
"configure": t.func("void", t.param("customOptions", "InteractionOptionsRequest")),
|
|
|
|
"mappings": t.func(t.union("WidgetColumnMap", "null")),
|
2020-07-21 13:20:51 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
const exportedTypeSuite: t.ITypeSuite = {
|
2022-02-08 15:23:14 +00:00
|
|
|
ColumnToMap,
|
|
|
|
ColumnsToMap,
|
|
|
|
InteractionOptionsRequest,
|
2022-01-12 13:30:51 +00:00
|
|
|
InteractionOptions,
|
2022-02-08 15:23:14 +00:00
|
|
|
WidgetColumnMap,
|
2020-07-21 13:20:51 +00:00
|
|
|
CustomSectionAPI,
|
|
|
|
};
|
|
|
|
export default exportedTypeSuite;
|