UNPKG

odatafy-parser

Version:

generate odatafy ast from odata query parameters

14 lines (13 loc) 674 B
import { FilterNode } from '../types/nodes'; export declare enum Prefixes { Str_Escape = "%", Func_Escape = "$" } export declare function getIdentifier(prefix: Prefixes): string; export declare function escapeStrings(expr: string): [string, Record<string, string>]; export declare function escapeFunctions(expr: string): [string, Record<string, string>]; export declare function replaceMathSymbols(mathExpr: string): string; export declare function parseMathExpression(mathExpr: string): any; export declare function cleanAST(ast: any): FilterNode; export declare function processAST(ast: any): FilterNode; export default function astPostProc(ast: any): FilterNode;