You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
722 B
39 lines
722 B
/**
|
|
* Common definitions for Grist plugin APIs.
|
|
*/
|
|
|
|
/**
|
|
*
|
|
* Metadata and data for a table. This is documenting what is currently returned by the
|
|
* core plugins. Could be worth reconciling with:
|
|
* https://phab.getgrist.com/w/grist_data_format/
|
|
* Capitalization is python-style.
|
|
*
|
|
*/
|
|
export interface GristTable {
|
|
table_name: string | null; // currently allow names to be null
|
|
column_metadata: GristColumn[];
|
|
table_data: any[][];
|
|
}
|
|
|
|
export interface GristTables {
|
|
tables: GristTable[];
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Metadata about a single column.
|
|
*
|
|
*/
|
|
export interface GristColumn {
|
|
id: string;
|
|
type: string;
|
|
}
|
|
|
|
export enum APIType {
|
|
ImportSourceAPI,
|
|
ImportProcessorAPI,
|
|
ParseOptionsAPI,
|
|
ParseFileAPI,
|
|
}
|