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.
40 lines
703 B
40 lines
703 B
3 years ago
|
/**
|
||
|
* Custom widget manifest definition.
|
||
|
*/
|
||
|
export interface ICustomWidget {
|
||
|
/**
|
||
|
* Widget friendly name, used on the UI.
|
||
|
*/
|
||
|
name: string;
|
||
|
/**
|
||
|
* Widget unique id, probably in npm package format @gristlabs/custom-widget-name.
|
||
|
*/
|
||
|
widgetId: string;
|
||
|
/**
|
||
|
* Custom widget main page URL.
|
||
|
*/
|
||
|
url: string;
|
||
|
/**
|
||
|
* Optional desired access level.
|
||
|
*/
|
||
|
accessLevel?: AccessLevel;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Widget access level.
|
||
|
*/
|
||
|
export enum AccessLevel {
|
||
|
/**
|
||
|
* Default, no access to Grist.
|
||
|
*/
|
||
|
none = "none",
|
||
|
/**
|
||
|
* Read only access to table the widget is based on.
|
||
|
*/
|
||
|
read_table = "read table",
|
||
|
/**
|
||
|
* Full access to document on user's behalf.
|
||
|
*/
|
||
|
full = "full",
|
||
|
}
|