@insurgo/niam.xrm.client.test
Version:
InMemory Xrm WebApi
49 lines (48 loc) • 1.35 kB
TypeScript
import { Entity, WebApiOption } from '../definitions';
export declare enum operator {
eq = 0,
ne = 1,
gt = 2,
ge = 3,
lt = 4,
le = 5,
contains = 6,
endswith = 7,
startswith = 8
}
export declare enum logicalOperator {
and = 0,
or = 1,
not = 2
}
export interface hierarchyFilterType {
attributeName: string;
operator: operator;
value: string;
logicalOperator?: logicalOperator;
not?: boolean;
filterTypes: hierarchyFilterType[];
}
export interface filterType {
attributeName: string;
operator: operator;
value: string;
logicalOperator?: logicalOperator;
not?: boolean;
bracketOpenCt: number;
bracketCloseCt: number;
totalBracket?: number;
}
export declare function parseValue(value: any): any;
export declare function filter(entities: Entity[], webOption: WebApiOption): Entity[];
export declare function getHierarchyCommands(query: string): hierarchyFilterType[];
export declare function parsingValue(value: string): {
text: string;
closeBracketCount: number;
};
export declare type logicalType = {
text: string;
logicalOperator?: logicalOperator;
};
export declare function transformText(value: string): string;
export declare function getCommands(query: string): filterType[];