@elyx-code/project-logic-tree 0.0.6883 → 0.0.6884
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.cjs +245 -245
- package/dist/index.d.ts +44 -8
- package/dist/index.js +36848 -36691
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -333,7 +333,7 @@ declare class AggregationStatement implements ISearchNode {
|
|
|
333
333
|
get id(): string;
|
|
334
334
|
get columns(): ColumnRef[];
|
|
335
335
|
get isValid(): boolean;
|
|
336
|
-
get selections(): (ColumnRef | AllColumnsSelector)[];
|
|
336
|
+
get selections(): (ColumnRef | AllColumnsSelector | FunctionCall)[];
|
|
337
337
|
get selectedColumns(): ColumnRef[];
|
|
338
338
|
get primaryKeys(): ColumnRef[];
|
|
339
339
|
get primaryKey(): ColumnRef | null;
|
|
@@ -10803,7 +10803,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
10803
10803
|
set as(as: string);
|
|
10804
10804
|
get as(): string;
|
|
10805
10805
|
get columns(): ColumnRef[];
|
|
10806
|
-
get selections(): (ColumnRef | AllColumnsSelector)[];
|
|
10806
|
+
get selections(): (ColumnRef | AllColumnsSelector | FunctionCall)[];
|
|
10807
10807
|
get mainPersistedEntity(): DefinitionEntityState | null;
|
|
10808
10808
|
get selectedColumns(): ColumnRef[];
|
|
10809
10809
|
get primaryKeys(): ColumnRef[];
|
|
@@ -14774,6 +14774,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14774
14774
|
/** Converts bytes into string using the given encoding. */
|
|
14775
14775
|
export declare function fromBytes(bytes: Bytes, encoding?: AnyEncoding): string;
|
|
14776
14776
|
|
|
14777
|
+
declare function fromCallExprToFunctionCall(callExpr: Expr, scopeColumns: ColumnRef[], state: SearchStatementState, project: ProjectState): FunctionCall | null;
|
|
14778
|
+
|
|
14777
14779
|
export declare function fromChangeSetToRecordChangeSet<TSelf extends {
|
|
14778
14780
|
id: string;
|
|
14779
14781
|
type: EntityType;
|
|
@@ -14814,7 +14816,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14814
14816
|
|
|
14815
14817
|
declare function fromSelectClauseColumnsToColumnMappings(selectClause: SelectClause, objectName?: string): IShallowColumnMapping[];
|
|
14816
14818
|
|
|
14817
|
-
declare function fromSelectClauseToLiteralValueSelections(selectClause: SelectClause, state: SearchStatementState, project: ProjectState, _debug?: boolean): ColumnRef[];
|
|
14819
|
+
declare function fromSelectClauseToLiteralValueSelections(selectClause: SelectClause, state: SearchStatementState, project: ProjectState, _debug?: boolean): (ColumnRef | FunctionCall)[];
|
|
14818
14820
|
|
|
14819
14821
|
declare function fromSqlOperatorsExprToComparisonOperator(operator: SupportedOperators): WhereStatementOperator | 'not' | null;
|
|
14820
14822
|
|
|
@@ -14843,6 +14845,25 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14843
14845
|
|
|
14844
14846
|
export declare const FULL_EDITING_PROPERTIES_EXPLANATION = "Entities of any type have two types of fields: primitive meta-data fields, and relational fields that point to other entities.\nRelational fields can be upstream or downstream.\nOnly upstream fields are owned and can be edited by the entity itself.\nDownstream fields are owned and edited by the downstream entity that points to this entity.\nFor example, many entities have a 'parent' field that points to their parent entity. Once the parent is set, they show up in one of the downstream fields of the parent entity, like 'inputs' or 'body'.\n\nSome meta-data properties of entities can be changed after the initial creation, like 'name', 'description', etc...\nThese are called mutable meta-properties.\n\nSome meta-data properties of entities cannot be changed after the initial creation, like 'type', 'id', etc...\nThese are called inmutable meta-properties.\n\nSome upstream relational properties of entities cannot be changed after the initial creation, like 'parent' for some entities, etc...\nThese are called inmutable upstream properties.\n\nSome fields on an entity point to a downstream/nested entity, which means it is a child of the current entity in the tree. Downstream properties are owned and managed by the downstream entity itself, and cannot be modified directly on the upstream entity.\nFor example, a 'function-declaration' entity has a list of downstream references to its 'argument-declaration' in the property called 'inputs'. To edit the relationship, or modify any of the inputs, the input itself must be targeted directly.";
|
|
14845
14847
|
|
|
14848
|
+
declare type FunctionArgument = ColumnRef | ValueRef | SearchStatementLiteralValue | FunctionCall | AllColumnsSelector;
|
|
14849
|
+
|
|
14850
|
+
declare class FunctionCall implements ISearchNode {
|
|
14851
|
+
owner: SearchStatementState;
|
|
14852
|
+
functionName: string;
|
|
14853
|
+
category: SQLFunctionCategory;
|
|
14854
|
+
arguments: FunctionArgument[];
|
|
14855
|
+
parent: DataSource | null;
|
|
14856
|
+
_id: string;
|
|
14857
|
+
_as: string | null;
|
|
14858
|
+
constructor(owner: SearchStatementState);
|
|
14859
|
+
set as(as: string);
|
|
14860
|
+
get as(): string;
|
|
14861
|
+
get type(): SearchStatementNodeType.FunctionCall;
|
|
14862
|
+
get id(): string;
|
|
14863
|
+
get isValid(): boolean;
|
|
14864
|
+
toQuery(): string;
|
|
14865
|
+
}
|
|
14866
|
+
|
|
14846
14867
|
export declare enum FunctionCallDependencyField {
|
|
14847
14868
|
FunctionCallParentField = "function-call-parent-field",
|
|
14848
14869
|
FunctionCallDeclarationField = "function-call-declaration-field"
|
|
@@ -25936,7 +25957,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
25936
25957
|
get isValid(): boolean;
|
|
25937
25958
|
get columns(): ColumnRef[];
|
|
25938
25959
|
get mainPersistedEntity(): DefinitionEntityState | null;
|
|
25939
|
-
get selections(): (ColumnRef | AllColumnsSelector)[];
|
|
25960
|
+
get selections(): (ColumnRef | AllColumnsSelector | FunctionCall)[];
|
|
25940
25961
|
get selectedColumns(): ColumnRef[];
|
|
25941
25962
|
get primaryKeys(): ColumnRef[];
|
|
25942
25963
|
get primaryKey(): ColumnRef | null;
|
|
@@ -31553,6 +31574,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
31553
31574
|
|
|
31554
31575
|
export declare function resolveEntitySubheader(entity: VariableState | DefinitionEntityState | LoopState | SearchState | FunctionDeclarationState | GlobalEventState | ReturnStatementState | BreakStatementState | ContinueStatementState | BuiltInBaseEntityState): string;
|
|
31555
31576
|
|
|
31577
|
+
declare function resolveExprToFunctionArgument(expr: Expr | any, scopeColumns: ColumnRef[], state: SearchStatementState, project: ProjectState): FunctionArgument | null;
|
|
31578
|
+
|
|
31556
31579
|
export declare function resolveFirstCallsSecond(first: DraggableExecutableEntityState, second: DraggableCallableEntityState): boolean;
|
|
31557
31580
|
|
|
31558
31581
|
export declare function resolveFirstWritesSecond(first: ValueWritingEntityState, second: ValueReadingEntityState): boolean;
|
|
@@ -32084,12 +32107,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32084
32107
|
WhereStatement = "where-statement",
|
|
32085
32108
|
AggregationStatement = "aggregation-statement",
|
|
32086
32109
|
SortStatement = "sort-statement",
|
|
32087
|
-
AllColumnsSelector = "all-columns-selector"
|
|
32110
|
+
AllColumnsSelector = "all-columns-selector",
|
|
32111
|
+
FunctionCall = "function-call"
|
|
32088
32112
|
}
|
|
32089
32113
|
|
|
32090
32114
|
declare class SearchStatementState implements ISearchNode {
|
|
32091
32115
|
id: string;
|
|
32092
|
-
selections: (ColumnRef | AllColumnsSelector)[];
|
|
32116
|
+
selections: (ColumnRef | AllColumnsSelector | FunctionCall)[];
|
|
32093
32117
|
from: DataSource | null;
|
|
32094
32118
|
aggregations: AggregationStatement[];
|
|
32095
32119
|
where: WhereStatement | null;
|
|
@@ -32106,7 +32130,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32106
32130
|
get mainDatabaseEntity(): DefinitionEntityState | null;
|
|
32107
32131
|
get validSortings(): SortStatement[];
|
|
32108
32132
|
get selectedColumns(): ColumnRef[];
|
|
32109
|
-
get validSelections(): (ColumnRef | AllColumnsSelector)[];
|
|
32133
|
+
get validSelections(): (ColumnRef | AllColumnsSelector | FunctionCall)[];
|
|
32110
32134
|
get validSelectedColumns(): ColumnRef[];
|
|
32111
32135
|
get columns(): ColumnRef[];
|
|
32112
32136
|
get isValid(): boolean;
|
|
@@ -32128,7 +32152,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32128
32152
|
addSort(sort: SortStatement): void;
|
|
32129
32153
|
removeSort(sort: SortStatement): void;
|
|
32130
32154
|
editSort(sort: SortStatement): void;
|
|
32131
|
-
addSelection(selection: ColumnRef | AllColumnsSelector): void;
|
|
32155
|
+
addSelection(selection: ColumnRef | AllColumnsSelector | FunctionCall): void;
|
|
32132
32156
|
removeSelection(selection: ColumnRef | AllColumnsSelector): void;
|
|
32133
32157
|
editSelection(selection: ColumnRef | AllColumnsSelector): void;
|
|
32134
32158
|
setFrom(from: DataSource): void;
|
|
@@ -32145,6 +32169,9 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32145
32169
|
SearchStatementNodeType,
|
|
32146
32170
|
ISearchNode,
|
|
32147
32171
|
AggregationStatementType,
|
|
32172
|
+
SQLFunctionCategory,
|
|
32173
|
+
FunctionArgument,
|
|
32174
|
+
FunctionCall,
|
|
32148
32175
|
AggregationStatement,
|
|
32149
32176
|
ValueRef,
|
|
32150
32177
|
SearchLiteralValueType,
|
|
@@ -32185,6 +32212,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32185
32212
|
fromWhereBinaryExprToAndOrOperatorValue,
|
|
32186
32213
|
flattenBinaryExprComparisonsToWhereStatements,
|
|
32187
32214
|
fromWhereExprToWhereStatement,
|
|
32215
|
+
fromCallExprToFunctionCall,
|
|
32216
|
+
resolveExprToFunctionArgument,
|
|
32188
32217
|
getJoinOnSpecificationAsWhereStatementFromJoinExpr,
|
|
32189
32218
|
flattenJoinExprIntoAggregationStatementsSync,
|
|
32190
32219
|
getAggregationStatementsFromSelectStatementSync,
|
|
@@ -32907,6 +32936,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32907
32936
|
|
|
32908
32937
|
export { SQLAST }
|
|
32909
32938
|
|
|
32939
|
+
declare enum SQLFunctionCategory {
|
|
32940
|
+
Scalar = "SCALAR",
|
|
32941
|
+
Aggregate = "AGGREGATE",
|
|
32942
|
+
TableValued = "TABLE_VALUED",
|
|
32943
|
+
Window = "WINDOW"
|
|
32944
|
+
}
|
|
32945
|
+
|
|
32910
32946
|
export declare const sqlRowTransformerBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
|
|
32911
32947
|
|
|
32912
32948
|
export declare const sqlRowTransformerBuiltInBaseEntityDefinitionProperty: IPropertyTransfer;
|