flowquery 1.0.3 → 1.0.5

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.
Files changed (168) hide show
  1. package/dist/compute/runner.d.ts +81 -0
  2. package/dist/compute/runner.d.ts.map +1 -0
  3. package/dist/index.browser.d.ts +10 -0
  4. package/dist/index.browser.d.ts.map +1 -0
  5. package/dist/index.d.ts +9 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.node.d.ts +14 -0
  8. package/dist/index.node.d.ts.map +1 -0
  9. package/dist/io/command_line.d.ts +28 -0
  10. package/dist/io/command_line.d.ts.map +1 -0
  11. package/dist/parsing/alias.d.ts +10 -0
  12. package/dist/parsing/alias.d.ts.map +1 -0
  13. package/dist/parsing/alias_option.d.ts +6 -0
  14. package/dist/parsing/alias_option.d.ts.map +1 -0
  15. package/dist/parsing/ast_node.d.ts +100 -0
  16. package/dist/parsing/ast_node.d.ts.map +1 -0
  17. package/dist/parsing/base_parser.d.ts +49 -0
  18. package/dist/parsing/base_parser.d.ts.map +1 -0
  19. package/dist/parsing/components/csv.d.ts +6 -0
  20. package/dist/parsing/components/csv.d.ts.map +1 -0
  21. package/dist/parsing/components/from.d.ts +7 -0
  22. package/dist/parsing/components/from.d.ts.map +1 -0
  23. package/dist/parsing/components/headers.d.ts +7 -0
  24. package/dist/parsing/components/headers.d.ts.map +1 -0
  25. package/dist/parsing/components/json.d.ts +6 -0
  26. package/dist/parsing/components/json.d.ts.map +1 -0
  27. package/dist/parsing/components/null.d.ts +6 -0
  28. package/dist/parsing/components/null.d.ts.map +1 -0
  29. package/dist/parsing/components/post.d.ts +6 -0
  30. package/dist/parsing/components/post.d.ts.map +1 -0
  31. package/dist/parsing/components/text.d.ts +6 -0
  32. package/dist/parsing/components/text.d.ts.map +1 -0
  33. package/dist/parsing/context.d.ts +38 -0
  34. package/dist/parsing/context.d.ts.map +1 -0
  35. package/dist/parsing/data_structures/associative_array.d.ts +28 -0
  36. package/dist/parsing/data_structures/associative_array.d.ts.map +1 -0
  37. package/dist/parsing/data_structures/json_array.d.ts +26 -0
  38. package/dist/parsing/data_structures/json_array.d.ts.map +1 -0
  39. package/dist/parsing/data_structures/key_value_pair.d.ts +25 -0
  40. package/dist/parsing/data_structures/key_value_pair.d.ts.map +1 -0
  41. package/dist/parsing/data_structures/lookup.d.ts +25 -0
  42. package/dist/parsing/data_structures/lookup.d.ts.map +1 -0
  43. package/dist/parsing/data_structures/range_lookup.d.ts +14 -0
  44. package/dist/parsing/data_structures/range_lookup.d.ts.map +1 -0
  45. package/dist/parsing/expressions/expression.d.ts +53 -0
  46. package/dist/parsing/expressions/expression.d.ts.map +1 -0
  47. package/dist/parsing/expressions/f_string.d.ts +21 -0
  48. package/dist/parsing/expressions/f_string.d.ts.map +1 -0
  49. package/dist/parsing/expressions/identifier.d.ts +17 -0
  50. package/dist/parsing/expressions/identifier.d.ts.map +1 -0
  51. package/dist/parsing/expressions/number.d.ts +25 -0
  52. package/dist/parsing/expressions/number.d.ts.map +1 -0
  53. package/dist/parsing/expressions/operator.d.ts +79 -0
  54. package/dist/parsing/expressions/operator.d.ts.map +1 -0
  55. package/dist/parsing/expressions/reference.d.ts +29 -0
  56. package/dist/parsing/expressions/reference.d.ts.map +1 -0
  57. package/dist/parsing/expressions/string.d.ts +23 -0
  58. package/dist/parsing/expressions/string.d.ts.map +1 -0
  59. package/dist/parsing/functions/aggregate_function.d.ts +42 -0
  60. package/dist/parsing/functions/aggregate_function.d.ts.map +1 -0
  61. package/dist/parsing/functions/async_function.d.ts +52 -0
  62. package/dist/parsing/functions/async_function.d.ts.map +1 -0
  63. package/dist/parsing/functions/avg.d.ts +15 -0
  64. package/dist/parsing/functions/avg.d.ts.map +1 -0
  65. package/dist/parsing/functions/collect.d.ts +21 -0
  66. package/dist/parsing/functions/collect.d.ts.map +1 -0
  67. package/dist/parsing/functions/function.d.ts +36 -0
  68. package/dist/parsing/functions/function.d.ts.map +1 -0
  69. package/dist/parsing/functions/function_factory.d.ts +151 -0
  70. package/dist/parsing/functions/function_factory.d.ts.map +1 -0
  71. package/dist/parsing/functions/function_metadata.d.ts +83 -0
  72. package/dist/parsing/functions/function_metadata.d.ts.map +1 -0
  73. package/dist/parsing/functions/functions.d.ts +21 -0
  74. package/dist/parsing/functions/functions.d.ts.map +1 -0
  75. package/dist/parsing/functions/join.d.ts +9 -0
  76. package/dist/parsing/functions/join.d.ts.map +1 -0
  77. package/dist/parsing/functions/predicate_function.d.ts +18 -0
  78. package/dist/parsing/functions/predicate_function.d.ts.map +1 -0
  79. package/dist/parsing/functions/predicate_function_factory.d.ts +6 -0
  80. package/dist/parsing/functions/predicate_function_factory.d.ts.map +1 -0
  81. package/dist/parsing/functions/predicate_sum.d.ts +7 -0
  82. package/dist/parsing/functions/predicate_sum.d.ts.map +1 -0
  83. package/dist/parsing/functions/rand.d.ts +7 -0
  84. package/dist/parsing/functions/rand.d.ts.map +1 -0
  85. package/dist/parsing/functions/range.d.ts +7 -0
  86. package/dist/parsing/functions/range.d.ts.map +1 -0
  87. package/dist/parsing/functions/reducer_element.d.ts +6 -0
  88. package/dist/parsing/functions/reducer_element.d.ts.map +1 -0
  89. package/dist/parsing/functions/replace.d.ts +7 -0
  90. package/dist/parsing/functions/replace.d.ts.map +1 -0
  91. package/dist/parsing/functions/round.d.ts +7 -0
  92. package/dist/parsing/functions/round.d.ts.map +1 -0
  93. package/dist/parsing/functions/size.d.ts +7 -0
  94. package/dist/parsing/functions/size.d.ts.map +1 -0
  95. package/dist/parsing/functions/split.d.ts +9 -0
  96. package/dist/parsing/functions/split.d.ts.map +1 -0
  97. package/dist/parsing/functions/stringify.d.ts +9 -0
  98. package/dist/parsing/functions/stringify.d.ts.map +1 -0
  99. package/dist/parsing/functions/sum.d.ts +14 -0
  100. package/dist/parsing/functions/sum.d.ts.map +1 -0
  101. package/dist/parsing/functions/to_json.d.ts +7 -0
  102. package/dist/parsing/functions/to_json.d.ts.map +1 -0
  103. package/dist/parsing/functions/value_holder.d.ts +8 -0
  104. package/dist/parsing/functions/value_holder.d.ts.map +1 -0
  105. package/dist/parsing/logic/case.d.ts +7 -0
  106. package/dist/parsing/logic/case.d.ts.map +1 -0
  107. package/dist/parsing/logic/else.d.ts +7 -0
  108. package/dist/parsing/logic/else.d.ts.map +1 -0
  109. package/dist/parsing/logic/end.d.ts +6 -0
  110. package/dist/parsing/logic/end.d.ts.map +1 -0
  111. package/dist/parsing/logic/then.d.ts +7 -0
  112. package/dist/parsing/logic/then.d.ts.map +1 -0
  113. package/dist/parsing/logic/when.d.ts +7 -0
  114. package/dist/parsing/logic/when.d.ts.map +1 -0
  115. package/dist/parsing/operations/aggregated_return.d.ts +8 -0
  116. package/dist/parsing/operations/aggregated_return.d.ts.map +1 -0
  117. package/dist/parsing/operations/aggregated_with.d.ts +8 -0
  118. package/dist/parsing/operations/aggregated_with.d.ts.map +1 -0
  119. package/dist/parsing/operations/group_by.d.ts +35 -0
  120. package/dist/parsing/operations/group_by.d.ts.map +1 -0
  121. package/dist/parsing/operations/limit.d.ts +10 -0
  122. package/dist/parsing/operations/limit.d.ts.map +1 -0
  123. package/dist/parsing/operations/load.d.ts +48 -0
  124. package/dist/parsing/operations/load.d.ts.map +1 -0
  125. package/dist/parsing/operations/operation.d.ts +39 -0
  126. package/dist/parsing/operations/operation.d.ts.map +1 -0
  127. package/dist/parsing/operations/projection.d.ts +8 -0
  128. package/dist/parsing/operations/projection.d.ts.map +1 -0
  129. package/dist/parsing/operations/return.d.ts +23 -0
  130. package/dist/parsing/operations/return.d.ts.map +1 -0
  131. package/dist/parsing/operations/unwind.d.ts +12 -0
  132. package/dist/parsing/operations/unwind.d.ts.map +1 -0
  133. package/dist/parsing/operations/where.d.ts +26 -0
  134. package/dist/parsing/operations/where.d.ts.map +1 -0
  135. package/dist/parsing/operations/with.d.ts +17 -0
  136. package/dist/parsing/operations/with.d.ts.map +1 -0
  137. package/dist/parsing/parser.d.ts +66 -0
  138. package/dist/parsing/parser.d.ts.map +1 -0
  139. package/dist/parsing/parser.js +1 -1
  140. package/dist/parsing/token_to_node.d.ts +7 -0
  141. package/dist/parsing/token_to_node.d.ts.map +1 -0
  142. package/dist/tokenization/keyword.d.ts +43 -0
  143. package/dist/tokenization/keyword.d.ts.map +1 -0
  144. package/dist/tokenization/operator.d.ts +22 -0
  145. package/dist/tokenization/operator.d.ts.map +1 -0
  146. package/dist/tokenization/string_walker.d.ts +55 -0
  147. package/dist/tokenization/string_walker.d.ts.map +1 -0
  148. package/dist/tokenization/symbol.d.ts +15 -0
  149. package/dist/tokenization/symbol.d.ts.map +1 -0
  150. package/dist/tokenization/token.d.ts +176 -0
  151. package/dist/tokenization/token.d.ts.map +1 -0
  152. package/dist/tokenization/token_mapper.d.ts +40 -0
  153. package/dist/tokenization/token_mapper.d.ts.map +1 -0
  154. package/dist/tokenization/token_type.d.ts +16 -0
  155. package/dist/tokenization/token_type.d.ts.map +1 -0
  156. package/dist/tokenization/tokenizer.d.ts +45 -0
  157. package/dist/tokenization/tokenizer.d.ts.map +1 -0
  158. package/dist/tokenization/trie.d.ts +41 -0
  159. package/dist/tokenization/trie.d.ts.map +1 -0
  160. package/dist/utils/object_utils.d.ts +15 -0
  161. package/dist/utils/object_utils.d.ts.map +1 -0
  162. package/dist/utils/string_utils.d.ts +51 -0
  163. package/dist/utils/string_utils.d.ts.map +1 -0
  164. package/misc/apps/RAG/package.json +1 -1
  165. package/misc/apps/RAG/src/index.ts +4 -4
  166. package/package.json +1 -1
  167. package/src/parsing/parser.ts +1 -1
  168. package/tsconfig.json +3 -1
