@opra/client 0.11.1 → 0.11.4
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/cjs/index.min.mjs +1 -0
- package/esm/index.min.mjs +1 -0
- package/package.json +21 -13
- package/typings/common/filter/antlr/OpraFilterLexer.d.ts +11 -12
- package/typings/common/filter/antlr/OpraFilterListener.d.ts +430 -0
- package/typings/common/filter/antlr/OpraFilterParser.d.ts +183 -111
- package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +77 -107
- package/typings/common/filter/errors.d.ts +4 -6
- package/typings/common/filter/filter-tree-visitor.d.ts +5 -3
- package/typings/common/filter/index.d.ts +1 -1
- package/typings/common/filter/opra-error-listener.d.ts +8 -0
- package/typings/common/filter/parse.d.ts +2 -2
- package/typings/common/i18n/i18n.d.ts +3 -3
- package/typings/common/i18n/translate.d.ts +1 -1
- package/cjs/934.min.cjs +0 -1
- package/cjs/main.min.cjs +0 -2
- package/cjs/main.min.cjs.LICENSE.txt +0 -13
- package/esm/934.min.mjs +0 -1
- package/esm/main.min.mjs +0 -2
- package/esm/main.min.mjs.LICENSE.txt +0 -13
- package/typings/antlr4ts/ANTLRErrorListener.d.ts +0 -43
- package/typings/antlr4ts/ANTLRErrorStrategy.d.ts +0 -109
- package/typings/antlr4ts/ANTLRInputStream.d.ts +0 -51
- package/typings/antlr4ts/BailErrorStrategy.d.ts +0 -48
- package/typings/antlr4ts/BufferedTokenStream.d.ts +0 -143
- package/typings/antlr4ts/CharStream.d.ts +0 -26
- package/typings/antlr4ts/CharStreams.d.ts +0 -54
- package/typings/antlr4ts/CodePointBuffer.d.ts +0 -40
- package/typings/antlr4ts/CodePointCharStream.d.ts +0 -45
- package/typings/antlr4ts/CommonToken.d.ts +0 -116
- package/typings/antlr4ts/CommonTokenFactory.d.ts +0 -53
- package/typings/antlr4ts/CommonTokenStream.d.ts +0 -52
- package/typings/antlr4ts/ConsoleErrorListener.d.ts +0 -29
- package/typings/antlr4ts/Decorators.d.ts +0 -8
- package/typings/antlr4ts/DefaultErrorStrategy.d.ts +0 -347
- package/typings/antlr4ts/Dependents.d.ts +0 -69
- package/typings/antlr4ts/DiagnosticErrorListener.d.ts +0 -60
- package/typings/antlr4ts/FailedPredicateException.d.ts +0 -21
- package/typings/antlr4ts/InputMismatchException.d.ts +0 -14
- package/typings/antlr4ts/IntStream.d.ts +0 -197
- package/typings/antlr4ts/InterpreterRuleContext.d.ts +0 -33
- package/typings/antlr4ts/Lexer.d.ts +0 -141
- package/typings/antlr4ts/LexerInterpreter.d.ts +0 -23
- package/typings/antlr4ts/LexerNoViableAltException.d.ts +0 -19
- package/typings/antlr4ts/ListTokenSource.d.ts +0 -86
- package/typings/antlr4ts/NoViableAltException.d.ts +0 -30
- package/typings/antlr4ts/Parser.d.ts +0 -372
- package/typings/antlr4ts/ParserErrorListener.d.ts +0 -112
- package/typings/antlr4ts/ParserInterpreter.d.ts +0 -151
- package/typings/antlr4ts/ParserRuleContext.d.ts +0 -169
- package/typings/antlr4ts/ProxyErrorListener.d.ts +0 -20
- package/typings/antlr4ts/ProxyParserErrorListener.d.ts +0 -21
- package/typings/antlr4ts/RecognitionException.d.ts +0 -87
- package/typings/antlr4ts/Recognizer.d.ts +0 -101
- package/typings/antlr4ts/RuleContext.d.ts +0 -124
- package/typings/antlr4ts/RuleContextWithAltNum.d.ts +0 -22
- package/typings/antlr4ts/RuleDependency.d.ts +0 -32
- package/typings/antlr4ts/RuleVersion.d.ts +0 -11
- package/typings/antlr4ts/Token.d.ts +0 -83
- package/typings/antlr4ts/TokenFactory.d.ts +0 -23
- package/typings/antlr4ts/TokenSource.d.ts +0 -67
- package/typings/antlr4ts/TokenStream.d.ts +0 -145
- package/typings/antlr4ts/TokenStreamRewriter.d.ts +0 -216
- package/typings/antlr4ts/Vocabulary.d.ts +0 -117
- package/typings/antlr4ts/VocabularyImpl.d.ts +0 -47
- package/typings/antlr4ts/WritableToken.d.ts +0 -13
- package/typings/antlr4ts/atn/ATN.d.ts +0 -123
- package/typings/antlr4ts/atn/ATNConfig.d.ts +0 -140
- package/typings/antlr4ts/atn/ATNConfigSet.d.ts +0 -113
- package/typings/antlr4ts/atn/ATNDeserializationOptions.d.ts +0 -26
- package/typings/antlr4ts/atn/ATNDeserializer.d.ts +0 -86
- package/typings/antlr4ts/atn/ATNSimulator.d.ts +0 -28
- package/typings/antlr4ts/atn/ATNState.d.ts +0 -111
- package/typings/antlr4ts/atn/ATNStateType.d.ts +0 -19
- package/typings/antlr4ts/atn/ATNType.d.ts +0 -19
- package/typings/antlr4ts/atn/AbstractPredicateTransition.d.ts +0 -13
- package/typings/antlr4ts/atn/ActionTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/AmbiguityInfo.d.ts +0 -60
- package/typings/antlr4ts/atn/AtomTransition.d.ts +0 -18
- package/typings/antlr4ts/atn/BasicBlockStartState.d.ts +0 -13
- package/typings/antlr4ts/atn/BasicState.d.ts +0 -13
- package/typings/antlr4ts/atn/BlockEndState.d.ts +0 -12
- package/typings/antlr4ts/atn/BlockStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/CodePointTransitions.d.ts +0 -27
- package/typings/antlr4ts/atn/ConflictInfo.d.ts +0 -35
- package/typings/antlr4ts/atn/ContextSensitivityInfo.d.ts +0 -39
- package/typings/antlr4ts/atn/DecisionEventInfo.d.ts +0 -54
- package/typings/antlr4ts/atn/DecisionInfo.d.ts +0 -201
- package/typings/antlr4ts/atn/DecisionState.d.ts +0 -10
- package/typings/antlr4ts/atn/EpsilonTransition.d.ts +0 -24
- package/typings/antlr4ts/atn/ErrorInfo.d.ts +0 -32
- package/typings/antlr4ts/atn/InvalidState.d.ts +0 -13
- package/typings/antlr4ts/atn/LL1Analyzer.d.ts +0 -98
- package/typings/antlr4ts/atn/LexerATNSimulator.d.ts +0 -153
- package/typings/antlr4ts/atn/LexerAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerActionExecutor.d.ts +0 -104
- package/typings/antlr4ts/atn/LexerActionType.d.ts +0 -44
- package/typings/antlr4ts/atn/LexerChannelAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerCustomAction.d.ts +0 -73
- package/typings/antlr4ts/atn/LexerIndexedCustomAction.d.ts +0 -74
- package/typings/antlr4ts/atn/LexerModeAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerMoreAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerPopModeAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerPushModeAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerSkipAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerTypeAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LookaheadEventInfo.d.ts +0 -37
- package/typings/antlr4ts/atn/LoopEndState.d.ts +0 -11
- package/typings/antlr4ts/atn/NotSetTransition.d.ts +0 -14
- package/typings/antlr4ts/atn/OrderedATNConfigSet.d.ts +0 -23
- package/typings/antlr4ts/atn/ParseInfo.d.ts +0 -79
- package/typings/antlr4ts/atn/ParserATNSimulator.d.ts +0 -567
- package/typings/antlr4ts/atn/PlusBlockStartState.d.ts +0 -16
- package/typings/antlr4ts/atn/PlusLoopbackState.d.ts +0 -12
- package/typings/antlr4ts/atn/PrecedencePredicateTransition.d.ts +0 -21
- package/typings/antlr4ts/atn/PredicateEvalInfo.d.ts +0 -54
- package/typings/antlr4ts/atn/PredicateTransition.d.ts +0 -25
- package/typings/antlr4ts/atn/PredictionContext.d.ts +0 -89
- package/typings/antlr4ts/atn/PredictionContextCache.d.ts +0 -40
- package/typings/antlr4ts/atn/PredictionMode.d.ts +0 -89
- package/typings/antlr4ts/atn/ProfilingATNSimulator.d.ts +0 -55
- package/typings/antlr4ts/atn/RangeTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/RuleStartState.d.ts +0 -13
- package/typings/antlr4ts/atn/RuleStopState.d.ts +0 -15
- package/typings/antlr4ts/atn/RuleTransition.d.ts +0 -22
- package/typings/antlr4ts/atn/SemanticContext.d.ts +0 -143
- package/typings/antlr4ts/atn/SetTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/SimulatorState.d.ts +0 -17
- package/typings/antlr4ts/atn/StarBlockStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/StarLoopEntryState.d.ts +0 -37
- package/typings/antlr4ts/atn/StarLoopbackState.d.ts +0 -11
- package/typings/antlr4ts/atn/TokensStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/Transition.d.ts +0 -38
- package/typings/antlr4ts/atn/TransitionType.d.ts +0 -16
- package/typings/antlr4ts/atn/WildcardTransition.d.ts +0 -13
- package/typings/antlr4ts/atn/index.d.ts +0 -73
- package/typings/antlr4ts/dfa/AcceptStateInfo.d.ts +0 -33
- package/typings/antlr4ts/dfa/DFA.d.ts +0 -94
- package/typings/antlr4ts/dfa/DFASerializer.d.ts +0 -23
- package/typings/antlr4ts/dfa/DFAState.d.ts +0 -95
- package/typings/antlr4ts/dfa/LexerDFASerializer.d.ts +0 -10
- package/typings/antlr4ts/dfa/index.d.ts +0 -9
- package/typings/antlr4ts/index.d.ts +0 -49
- package/typings/antlr4ts/misc/Args.d.ts +0 -13
- package/typings/antlr4ts/misc/Array2DHashMap.d.ts +0 -20
- package/typings/antlr4ts/misc/Array2DHashSet.d.ts +0 -62
- package/typings/antlr4ts/misc/ArrayEqualityComparator.d.ts +0 -32
- package/typings/antlr4ts/misc/Arrays.d.ts +0 -18
- package/typings/antlr4ts/misc/BitSet.d.ts +0 -268
- package/typings/antlr4ts/misc/Character.d.ts +0 -7
- package/typings/antlr4ts/misc/DefaultEqualityComparator.d.ts +0 -31
- package/typings/antlr4ts/misc/EqualityComparator.d.ts +0 -29
- package/typings/antlr4ts/misc/IntSet.d.ts +0 -129
- package/typings/antlr4ts/misc/IntegerList.d.ts +0 -69
- package/typings/antlr4ts/misc/IntegerStack.d.ts +0 -15
- package/typings/antlr4ts/misc/InterpreterDataReader.d.ts +0 -39
- package/typings/antlr4ts/misc/Interval.d.ts +0 -57
- package/typings/antlr4ts/misc/IntervalSet.d.ts +0 -96
- package/typings/antlr4ts/misc/MultiMap.d.ts +0 -9
- package/typings/antlr4ts/misc/MurmurHash.d.ts +0 -45
- package/typings/antlr4ts/misc/ObjectEqualityComparator.d.ts +0 -32
- package/typings/antlr4ts/misc/ParseCancellationException.d.ts +0 -18
- package/typings/antlr4ts/misc/Stubs.d.ts +0 -31
- package/typings/antlr4ts/misc/UUID.d.ts +0 -13
- package/typings/antlr4ts/misc/Utils.d.ts +0 -15
- package/typings/antlr4ts/misc/index.d.ts +0 -25
- package/typings/antlr4ts/tree/AbstractParseTreeVisitor.d.ts +0 -103
- package/typings/antlr4ts/tree/ErrorNode.d.ts +0 -17
- package/typings/antlr4ts/tree/ParseTree.d.ts +0 -36
- package/typings/antlr4ts/tree/ParseTreeListener.d.ts +0 -26
- package/typings/antlr4ts/tree/ParseTreeProperty.d.ts +0 -28
- package/typings/antlr4ts/tree/ParseTreeVisitor.d.ts +0 -48
- package/typings/antlr4ts/tree/ParseTreeWalker.d.ts +0 -35
- package/typings/antlr4ts/tree/RuleNode.d.ts +0 -21
- package/typings/antlr4ts/tree/SyntaxTree.d.ts +0 -29
- package/typings/antlr4ts/tree/TerminalNode.d.ts +0 -27
- package/typings/antlr4ts/tree/Tree.d.ts +0 -36
- package/typings/antlr4ts/tree/Trees.d.ts +0 -75
- package/typings/antlr4ts/tree/index.d.ts +0 -16
- package/typings/antlr4ts/tree/pattern/Chunk.d.ts +0 -17
- package/typings/antlr4ts/tree/pattern/ParseTreeMatch.d.ts +0 -124
- package/typings/antlr4ts/tree/pattern/ParseTreePattern.d.ts +0 -98
- package/typings/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts +0 -166
- package/typings/antlr4ts/tree/pattern/RuleTagToken.d.ts +0 -122
- package/typings/antlr4ts/tree/pattern/TagChunk.d.ts +0 -59
- package/typings/antlr4ts/tree/pattern/TextChunk.d.ts +0 -35
- package/typings/antlr4ts/tree/pattern/TokenTagToken.d.ts +0 -56
- package/typings/antlr4ts/tree/pattern/index.d.ts +0 -9
- package/typings/antlr4ts/tree/xpath/XPath.d.ts +0 -66
- package/typings/antlr4ts/tree/xpath/XPathElement.d.ts +0 -19
- package/typings/antlr4ts/tree/xpath/XPathLexer.d.ts +0 -36
- package/typings/antlr4ts/tree/xpath/XPathLexerErrorListener.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/XPathRuleAnywhereElement.d.ts +0 -14
- package/typings/antlr4ts/tree/xpath/XPathRuleElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathTokenAnywhereElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathTokenElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/XPathWildcardElement.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/index.d.ts +0 -14
- package/typings/common/filter/error-listener.d.ts +0 -8
- package/umd/934.min.cjs +0 -1
- package/umd/main.min.cjs +0 -2
- package/umd/main.min.cjs.LICENSE.txt +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ParseTreeVisitor } from '
|
|
2
|
-
import { ArithmeticExpressionContext, ArrayExpressionContext, ArthOpContext, BooleanContext, BooleanLiteralContext, ComparisonExpressionContext, CompOpContext, DateLiteralContext, DateTimeLiteralContext, DateTimePrecisionContext,
|
|
1
|
+
import { ParseTreeVisitor } from 'antlr4';
|
|
2
|
+
import { ArithmeticExpressionContext, ArrayExpressionContext, ArthOpContext, BooleanContext, BooleanLiteralContext, ComparisonExpressionContext, CompOpContext, DateLiteralContext, DateTimeLiteralContext, DateTimePrecisionContext, ExternalConstantContext, ExternalConstantTermContext, FunctionContext, IdentifierContext, InfinityContext, InfinityLiteralContext, InvocableContext, LiteralTermContext, LogicalExpressionContext, LogOpContext, MemberIndexContext, MemberInvocationContext, NullContext, NullLiteralContext, NumberIndexContext, NumberLiteralContext, ParamListContext, ParenthesizedExpressionContext, PluralDateTimePrecisionContext, PolarityExpressionContext, PolarOpContext, QualifiedIdentifierContext, QualifiedIdentifierTermContext, RootContext, StringLiteralContext, TermExpressionContext, TimeLiteralContext, UnitContext } from "./OpraFilterParser.js";
|
|
3
3
|
/**
|
|
4
4
|
* This interface defines a complete generic visitor for a parse tree produced
|
|
5
5
|
* by `OpraFilterParser`.
|
|
@@ -7,42 +7,13 @@ import { ArithmeticExpressionContext, ArrayExpressionContext, ArthOpContext, Boo
|
|
|
7
7
|
* @param <Result> The return type of the visit operation. Use `void` for
|
|
8
8
|
* operations with no return type.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export default class OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
11
11
|
/**
|
|
12
|
-
* Visit a parse tree produced by
|
|
13
|
-
* labeled alternative in `OpraFilterParser.expression`.
|
|
14
|
-
* @param ctx the parse tree
|
|
15
|
-
* @return the visitor result
|
|
16
|
-
*/
|
|
17
|
-
visitTermExpression?: (ctx: TermExpressionContext) => Result;
|
|
18
|
-
/**
|
|
19
|
-
* Visit a parse tree produced by the `polarityExpression`
|
|
20
|
-
* labeled alternative in `OpraFilterParser.expression`.
|
|
21
|
-
* @param ctx the parse tree
|
|
22
|
-
* @return the visitor result
|
|
23
|
-
*/
|
|
24
|
-
visitPolarityExpression?: (ctx: PolarityExpressionContext) => Result;
|
|
25
|
-
/**
|
|
26
|
-
* Visit a parse tree produced by the `arithmeticExpression`
|
|
27
|
-
* labeled alternative in `OpraFilterParser.expression`.
|
|
28
|
-
* @param ctx the parse tree
|
|
29
|
-
* @return the visitor result
|
|
30
|
-
*/
|
|
31
|
-
visitArithmeticExpression?: (ctx: ArithmeticExpressionContext) => Result;
|
|
32
|
-
/**
|
|
33
|
-
* Visit a parse tree produced by the `comparisonExpression`
|
|
34
|
-
* labeled alternative in `OpraFilterParser.expression`.
|
|
35
|
-
* @param ctx the parse tree
|
|
36
|
-
* @return the visitor result
|
|
37
|
-
*/
|
|
38
|
-
visitComparisonExpression?: (ctx: ComparisonExpressionContext) => Result;
|
|
39
|
-
/**
|
|
40
|
-
* Visit a parse tree produced by the `logicalExpression`
|
|
41
|
-
* labeled alternative in `OpraFilterParser.expression`.
|
|
12
|
+
* Visit a parse tree produced by `OpraFilterParser.root`.
|
|
42
13
|
* @param ctx the parse tree
|
|
43
14
|
* @return the visitor result
|
|
44
15
|
*/
|
|
45
|
-
|
|
16
|
+
visitRoot?: (ctx: RootContext) => Result;
|
|
46
17
|
/**
|
|
47
18
|
* Visit a parse tree produced by the `parenthesizedExpression`
|
|
48
19
|
* labeled alternative in `OpraFilterParser.expression`.
|
|
@@ -58,75 +29,67 @@ export interface OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
58
29
|
*/
|
|
59
30
|
visitArrayExpression?: (ctx: ArrayExpressionContext) => Result;
|
|
60
31
|
/**
|
|
61
|
-
* Visit a parse tree produced by the `
|
|
62
|
-
* labeled alternative in `OpraFilterParser.
|
|
63
|
-
* @param ctx the parse tree
|
|
64
|
-
* @return the visitor result
|
|
65
|
-
*/
|
|
66
|
-
visitMemberIndex?: (ctx: MemberIndexContext) => Result;
|
|
67
|
-
/**
|
|
68
|
-
* Visit a parse tree produced by the `numberIndex`
|
|
69
|
-
* labeled alternative in `OpraFilterParser.indexer`.
|
|
32
|
+
* Visit a parse tree produced by the `polarityExpression`
|
|
33
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
70
34
|
* @param ctx the parse tree
|
|
71
35
|
* @return the visitor result
|
|
72
36
|
*/
|
|
73
|
-
|
|
37
|
+
visitPolarityExpression?: (ctx: PolarityExpressionContext) => Result;
|
|
74
38
|
/**
|
|
75
|
-
* Visit a parse tree produced by the `
|
|
76
|
-
* labeled alternative in `OpraFilterParser.
|
|
39
|
+
* Visit a parse tree produced by the `comparisonExpression`
|
|
40
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
77
41
|
* @param ctx the parse tree
|
|
78
42
|
* @return the visitor result
|
|
79
43
|
*/
|
|
80
|
-
|
|
44
|
+
visitComparisonExpression?: (ctx: ComparisonExpressionContext) => Result;
|
|
81
45
|
/**
|
|
82
|
-
* Visit a parse tree produced by the `
|
|
83
|
-
* labeled alternative in `OpraFilterParser.
|
|
46
|
+
* Visit a parse tree produced by the `arithmeticExpression`
|
|
47
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
84
48
|
* @param ctx the parse tree
|
|
85
49
|
* @return the visitor result
|
|
86
50
|
*/
|
|
87
|
-
|
|
51
|
+
visitArithmeticExpression?: (ctx: ArithmeticExpressionContext) => Result;
|
|
88
52
|
/**
|
|
89
|
-
* Visit a parse tree produced by the `
|
|
90
|
-
* labeled alternative in `OpraFilterParser.
|
|
53
|
+
* Visit a parse tree produced by the `logicalExpression`
|
|
54
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
91
55
|
* @param ctx the parse tree
|
|
92
56
|
* @return the visitor result
|
|
93
57
|
*/
|
|
94
|
-
|
|
58
|
+
visitLogicalExpression?: (ctx: LogicalExpressionContext) => Result;
|
|
95
59
|
/**
|
|
96
|
-
* Visit a parse tree produced by the `
|
|
97
|
-
* labeled alternative in `OpraFilterParser.
|
|
60
|
+
* Visit a parse tree produced by the `termExpression`
|
|
61
|
+
* labeled alternative in `OpraFilterParser.expression`.
|
|
98
62
|
* @param ctx the parse tree
|
|
99
63
|
* @return the visitor result
|
|
100
64
|
*/
|
|
101
|
-
|
|
65
|
+
visitTermExpression?: (ctx: TermExpressionContext) => Result;
|
|
102
66
|
/**
|
|
103
|
-
* Visit a parse tree produced by the `
|
|
104
|
-
* labeled alternative in `OpraFilterParser.
|
|
67
|
+
* Visit a parse tree produced by the `literalTerm`
|
|
68
|
+
* labeled alternative in `OpraFilterParser.term`.
|
|
105
69
|
* @param ctx the parse tree
|
|
106
70
|
* @return the visitor result
|
|
107
71
|
*/
|
|
108
|
-
|
|
72
|
+
visitLiteralTerm?: (ctx: LiteralTermContext) => Result;
|
|
109
73
|
/**
|
|
110
|
-
* Visit a parse tree produced by the `
|
|
111
|
-
* labeled alternative in `OpraFilterParser.
|
|
74
|
+
* Visit a parse tree produced by the `qualifiedIdentifierTerm`
|
|
75
|
+
* labeled alternative in `OpraFilterParser.term`.
|
|
112
76
|
* @param ctx the parse tree
|
|
113
77
|
* @return the visitor result
|
|
114
78
|
*/
|
|
115
|
-
|
|
79
|
+
visitQualifiedIdentifierTerm?: (ctx: QualifiedIdentifierTermContext) => Result;
|
|
116
80
|
/**
|
|
117
|
-
* Visit a parse tree produced by the `
|
|
118
|
-
* labeled alternative in `OpraFilterParser.
|
|
81
|
+
* Visit a parse tree produced by the `externalConstantTerm`
|
|
82
|
+
* labeled alternative in `OpraFilterParser.term`.
|
|
119
83
|
* @param ctx the parse tree
|
|
120
84
|
* @return the visitor result
|
|
121
85
|
*/
|
|
122
|
-
|
|
86
|
+
visitExternalConstantTerm?: (ctx: ExternalConstantTermContext) => Result;
|
|
123
87
|
/**
|
|
124
|
-
* Visit a parse tree produced by
|
|
125
|
-
* labeled alternative in `OpraFilterParser.literal`.
|
|
88
|
+
* Visit a parse tree produced by `OpraFilterParser.invocable`.
|
|
126
89
|
* @param ctx the parse tree
|
|
127
90
|
* @return the visitor result
|
|
128
91
|
*/
|
|
129
|
-
|
|
92
|
+
visitInvocable?: (ctx: InvocableContext) => Result;
|
|
130
93
|
/**
|
|
131
94
|
* Visit a parse tree produced by the `memberInvocation`
|
|
132
95
|
* labeled alternative in `OpraFilterParser.invocation`.
|
|
@@ -135,116 +98,123 @@ export interface OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
135
98
|
*/
|
|
136
99
|
visitMemberInvocation?: (ctx: MemberInvocationContext) => Result;
|
|
137
100
|
/**
|
|
138
|
-
* Visit a parse tree produced by the `
|
|
139
|
-
* labeled alternative in `OpraFilterParser.
|
|
101
|
+
* Visit a parse tree produced by the `memberIndex`
|
|
102
|
+
* labeled alternative in `OpraFilterParser.indexer`.
|
|
140
103
|
* @param ctx the parse tree
|
|
141
104
|
* @return the visitor result
|
|
142
105
|
*/
|
|
143
|
-
|
|
106
|
+
visitMemberIndex?: (ctx: MemberIndexContext) => Result;
|
|
144
107
|
/**
|
|
145
|
-
* Visit a parse tree produced by the `
|
|
146
|
-
* labeled alternative in `OpraFilterParser.
|
|
108
|
+
* Visit a parse tree produced by the `numberIndex`
|
|
109
|
+
* labeled alternative in `OpraFilterParser.indexer`.
|
|
147
110
|
* @param ctx the parse tree
|
|
148
111
|
* @return the visitor result
|
|
149
112
|
*/
|
|
150
|
-
|
|
113
|
+
visitNumberIndex?: (ctx: NumberIndexContext) => Result;
|
|
151
114
|
/**
|
|
152
|
-
* Visit a parse tree produced by
|
|
153
|
-
* labeled alternative in `OpraFilterParser.term`.
|
|
115
|
+
* Visit a parse tree produced by `OpraFilterParser.function`.
|
|
154
116
|
* @param ctx the parse tree
|
|
155
117
|
* @return the visitor result
|
|
156
118
|
*/
|
|
157
|
-
|
|
119
|
+
visitFunction?: (ctx: FunctionContext) => Result;
|
|
158
120
|
/**
|
|
159
|
-
* Visit a parse tree produced by `OpraFilterParser.
|
|
121
|
+
* Visit a parse tree produced by `OpraFilterParser.paramList`.
|
|
160
122
|
* @param ctx the parse tree
|
|
161
123
|
* @return the visitor result
|
|
162
124
|
*/
|
|
163
|
-
|
|
125
|
+
visitParamList?: (ctx: ParamListContext) => Result;
|
|
164
126
|
/**
|
|
165
|
-
* Visit a parse tree produced by `OpraFilterParser.
|
|
127
|
+
* Visit a parse tree produced by `OpraFilterParser.unit`.
|
|
166
128
|
* @param ctx the parse tree
|
|
167
129
|
* @return the visitor result
|
|
168
130
|
*/
|
|
169
|
-
|
|
131
|
+
visitUnit?: (ctx: UnitContext) => Result;
|
|
170
132
|
/**
|
|
171
|
-
* Visit a parse tree produced by `OpraFilterParser.
|
|
133
|
+
* Visit a parse tree produced by `OpraFilterParser.dateTimePrecision`.
|
|
172
134
|
* @param ctx the parse tree
|
|
173
135
|
* @return the visitor result
|
|
174
136
|
*/
|
|
175
|
-
|
|
137
|
+
visitDateTimePrecision?: (ctx: DateTimePrecisionContext) => Result;
|
|
176
138
|
/**
|
|
177
|
-
* Visit a parse tree produced by `OpraFilterParser.
|
|
139
|
+
* Visit a parse tree produced by `OpraFilterParser.pluralDateTimePrecision`.
|
|
178
140
|
* @param ctx the parse tree
|
|
179
141
|
* @return the visitor result
|
|
180
142
|
*/
|
|
181
|
-
|
|
143
|
+
visitPluralDateTimePrecision?: (ctx: PluralDateTimePrecisionContext) => Result;
|
|
182
144
|
/**
|
|
183
|
-
* Visit a parse tree produced by `OpraFilterParser.
|
|
145
|
+
* Visit a parse tree produced by `OpraFilterParser.qualifiedIdentifier`.
|
|
184
146
|
* @param ctx the parse tree
|
|
185
147
|
* @return the visitor result
|
|
186
148
|
*/
|
|
187
|
-
|
|
149
|
+
visitQualifiedIdentifier?: (ctx: QualifiedIdentifierContext) => Result;
|
|
188
150
|
/**
|
|
189
|
-
* Visit a parse tree produced by `OpraFilterParser.
|
|
151
|
+
* Visit a parse tree produced by `OpraFilterParser.externalConstant`.
|
|
190
152
|
* @param ctx the parse tree
|
|
191
153
|
* @return the visitor result
|
|
192
154
|
*/
|
|
193
|
-
|
|
155
|
+
visitExternalConstant?: (ctx: ExternalConstantContext) => Result;
|
|
194
156
|
/**
|
|
195
|
-
* Visit a parse tree produced by `OpraFilterParser.
|
|
157
|
+
* Visit a parse tree produced by `OpraFilterParser.identifier`.
|
|
196
158
|
* @param ctx the parse tree
|
|
197
159
|
* @return the visitor result
|
|
198
160
|
*/
|
|
199
|
-
|
|
161
|
+
visitIdentifier?: (ctx: IdentifierContext) => Result;
|
|
200
162
|
/**
|
|
201
|
-
* Visit a parse tree produced by `
|
|
163
|
+
* Visit a parse tree produced by the `numberLiteral`
|
|
164
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
202
165
|
* @param ctx the parse tree
|
|
203
166
|
* @return the visitor result
|
|
204
167
|
*/
|
|
205
|
-
|
|
168
|
+
visitNumberLiteral?: (ctx: NumberLiteralContext) => Result;
|
|
206
169
|
/**
|
|
207
|
-
* Visit a parse tree produced by `
|
|
170
|
+
* Visit a parse tree produced by the `infinityLiteral`
|
|
171
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
208
172
|
* @param ctx the parse tree
|
|
209
173
|
* @return the visitor result
|
|
210
174
|
*/
|
|
211
|
-
|
|
175
|
+
visitInfinityLiteral?: (ctx: InfinityLiteralContext) => Result;
|
|
212
176
|
/**
|
|
213
|
-
* Visit a parse tree produced by `
|
|
177
|
+
* Visit a parse tree produced by the `booleanLiteral`
|
|
178
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
214
179
|
* @param ctx the parse tree
|
|
215
180
|
* @return the visitor result
|
|
216
181
|
*/
|
|
217
|
-
|
|
182
|
+
visitBooleanLiteral?: (ctx: BooleanLiteralContext) => Result;
|
|
218
183
|
/**
|
|
219
|
-
* Visit a parse tree produced by `
|
|
184
|
+
* Visit a parse tree produced by the `nullLiteral`
|
|
185
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
220
186
|
* @param ctx the parse tree
|
|
221
187
|
* @return the visitor result
|
|
222
188
|
*/
|
|
223
|
-
|
|
189
|
+
visitNullLiteral?: (ctx: NullLiteralContext) => Result;
|
|
224
190
|
/**
|
|
225
|
-
* Visit a parse tree produced by `
|
|
191
|
+
* Visit a parse tree produced by the `dateLiteral`
|
|
192
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
226
193
|
* @param ctx the parse tree
|
|
227
194
|
* @return the visitor result
|
|
228
195
|
*/
|
|
229
|
-
|
|
196
|
+
visitDateLiteral?: (ctx: DateLiteralContext) => Result;
|
|
230
197
|
/**
|
|
231
|
-
* Visit a parse tree produced by `
|
|
198
|
+
* Visit a parse tree produced by the `dateTimeLiteral`
|
|
199
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
232
200
|
* @param ctx the parse tree
|
|
233
201
|
* @return the visitor result
|
|
234
202
|
*/
|
|
235
|
-
|
|
203
|
+
visitDateTimeLiteral?: (ctx: DateTimeLiteralContext) => Result;
|
|
236
204
|
/**
|
|
237
|
-
* Visit a parse tree produced by `
|
|
205
|
+
* Visit a parse tree produced by the `timeLiteral`
|
|
206
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
238
207
|
* @param ctx the parse tree
|
|
239
208
|
* @return the visitor result
|
|
240
209
|
*/
|
|
241
|
-
|
|
210
|
+
visitTimeLiteral?: (ctx: TimeLiteralContext) => Result;
|
|
242
211
|
/**
|
|
243
|
-
* Visit a parse tree produced by `
|
|
212
|
+
* Visit a parse tree produced by the `stringLiteral`
|
|
213
|
+
* labeled alternative in `OpraFilterParser.literal`.
|
|
244
214
|
* @param ctx the parse tree
|
|
245
215
|
* @return the visitor result
|
|
246
216
|
*/
|
|
247
|
-
|
|
217
|
+
visitStringLiteral?: (ctx: StringLiteralContext) => Result;
|
|
248
218
|
/**
|
|
249
219
|
* Visit a parse tree produced by `OpraFilterParser.compOp`.
|
|
250
220
|
* @param ctx the parse tree
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RecognitionException } from 'antlr4';
|
|
2
|
+
import { Recognizer } from 'antlr4/src/antlr4/Recognizer';
|
|
3
3
|
export declare class SyntaxError extends TypeError {
|
|
4
4
|
}
|
|
5
5
|
export declare class ValidationError extends TypeError {
|
|
6
6
|
}
|
|
7
7
|
export declare class FilterParseError extends Error {
|
|
8
|
-
recognizer: Recognizer<any
|
|
8
|
+
recognizer: Recognizer<any>;
|
|
9
9
|
offendingSymbol: any | undefined;
|
|
10
10
|
line: number;
|
|
11
|
-
charPositionInLine: number;
|
|
12
11
|
e: RecognitionException | undefined;
|
|
13
12
|
constructor(message: string, args: {
|
|
14
|
-
recognizer: Recognizer<any
|
|
13
|
+
recognizer: Recognizer<any>;
|
|
15
14
|
offendingSymbol: any | undefined;
|
|
16
15
|
line: number;
|
|
17
|
-
charPositionInLine: number;
|
|
18
16
|
e: RecognitionException | undefined;
|
|
19
17
|
});
|
|
20
18
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ParseTreeVisitor as TParseTreeVisitor } from 'antlr4';
|
|
2
2
|
import { ArithmeticExpressionContext, ArrayExpressionContext, BooleanLiteralContext, ComparisonExpressionContext, DateLiteralContext, DateTimeLiteralContext, ExternalConstantTermContext, IdentifierContext, LogicalExpressionContext, NumberLiteralContext, ParenthesizedExpressionContext, PolarityExpressionContext, QualifiedIdentifierTermContext, RootContext, StringLiteralContext, TimeLiteralContext } from './antlr/OpraFilterParser.js';
|
|
3
|
-
import
|
|
3
|
+
import OpraFilterVisitor from './antlr/OpraFilterVisitor.js';
|
|
4
4
|
import { ArithmeticExpression, ArrayExpression, BooleanLiteral, DateLiteral, LogicalExpression, NullLiteral, NumberLiteral, ParenthesesExpression, QualifiedIdentifier, StringLiteral, TimeLiteral } from './ast/index.js';
|
|
5
5
|
import { ExternalConstant } from './ast/terms/external-constant.js';
|
|
6
|
-
|
|
6
|
+
declare const ParseTreeVisitor: typeof TParseTreeVisitor;
|
|
7
|
+
export declare class FilterTreeVisitor extends ParseTreeVisitor<any> implements OpraFilterVisitor<any> {
|
|
7
8
|
private _timeZone?;
|
|
8
9
|
constructor(options?: {
|
|
9
10
|
timeZone?: string;
|
|
@@ -28,3 +29,4 @@ export declare class FilterTreeVisitor extends AbstractParseTreeVisitor<any> imp
|
|
|
28
29
|
visitLogicalExpression(ctx: LogicalExpressionContext): LogicalExpression;
|
|
29
30
|
visitArithmeticExpression(ctx: ArithmeticExpressionContext): ArithmeticExpression;
|
|
30
31
|
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ErrorListener, RecognitionException } from 'antlr4';
|
|
2
|
+
import { Recognizer } from 'antlr4/src/antlr4/Recognizer';
|
|
3
|
+
import { FilterParseError } from './errors.js';
|
|
4
|
+
export declare class OpraErrorListener extends ErrorListener<any> {
|
|
5
|
+
errors: FilterParseError[];
|
|
6
|
+
constructor(errors: FilterParseError[]);
|
|
7
|
+
syntaxError(recognizer: Recognizer<any>, offendingSymbol: any, line: number, column: number, msg: string, e: RecognitionException): void;
|
|
8
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function parseFilter(text: string, visitor?:
|
|
1
|
+
import type { ParseTreeVisitor } from 'antlr4';
|
|
2
|
+
export declare function parseFilter(text: string, visitor?: ParseTreeVisitor<any>): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FallbackLng, Formatter as I18nextFormatter, i18n, InitOptions as I18nextInitOptions, Resource as I18nextResource, TFunction as I18nextTFunction, TOptions } from 'i18next';
|
|
2
|
-
import * as I18next from 'i18next';
|
|
1
|
+
import { FallbackLng, Formatter as I18nextFormatter, i18n, InitOptions as I18nextInitOptions, Resource as I18nextResource, TFunction as I18nextTFunction, TOptions } from '@browsery/i18next';
|
|
2
|
+
import * as I18next from '@browsery/i18next';
|
|
3
3
|
import { Type } from 'ts-gems';
|
|
4
4
|
export declare type BaseI18n = Type<I18next.i18n>;
|
|
5
5
|
export declare const BaseI18n: BaseI18n;
|
|
@@ -10,7 +10,7 @@ export declare type InitCallback = I18next.Callback;
|
|
|
10
10
|
export declare type TranslateFunction = I18nextTFunction;
|
|
11
11
|
export declare type Formatter = I18nextFormatter;
|
|
12
12
|
export declare type LanguageResource = I18nextResource;
|
|
13
|
-
export { FallbackLng };
|
|
13
|
+
export type { FallbackLng };
|
|
14
14
|
export interface InitOptions extends I18nextInitOptions {
|
|
15
15
|
resourceDirs?: string[];
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TOptions } from 'i18next';
|
|
1
|
+
import { TOptions } from '@browsery/i18next';
|
|
2
2
|
export declare function translate(key: string, options?: TOptions<Record<string, any>>): string;
|
|
3
3
|
export declare function translate(key: string, options: TOptions<Record<string, any>>, fallback: string): string;
|
|
4
4
|
export declare function translate(key: string, fallback: string): string;
|
package/cjs/934.min.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk=self.webpackChunk||[]).push([[934],{6934:()=>{}}]);
|