import { Token, TokenType } from "odata-v4-parser/lib/lexer"; import { ODataServer } from "./server"; import { ODataController } from "./controller"; export interface KeyValuePair { name: string; value: any; raw?: string; node: Token; } export interface NavigationPart { name: string; type: TokenType; key?: KeyValuePair[]; params?: any; node: Token; } export interface ISelect { [property: string]: ISelect; } export declare const ODATA_TYPE = "@odata.type"; export declare const ODATA_TYPENAME = "@odata.type.name"; export declare class ResourcePathVisitor { private serverType; private entitySets; navigation: NavigationPart[]; select: ISelect; alias: any; path: string; singleton: string; inlinecount: boolean; id: string; ast: Token; navigationProperty: string; query: any; includes: { [navigationProperty: string]: ResourcePathVisitor; }; constructor(serverType: typeof ODataServer, entitySets: { [entitySet: string]: typeof ODataController; }); Visit(node: Token, context?: any, type?: any): Promise; protected VisitODataUri(node: Token, context: any): Promise; protected VisitQueryOptions(node: Token, context: any, type: any): Promise; protected VisitSelect(node: Token, context: any, type: any): void; protected VisitSelectItem(node: Token, context: any, type: any): void; protected VisitFilter(node: Token, context: any, type: any): Promise; protected VisitAndExpression(node: Token, context: any, type: any): Promise; protected VisitOrExpression(node: Token, context: any, type: any): Promise; protected VisitBoolParenExpression(node: Token, context: any, type: any): Promise; protected VisitCommonExpression(node: Token, context: any, type: any): Promise; protected VisitFirstMemberExpression(node: Token, context: any, type: any): Promise; protected VisitMemberExpression(node: Token, context: any, type: any): Promise; protected VisitPropertyPathExpression(node: Token, context: any, type: any): Promise; protected VisitNotExpression(node: Token, context: any, type: any): Promise; protected VisitEqualsExpression(node: Token, context: any, type: any): Promise; protected VisitNotEqualsExpression(node: Token, context: any, type: any): Promise; protected VisitLesserThanExpression(node: Token, context: any, type: any): Promise; protected VisitLesserOrEqualsExpression(node: Token, context: any, type: any): Promise; protected VisitGreaterThanExpression(node: Token, context: any, type: any): Promise; protected VisitGreaterOrEqualsExpression(node: Token, context: any, type: any): Promise; protected VisitHasExpression(node: Token, context: any, type: any): Promise; protected VisitExpand(node: Token, context: any, type: any): Promise; protected VisitExpandItem(node: Token, context: any, type: any): Promise; protected VisitExpandPath(node: Token, context: any, type: any): Promise; protected VisitId(node: Token): void; protected VisitInlineCount(node: Token): void; protected VisitAliasAndValue(node: Token, context: any): Promise; protected VisitResourcePath(node: Token, context: any): Promise; protected VisitSingletonEntity(node: Token): void; protected VisitEntitySetName(node: Token, context: any): void; protected VisitCountExpression(node: Token): void; protected VisitCollectionNavigation(node: Token, context: any, type: any): Promise; protected VisitCollectionNavigationPath(node: Token, context: any, type: any): Promise; protected VisitSimpleKey(node: Token, _: any, type: any): Promise; protected VisitCompoundKey(node: Token, _: any, type: any): Promise; protected VisitQualifiedTypeName(node: Token, context: any, type: any): void; protected VisitSingleNavigation(node: Token, context: any, type: any): Promise; protected VisitPropertyPath(node: Token, context: any, type: any): Promise; protected VisitProperty(node: Token, _: any): void; protected VisitValueExpression(node: Token): void; protected VisitRefExpression(node: Token): void; protected VisitBoundOperation(node: Token, context: any, type: any): Promise; protected VisitBoundActionCall(node: Token): void; protected VisitBoundFunctionCall(node: Token, context: any, type: any): Promise; protected VisitFunctionImportCall(node: Token, context: any): Promise; protected VisitFunctionParameter(node: Token, context: any): Promise; protected VisitActionImportCall(node: Token): void; protected VisitParameterAlias(node: Token, context: any): void; protected VisitLiteral(node: Token, context: any, type: any): Promise; protected VisitObject(node: Token, context: any, type: any): void; protected VisitEnum(node: Token, context: any, type: any): Promise; protected VisitEnumValue(node: Token, context: any, type: any): Promise; protected VisitEnumerationMember(node: Token, context: any, type: any): Promise; protected VisitEnumMemberValue(node: Token, context: any, type: any): void; protected VisitRootExpression(node: Token, context: any, type: any): Promise; }