@@ -0,0 +1,53 @@
1
+ import ASTNode from "../ast_node";
2
+ import AggregateFunction from "../functions/aggregate_function";
3
+ /**
4
+ * Represents an expression in the FlowQuery AST.
5
+ *
6
+ * Expressions are built using the Shunting Yard algorithm to handle operator
7
+ * precedence and associativity. They can contain operands (numbers, strings, identifiers)
8
+ * and operators (arithmetic, logical, comparison).
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * const expr = new Expression();
13
+ * expr.addNode(numberNode);
14
+ * expr.addNode(plusOperator);
15
+ * expr.addNode(anotherNumberNode);
16
+ * expr.finish();
17
+ * ```
18
+ */
19
+ declare class Expression extends ASTNode {
20
+ private operators;
21
+ private output;
22
+ private _alias;
23
+ private _overridden;
24
+ private _reducers;
25
+ /**
26
+ * Adds a node (operand or operator) to the expression.
27
+ *
28
+ * Uses the Shunting Yard algorithm to maintain correct operator precedence.
29
+ *
30
+ * @param node - The AST node to add (operand or operator)
31
+ */
32
+ addNode(node: ASTNode): void;
33
+ /**
34
+ * Finalizes the expression by converting it to a tree structure.
35
+ *
36
+ * Should be called after all nodes have been added.
37
+ */
38
+ finish(): void;
39
+ private toTree;
40
+ nodesAdded(): boolean;
41
+ value(): any;
42
+ setAlias(alias: string): void;
43
+ set alias(alias: string);
44
+ get alias(): string | null;
45
+ toString(): string;
46
+ reducers(): AggregateFunction[];
47
+ private _extract_reducers;
48
+ mappable(): boolean;
49
+ has_reducers(): boolean;
50
+ set overridden(value: any);
51
+ }
52
+ export default Expression;
53
+ //# sourceMappingURL=expression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../src/parsing/expressions/expression.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAGhE;;;;;;;;;;;;;;;GAeG;AACH,cAAM,UAAW,SAAQ,OAAO;IAC5B,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,WAAW,CAAoB;IACvC,OAAO,CAAC,SAAS,CAAoC;IAErD;;;;;;OAMG;IACI,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAsBnC;;;;OAIG;IACI,MAAM,IAAI,IAAI;IAQrB,OAAO,CAAC,MAAM;IAWP,UAAU,IAAI,OAAO;IAIrB,KAAK,IAAI,GAAG;IAUZ,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIpC,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAE7B;IAED,IAAW,KAAK,IAAI,MAAM,GAAG,IAAI,CAKhC;IAEM,QAAQ,IAAI,MAAM;IAOlB,QAAQ,IAAI,iBAAiB,EAAE;IAMtC,OAAO,CAAE,iBAAiB;IAQnB,QAAQ,IAAI,OAAO;IAGnB,YAAY,IAAI,OAAO;IAG9B,IAAW,UAAU,CAAC,KAAK,EAAE,GAAG,EAE/B;CACJ;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,21 @@
1
+ import ASTNode from "../ast_node";
2
+ /**
3
+ * Represents a formatted string (f-string) in the AST.
4
+ *
5
+ * F-strings allow embedding expressions within string literals.
6
+ * Child nodes represent the parts of the f-string (literal strings and expressions).
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * // For f"Hello {name}!"
11
+ * const fstr = new FString();
12
+ * fstr.addChild(new String("Hello "));
13
+ * fstr.addChild(nameExpression);
14
+ * fstr.addChild(new String("!"));
15
+ * ```
16
+ */
17
+ declare class FString extends ASTNode {
18
+ value(): string;
19
+ }
20
+ export default FString;
21
+ //# sourceMappingURL=f_string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"f_string.d.ts","sourceRoot":"","sources":["../../../src/parsing/expressions/f_string.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAGlC;;;;;;;;;;;;;;GAcG;AACH,cAAM,OAAQ,SAAQ,OAAO;IAClB,KAAK,IAAI,MAAM;CAIzB;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,17 @@
1
+ import String from "./string";
2
+ /**
3
+ * Represents an identifier in the AST.
4
+ *
5
+ * Identifiers are used for variable names, property names, and similar constructs.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * const id = new Identifier("myVariable");
10
+ * ```
11
+ */
12
+ declare class Identifier extends String {
13
+ toString(): string;
14
+ value(): any;
15
+ }
16
+ export default Identifier;
17
+ //# sourceMappingURL=identifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identifier.d.ts","sourceRoot":"","sources":["../../../src/parsing/expressions/identifier.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B;;;;;;;;;GASG;AACH,cAAM,UAAW,SAAQ,MAAM;IACpB,QAAQ,IAAI,MAAM;IAGlB,KAAK,IAAI,GAAG;CAGtB;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,25 @@
1
+ import ASTNode from "../ast_node";
2
+ /**
3
+ * Represents a numeric literal in the AST.
4
+ *
5
+ * Parses string representations of numbers into integer or float values.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * const num = new Number("42");
10
+ * console.log(num.value()); // 42
11
+ * ```
12
+ */
13
+ declare class Number extends ASTNode {
14
+ private _value;
15
+ /**
16
+ * Creates a new Number node by parsing the string value.
17
+ *
18
+ * @param value - The string representation of the number
19
+ */
20
+ constructor(value: string);
21
+ value(): number;
22
+ protected toString(): string;
23
+ }
24
+ export default Number;
25
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../src/parsing/expressions/number.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC;;;;;;;;;;GAUG;AACH,cAAM,MAAO,SAAQ,OAAO;IACxB,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;gBACS,KAAK,EAAE,MAAM;IASlB,KAAK,IAAI,MAAM;IAItB,SAAS,CAAC,QAAQ,IAAI,MAAM;CAG/B;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,79 @@
1
+ import ASTNode from "../ast_node";
2
+ declare abstract class Operator extends ASTNode {
3
+ private _precedence;
4
+ private _leftAssociative;
5
+ constructor(precedence: number, leftAssociative: boolean);
6
+ isOperator(): boolean;
7
+ get precedence(): number;
8
+ get leftAssociative(): boolean;
9
+ abstract value(): number;
10
+ get lhs(): ASTNode;
11
+ get rhs(): ASTNode;
12
+ }
13
+ declare class Add extends Operator {
14
+ constructor();
15
+ value(): number;
16
+ }
17
+ declare class Subtract extends Operator {
18
+ constructor();
19
+ value(): number;
20
+ }
21
+ declare class Multiply extends Operator {
22
+ constructor();
23
+ value(): number;
24
+ }
25
+ declare class Divide extends Operator {
26
+ constructor();
27
+ value(): number;
28
+ }
29
+ declare class Modulo extends Operator {
30
+ constructor();
31
+ value(): number;
32
+ }
33
+ declare class Power extends Operator {
34
+ constructor();
35
+ value(): number;
36
+ }
37
+ declare class Equals extends Operator {
38
+ constructor();
39
+ value(): number;
40
+ }
41
+ declare class NotEquals extends Operator {
42
+ constructor();
43
+ value(): number;
44
+ }
45
+ declare class GreaterThan extends Operator {
46
+ constructor();
47
+ value(): number;
48
+ }
49
+ declare class LessThan extends Operator {
50
+ constructor();
51
+ value(): number;
52
+ }
53
+ declare class GreaterThanOrEqual extends Operator {
54
+ constructor();
55
+ value(): number;
56
+ }
57
+ declare class LessThanOrEqual extends Operator {
58
+ constructor();
59
+ value(): number;
60
+ }
61
+ declare class And extends Operator {
62
+ constructor();
63
+ value(): number;
64
+ }
65
+ declare class Or extends Operator {
66
+ constructor();
67
+ value(): number;
68
+ }
69
+ declare class Not extends Operator {
70
+ constructor();
71
+ isOperator(): boolean;
72
+ value(): number;
73
+ }
74
+ declare class Is extends Operator {
75
+ constructor();
76
+ value(): number;
77
+ }
78
+ export { Operator, Add, Subtract, Multiply, Divide, Modulo, Power, Equals, NotEquals, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, And, Or, Not, Is };
79
+ //# sourceMappingURL=operator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../src/parsing/expressions/operator.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC,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AAI,MAAM;CAGzB;AAED,cAAM,GAAI,SAAQ,QAAQ;;IAIf,UAAU,IAAI,OAAO;IAGrB,KAAK,IAAI,MAAM;CAGzB;AAED,cAAM,EAAG,SAAQ,QAAQ;;IAId,KAAK,IAAI,MAAM;CAGzB;AAED,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,kBAAkB,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import ASTNode from "../ast_node";
2
+ import Identifier from "./identifier";
3
+ /**
4
+ * Represents a reference to a previously defined variable or expression.
5
+ *
6
+ * References point to values defined earlier in the query (e.g., in WITH or LOAD statements).
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const ref = new Reference("myVar", previousNode);
11
+ * console.log(ref.value()); // Gets value from referred node
12
+ * ```
13
+ */
14
+ declare class Reference extends Identifier {
15
+ private _referred;
16
+ /**
17
+ * Creates a new Reference to a variable.
18
+ *
19
+ * @param value - The identifier name
20
+ * @param referred - The node this reference points to (optional)
21
+ */
22
+ constructor(value: string, referred?: ASTNode | undefined);
23
+ set referred(node: ASTNode);
24
+ toString(): string;
25
+ value(): any;
26
+ get identifier(): string;
27
+ }
28
+ export default Reference;
29
+ //# sourceMappingURL=reference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/parsing/expressions/reference.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC;;;;;;;;;;GAUG;AACH,cAAM,SAAU,SAAQ,UAAU;IAC9B,OAAO,CAAC,SAAS,CAAkC;IAEnD;;;;;OAKG;gBACS,KAAK,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAO,GAAG,SAAqB;IAIpE,IAAW,QAAQ,CAAC,IAAI,EAAE,OAAO,EAEhC;IACM,QAAQ,IAAI,MAAM;IAGlB,KAAK,IAAI,GAAG;IAGnB,IAAW,UAAU,IAAI,MAAM,CAE9B;CACJ;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,23 @@
1
+ import ASTNode from "../ast_node";
2
+ /**
3
+ * Represents a string literal in the AST.
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * const str = new String("hello");
8
+ * console.log(str.value()); // "hello"
9
+ * ```
10
+ */
11
+ declare class String extends ASTNode {
12
+ protected _value: string;
13
+ /**
14
+ * Creates a new String node with the given value.
15
+ *
16
+ * @param value - The string value
17
+ */
18
+ constructor(value: string);
19
+ value(): string;
20
+ toString(): string;
21
+ }
22
+ export default String;
23
+ //# sourceMappingURL=string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../src/parsing/expressions/string.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC;;;;;;;;GAQG;AACH,cAAM,MAAO,SAAQ,OAAO;IACxB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;gBACS,KAAK,EAAE,MAAM;IAKlB,KAAK,IAAI,MAAM;IAIf,QAAQ,IAAI,MAAM;CAG5B;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,42 @@
1
+ import Function from "./function";
2
+ import ReducerElement from "./reducer_element";
3
+ /**
4
+ * Base class for aggregate functions that reduce multiple values to a single value.
5
+ *
6
+ * Aggregate functions like SUM, AVG, and COLLECT process multiple input values
7
+ * and produce a single output. They cannot be nested within other aggregate functions.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * const sumFunc = new Sum();
12
+ * // Used in: RETURN SUM(values)
13
+ * ```
14
+ */
15
+ declare class AggregateFunction extends Function {
16
+ private _overridden;
17
+ /**
18
+ * Creates a new AggregateFunction with the given name.
19
+ *
20
+ * @param name - The function name
21
+ */
22
+ constructor(name: string);
23
+ /**
24
+ * Processes a value during the aggregation phase.
25
+ *
26
+ * @param value - The element to aggregate
27
+ * @throws {Error} If not implemented by subclass
28
+ */
29
+ reduce(value: ReducerElement): void;
30
+ /**
31
+ * Creates a reducer element for this aggregate function.
32
+ *
33
+ * @returns A ReducerElement instance
34
+ * @throws {Error} If not implemented by subclass
35
+ */
36
+ element(): ReducerElement;
37
+ get overridden(): any | null;
38
+ set overridden(value: any | null);
39
+ value(): any;
40
+ }
41
+ export default AggregateFunction;
42
+ //# sourceMappingURL=aggregate_function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregate_function.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/aggregate_function.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C;;;;;;;;;;;GAWG;AACH,cAAM,iBAAkB,SAAQ,QAAQ;IACpC,OAAO,CAAC,WAAW,CAAoB;IAEvC;;;;OAIG;gBACS,IAAI,EAAE,MAAM;IAIxB;;;;;OAKG;IACI,MAAM,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAI1C;;;;;OAKG;IACI,OAAO,IAAI,cAAc;IAGhC,IAAW,UAAU,IAAI,GAAG,GAAG,IAAI,CAElC;IACD,IAAW,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI,EAEtC;IACM,KAAK,IAAI,GAAG;CAGtB;AAED,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,52 @@
1
+ import ASTNode from "../ast_node";
2
+ /**
3
+ * Represents an async data provider function call for use in LOAD operations.
4
+ *
5
+ * This class holds the function name and arguments, and provides async iteration
6
+ * over the results from a registered async data provider.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * // Used in: LOAD JSON FROM myDataSource('arg1', 'arg2') AS data
11
+ * const asyncFunc = new AsyncFunction("myDataSource");
12
+ * asyncFunc.parameters = [arg1Node, arg2Node];
13
+ * for await (const item of asyncFunc.execute()) {
14
+ * console.log(item);
15
+ * }
16
+ * ```
17
+ */
18
+ declare class AsyncFunction extends ASTNode {
19
+ private _name;
20
+ /**
21
+ * Creates a new AsyncFunction with the given name.
22
+ *
23
+ * @param name - The function name (must be registered as an async provider)
24
+ */
25
+ constructor(name: string);
26
+ /**
27
+ * Gets the function name.
28
+ */
29
+ get name(): string;
30
+ /**
31
+ * Sets the function parameters.
32
+ *
33
+ * @param nodes - Array of AST nodes representing the function arguments
34
+ */
35
+ set parameters(nodes: ASTNode[]);
36
+ /**
37
+ * Evaluates all parameters and returns their values.
38
+ *
39
+ * @returns Array of parameter values
40
+ */
41
+ private getArguments;
42
+ /**
43
+ * Executes the async data provider function and yields results.
44
+ *
45
+ * @yields Data items from the async provider
46
+ * @throws {Error} If the function is not registered as an async provider
47
+ */
48
+ execute(): AsyncGenerator<any, void, unknown>;
49
+ toString(): string;
50
+ }
51
+ export default AsyncFunction;
52
+ //# sourceMappingURL=async_function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async_function.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/async_function.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAGlC;;;;;;;;;;;;;;;GAeG;AACH,cAAM,aAAc,SAAQ,OAAO;IAC/B,OAAO,CAAC,KAAK,CAAS;IAEtB;;;;OAIG;gBACS,IAAI,EAAE,MAAM;IAKxB;;OAEG;IACH,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;;;OAIG;IACH,IAAW,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,EAErC;IAED;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACW,OAAO,IAAI,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC;IA0BpD,QAAQ,IAAI,MAAM;CAG5B;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,15 @@
1
+ import AggregateFunction from "./aggregate_function";
2
+ import ReducerElement from "./reducer_element";
3
+ declare class AvgReducerElement extends ReducerElement {
4
+ private _count;
5
+ private _sum;
6
+ get value(): number | null;
7
+ set value(value: number);
8
+ }
9
+ declare class Avg extends AggregateFunction {
10
+ constructor();
11
+ reduce(element: AvgReducerElement): void;
12
+ element(): AvgReducerElement;
13
+ }
14
+ export default Avg;
15
+ //# sourceMappingURL=avg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avg.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/avg.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AAErD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,cAAM,iBAAkB,SAAQ,cAAc;IAC1C,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,IAAI,CAAuB;IACnC,IAAW,KAAK,IAAI,MAAM,GAAG,IAAI,CAKhC;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAO7B;CACJ;AAED,cAAM,GAAI,SAAQ,iBAAiB;;IAKxB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAGxC,OAAO,IAAI,iBAAiB;CAGtC;AAED,eAAe,GAAG,CAAC"}
@@ -0,0 +1,21 @@
1
+ import AggregateFunction from "./aggregate_function";
2
+ import ReducerElement from "./reducer_element";
3
+ declare class CollectReducerElement extends ReducerElement {
4
+ private _value;
5
+ get value(): any;
6
+ set value(value: any);
7
+ }
8
+ declare class DistinctCollectReducerElement extends ReducerElement {
9
+ private _value;
10
+ get value(): any;
11
+ set value(value: any);
12
+ }
13
+ declare class Collect extends AggregateFunction {
14
+ private _distinct;
15
+ constructor();
16
+ reduce(element: CollectReducerElement): void;
17
+ element(): CollectReducerElement | DistinctCollectReducerElement;
18
+ set distinct(distinct: boolean);
19
+ }
20
+ export default Collect;
21
+ //# sourceMappingURL=collect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collect.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/collect.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,cAAM,qBAAsB,SAAQ,cAAc;IAC9C,OAAO,CAAC,MAAM,CAAa;IAC3B,IAAW,KAAK,IAAI,GAAG,CAEtB;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,GAAG,EAE1B;CACJ;AAED,cAAM,6BAA8B,SAAQ,cAAc;IACtD,OAAO,CAAC,MAAM,CAA4B;IAC1C,IAAW,KAAK,IAAI,GAAG,CAEtB;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,GAAG,EAK1B;CACJ;AAED,cAAM,OAAQ,SAAQ,iBAAiB;IACnC,OAAO,CAAC,SAAS,CAAkB;;IAK5B,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI;IAG5C,OAAO,IAAI,qBAAqB,GAAG,6BAA6B;IAGvE,IAAW,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAEpC;CACJ;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,36 @@
1
+ import ASTNode from "../ast_node";
2
+ /**
3
+ * Base class for all functions in FlowQuery.
4
+ *
5
+ * Functions can have parameters and may support the DISTINCT modifier.
6
+ * Subclasses implement specific function logic.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const func = FunctionFactory.create("sum");
11
+ * func.parameters = [expression1, expression2];
12
+ * ```
13
+ */
14
+ declare class Function extends ASTNode {
15
+ protected _name: string;
16
+ protected _expectedParameterCount: number | null;
17
+ protected _supports_distinct: boolean;
18
+ /**
19
+ * Creates a new Function with the given name.
20
+ *
21
+ * @param name - The function name
22
+ */
23
+ constructor(name: string);
24
+ /**
25
+ * Sets the function parameters.
26
+ *
27
+ * @param nodes - Array of AST nodes representing the function arguments
28
+ * @throws {Error} If the number of parameters doesn't match expected count
29
+ */
30
+ set parameters(nodes: ASTNode[]);
31
+ get name(): string;
32
+ toString(): string;
33
+ set distinct(distinct: boolean);
34
+ }
35
+ export default Function;
36
+ //# sourceMappingURL=function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/function.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC;;;;;;;;;;;GAWG;AACH,cAAM,QAAS,SAAQ,OAAO;IAC1B,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAQ;IACxD,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAS;IAE9C;;;;OAIG;gBACS,IAAI,EAAE,MAAM;IAKxB;;;;;OAKG;IACH,IAAW,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,EAKrC;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAEM,QAAQ,IAAI,MAAM;IAIzB,IAAW,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAMpC;CACJ;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,151 @@
1
+ import Function from "./function";
2
+ import { FunctionMetadata, RegisterFunctionOptions, RegisterAsyncProviderOptions } from "./function_metadata";
3
+ /**
4
+ * Type for synchronous function factories.
5
+ */
6
+ export type FunctionCreator = () => Function;
7
+ /**
8
+ * Type for async data provider functions used in LOAD operations.
9
+ * These functions can yield data asynchronously.
10
+ */
11
+ export type AsyncDataProvider = (...args: any[]) => AsyncGenerator<any, void, unknown> | Promise<any>;
12
+ /**
13
+ * Factory for creating function instances by name.
14
+ *
15
+ * Maps function names (case-insensitive) to their corresponding implementation classes.
16
+ * Supports built-in functions like sum, avg, collect, range, split, join, etc.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const sumFunc = FunctionFactory.create("sum");
21
+ * const avgFunc = FunctionFactory.create("AVG");
22
+ * ```
23
+ */
24
+ declare class FunctionFactory {
25
+ /**
26
+ * Registry for plugin functions (synchronous).
27
+ */
28
+ private static plugins;
29
+ /**
30
+ * Registry for async data provider functions used in LOAD operations.
31
+ */
32
+ private static asyncProviders;
33
+ /**
34
+ * Registry for function metadata (both sync and async).
35
+ */
36
+ private static metadata;
37
+ /**
38
+ * Registers a synchronous plugin function.
39
+ *
40
+ * @param name - The function name (will be lowercased)
41
+ * @param factoryOrOptions - Factory function or options object with metadata
42
+ */
43
+ static register(name: string, factoryOrOptions: FunctionCreator | RegisterFunctionOptions): void;
44
+ /**
45
+ * Unregisters a synchronous plugin function.
46
+ *
47
+ * @param name - The function name to unregister
48
+ */
49
+ static unregister(name: string): void;
50
+ /**
51
+ * Registers an async data provider function for use in LOAD operations.
52
+ *
53
+ * @param name - The function name (will be lowercased)
54
+ * @param providerOrOptions - Async provider or options object with metadata
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * // Register with metadata for LLM consumption
59
+ * FunctionFactory.registerAsyncProvider("fetchUsers", {
60
+ * provider: async function* (endpoint: string) {
61
+ * const response = await fetch(endpoint);
62
+ * const data = await response.json();
63
+ * for (const item of data) {
64
+ * yield item;
65
+ * }
66
+ * },
67
+ * metadata: {
68
+ * name: "fetchUsers",
69
+ * description: "Fetches user data from an API endpoint",
70
+ * parameters: [
71
+ * { name: "endpoint", description: "API endpoint URL", type: "string" }
72
+ * ],
73
+ * output: {
74
+ * description: "User objects",
75
+ * type: "object",
76
+ * properties: {
77
+ * id: { description: "User ID", type: "number" },
78
+ * name: { description: "User name", type: "string" }
79
+ * }
80
+ * },
81
+ * examples: ["LOAD JSON FROM fetchUsers('https://api.example.com/users') AS user"]
82
+ * }
83
+ * });
84
+ * ```
85
+ */
86
+ static registerAsyncProvider(name: string, providerOrOptions: AsyncDataProvider | RegisterAsyncProviderOptions): void;
87
+ /**
88
+ * Unregisters an async data provider function.
89
+ *
90
+ * @param name - The function name to unregister
91
+ */
92
+ static unregisterAsyncProvider(name: string): void;
93
+ /**
94
+ * Gets an async data provider by name.
95
+ *
96
+ * @param name - The function name (case-insensitive)
97
+ * @returns The async data provider, or undefined if not found
98
+ */
99
+ static getAsyncProvider(name: string): AsyncDataProvider | undefined;
100
+ /**
101
+ * Checks if a function name is registered as an async data provider.
102
+ *
103
+ * @param name - The function name (case-insensitive)
104
+ * @returns True if the function is an async data provider
105
+ */
106
+ static isAsyncProvider(name: string): boolean;
107
+ /**
108
+ * Gets metadata for a specific function.
109
+ *
110
+ * @param name - The function name (case-insensitive)
111
+ * @returns The function metadata, or undefined if not found
112
+ */
113
+ static getMetadata(name: string): FunctionMetadata | undefined;
114
+ /**
115
+ * Lists all registered functions with their metadata.
116
+ * Includes both built-in and plugin functions.
117
+ *
118
+ * @param options - Optional filter options
119
+ * @returns Array of function metadata
120
+ */
121
+ static listFunctions(options?: {
122
+ category?: string;
123
+ includeBuiltins?: boolean;
124
+ asyncOnly?: boolean;
125
+ syncOnly?: boolean;
126
+ }): FunctionMetadata[];
127
+ /**
128
+ * Lists all registered function names.
129
+ *
130
+ * @returns Array of function names
131
+ */
132
+ static listFunctionNames(): string[];
133
+ /**
134
+ * Gets all function metadata as a JSON-serializable object for LLM consumption.
135
+ *
136
+ * @returns Object with functions grouped by category
137
+ */
138
+ static toJSON(): {
139
+ functions: FunctionMetadata[];
140
+ categories: string[];
141
+ };
142
+ /**
143
+ * Creates a function instance by name.
144
+ *
145
+ * @param name - The function name (case-insensitive)
146
+ * @returns A Function instance of the appropriate type
147
+ */
148
+ static create(name: string): Function;
149
+ }
150
+ export default FunctionFactory;
151
+ //# sourceMappingURL=function_factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function_factory.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/function_factory.ts"],"names":[],"mappings":"AAaA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EACH,gBAAgB,EAChB,uBAAuB,EACvB,4BAA4B,EAE/B,MAAM,qBAAqB,CAAC;AAE7B;;GA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