api-core
Version:
Model-based dynamic multi-level APIs for any provider, plus multiple consumption channels
31 lines (27 loc) • 643 B
text/typescript
export enum ApiEdgeQueryFilterType {
Equals = 1,
GreaterThanOrEquals,
GreaterThan,
LowerThanOrEquals,
LowerThan,
NotEquals,
Similar,
In,
NotIn
}
export interface ExportedApiEdgeQueryFilter {
field: string
value: any
type: ApiEdgeQueryFilterType
}
export class ApiEdgeQueryFilter {
field: string;
value: any;
type: ApiEdgeQueryFilterType;
constructor(field: string, type: ApiEdgeQueryFilterType, value: any) {
this.field = field;
this.value = value;
this.type = type;
}
clone = () => new ApiEdgeQueryFilter(this.field, this.type, this.value);
}