2022-04-15 14:56:13 +02:00
|
|
|
import { UsableLocale } from '@faker-js/faker';
|
|
|
|
|
2022-06-21 17:54:47 +02:00
|
|
|
export interface TableUpdateParams {
|
|
|
|
uid: string;
|
|
|
|
schema: string;
|
|
|
|
table: string;
|
|
|
|
primary?: string;
|
|
|
|
id: number | string;
|
|
|
|
content: number | string | boolean | Date | Blob | null;
|
|
|
|
type: string;
|
|
|
|
field: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TableDeleteParams {
|
|
|
|
uid: string;
|
|
|
|
schema: string;
|
|
|
|
table: string;
|
|
|
|
primary?: string;
|
|
|
|
field: string;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
rows: {[key: string]: any};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TableFilterClausole {
|
|
|
|
active: boolean;
|
|
|
|
field: string;
|
|
|
|
op: '=' | '!=' | '>' | '<' | '>=' | '<=' | 'IN' | 'NOT IN' | 'LIKE' | 'BETWEEN' | 'IS NULL' | 'IS NOT NULL';
|
|
|
|
value: '';
|
|
|
|
value2: '';
|
|
|
|
}
|
|
|
|
|
2022-04-15 14:56:13 +02:00
|
|
|
export interface InsertRowsParams {
|
|
|
|
uid: string;
|
|
|
|
schema: string;
|
|
|
|
table: string;
|
|
|
|
row: {[key: string]: {
|
|
|
|
group: string;
|
|
|
|
method: string;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
params: any;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
value: any;
|
|
|
|
length: number;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
repeat: number;
|
|
|
|
fields: {[key: string]: string};
|
|
|
|
locale: UsableLocale;
|
|
|
|
}
|