@elyx-code/project-logic-tree 0.0.6280 → 0.0.6281
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.
- package/dist/index.js +15181 -15153
- package/dist/index.umd.cjs +201 -201
- package/dist/tree/state/search/index.d.ts +3 -2
- package/dist/tree/state/search/query/search-statement-state.d.ts +10 -10
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './search';
|
|
2
2
|
export * as searchValidation from './validation/logic-validation';
|
|
3
|
-
export * from './query/hydrate';
|
|
4
|
-
export * from './query/search-statement-state';
|
|
3
|
+
export * as searchStatementUtils from './query/hydrate';
|
|
4
|
+
export * as searchStatementState from './query/search-statement-state';
|
|
5
|
+
export * as SQLAST from 'sql-parser-cst';
|
|
@@ -8,7 +8,7 @@ export declare enum SearchStatementNodeType {
|
|
|
8
8
|
DataSource = "data-source",
|
|
9
9
|
ColumnRef = "column-ref",
|
|
10
10
|
ValueRef = "value-ref",
|
|
11
|
-
LiteralValue = "literal-value",
|
|
11
|
+
LiteralValue = "search-statement-literal-value",
|
|
12
12
|
WhereStatement = "where-statement",
|
|
13
13
|
AggregationStatement = "aggregation-statement",
|
|
14
14
|
SortStatement = "sort-statement",
|
|
@@ -59,7 +59,7 @@ export declare enum SearchLiteralValueType {
|
|
|
59
59
|
Null = "null",
|
|
60
60
|
Date = "date"
|
|
61
61
|
}
|
|
62
|
-
export declare class
|
|
62
|
+
export declare class SearchStatementLiteralValue implements ISearchNode {
|
|
63
63
|
owner: SearchStatementState;
|
|
64
64
|
valueType: SearchLiteralValueType;
|
|
65
65
|
value: string | number | boolean | null | Date;
|
|
@@ -87,9 +87,9 @@ export declare class WhereStatement implements ISearchNode {
|
|
|
87
87
|
parent: WhereStatement | null;
|
|
88
88
|
and: WhereStatement[];
|
|
89
89
|
or: WhereStatement[];
|
|
90
|
-
left: ColumnRef | InputMapState |
|
|
90
|
+
left: ColumnRef | InputMapState | SearchStatementLiteralValue | null;
|
|
91
91
|
operator: WhereStatementOperator | null;
|
|
92
|
-
right: ColumnRef | InputMapState |
|
|
92
|
+
right: ColumnRef | InputMapState | SearchStatementLiteralValue | null;
|
|
93
93
|
_id: string;
|
|
94
94
|
constructor(owner: SearchStatementState, parent?: WhereStatement);
|
|
95
95
|
get type(): SearchStatementNodeType.WhereStatement;
|
|
@@ -144,7 +144,7 @@ export declare class DataSource implements IDataSource, ISearchNode {
|
|
|
144
144
|
}
|
|
145
145
|
export declare class ColumnRef implements ISearchNode {
|
|
146
146
|
owner: SearchStatementState;
|
|
147
|
-
source: ColumnRef | PropertyState |
|
|
147
|
+
source: ColumnRef | PropertyState | SearchStatementLiteralValue | null;
|
|
148
148
|
parent: DataSource | null;
|
|
149
149
|
_id: string;
|
|
150
150
|
_as: string | null;
|
|
@@ -152,7 +152,7 @@ export declare class ColumnRef implements ISearchNode {
|
|
|
152
152
|
set as(as: string);
|
|
153
153
|
get as(): string;
|
|
154
154
|
get property(): PropertyState | null;
|
|
155
|
-
get literalValue():
|
|
155
|
+
get literalValue(): SearchStatementLiteralValue | null;
|
|
156
156
|
get type(): SearchStatementNodeType.ColumnRef;
|
|
157
157
|
get id(): string;
|
|
158
158
|
get isValid(): boolean;
|
|
@@ -186,8 +186,8 @@ export declare class SearchStatementState implements ISearchNode {
|
|
|
186
186
|
from: DataSource | null;
|
|
187
187
|
aggregations: AggregationStatement[];
|
|
188
188
|
where: WhereStatement | null;
|
|
189
|
-
offset: InputMapState |
|
|
190
|
-
limit: InputMapState |
|
|
189
|
+
offset: InputMapState | SearchStatementLiteralValue | null;
|
|
190
|
+
limit: InputMapState | SearchStatementLiteralValue | null;
|
|
191
191
|
asList: boolean;
|
|
192
192
|
sorting: SortStatement[];
|
|
193
193
|
dataSources: DataSource[];
|
|
@@ -226,8 +226,8 @@ export declare class SearchStatementState implements ISearchNode {
|
|
|
226
226
|
editSelection(selection: ColumnRef | AllColumnsSelector): void;
|
|
227
227
|
setFrom(from: DataSource): void;
|
|
228
228
|
setWhere(where: WhereStatement): void;
|
|
229
|
-
setLimit(limit:
|
|
230
|
-
setOffset(offset:
|
|
229
|
+
setLimit(limit: SearchStatementLiteralValue | InputMapState): void;
|
|
230
|
+
setOffset(offset: SearchStatementLiteralValue | InputMapState): void;
|
|
231
231
|
setAsList(asList: boolean): void;
|
|
232
232
|
}
|
|
233
233
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6281",
|
|
4
4
|
"author": "Sergio Herrero",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
|