@chego/chego-api
Advanced tools
Comparing version 1.0.3 to 1.0.4
import { IQueryAndWhere, IQuerySelect } from './interfaces'; | ||
import { QuerySyntaxEnum } from './enums'; | ||
import { QuerySyntaxTemplate, QueryBuildFunction, CommandProp, AnyButFunction, StringOrProperty, Fn } from './types'; | ||
import { QuerySyntaxTemplate, QueryBuildFunction, AnyButFunction, StringOrProperty, Fn } from './types'; | ||
export declare type CommandProp = QueryBuildFunction<IQuery> | AnyButFunction; | ||
export interface IChego { | ||
@@ -41,5 +42,2 @@ execute(query: IQuery): Promise<any>; | ||
} | ||
export interface IQuerySchemeBuilder extends IQueryMethods { | ||
build(): IQuerySchemeElement[]; | ||
} | ||
export interface IQueryAnd { | ||
@@ -61,3 +59,3 @@ and: IQueryNot & IQueryEqualTo & IQueryLike & IQueryGT & IQueryLT & IQueryBetween & IQueryWhere & IQueryWrapped; | ||
export interface IQueryEqualTo { | ||
eq(value: CommandProp<IQuery>): IQueryOrder & IQueryLimit & IQueryAnd & IQueryOr; | ||
eq(...values: CommandProp[]): IQueryOrder & IQueryLimit & IQueryAnd & IQueryOr; | ||
} | ||
@@ -71,3 +69,3 @@ export interface IQueryWhereExists { | ||
export interface IQueryGT { | ||
gt(value: CommandProp<IQuery>): IQueryOrder & IQueryLimit & IQueryAnd & IQueryOr; | ||
gt(...values: CommandProp[]): IQueryOrder & IQueryLimit & IQueryAnd & IQueryOr; | ||
} | ||
@@ -81,3 +79,3 @@ export interface IQueryInsert { | ||
export interface IQueryLike { | ||
like(value: CommandProp<IQuery>): IQueryOrder & IQueryLimit & IQueryAnd & IQueryOr; | ||
like(...values: CommandProp[]): IQueryOrder & IQueryLimit & IQueryAnd & IQueryOr; | ||
} | ||
@@ -88,3 +86,3 @@ export interface IQueryLimit { | ||
export interface IQueryLT { | ||
lt(value: CommandProp<IQuery>): IQueryOrder & IQueryLimit & IQueryAnd & IQueryOr; | ||
lt(...values: CommandProp[]): IQueryOrder & IQueryLimit & IQueryAnd & IQueryOr; | ||
} | ||
@@ -91,0 +89,0 @@ export interface IQueryNot { |
@@ -45,2 +45,1 @@ import { QuerySyntaxEnum, SortingOrderEnum } from './enums'; | ||
export declare type AnyButFunction = Exclude<PrimaryTypes | Obj, (...args: any[]) => any>; | ||
export declare type CommandProp<T> = QueryBuildFunction<T> | AnyButFunction; |
{ | ||
"name": "@chego/chego-api", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "The API layer of Chego modules.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/api.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26160
312