filter type refactor WIP

This commit is contained in:
Jan Prochazka
2024-08-16 16:46:55 +02:00
parent c0d664d399
commit b7c7e41375
3 changed files with 69 additions and 0 deletions

18
packages/types/filter-type.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
export type FilterParserCompilerType = 'sqlTree' | 'mongoCondition';
export interface StructuredFilterType {
compilerType: FilterParserCompilerType;
supportEquals?: boolean;
supportStringInclusion?: boolean;
supportEmpty?: boolean;
supportNumberLikeComparison?: boolean;
supportDatetimeComparison?: boolean;
supportDatetimeSymbols?: boolean;
supportNullTesting?: boolean;
supportExistsTesting?: boolean;
supportBooleanValues?: boolean;
supportSqlCondition?: boolean;
// allowedOperators: Array<{ value: string; label: string }>;
}

View File

@@ -47,3 +47,4 @@ export * from './dbtypes';
export * from './extensions';
export * from './alter-processor';
export * from './appdefs';
export * from './filter-type';