sasat 0.19.29 → 0.19.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,8 +10,8 @@ export declare const QExpr: {
|
|
|
10
10
|
readonly subQueryTable: (query: Query, joins: Join[], alias: string) => QueryTable;
|
|
11
11
|
readonly join: (table: QueryTable, conditions: BooleanValueExpression, type?: JoinType) => Join;
|
|
12
12
|
readonly value: (value: ValueType) => Literal;
|
|
13
|
-
readonly sort: (field: Field | Fn, direction
|
|
14
|
-
readonly order: (field: Field | Fn, direction
|
|
13
|
+
readonly sort: (field: Field | Fn, direction?: SortDirection) => Sort;
|
|
14
|
+
readonly order: (field: Field | Fn, direction?: SortDirection) => Sort;
|
|
15
15
|
readonly ident: (identifier: string) => Identifier;
|
|
16
16
|
readonly simpleWhere: (tableNameOrAlias: string, where: {
|
|
17
17
|
[field: string]: ValueType | [ComparisonOperators, ValueType];
|
|
@@ -31,7 +31,7 @@ export declare const QExpr: {
|
|
|
31
31
|
readonly notStatsWiths: (left: Value, right: string) => BooleanValueExpression;
|
|
32
32
|
readonly endsWiths: (left: Value, right: string) => BooleanValueExpression;
|
|
33
33
|
readonly notEndsWiths: (left: Value, right: string) => BooleanValueExpression;
|
|
34
|
-
readonly In: (left: Value, values:
|
|
34
|
+
readonly In: (left: Value, values: StrOrNum[]) => BooleanValueExpression;
|
|
35
35
|
readonly notIn: (left: Value, values: (string | number)[]) => InExpression;
|
|
36
36
|
readonly between: (left: Value, begin: Value, end: Value) => BetweenExpression;
|
|
37
37
|
readonly isNull: (expr: Value) => IsNullExpression;
|
|
@@ -55,7 +55,7 @@ export declare const QExpr: {
|
|
|
55
55
|
notStatsWiths: (left: Value, right: string) => BooleanValueExpression;
|
|
56
56
|
endsWiths: (left: Value, right: string) => BooleanValueExpression;
|
|
57
57
|
notEndsWiths: (left: Value, right: string) => BooleanValueExpression;
|
|
58
|
-
In: (left: Value, values:
|
|
58
|
+
In: (left: Value, values: StrOrNum[]) => BooleanValueExpression;
|
|
59
59
|
notIn: (left: Value, values: (string | number)[]) => InExpression;
|
|
60
60
|
between: (left: Value, begin: Value, end: Value) => BetweenExpression;
|
|
61
61
|
isNull: (expr: Value) => IsNullExpression;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLResolveInfo, SelectionNode } from 'graphql';
|
|
2
2
|
import { Fields } from './field.js';
|
|
3
|
+
export declare const selectionSetToField: <T extends Fields<unknown>>(selections: readonly SelectionNode[], number: number) => [T, number];
|
|
3
4
|
export declare const gqlResolveInfoToField: <T extends Fields<any> = Fields<unknown>>(info: GraphQLResolveInfo) => T;
|