@jetstreamapp/soql-parser-js 6.0.0
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/AUTHORS.md +1 -0
- package/CHANGELOG.md +959 -0
- package/LICENSE.txt +12 -0
- package/README.md +949 -0
- package/bin/soql-parser-js +3 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.LICENSE.txt +1 -0
- package/dist/cjs/main.licenses.txt +898 -0
- package/dist/cjs/src/api/api-models.d.ts +175 -0
- package/dist/cjs/src/api/api-models.js +2 -0
- package/dist/cjs/src/api/public-utils.d.ts +29 -0
- package/dist/cjs/src/api/public-utils.js +175 -0
- package/dist/cjs/src/composer/composer.d.ts +32 -0
- package/dist/cjs/src/composer/composer.js +295 -0
- package/dist/cjs/src/formatter/formatter.d.ts +42 -0
- package/dist/cjs/src/formatter/formatter.js +236 -0
- package/dist/cjs/src/index.d.ts +5 -0
- package/dist/cjs/src/index.js +23 -0
- package/dist/cjs/src/models.d.ts +266 -0
- package/dist/cjs/src/models.js +2 -0
- package/dist/cjs/src/parser/lexer.d.ts +186 -0
- package/dist/cjs/src/parser/lexer.js +954 -0
- package/dist/cjs/src/parser/parser.d.ts +89 -0
- package/dist/cjs/src/parser/parser.js +697 -0
- package/dist/cjs/src/parser/visitor.d.ts +4 -0
- package/dist/cjs/src/parser/visitor.js +856 -0
- package/dist/cjs/src/utils.d.ts +42 -0
- package/dist/cjs/src/utils.js +245 -0
- package/dist/cli/index.js +113 -0
- package/dist/esm/api/api-models.js +1 -0
- package/dist/esm/api/public-utils.js +153 -0
- package/dist/esm/composer/composer.js +273 -0
- package/dist/esm/formatter/formatter.js +223 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/models.js +1 -0
- package/dist/esm/parser/lexer.js +947 -0
- package/dist/esm/parser/parser.js +667 -0
- package/dist/esm/parser/visitor.js +823 -0
- package/dist/esm/utils.js +200 -0
- package/dist/src/api/api-models.js +2 -0
- package/dist/src/api/public-utils.js +203 -0
- package/dist/src/composer/composer.js +358 -0
- package/dist/src/formatter/formatter.js +263 -0
- package/dist/src/index.js +28 -0
- package/dist/src/models.js +2 -0
- package/dist/src/parser/lexer.js +997 -0
- package/dist/src/parser/parser.js +711 -0
- package/dist/src/parser/visitor.js +862 -0
- package/dist/src/utils.js +251 -0
- package/package.json +78 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { CstNode, CstParser, IRecognitionException } from 'chevrotain';
|
|
2
|
+
export interface ParseQueryConfig {
|
|
3
|
+
allowPartialQuery?: boolean;
|
|
4
|
+
allowApexBindVariables?: boolean;
|
|
5
|
+
ignoreParseErrors?: boolean;
|
|
6
|
+
logErrors?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare class ParsingError extends Error {
|
|
9
|
+
constructor(parsingError: IRecognitionException);
|
|
10
|
+
}
|
|
11
|
+
export declare class SoqlParser extends CstParser {
|
|
12
|
+
private $_dateFunctionOr;
|
|
13
|
+
private $_aggregateFunction;
|
|
14
|
+
private $_otherFunction;
|
|
15
|
+
private $_atomicExpression;
|
|
16
|
+
private $_apexBindVariableExpression;
|
|
17
|
+
private $_arrayExpression;
|
|
18
|
+
private $_relationalOperator;
|
|
19
|
+
private $_selectClause;
|
|
20
|
+
private $_selectClauseFunctionIdentifier;
|
|
21
|
+
private $_withDataCategoryArr;
|
|
22
|
+
allowApexBindVariables: boolean;
|
|
23
|
+
ignoreParseErrors: boolean;
|
|
24
|
+
constructor({ ignoreParseErrors }?: {
|
|
25
|
+
ignoreParseErrors?: boolean | null;
|
|
26
|
+
});
|
|
27
|
+
selectStatement: import("chevrotain").ParserMethod<[], CstNode>;
|
|
28
|
+
selectStatementPartial: import("chevrotain").ParserMethod<[], CstNode>;
|
|
29
|
+
clauseStatements: import("chevrotain").ParserMethod<[], CstNode>;
|
|
30
|
+
private $_checkBalancedParens;
|
|
31
|
+
private selectClause;
|
|
32
|
+
private selectClauseFunctionIdentifier;
|
|
33
|
+
private selectClauseSubqueryIdentifier;
|
|
34
|
+
private selectClauseTypeOf;
|
|
35
|
+
private selectClauseIdentifier;
|
|
36
|
+
private selectClauseTypeOfThen;
|
|
37
|
+
private selectClauseTypeOfElse;
|
|
38
|
+
private fromClause;
|
|
39
|
+
private usingScopeClause;
|
|
40
|
+
private whereClause;
|
|
41
|
+
private whereClauseSubqueryIdentifier;
|
|
42
|
+
private conditionExpression;
|
|
43
|
+
private withClause;
|
|
44
|
+
private withDataCategory;
|
|
45
|
+
private withDataCategoryArr;
|
|
46
|
+
private groupByClause;
|
|
47
|
+
private havingClause;
|
|
48
|
+
private orderByClause;
|
|
49
|
+
private orderByExpression;
|
|
50
|
+
private orderByGroupingFunctionExpression;
|
|
51
|
+
private orderBySpecialFunctionExpression;
|
|
52
|
+
private limitClause;
|
|
53
|
+
private offsetClause;
|
|
54
|
+
private dateFunction;
|
|
55
|
+
private aggregateFunction;
|
|
56
|
+
private fieldsFunction;
|
|
57
|
+
private otherFunction;
|
|
58
|
+
private cubeFunction;
|
|
59
|
+
private rollupFunction;
|
|
60
|
+
private functionExpression;
|
|
61
|
+
private locationFunction;
|
|
62
|
+
private geolocationFunction;
|
|
63
|
+
private expressionPartWithNegation;
|
|
64
|
+
private expression;
|
|
65
|
+
private expressionWithRelationalOperator;
|
|
66
|
+
private expressionWithSetOperator;
|
|
67
|
+
private atomicExpression;
|
|
68
|
+
private apexBindVariableExpression;
|
|
69
|
+
private apexBindVariableIdentifier;
|
|
70
|
+
private apexBindVariableNewInstantiation;
|
|
71
|
+
private apexBindVariableFunctionCall;
|
|
72
|
+
private apexBindVariableGeneric;
|
|
73
|
+
private apexBindVariableFunctionParams;
|
|
74
|
+
private apexBindVariableFunctionArrayAccessor;
|
|
75
|
+
private arrayExpression;
|
|
76
|
+
private relationalOperator;
|
|
77
|
+
private setOperator;
|
|
78
|
+
private notInOperator;
|
|
79
|
+
private booleanValue;
|
|
80
|
+
private dateNLiteral;
|
|
81
|
+
private forViewOrReference;
|
|
82
|
+
private updateTrackingViewstat;
|
|
83
|
+
private getParenCount;
|
|
84
|
+
}
|
|
85
|
+
export declare function parse(soql: string, options?: ParseQueryConfig): {
|
|
86
|
+
cst: CstNode;
|
|
87
|
+
parseErrors: ParsingError[];
|
|
88
|
+
};
|
|
89
|
+
export {};
|