@steedos/odata-v4-parser 2.2.53-beta.3

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/lib/lexer.d.ts ADDED
@@ -0,0 +1,243 @@
1
+ import Utils from "./utils";
2
+ export declare enum TokenType {
3
+ Literal = "Literal",
4
+ ArrayOrObject = "ArrayOrObject",
5
+ Array = "Array",
6
+ Object = "Object",
7
+ Property = "Property",
8
+ Annotation = "Annotation",
9
+ Enum = "Enum",
10
+ EnumValue = "EnumValue",
11
+ EnumMemberValue = "EnumMemberValue",
12
+ Identifier = "Identifier",
13
+ QualifiedEntityTypeName = "QualifiedEntityTypeName",
14
+ QualifiedComplexTypeName = "QualifiedComplexTypeName",
15
+ ODataIdentifier = "ODataIdentifier",
16
+ Collection = "Collection",
17
+ NamespacePart = "NamespacePart",
18
+ EntitySetName = "EntitySetName",
19
+ SingletonEntity = "SingletonEntity",
20
+ EntityTypeName = "EntityTypeName",
21
+ ComplexTypeName = "ComplexTypeName",
22
+ TypeDefinitionName = "TypeDefinitionName",
23
+ EnumerationTypeName = "EnumerationTypeName",
24
+ EnumerationMember = "EnumerationMember",
25
+ TermName = "TermName",
26
+ PrimitiveProperty = "PrimitiveProperty",
27
+ PrimitiveKeyProperty = "PrimitiveKeyProperty",
28
+ PrimitiveNonKeyProperty = "PrimitiveNonKeyProperty",
29
+ PrimitiveCollectionProperty = "PrimitiveCollectionProperty",
30
+ ComplexProperty = "ComplexProperty",
31
+ ComplexCollectionProperty = "ComplexCollectionProperty",
32
+ StreamProperty = "StreamProperty",
33
+ NavigationProperty = "NavigationProperty",
34
+ EntityNavigationProperty = "EntityNavigationProperty",
35
+ EntityCollectionNavigationProperty = "EntityCollectionNavigationProperty",
36
+ Action = "Action",
37
+ ActionImport = "ActionImport",
38
+ Function = "Function",
39
+ EntityFunction = "EntityFunction",
40
+ EntityCollectionFunction = "EntityCollectionFunction",
41
+ ComplexFunction = "ComplexFunction",
42
+ ComplexCollectionFunction = "ComplexCollectionFunction",
43
+ PrimitiveFunction = "PrimitiveFunction",
44
+ PrimitiveCollectionFunction = "PrimitiveCollectionFunction",
45
+ EntityFunctionImport = "EntityFunctionImport",
46
+ EntityCollectionFunctionImport = "EntityCollectionFunctionImport",
47
+ ComplexFunctionImport = "ComplexFunctionImport",
48
+ ComplexCollectionFunctionImport = "ComplexCollectionFunctionImport",
49
+ PrimitiveFunctionImport = "PrimitiveFunctionImport",
50
+ PrimitiveCollectionFunctionImport = "PrimitiveCollectionFunctionImport",
51
+ CommonExpression = "CommonExpression",
52
+ AndExpression = "AndExpression",
53
+ OrExpression = "OrExpression",
54
+ EqualsExpression = "EqualsExpression",
55
+ NotEqualsExpression = "NotEqualsExpression",
56
+ LesserThanExpression = "LesserThanExpression",
57
+ LesserOrEqualsExpression = "LesserOrEqualsExpression",
58
+ GreaterThanExpression = "GreaterThanExpression",
59
+ GreaterOrEqualsExpression = "GreaterOrEqualsExpression",
60
+ HasExpression = "HasExpression",
61
+ AddExpression = "AddExpression",
62
+ SubExpression = "SubExpression",
63
+ MulExpression = "MulExpression",
64
+ DivExpression = "DivExpression",
65
+ ModExpression = "ModExpression",
66
+ NotExpression = "NotExpression",
67
+ BoolParenExpression = "BoolParenExpression",
68
+ ParenExpression = "ParenExpression",
69
+ MethodCallExpression = "MethodCallExpression",
70
+ IsOfExpression = "IsOfExpression",
71
+ CastExpression = "CastExpression",
72
+ NegateExpression = "NegateExpression",
73
+ FirstMemberExpression = "FirstMemberExpression",
74
+ MemberExpression = "MemberExpression",
75
+ PropertyPathExpression = "PropertyPathExpression",
76
+ ImplicitVariableExpression = "ImplicitVariableExpression",
77
+ LambdaVariable = "LambdaVariable",
78
+ LambdaVariableExpression = "LambdaVariableExpression",
79
+ LambdaPredicateExpression = "LambdaPredicateExpression",
80
+ AnyExpression = "AnyExpression",
81
+ AllExpression = "AllExpression",
82
+ CollectionNavigationExpression = "CollectionNavigationExpression",
83
+ SimpleKey = "SimpleKey",
84
+ CompoundKey = "CompoundKey",
85
+ KeyValuePair = "KeyValuePair",
86
+ KeyPropertyValue = "KeyPropertyValue",
87
+ KeyPropertyAlias = "KeyPropertyAlias",
88
+ SingleNavigationExpression = "SingleNavigationExpression",
89
+ CollectionPathExpression = "CollectionPathExpression",
90
+ ComplexPathExpression = "ComplexPathExpression",
91
+ SinglePathExpression = "SinglePathExpression",
92
+ FunctionExpression = "FunctionExpression",
93
+ FunctionExpressionParameters = "FunctionExpressionParameters",
94
+ FunctionExpressionParameter = "FunctionExpressionParameter",
95
+ ParameterName = "ParameterName",
96
+ ParameterAlias = "ParameterAlias",
97
+ ParameterValue = "ParameterValue",
98
+ CountExpression = "CountExpression",
99
+ RefExpression = "RefExpression",
100
+ ValueExpression = "ValueExpression",
101
+ RootExpression = "RootExpression",
102
+ QueryOptions = "QueryOptions",
103
+ CustomQueryOption = "CustomQueryOption",
104
+ Expand = "Expand",
105
+ ExpandItem = "ExpandItem",
106
+ ExpandPath = "ExpandPath",
107
+ ExpandCountOption = "ExpandCountOption",
108
+ ExpandRefOption = "ExpandRefOption",
109
+ ExpandOption = "ExpandOption",
110
+ Levels = "Levels",
111
+ Search = "Search",
112
+ SearchExpression = "SearchExpression",
113
+ SearchParenExpression = "SearchParenExpression",
114
+ SearchNotExpression = "SearchNotExpression",
115
+ SearchOrExpression = "SearchOrExpression",
116
+ SearchAndExpression = "SearchAndExpression",
117
+ SearchTerm = "SearchTerm",
118
+ SearchPhrase = "SearchPhrase",
119
+ SearchWord = "SearchWord",
120
+ Filter = "Filter",
121
+ OrderBy = "OrderBy",
122
+ OrderByItem = "OrderByItem",
123
+ Skip = "Skip",
124
+ Top = "Top",
125
+ Format = "Format",
126
+ InlineCount = "InlineCount",
127
+ Select = "Select",
128
+ SelectItem = "SelectItem",
129
+ SelectPath = "SelectPath",
130
+ AliasAndValue = "AliasAndValue",
131
+ SkipToken = "SkipToken",
132
+ Id = "Id",
133
+ Crossjoin = "Crossjoin",
134
+ AllResource = "AllResource",
135
+ ActionImportCall = "ActionImportCall",
136
+ FunctionImportCall = "FunctionImportCall",
137
+ EntityCollectionFunctionImportCall = "EntityCollectionFunctionImportCall",
138
+ EntityFunctionImportCall = "EntityFunctionImportCall",
139
+ ComplexCollectionFunctionImportCall = "ComplexCollectionFunctionImportCall",
140
+ ComplexFunctionImportCall = "ComplexFunctionImportCall",
141
+ PrimitiveCollectionFunctionImportCall = "PrimitiveCollectionFunctionImportCall",
142
+ PrimitiveFunctionImportCall = "PrimitiveFunctionImportCall",
143
+ FunctionParameters = "FunctionParameters",
144
+ FunctionParameter = "FunctionParameter",
145
+ ResourcePath = "ResourcePath",
146
+ CollectionNavigation = "CollectionNavigation",
147
+ CollectionNavigationPath = "CollectionNavigationPath",
148
+ SingleNavigation = "SingleNavigation",
149
+ PropertyPath = "PropertyPath",
150
+ ComplexPath = "ComplexPath",
151
+ BoundOperation = "BoundOperation",
152
+ BoundActionCall = "BoundActionCall",
153
+ BoundEntityFunctionCall = "BoundEntityFunctionCall",
154
+ BoundEntityCollectionFunctionCall = "BoundEntityCollectionFunctionCall",
155
+ BoundComplexFunctionCall = "BoundComplexFunctionCall",
156
+ BoundComplexCollectionFunctionCall = "BoundComplexCollectionFunctionCall",
157
+ BoundPrimitiveFunctionCall = "BoundPrimitiveFunctionCall",
158
+ BoundPrimitiveCollectionFunctionCall = "BoundPrimitiveCollectionFunctionCall",
159
+ ODataUri = "ODataUri",
160
+ Batch = "Batch",
161
+ Entity = "Entity",
162
+ Metadata = "Metadata",
163
+ InExpression = "InExpression"
164
+ }
165
+ export declare const LexerTokenType: typeof TokenType;
166
+ export declare type LexerTokenType = TokenType;
167
+ export declare class Token {
168
+ position: number;
169
+ next: number;
170
+ value: any;
171
+ type: TokenType;
172
+ raw: string;
173
+ metadata: any;
174
+ constructor(token: any);
175
+ }
176
+ export declare const LexerToken: typeof Token;
177
+ export declare type LexerToken = Token;
178
+ export declare namespace Lexer {
179
+ type Token = LexerToken;
180
+ const Token: typeof LexerToken;
181
+ type TokenType = LexerTokenType;
182
+ const TokenType: typeof LexerTokenType;
183
+ function tokenize(value: Utils.SourceArray, index: number, next: number, tokenValue: any, tokenType: TokenType, metadataContextContainer?: Token): Token;
184
+ function clone(token: any): Token;
185
+ function ALPHA(value: number): boolean;
186
+ function DIGIT(value: number): boolean;
187
+ function HEXDIG(value: number): boolean;
188
+ function AtoF(value: number): boolean;
189
+ function DQUOTE(value: number): boolean;
190
+ function SP(value: number): boolean;
191
+ function HTAB(value: number): boolean;
192
+ function VCHAR(value: number): boolean;
193
+ function whitespaceLength(value: any, index: any): 3 | 1;
194
+ function OWS(value: Utils.SourceArray, index: number): number;
195
+ function RWS(value: Utils.SourceArray, index: number): number;
196
+ function BWS(value: Utils.SourceArray, index: number): number;
197
+ function AT(value: Utils.SourceArray, index: number): number;
198
+ function COLON(value: Utils.SourceArray, index: number): number;
199
+ function COMMA(value: Utils.SourceArray, index: number): number;
200
+ function EQ(value: Utils.SourceArray, index: number): number;
201
+ function SIGN(value: Utils.SourceArray, index: number): number;
202
+ function SEMI(value: Utils.SourceArray, index: number): number;
203
+ function STAR(value: Utils.SourceArray, index: number): number;
204
+ function SQUOTE(value: Utils.SourceArray, index: number): number;
205
+ function OPEN(value: Utils.SourceArray, index: number): number;
206
+ function CLOSE(value: Utils.SourceArray, index: number): number;
207
+ function unreserved(value: number): boolean;
208
+ function otherDelims(value: Utils.SourceArray, index: number): number;
209
+ function subDelims(value: Utils.SourceArray, index: number): number;
210
+ function pctEncoded(value: Utils.SourceArray, index: number): number;
211
+ function pctEncodedNoSQUOTE(value: Utils.SourceArray, index: number): number;
212
+ function pctEncodedUnescaped(value: Utils.SourceArray, index: number): number;
213
+ function pchar(value: Utils.SourceArray, index: number): number;
214
+ function pcharNoSQUOTE(value: Utils.SourceArray, index: number): number;
215
+ function qcharNoAMP(value: Utils.SourceArray, index: number): number;
216
+ function qcharNoAMPDQUOTE(value: Utils.SourceArray, index: number): number;
217
+ function base64char(value: number): boolean;
218
+ function base64b16(value: Utils.SourceArray, index: number): number;
219
+ function base64b8(value: Utils.SourceArray, index: number): number;
220
+ function nanInfinity(value: Utils.SourceArray, index: number): number;
221
+ function oneToNine(value: number): boolean;
222
+ function zeroToFiftyNine(value: Utils.SourceArray, index: number): number;
223
+ function year(value: Utils.SourceArray, index: number): number;
224
+ function month(value: Utils.SourceArray, index: number): number;
225
+ function day(value: Utils.SourceArray, index: number): number;
226
+ function hour(value: Utils.SourceArray, index: number): number;
227
+ function minute(value: Utils.SourceArray, index: number): number;
228
+ function second(value: Utils.SourceArray, index: number): number;
229
+ function fractionalSeconds(value: Utils.SourceArray, index: number): number;
230
+ function geographyPrefix(value: Utils.SourceArray, index: number): number;
231
+ function geometryPrefix(value: Utils.SourceArray, index: number): number;
232
+ function identifierLeadingCharacter(value: number): boolean;
233
+ function identifierCharacter(value: number): boolean;
234
+ function beginObject(value: Utils.SourceArray, index: number): number;
235
+ function endObject(value: Utils.SourceArray, index: number): number;
236
+ function beginArray(value: Utils.SourceArray, index: number): number;
237
+ function endArray(value: Utils.SourceArray, index: number): number;
238
+ function quotationMark(value: Utils.SourceArray, index: number): number;
239
+ function nameSeparator(value: Utils.SourceArray, index: number): number;
240
+ function valueSeparator(value: Utils.SourceArray, index: number): number;
241
+ function escape(value: Utils.SourceArray, index: number): number;
242
+ }
243
+ export default Lexer;