mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 15:16:01 +00:00
uploads - moved logic to FE because of plugins
This commit is contained in:
30
packages/types/extensions.d.ts
vendored
Normal file
30
packages/types/extensions.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
export interface FileFormatDefinition {
|
||||
storageType: string;
|
||||
extension: string;
|
||||
name: string;
|
||||
readerFunc?: string;
|
||||
writerFunc?: string;
|
||||
args?: any[];
|
||||
addFilesToSourceList?: (
|
||||
file: {
|
||||
full: string;
|
||||
},
|
||||
newSources: string[],
|
||||
newValues: {
|
||||
[key: string]: any;
|
||||
}
|
||||
) => void;
|
||||
getDefaultOutputName?: (sourceName, values) => string;
|
||||
getOutputParams?: (sourceName, values) => any;
|
||||
}
|
||||
|
||||
export interface PluginDefinition {
|
||||
packageName: string;
|
||||
manifest: any;
|
||||
content: any;
|
||||
}
|
||||
|
||||
export interface ExtensionsDirectory {
|
||||
plugins: PluginDefinition[];
|
||||
fileFormats: FileFormatDefinition[];
|
||||
}
|
||||
20
packages/types/fileformat.d.ts
vendored
20
packages/types/fileformat.d.ts
vendored
@@ -1,20 +0,0 @@
|
||||
export interface FileFormatDefinition {
|
||||
storageType: string;
|
||||
extension: string;
|
||||
name: string;
|
||||
readerFunc?: string;
|
||||
writerFunc?: string;
|
||||
args?: any[];
|
||||
addFilesToSourceList: (
|
||||
file: {
|
||||
full: string;
|
||||
},
|
||||
newSources: string[],
|
||||
newValues: {
|
||||
[key: string]: any;
|
||||
}
|
||||
) => void;
|
||||
getDefaultOutputName?: (sourceName, values) => string;
|
||||
getOutputParams?: (sourceName, values) => any;
|
||||
}
|
||||
|
||||
2
packages/types/index.d.ts
vendored
2
packages/types/index.d.ts
vendored
@@ -39,4 +39,4 @@ export * from './query';
|
||||
export * from './dialect';
|
||||
export * from './dumper';
|
||||
export * from './dbtypes';
|
||||
export * from './fileformat';
|
||||
export * from './extensions';
|
||||
|
||||
Reference in New Issue
Block a user