@opra/client 0.17.0 → 0.17.2

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 (188) hide show
  1. package/cjs/client-error.js +17 -0
  2. package/cjs/constants.js +7 -0
  3. package/cjs/http/batch-request.js +90 -0
  4. package/cjs/http/http-client.js +232 -0
  5. package/cjs/http/http-collection-node.js +110 -0
  6. package/cjs/http/http-request-observable.js +36 -0
  7. package/cjs/http/http-request.js +88 -0
  8. package/cjs/http/http-response.js +24 -0
  9. package/cjs/http/http-service-base.js +9 -0
  10. package/cjs/http/http-singleton-node.js +63 -0
  11. package/cjs/http/http-types.js +2 -0
  12. package/cjs/index.js +12 -0
  13. package/cjs/package.json +3 -0
  14. package/esm/client-error.js +13 -0
  15. package/esm/constants.js +4 -0
  16. package/esm/http/batch-request.js +90 -0
  17. package/esm/http/http-client.js +228 -0
  18. package/esm/http/http-collection-node.js +106 -0
  19. package/esm/http/http-request-observable.js +32 -0
  20. package/esm/http/http-request.js +84 -0
  21. package/esm/http/http-response.js +20 -0
  22. package/esm/http/http-service-base.js +5 -0
  23. package/esm/http/http-singleton-node.js +59 -0
  24. package/esm/http/http-types.js +1 -0
  25. package/esm/index.js +9 -0
  26. package/package.json +32 -12
  27. package/types/client-error.d.ts +1 -1
  28. package/types/http/http-client.d.ts +1 -1
  29. package/types/http/http-collection-node.d.ts +5 -5
  30. package/types/http/http-request-observable.d.ts +1 -1
  31. package/types/http/http-request.d.ts +1 -1
  32. package/types/http/http-response.d.ts +3 -1
  33. package/types/http/http-singleton-node.d.ts +1 -1
  34. package/types/http/http-types.d.ts +1 -1
  35. package/types/index.d.ts +0 -6
  36. package/cjs/content-disposition-d575fee5.js +0 -473
  37. package/cjs/cookie-signature-3e974173.js +0 -64
  38. package/cjs/index.min.mjs +0 -9295
  39. package/cjs/mime-db-49f150d0.js +0 -10719
  40. package/cjs/mime-types-6e2bdb57.js +0 -201
  41. package/cjs/safe-buffer-8acd60c7.js +0 -78
  42. package/esm/content-disposition-65f281a9.js +0 -470
  43. package/esm/cookie-signature-bf274b6b.js +0 -62
  44. package/esm/index.min.mjs +0 -9174
  45. package/esm/mime-db-d0f15d8f.js +0 -10717
  46. package/esm/mime-types-79c091fd.js +0 -199
  47. package/esm/safe-buffer-63383356.js +0 -76
  48. package/types/common/document/api-document.d.ts +0 -102
  49. package/types/common/document/constants.d.ts +0 -3
  50. package/types/common/document/data-type/api-field.d.ts +0 -41
  51. package/types/common/document/data-type/builtin/any.type.d.ts +0 -2
  52. package/types/common/document/data-type/builtin/base64.type.d.ts +0 -6
  53. package/types/common/document/data-type/builtin/bigint.type.d.ts +0 -6
  54. package/types/common/document/data-type/builtin/boolean.type.d.ts +0 -5
  55. package/types/common/document/data-type/builtin/date.type.d.ts +0 -4
  56. package/types/common/document/data-type/builtin/guid.type.d.ts +0 -7
  57. package/types/common/document/data-type/builtin/index.d.ts +0 -10
  58. package/types/common/document/data-type/builtin/integer.type.d.ts +0 -6
  59. package/types/common/document/data-type/builtin/number.type.d.ts +0 -6
  60. package/types/common/document/data-type/builtin/object.type.d.ts +0 -3
  61. package/types/common/document/data-type/builtin/string.type.d.ts +0 -5
  62. package/types/common/document/data-type/builtin/time.type.d.ts +0 -7
  63. package/types/common/document/data-type/builtin/timestamp.type.d.ts +0 -5
  64. package/types/common/document/data-type/complex-type.d.ts +0 -56
  65. package/types/common/document/data-type/data-type.d.ts +0 -33
  66. package/types/common/document/data-type/enum-type.d.ts +0 -32
  67. package/types/common/document/data-type/mapped-type.d.ts +0 -53
  68. package/types/common/document/data-type/simple-type.d.ts +0 -33
  69. package/types/common/document/data-type/union-type.d.ts +0 -42
  70. package/types/common/document/factory/add-references.d.ts +0 -4
  71. package/types/common/document/factory/create-document.d.ts +0 -12
  72. package/types/common/document/factory/factory.d.ts +0 -61
  73. package/types/common/document/factory/import-resource-class.d.ts +0 -10
  74. package/types/common/document/factory/import-type-class.d.ts +0 -17
  75. package/types/common/document/factory/index.d.ts +0 -1
  76. package/types/common/document/factory/process-resources.d.ts +0 -7
  77. package/types/common/document/factory/process-types.d.ts +0 -6
  78. package/types/common/document/index.d.ts +0 -14
  79. package/types/common/document/resource/collection.d.ts +0 -69
  80. package/types/common/document/resource/resource.d.ts +0 -29
  81. package/types/common/document/resource/singleton.d.ts +0 -51
  82. package/types/common/document/utils/inspect.util.d.ts +0 -4
  83. package/types/common/document/utils/string-compare.util.d.ts +0 -1
  84. package/types/common/exception/enums/issue-severity.enum.d.ts +0 -13
  85. package/types/common/exception/error-issue.d.ts +0 -9
  86. package/types/common/exception/http-errors/bad-request.error.d.ts +0 -10
  87. package/types/common/exception/http-errors/failed-dependency.error.d.ts +0 -9
  88. package/types/common/exception/http-errors/forbidden.error.d.ts +0 -11
  89. package/types/common/exception/http-errors/internal-server.error.d.ts +0 -9
  90. package/types/common/exception/http-errors/method-not-allowed.error.d.ts +0 -10
  91. package/types/common/exception/http-errors/not-acceptable.error.d.ts +0 -10
  92. package/types/common/exception/http-errors/not-found.error.d.ts +0 -13
  93. package/types/common/exception/http-errors/unauthorized.error.d.ts +0 -10
  94. package/types/common/exception/http-errors/unprocessable-entity.error.d.ts +0 -9
  95. package/types/common/exception/index.d.ts +0 -15
  96. package/types/common/exception/opra-exception.d.ts +0 -15
  97. package/types/common/exception/resource-errors/resource-conflict.error.d.ts +0 -5
  98. package/types/common/exception/resource-errors/resource-not-found.error.d.ts +0 -8
  99. package/types/common/exception/wrap-exception.d.ts +0 -2
  100. package/types/common/filter/antlr/OpraFilterLexer.d.ts +0 -77
  101. package/types/common/filter/antlr/OpraFilterListener.d.ts +0 -430
  102. package/types/common/filter/antlr/OpraFilterParser.d.ts +0 -437
  103. package/types/common/filter/antlr/OpraFilterVisitor.d.ts +0 -260
  104. package/types/common/filter/ast/abstract/ast.d.ts +0 -5
  105. package/types/common/filter/ast/abstract/expression.d.ts +0 -3
  106. package/types/common/filter/ast/abstract/literal.d.ts +0 -6
  107. package/types/common/filter/ast/abstract/term.d.ts +0 -3
  108. package/types/common/filter/ast/expressions/arithmetic-expression.d.ts +0 -13
  109. package/types/common/filter/ast/expressions/array-expression.d.ts +0 -7
  110. package/types/common/filter/ast/expressions/comparison-expression.d.ts +0 -10
  111. package/types/common/filter/ast/expressions/logical-expression.d.ts +0 -8
  112. package/types/common/filter/ast/expressions/parentheses-expression.d.ts +0 -6
  113. package/types/common/filter/ast/index.d.ts +0 -16
  114. package/types/common/filter/ast/terms/boolean-literal.d.ts +0 -5
  115. package/types/common/filter/ast/terms/date-literal.d.ts +0 -6
  116. package/types/common/filter/ast/terms/external-constant.d.ts +0 -5
  117. package/types/common/filter/ast/terms/null-literal.d.ts +0 -5
  118. package/types/common/filter/ast/terms/number-literal.d.ts +0 -6
  119. package/types/common/filter/ast/terms/qualified-identifier.d.ts +0 -8
  120. package/types/common/filter/ast/terms/string-literal.d.ts +0 -5
  121. package/types/common/filter/ast/terms/time-literal.d.ts +0 -6
  122. package/types/common/filter/build.d.ts +0 -31
  123. package/types/common/filter/errors.d.ts +0 -20
  124. package/types/common/filter/filter-tree-visitor.d.ts +0 -33
  125. package/types/common/filter/index.d.ts +0 -5
  126. package/types/common/filter/opra-error-listener.d.ts +0 -8
  127. package/types/common/filter/parse.d.ts +0 -2
  128. package/types/common/filter/utils.d.ts +0 -2
  129. package/types/common/helpers/function-utils.d.ts +0 -4
  130. package/types/common/helpers/get-stack-filename.d.ts +0 -1
  131. package/types/common/helpers/index.d.ts +0 -8
  132. package/types/common/helpers/is-url.d.ts +0 -1
  133. package/types/common/helpers/mixin-utils.d.ts +0 -3
  134. package/types/common/helpers/object-utils.d.ts +0 -2
  135. package/types/common/helpers/path-to-object-tree.d.ts +0 -4
  136. package/types/common/helpers/responsive-map.d.ts +0 -34
  137. package/types/common/helpers/type-guards.d.ts +0 -11
  138. package/types/common/http/codecs/boolean-codec.d.ts +0 -5
  139. package/types/common/http/codecs/date-codec.d.ts +0 -16
  140. package/types/common/http/codecs/filter-codec.d.ts +0 -6
  141. package/types/common/http/codecs/integer-codec.d.ts +0 -11
  142. package/types/common/http/codecs/number-codec.d.ts +0 -14
  143. package/types/common/http/codecs/string-codec.d.ts +0 -16
  144. package/types/common/http/enums/http-headers-codes.enum.d.ts +0 -388
  145. package/types/common/http/enums/http-status-codes.enum.d.ts +0 -290
  146. package/types/common/http/enums/http-status-messages.d.ts +0 -65
  147. package/types/common/http/http-headers.d.ts +0 -86
  148. package/types/common/http/http-message.host.d.ts +0 -122
  149. package/types/common/http/http-params.d.ts +0 -114
  150. package/types/common/http/http-request-message.d.ts +0 -213
  151. package/types/common/http/http-response-message.d.ts +0 -318
  152. package/types/common/http/index.d.ts +0 -14
  153. package/types/common/http/interfaces/client-http-headers.interface.d.ts +0 -65
  154. package/types/common/http/interfaces/cookie-options.interface.d.ts +0 -4
  155. package/types/common/http/interfaces/server-http-headers.interface.d.ts +0 -1
  156. package/types/common/http/multipart/batch-multipart.d.ts +0 -0
  157. package/types/common/http/multipart/http-request-content.d.ts +0 -0
  158. package/types/common/http/multipart/http-response-content.d.ts +0 -0
  159. package/types/common/http/multipart/index.d.ts +0 -0
  160. package/types/common/i18n/i18n.d.ts +0 -28
  161. package/types/common/i18n/index.d.ts +0 -5
  162. package/types/common/i18n/string-utils.d.ts +0 -2
  163. package/types/common/i18n/translate.d.ts +0 -4
  164. package/types/common/index.d.ts +0 -11
  165. package/types/common/schema/constants.d.ts +0 -2
  166. package/types/common/schema/data-type/complex-type.interface.d.ts +0 -16
  167. package/types/common/schema/data-type/data-type.interface.d.ts +0 -14
  168. package/types/common/schema/data-type/enum-type.interface.d.ts +0 -15
  169. package/types/common/schema/data-type/field.interface.d.ts +0 -21
  170. package/types/common/schema/data-type/mapped-type.interface.d.ts +0 -11
  171. package/types/common/schema/data-type/simple-type.interface.d.ts +0 -18
  172. package/types/common/schema/data-type/union-type.interface.d.ts +0 -10
  173. package/types/common/schema/document.interface.d.ts +0 -34
  174. package/types/common/schema/index.d.ts +0 -51
  175. package/types/common/schema/resource/collection.interface.d.ts +0 -33
  176. package/types/common/schema/resource/container.interface.d.ts +0 -9
  177. package/types/common/schema/resource/endpoint.interface.d.ts +0 -29
  178. package/types/common/schema/resource/resource.interface.d.ts +0 -12
  179. package/types/common/schema/resource/singleton.interface.d.ts +0 -22
  180. package/types/common/schema/type-guards.d.ts +0 -20
  181. package/types/common/types.d.ts +0 -11
  182. package/types/common/url/index.d.ts +0 -5
  183. package/types/common/url/opra-url-path-component.d.ts +0 -15
  184. package/types/common/url/opra-url-path.d.ts +0 -36
  185. package/types/common/url/opra-url.d.ts +0 -70
  186. package/types/common/url/utils/decode-path-component.d.ts +0 -5
  187. package/types/common/url/utils/encode-path-component.d.ts +0 -1
  188. package/types/common/utils/path-utils.d.ts +0 -2
