UNPKG

@maximai/maxim-js

Version:

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

29 lines (28 loc) 734 B
export declare enum QueryRuleType { DeploymentVar = "deploymentVar", Tag = "tag" } export type QueryRule = { query: string; operator: "AND" | "OR"; exactMatch: boolean; scopes: Scopes; }; type Scopes = { [key: string]: string; }; export declare class QueryBuilder { private query; private scopes; private operator; private isExactMatch; constructor(); and(): QueryBuilder; or(): QueryBuilder; folder(folderId: string): QueryBuilder; exactMatch(): QueryBuilder; deploymentVar(key: string, value: string | number | boolean, enforce?: boolean): this; tag(key: string, value: string | number | boolean, enforce?: boolean): this; build(): QueryRule; } export {};