@prismatic-io/embedded
Version:
Embed Prismatic's integration marketplace and workflow designer within your existing application.
31 lines (30 loc) • 807 B
TypeScript
export declare enum BooleanOperator {
and = "and",
or = "or"
}
export declare enum TermOperator {
equal = "equal",
notEqual = "notEqual",
in = "in",
notIn = "notIn",
startsWith = "startsWith",
doesNotStartWith = "doesNotStartWith",
endsWith = "endsWith",
doesNotEndWith = "doesNotEndWith"
}
export declare const TermOperatorPhrase: {
equal: string;
notEqual: string;
in: string;
notIn: string;
startsWith: string;
doesNotStartWith: string;
endsWith: string;
doesNotEndWith: string;
};
export type TermExpression = [TermOperator, unknown, unknown?];
export type BooleanExpression = [
BooleanOperator.and | BooleanOperator.or,
...ConditionalExpression[]
];
export type ConditionalExpression = TermExpression | BooleanExpression;