@@ -1,437 +0,0 @@
1
- import { ATN, DFA, FailedPredicateException, Parser, ParserRuleContext, RuleContext, TerminalNode, TokenStream } from '@browsery/antlr4';
2
- import type OpraFilterListener from "./OpraFilterListener.js";
3
- import type OpraFilterVisitor from "./OpraFilterVisitor.js";
4
- export default class OpraFilterParser extends Parser {
5
- static readonly T__0 = 1;
6
- static readonly T__1 = 2;
7
- static readonly T__2 = 3;
8
- static readonly T__3 = 4;
9
- static readonly T__4 = 5;
10
- static readonly T__5 = 6;
11
- static readonly T__6 = 7;
12
- static readonly T__7 = 8;
13
- static readonly T__8 = 9;
14
- static readonly T__9 = 10;
15
- static readonly T__10 = 11;
16
- static readonly T__11 = 12;
17
- static readonly T__12 = 13;
18
- static readonly T__13 = 14;
19
- static readonly T__14 = 15;
20
- static readonly T__15 = 16;
21
- static readonly T__16 = 17;
22
- static readonly T__17 = 18;
23
- static readonly T__18 = 19;
24
- static readonly T__19 = 20;
25
- static readonly T__20 = 21;
26
- static readonly T__21 = 22;
27
- static readonly T__22 = 23;
28
- static readonly T__23 = 24;
29
- static readonly T__24 = 25;
30
- static readonly T__25 = 26;
31
- static readonly T__26 = 27;
32
- static readonly T__27 = 28;
33
- static readonly T__28 = 29;
34
- static readonly T__29 = 30;
35
- static readonly T__30 = 31;
36
- static readonly T__31 = 32;
37
- static readonly T__32 = 33;
38
- static readonly T__33 = 34;
39
- static readonly T__34 = 35;
40
- static readonly T__35 = 36;
41
- static readonly T__36 = 37;
42
- static readonly T__37 = 38;
43
- static readonly T__38 = 39;
44
- static readonly T__39 = 40;
45
- static readonly T__40 = 41;
46
- static readonly T__41 = 42;
47
- static readonly T__42 = 43;
48
- static readonly T__43 = 44;
49
- static readonly T__44 = 45;
50
- static readonly T__45 = 46;
51
- static readonly DATE = 47;
52
- static readonly DATETIME = 48;
53
- static readonly TIME = 49;
54
- static readonly IDENTIFIER = 50;
55
- static readonly STRING = 51;
56
- static readonly NUMBER = 52;
57
- static readonly INTEGER = 53;
58
- static readonly WHITESPACE = 54;
59
- static readonly COMMENT = 55;
60
- static readonly LINE_COMMENT = 56;
61
- static readonly EOF: number;
62
- static readonly RULE_root = 0;
63
- static readonly RULE_expression = 1;
64
- static readonly RULE_term = 2;
65
- static readonly RULE_invocable = 3;
66
- static readonly RULE_invocation = 4;
67
- static readonly RULE_indexer = 5;
68
- static readonly RULE_function = 6;
69
- static readonly RULE_paramList = 7;
70
- static readonly RULE_unit = 8;
71
- static readonly RULE_dateTimePrecision = 9;
72
- static readonly RULE_pluralDateTimePrecision = 10;
73
- static readonly RULE_qualifiedIdentifier = 11;
74
- static readonly RULE_externalConstant = 12;
75
- static readonly RULE_identifier = 13;
76
- static readonly RULE_literal = 14;
77
- static readonly RULE_compOp = 15;
78
- static readonly RULE_arthOp = 16;
79
- static readonly RULE_polarOp = 17;
80
- static readonly RULE_logOp = 18;
81
- static readonly RULE_boolean = 19;
82
- static readonly RULE_null = 20;
83
- static readonly RULE_infinity = 21;
84
- static readonly literalNames: (string | null)[];
85
- static readonly symbolicNames: (string | null)[];
86
- static readonly ruleNames: string[];
87
- get grammarFileName(): string;
88
- get literalNames(): (string | null)[];
89
- get symbolicNames(): (string | null)[];
90
- get ruleNames(): string[];
91
- get serializedATN(): number[];
92
- protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException;
93
- constructor(input: TokenStream);
94
- root(): RootContext;
95
- expression(): ExpressionContext;
96
- expression(_p: number): ExpressionContext;
97
- term(): TermContext;
98
- invocable(): InvocableContext;
99
- invocation(): InvocationContext;
100
- indexer(): IndexerContext;
101
- function_(): FunctionContext;
102
- paramList(): ParamListContext;
103
- unit(): UnitContext;
104
- dateTimePrecision(): DateTimePrecisionContext;
105
- pluralDateTimePrecision(): PluralDateTimePrecisionContext;
106
- qualifiedIdentifier(): QualifiedIdentifierContext;
107
- externalConstant(): ExternalConstantContext;
108
- identifier(): IdentifierContext;
109
- literal(): LiteralContext;
110
- compOp(): CompOpContext;
111
- arthOp(): ArthOpContext;
112
- polarOp(): PolarOpContext;
113
- logOp(): LogOpContext;
114
- boolean_(): BooleanContext;
115
- null_(): NullContext;
116
- infinity(): InfinityContext;
117
- sempred(localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
118
- private expression_sempred;
119
- static readonly _serializedATN: number[];
120
- private static __ATN;
121
- static get _ATN(): ATN;
122
- static DecisionsToDFA: DFA[];
123
- }
124
- export declare class RootContext extends ParserRuleContext {
125
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
126
- expression(): ExpressionContext;
127
- EOF(): TerminalNode;
128
- get ruleIndex(): number;
129
- enterRule(listener: OpraFilterListener): void;
130
- exitRule(listener: OpraFilterListener): void;
131
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
132
- }
133
- export declare class ExpressionContext extends ParserRuleContext {
134
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
135
- get ruleIndex(): number;
136
- copyFrom(ctx: ExpressionContext): void;
137
- }
138
- export declare class ParenthesizedExpressionContext extends ExpressionContext {
139
- constructor(parser: OpraFilterParser, ctx: ExpressionContext);
140
- expression(): ExpressionContext;
141
- enterRule(listener: OpraFilterListener): void;
142
- exitRule(listener: OpraFilterListener): void;
143
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
144
- }
145
- export declare class ArrayExpressionContext extends ExpressionContext {
146
- constructor(parser: OpraFilterParser, ctx: ExpressionContext);
147
- expression_list(): ExpressionContext[];
148
- expression(i: number): ExpressionContext;
149
- enterRule(listener: OpraFilterListener): void;
150
- exitRule(listener: OpraFilterListener): void;
151
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
152
- }
153
- export declare class PolarityExpressionContext extends ExpressionContext {
154
- constructor(parser: OpraFilterParser, ctx: ExpressionContext);
155
- polarOp(): PolarOpContext;
156
- expression(): ExpressionContext;
157
- enterRule(listener: OpraFilterListener): void;
158
- exitRule(listener: OpraFilterListener): void;
159
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
160
- }
161
- export declare class ComparisonExpressionContext extends ExpressionContext {
162
- constructor(parser: OpraFilterParser, ctx: ExpressionContext);
163
- expression_list(): ExpressionContext[];
164
- expression(i: number): ExpressionContext;
165
- compOp(): CompOpContext;
166
- enterRule(listener: OpraFilterListener): void;
167
- exitRule(listener: OpraFilterListener): void;
168
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
169
- }
170
- export declare class ArithmeticExpressionContext extends ExpressionContext {
171
- constructor(parser: OpraFilterParser, ctx: ExpressionContext);
172
- expression_list(): ExpressionContext[];
173
- expression(i: number): ExpressionContext;
174
- arthOp(): ArthOpContext;
175
- enterRule(listener: OpraFilterListener): void;
176
- exitRule(listener: OpraFilterListener): void;
177
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
178
- }
179
- export declare class LogicalExpressionContext extends ExpressionContext {
180
- constructor(parser: OpraFilterParser, ctx: ExpressionContext);
181
- expression_list(): ExpressionContext[];
182
- expression(i: number): ExpressionContext;
183
- logOp(): LogOpContext;
184
- enterRule(listener: OpraFilterListener): void;
185
- exitRule(listener: OpraFilterListener): void;
186
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
187
- }
188
- export declare class TermExpressionContext extends ExpressionContext {
189
- constructor(parser: OpraFilterParser, ctx: ExpressionContext);
190
- term(): TermContext;
191
- enterRule(listener: OpraFilterListener): void;
192
- exitRule(listener: OpraFilterListener): void;
193
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
194
- }
195
- export declare class TermContext extends ParserRuleContext {
196
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
197
- get ruleIndex(): number;
198
- copyFrom(ctx: TermContext): void;
199
- }
200
- export declare class ExternalConstantTermContext extends TermContext {
201
- constructor(parser: OpraFilterParser, ctx: TermContext);
202
- externalConstant(): ExternalConstantContext;
203
- enterRule(listener: OpraFilterListener): void;
204
- exitRule(listener: OpraFilterListener): void;
205
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
206
- }
207
- export declare class LiteralTermContext extends TermContext {
208
- constructor(parser: OpraFilterParser, ctx: TermContext);
209
- literal(): LiteralContext;
210
- enterRule(listener: OpraFilterListener): void;
211
- exitRule(listener: OpraFilterListener): void;
212
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
213
- }
214
- export declare class QualifiedIdentifierTermContext extends TermContext {
215
- constructor(parser: OpraFilterParser, ctx: TermContext);
216
- qualifiedIdentifier(): QualifiedIdentifierContext;
217
- enterRule(listener: OpraFilterListener): void;
218
- exitRule(listener: OpraFilterListener): void;
219
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
220
- }
221
- export declare class InvocableContext extends ParserRuleContext {
222
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
223
- function_(): FunctionContext;
224
- get ruleIndex(): number;
225
- enterRule(listener: OpraFilterListener): void;
226
- exitRule(listener: OpraFilterListener): void;
227
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
228
- }
229
- export declare class InvocationContext extends ParserRuleContext {
230
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
231
- get ruleIndex(): number;
232
- copyFrom(ctx: InvocationContext): void;
233
- }
234
- export declare class MemberInvocationContext extends InvocationContext {
235
- constructor(parser: OpraFilterParser, ctx: InvocationContext);
236
- identifier(): IdentifierContext;
237
- enterRule(listener: OpraFilterListener): void;
238
- exitRule(listener: OpraFilterListener): void;
239
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
240
- }
241
- export declare class IndexerContext extends ParserRuleContext {
242
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
243
- get ruleIndex(): number;
244
- copyFrom(ctx: IndexerContext): void;
245
- }
246
- export declare class NumberIndexContext extends IndexerContext {
247
- constructor(parser: OpraFilterParser, ctx: IndexerContext);
248
- INTEGER(): TerminalNode;
249
- enterRule(listener: OpraFilterListener): void;
250
- exitRule(listener: OpraFilterListener): void;
251
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
252
- }
253
- export declare class MemberIndexContext extends IndexerContext {
254
- constructor(parser: OpraFilterParser, ctx: IndexerContext);
255
- identifier(): IdentifierContext;
256
- enterRule(listener: OpraFilterListener): void;
257
- exitRule(listener: OpraFilterListener): void;
258
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
259
- }
260
- export declare class FunctionContext extends ParserRuleContext {
261
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
262
- identifier(): IdentifierContext;
263
- paramList(): ParamListContext;
264
- get ruleIndex(): number;
265
- enterRule(listener: OpraFilterListener): void;
266
- exitRule(listener: OpraFilterListener): void;
267
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
268
- }
269
- export declare class ParamListContext extends ParserRuleContext {
270
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
271
- expression_list(): ExpressionContext[];
272
- expression(i: number): ExpressionContext;
273
- get ruleIndex(): number;
274
- enterRule(listener: OpraFilterListener): void;
275
- exitRule(listener: OpraFilterListener): void;
276
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
277
- }
278
- export declare class UnitContext extends ParserRuleContext {
279
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
280
- dateTimePrecision(): DateTimePrecisionContext;
281
- pluralDateTimePrecision(): PluralDateTimePrecisionContext;
282
- STRING(): TerminalNode;
283
- get ruleIndex(): number;
284
- enterRule(listener: OpraFilterListener): void;
285
- exitRule(listener: OpraFilterListener): void;
286
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
287
- }
288
- export declare class DateTimePrecisionContext extends ParserRuleContext {
289
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
290
- get ruleIndex(): number;
291
- enterRule(listener: OpraFilterListener): void;
292
- exitRule(listener: OpraFilterListener): void;
293
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
294
- }
295
- export declare class PluralDateTimePrecisionContext extends ParserRuleContext {
296
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
297
- get ruleIndex(): number;
298
- enterRule(listener: OpraFilterListener): void;
299
- exitRule(listener: OpraFilterListener): void;
300
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
301
- }
302
- export declare class QualifiedIdentifierContext extends ParserRuleContext {
303
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
304
- identifier_list(): IdentifierContext[];
305
- identifier(i: number): IdentifierContext;
306
- get ruleIndex(): number;
307
- enterRule(listener: OpraFilterListener): void;
308
- exitRule(listener: OpraFilterListener): void;
309
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
310
- }
311
- export declare class ExternalConstantContext extends ParserRuleContext {
312
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
313
- IDENTIFIER(): TerminalNode;
314
- STRING(): TerminalNode;
315
- get ruleIndex(): number;
316
- enterRule(listener: OpraFilterListener): void;
317
- exitRule(listener: OpraFilterListener): void;
318
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
319
- }
320
- export declare class IdentifierContext extends ParserRuleContext {
321
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
322
- IDENTIFIER(): TerminalNode;
323
- get ruleIndex(): number;
324
- enterRule(listener: OpraFilterListener): void;
325
- exitRule(listener: OpraFilterListener): void;
326
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
327
- }
328
- export declare class LiteralContext extends ParserRuleContext {
329
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
330
- get ruleIndex(): number;
331
- copyFrom(ctx: LiteralContext): void;
332
- }
333
- export declare class TimeLiteralContext extends LiteralContext {
334
- constructor(parser: OpraFilterParser, ctx: LiteralContext);
335
- TIME(): TerminalNode;
336
- enterRule(listener: OpraFilterListener): void;
337
- exitRule(listener: OpraFilterListener): void;
338
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
339
- }
340
- export declare class NullLiteralContext extends LiteralContext {
341
- constructor(parser: OpraFilterParser, ctx: LiteralContext);
342
- null_(): NullContext;
343
- enterRule(listener: OpraFilterListener): void;
344
- exitRule(listener: OpraFilterListener): void;
345
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
346
- }
347
- export declare class DateTimeLiteralContext extends LiteralContext {
348
- constructor(parser: OpraFilterParser, ctx: LiteralContext);
349
- DATETIME(): TerminalNode;
350
- enterRule(listener: OpraFilterListener): void;
351
- exitRule(listener: OpraFilterListener): void;
352
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
353
- }
354
- export declare class StringLiteralContext extends LiteralContext {
355
- constructor(parser: OpraFilterParser, ctx: LiteralContext);
356
- STRING(): TerminalNode;
357
- enterRule(listener: OpraFilterListener): void;
358
- exitRule(listener: OpraFilterListener): void;
359
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
360
- }
361
- export declare class DateLiteralContext extends LiteralContext {
362
- constructor(parser: OpraFilterParser, ctx: LiteralContext);
363
- DATE(): TerminalNode;
364
- enterRule(listener: OpraFilterListener): void;
365
- exitRule(listener: OpraFilterListener): void;
366
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
367
- }
368
- export declare class InfinityLiteralContext extends LiteralContext {
369
- constructor(parser: OpraFilterParser, ctx: LiteralContext);
370
- infinity(): InfinityContext;
371
- enterRule(listener: OpraFilterListener): void;
372
- exitRule(listener: OpraFilterListener): void;
373
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
374
- }
375
- export declare class BooleanLiteralContext extends LiteralContext {
376
- constructor(parser: OpraFilterParser, ctx: LiteralContext);
377
- boolean_(): BooleanContext;
378
- enterRule(listener: OpraFilterListener): void;
379
- exitRule(listener: OpraFilterListener): void;
380
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
381
- }
382
- export declare class NumberLiteralContext extends LiteralContext {
383
- constructor(parser: OpraFilterParser, ctx: LiteralContext);
384
- NUMBER(): TerminalNode;
385
- enterRule(listener: OpraFilterListener): void;
386
- exitRule(listener: OpraFilterListener): void;
387
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
388
- }
389
- export declare class CompOpContext extends ParserRuleContext {
390
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
391
- get ruleIndex(): number;
392
- enterRule(listener: OpraFilterListener): void;
393
- exitRule(listener: OpraFilterListener): void;
394
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
395
- }
396
- export declare class ArthOpContext extends ParserRuleContext {
397
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
398
- get ruleIndex(): number;
399
- enterRule(listener: OpraFilterListener): void;
400
- exitRule(listener: OpraFilterListener): void;
401
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
402
- }
403
- export declare class PolarOpContext extends ParserRuleContext {
404
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
405
- get ruleIndex(): number;
406
- enterRule(listener: OpraFilterListener): void;
407
- exitRule(listener: OpraFilterListener): void;
408
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
409
- }
410
- export declare class LogOpContext extends ParserRuleContext {
411
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
412
- get ruleIndex(): number;
413
- enterRule(listener: OpraFilterListener): void;
414
- exitRule(listener: OpraFilterListener): void;
415
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
416
- }
417
- export declare class BooleanContext extends ParserRuleContext {
418
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
419
- get ruleIndex(): number;
420
- enterRule(listener: OpraFilterListener): void;
421
- exitRule(listener: OpraFilterListener): void;
422
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
423
- }
424
- export declare class NullContext extends ParserRuleContext {
425
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
426
- get ruleIndex(): number;
427
- enterRule(listener: OpraFilterListener): void;
428
- exitRule(listener: OpraFilterListener): void;
429
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
430
- }
431
- export declare class InfinityContext extends ParserRuleContext {
432
- constructor(parser?: OpraFilterParser, parent?: ParserRuleContext, invokingState?: number);
433
- get ruleIndex(): number;
434
- enterRule(listener: OpraFilterListener): void;
435
- exitRule(listener: OpraFilterListener): void;
436
- accept<Result>(visitor: OpraFilterVisitor<Result>): Result;
437
- }
@@ -1,260 +0,0 @@
1
- import { ParseTreeVisitor } from '@browsery/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
- /**
4
- * This interface defines a complete generic visitor for a parse tree produced
5
- * by `OpraFilterParser`.
6
- *
7
- * @param <Result> The return type of the visit operation. Use `void` for
8
- * operations with no return type.
9
- */
10
- export default class OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
11
- /**
12
- * Visit a parse tree produced by `OpraFilterParser.root`.
13
- * @param ctx the parse tree
14
- * @return the visitor result
15
- */
16
- visitRoot?: (ctx: RootContext) => Result;
17
- /**
18
- * Visit a parse tree produced by the `parenthesizedExpression`
19
- * labeled alternative in `OpraFilterParser.expression`.
20
- * @param ctx the parse tree
21
- * @return the visitor result
22
- */
23
- visitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => Result;
24
- /**
25
- * Visit a parse tree produced by the `arrayExpression`
26
- * labeled alternative in `OpraFilterParser.expression`.
27
- * @param ctx the parse tree
28
- * @return the visitor result
29
- */
30
- visitArrayExpression?: (ctx: ArrayExpressionContext) => Result;
31
- /**
32
- * Visit a parse tree produced by the `polarityExpression`
33
- * labeled alternative in `OpraFilterParser.expression`.
34
- * @param ctx the parse tree
35
- * @return the visitor result
36
- */
37
- visitPolarityExpression?: (ctx: PolarityExpressionContext) => Result;
38
- /**
39
- * Visit a parse tree produced by the `comparisonExpression`
40
- * labeled alternative in `OpraFilterParser.expression`.
41
- * @param ctx the parse tree
42
- * @return the visitor result
43
- */
44
- visitComparisonExpression?: (ctx: ComparisonExpressionContext) => Result;
45
- /**
46
- * Visit a parse tree produced by the `arithmeticExpression`
47
- * labeled alternative in `OpraFilterParser.expression`.
48
- * @param ctx the parse tree
49
- * @return the visitor result
50
- */
51
- visitArithmeticExpression?: (ctx: ArithmeticExpressionContext) => Result;
52
- /**
53
- * Visit a parse tree produced by the `logicalExpression`
54
- * labeled alternative in `OpraFilterParser.expression`.
55
- * @param ctx the parse tree
56
- * @return the visitor result
57
- */
58
- visitLogicalExpression?: (ctx: LogicalExpressionContext) => Result;
59
- /**
60
- * Visit a parse tree produced by the `termExpression`
61
- * labeled alternative in `OpraFilterParser.expression`.
62
- * @param ctx the parse tree
63
- * @return the visitor result
64
- */
65
- visitTermExpression?: (ctx: TermExpressionContext) => Result;
66
- /**
67
- * Visit a parse tree produced by the `literalTerm`
68
- * labeled alternative in `OpraFilterParser.term`.
69
- * @param ctx the parse tree
70
- * @return the visitor result
71
- */
72
- visitLiteralTerm?: (ctx: LiteralTermContext) => Result;
73
- /**
74
- * Visit a parse tree produced by the `qualifiedIdentifierTerm`
75
- * labeled alternative in `OpraFilterParser.term`.
76
- * @param ctx the parse tree
77
- * @return the visitor result
78
- */
79
- visitQualifiedIdentifierTerm?: (ctx: QualifiedIdentifierTermContext) => Result;
80
- /**
81
- * Visit a parse tree produced by the `externalConstantTerm`
82
- * labeled alternative in `OpraFilterParser.term`.
83
- * @param ctx the parse tree
84
- * @return the visitor result
85
- */
86
- visitExternalConstantTerm?: (ctx: ExternalConstantTermContext) => Result;
87
- /**
88
- * Visit a parse tree produced by `OpraFilterParser.invocable`.
89
- * @param ctx the parse tree
90
- * @return the visitor result
91
- */
92
- visitInvocable?: (ctx: InvocableContext) => Result;
93
- /**
94
- * Visit a parse tree produced by the `memberInvocation`
95
- * labeled alternative in `OpraFilterParser.invocation`.
96
- * @param ctx the parse tree
97
- * @return the visitor result
98
- */
99
- visitMemberInvocation?: (ctx: MemberInvocationContext) => Result;
100
- /**
101
- * Visit a parse tree produced by the `memberIndex`
102
- * labeled alternative in `OpraFilterParser.indexer`.
103
- * @param ctx the parse tree
104
- * @return the visitor result
105
- */
106
- visitMemberIndex?: (ctx: MemberIndexContext) => Result;
107
- /**
108
- * Visit a parse tree produced by the `numberIndex`
109
- * labeled alternative in `OpraFilterParser.indexer`.
110
- * @param ctx the parse tree
111
- * @return the visitor result
112
- */
113
- visitNumberIndex?: (ctx: NumberIndexContext) => Result;
114
- /**
115
- * Visit a parse tree produced by `OpraFilterParser.function`.
116
- * @param ctx the parse tree
117
- * @return the visitor result
118
- */
119
- visitFunction?: (ctx: FunctionContext) => Result;
120
- /**
121
- * Visit a parse tree produced by `OpraFilterParser.paramList`.
122
- * @param ctx the parse tree
123
- * @return the visitor result
124
- */
125
- visitParamList?: (ctx: ParamListContext) => Result;
126
- /**
127
- * Visit a parse tree produced by `OpraFilterParser.unit`.
128
- * @param ctx the parse tree
129
- * @return the visitor result
130
- */
131
- visitUnit?: (ctx: UnitContext) => Result;
132
- /**
133
- * Visit a parse tree produced by `OpraFilterParser.dateTimePrecision`.
134
- * @param ctx the parse tree
135
- * @return the visitor result
136
- */
137
- visitDateTimePrecision?: (ctx: DateTimePrecisionContext) => Result;
138
- /**
139
- * Visit a parse tree produced by `OpraFilterParser.pluralDateTimePrecision`.
140
- * @param ctx the parse tree
141
- * @return the visitor result
142
- */
143
- visitPluralDateTimePrecision?: (ctx: PluralDateTimePrecisionContext) => Result;
144
- /**
145
- * Visit a parse tree produced by `OpraFilterParser.qualifiedIdentifier`.
146
- * @param ctx the parse tree
147
- * @return the visitor result
148
- */
149
- visitQualifiedIdentifier?: (ctx: QualifiedIdentifierContext) => Result;
150
- /**
151
- * Visit a parse tree produced by `OpraFilterParser.externalConstant`.
152
- * @param ctx the parse tree
153
- * @return the visitor result
154
- */
155
- visitExternalConstant?: (ctx: ExternalConstantContext) => Result;
156
- /**
157
- * Visit a parse tree produced by `OpraFilterParser.identifier`.
158
- * @param ctx the parse tree
159
- * @return the visitor result
160
- */
161
- visitIdentifier?: (ctx: IdentifierContext) => Result;
162
- /**
163
- * Visit a parse tree produced by the `numberLiteral`
164
- * labeled alternative in `OpraFilterParser.literal`.
165
- * @param ctx the parse tree
166
- * @return the visitor result
167
- */
168
- visitNumberLiteral?: (ctx: NumberLiteralContext) => Result;
169
- /**
170
- * Visit a parse tree produced by the `infinityLiteral`
171
- * labeled alternative in `OpraFilterParser.literal`.
172
- * @param ctx the parse tree
173
- * @return the visitor result
174
- */
175
- visitInfinityLiteral?: (ctx: InfinityLiteralContext) => Result;
176
- /**
177
- * Visit a parse tree produced by the `booleanLiteral`
178
- * labeled alternative in `OpraFilterParser.literal`.
179
- * @param ctx the parse tree
180
- * @return the visitor result
181
- */
182
- visitBooleanLiteral?: (ctx: BooleanLiteralContext) => Result;
183
- /**
184
- * Visit a parse tree produced by the `nullLiteral`
185
- * labeled alternative in `OpraFilterParser.literal`.
186
- * @param ctx the parse tree
187
- * @return the visitor result
188
- */
189
- visitNullLiteral?: (ctx: NullLiteralContext) => Result;
190
- /**
191
- * Visit a parse tree produced by the `dateLiteral`
192
- * labeled alternative in `OpraFilterParser.literal`.
193
- * @param ctx the parse tree
194
- * @return the visitor result
195
- */
196
- visitDateLiteral?: (ctx: DateLiteralContext) => Result;
197
- /**
198
- * Visit a parse tree produced by the `dateTimeLiteral`
199
- * labeled alternative in `OpraFilterParser.literal`.
200
- * @param ctx the parse tree
201
- * @return the visitor result
202
- */
203
- visitDateTimeLiteral?: (ctx: DateTimeLiteralContext) => Result;
204
- /**
205
- * Visit a parse tree produced by the `timeLiteral`
206
- * labeled alternative in `OpraFilterParser.literal`.
207
- * @param ctx the parse tree
208
- * @return the visitor result
209
- */
210
- visitTimeLiteral?: (ctx: TimeLiteralContext) => Result;
211
- /**
212
- * Visit a parse tree produced by the `stringLiteral`
213
- * labeled alternative in `OpraFilterParser.literal`.
214
- * @param ctx the parse tree
215
- * @return the visitor result
216
- */
217
- visitStringLiteral?: (ctx: StringLiteralContext) => Result;
218
- /**
219
- * Visit a parse tree produced by `OpraFilterParser.compOp`.
220
- * @param ctx the parse tree
221
- * @return the visitor result
222
- */
223
- visitCompOp?: (ctx: CompOpContext) => Result;
224
- /**
225
- * Visit a parse tree produced by `OpraFilterParser.arthOp`.
226
- * @param ctx the parse tree
227
- * @return the visitor result
228
- */
229
- visitArthOp?: (ctx: ArthOpContext) => Result;
230
- /**
231
- * Visit a parse tree produced by `OpraFilterParser.polarOp`.
232
- * @param ctx the parse tree
233
- * @return the visitor result
234
- */
235
- visitPolarOp?: (ctx: PolarOpContext) => Result;
236
- /**
237
- * Visit a parse tree produced by `OpraFilterParser.logOp`.
238
- * @param ctx the parse tree
239
- * @return the visitor result
240
- */
241
- visitLogOp?: (ctx: LogOpContext) => Result;
242
- /**
243
- * Visit a parse tree produced by `OpraFilterParser.boolean`.
244
- * @param ctx the parse tree
245
- * @return the visitor result
246
- */
247
- visitBoolean?: (ctx: BooleanContext) => Result;
248
- /**
249
- * Visit a parse tree produced by `OpraFilterParser.null`.
250
- * @param ctx the parse tree
251
- * @return the visitor result
252
- */
253
- visitNull?: (ctx: NullContext) => Result;
254
- /**
255
- * Visit a parse tree produced by `OpraFilterParser.infinity`.
256
- * @param ctx the parse tree
257
- * @return the visitor result
258
- */
259
- visitInfinity?: (ctx: InfinityContext) => Result;
260
- }