tmw-data
Version:
TMW数据结构
47 lines (46 loc) • 1.1 kB
TypeScript
export declare enum PluginProfileScope {
database = "database",
collection = "collection",
document = "document"
}
export declare enum PluginProfileAmount {
zero = "zero",
one = "one",
many = "many"
}
export interface PluginProfileBeforeWidget {
name: string;
remoteWidgetOptions?: boolean;
url?: string;
size?: string;
[k: string]: any;
}
export interface PluginProfile {
name: string;
scope: PluginProfileScope;
spreadsheet: boolean;
title: string;
description: string;
disabled?: boolean;
visible?: any;
amount?: PluginProfileAmount;
bucketName?: RegExp;
dbName?: RegExp;
clName?: RegExp;
schemaName?: RegExp;
rejectedRight?: string[];
schemaJson?: any;
excludeTags?: string[];
everyTags?: string[];
someTags?: string[];
beforeWidget?: PluginProfileBeforeWidget;
remoteWidgetOptions?: Function;
dbBlacklist?: RegExp;
clBlacklist?: RegExp;
schemaBlacklist?: RegExp;
match?: (obj: any) => {};
}
export interface PluginExecuteResult {
code: number;
msg: any;
}