UNPKG

@maximai/maxim-js

Version:

Maxim AI JS SDK. Visit https://getmaxim.ai for more info.

14 lines (13 loc) 546 B
import { RuleGroupType, RuleType } from "./models/deployment"; export interface IncomingQuery { query: string; operator: "AND" | "OR"; exactMatch: boolean; } export interface QueryObject { id: string; query: RuleGroupType; } export declare function parseIncomingQuery(incomingQuery: string): RuleType[]; export declare function findBestMatch(objects: QueryObject[], incomingQuery: IncomingQuery): QueryObject | null; export declare function findAllMatches(objects: QueryObject[], incomingQuery: IncomingQuery): QueryObject[];