mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 02:36:00 +00:00
25 lines
420 B
TypeScript
25 lines
420 B
TypeScript
import _ from 'lodash';
|
|
|
|
export interface MacroArgument {
|
|
type: 'text' | 'select';
|
|
label: string;
|
|
name: string;
|
|
}
|
|
|
|
export interface MacroDefinition {
|
|
title: string;
|
|
name: string;
|
|
group: string;
|
|
description?: string;
|
|
type: 'transformValue' | 'transformRow';
|
|
code: string;
|
|
args?: MacroArgument[];
|
|
}
|
|
|
|
export interface MacroSelectedCell {
|
|
column: string;
|
|
row: number;
|
|
rowData: any;
|
|
value: any;
|
|
}
|