@abaplint/core 2.120.93 → 2.120.95
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/build/abaplint.d.ts +4 -0
- package/build/src/abap/2_statements/expressions/sql_from_source.js +1 -1
- package/build/src/abap/2_statements/expressions/sql_path_for_entity.js +11 -1
- package/build/src/abap/2_statements/expressions/type_structure.js +1 -1
- package/build/src/abap/2_statements/statements/get_permissions.js +7 -3
- package/build/src/abap/types/method_parameters.js +2 -0
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
package/build/abaplint.d.ts
CHANGED
|
@@ -7159,6 +7159,10 @@ declare class SQLPathForColumn extends Expression {
|
|
|
7159
7159
|
}
|
|
7160
7160
|
|
|
7161
7161
|
declare class SQLPathForEntity extends Expression {
|
|
7162
|
+
private readonly withPrefix;
|
|
7163
|
+
/** withPrefix = false when the entity name is already parsed by the caller, eg. in SQLFromSource,
|
|
7164
|
+
* otherwise the prefix would match a following keyword */
|
|
7165
|
+
constructor(withPrefix?: boolean);
|
|
7162
7166
|
getRunnable(): IStatementRunnable;
|
|
7163
7167
|
}
|
|
7164
7168
|
|
|
@@ -17,7 +17,7 @@ class SQLFromSource extends combi_1.Expression {
|
|
|
17
17
|
const privileged = (0, combi_1.ver)(version_1.Release.v752, (0, combi_1.seq)("WITH", _1.SQLPrivilegedAccess));
|
|
18
18
|
const providedBy = (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Release.v796, _1.SQLProvidedBy));
|
|
19
19
|
const exposeClient = (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Release.v913, _1.SQLExposeClientAs));
|
|
20
|
-
const pathForEntity = (0, combi_1.optPrio)((0, combi_1.verNotLang)(version_1.LanguageVersion.KeyUser, new sql_path_for_entity_1.SQLPathForEntity()));
|
|
20
|
+
const pathForEntity = (0, combi_1.optPrio)((0, combi_1.verNotLang)(version_1.LanguageVersion.KeyUser, new sql_path_for_entity_1.SQLPathForEntity(false)));
|
|
21
21
|
return (0, combi_1.seq)((0, combi_1.altPrio)(new sql_hierarchy_aggregate_1.SQLHierarchyAggregate(), new sql_hierarchy_accessor_1.SQLHierarchyAccessor(), new sql_hierarchy_source_1.SQLHierarchySource(), (0, combi_1.seq)(with_name_1.WithName, pathForEntity), (0, combi_1.seq)(new _1.DatabaseTable(true), (0, combi_1.optPrio)(_1.SQLCDSParameters), pathForEntity), tab), providedBy, (0, combi_1.optPrio)(privileged), (0, combi_1.optPrio)(aas), exposeClient);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -7,9 +7,19 @@ const database_table_1 = require("./database_table");
|
|
|
7
7
|
const sql_cte_path_prefix_1 = require("./sql_cte_path_prefix");
|
|
8
8
|
const version_1 = require("../../../version");
|
|
9
9
|
class SQLPathForEntity extends combi_1.Expression {
|
|
10
|
+
/** withPrefix = false when the entity name is already parsed by the caller, eg. in SQLFromSource,
|
|
11
|
+
* otherwise the prefix would match a following keyword */
|
|
12
|
+
constructor(withPrefix = true) {
|
|
13
|
+
super();
|
|
14
|
+
this.withPrefix = withPrefix;
|
|
15
|
+
}
|
|
10
16
|
getRunnable() {
|
|
17
|
+
const segments = (0, combi_1.plus)(new sql_path_segment_1.SQLPathSegment());
|
|
18
|
+
if (this.withPrefix === false) {
|
|
19
|
+
return (0, combi_1.ver)(version_1.Release.v740sp05, segments);
|
|
20
|
+
}
|
|
11
21
|
const prefix = (0, combi_1.altPrio)(new sql_cte_path_prefix_1.SQLCTEPathPrefix(), new database_table_1.DatabaseTable());
|
|
12
|
-
return (0, combi_1.ver)(version_1.Release.v740sp05, (0, combi_1.seq)((0, combi_1.optPrio)(prefix),
|
|
22
|
+
return (0, combi_1.ver)(version_1.Release.v740sp05, (0, combi_1.seq)((0, combi_1.optPrio)(prefix), segments));
|
|
13
23
|
}
|
|
14
24
|
}
|
|
15
25
|
exports.SQLPathForEntity = SQLPathForEntity;
|
|
@@ -8,7 +8,7 @@ const _derived_types_1 = require("./_derived_types");
|
|
|
8
8
|
class TypeStructure extends combi_1.Expression {
|
|
9
9
|
getRunnable() {
|
|
10
10
|
const entity = (0, combi_1.alt)(_1.TypeName, _1.EntityAssociation);
|
|
11
|
-
const derivedTypes = (0, _derived_types_1.derivedTypesAlt)((0, combi_1.ver)(version_1.Release.v779, (0, combi_1.seq)("FUNCTION REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v779, (0, combi_1.seq)("ACTION REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.seq)("ACTION IMPORT", _1.Source), (0, combi_1.ver)(version_1.Release.v781, (0, combi_1.seq)("GLOBAL AUTHORIZATION REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v781, (0, combi_1.seq)("GLOBAL AUTHORIZATION RESULT", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v781, (0, combi_1.seq)("GLOBAL FEATURES REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v781, (0, combi_1.seq)("GLOBAL FEATURES RESULT", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v780, (0, combi_1.seq)("AUTHORIZATION REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v776, (0, combi_1.seq)("FEATURES REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.seq)("PERMISSIONS REQUEST",
|
|
11
|
+
const derivedTypes = (0, _derived_types_1.derivedTypesAlt)((0, combi_1.ver)(version_1.Release.v779, (0, combi_1.seq)("FUNCTION REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v779, (0, combi_1.seq)("ACTION REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.seq)("ACTION IMPORT", _1.Source), (0, combi_1.ver)(version_1.Release.v781, (0, combi_1.seq)("GLOBAL AUTHORIZATION REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v781, (0, combi_1.seq)("GLOBAL AUTHORIZATION RESULT", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v781, (0, combi_1.seq)("GLOBAL FEATURES REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v781, (0, combi_1.seq)("GLOBAL FEATURES RESULT", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v780, (0, combi_1.seq)("AUTHORIZATION REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v776, (0, combi_1.seq)("FEATURES REQUEST", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.seq)("PERMISSIONS REQUEST", entity), (0, combi_1.ver)(version_1.Release.v780, (0, combi_1.seq)("PERMISSIONS RESULT", entity), { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.seq)("READ LINK", _1.EntityAssociation), (0, combi_1.seq)("HIERARCHY", _1.NamespaceSimpleName), (0, combi_1.seq)("EVENT", _1.EventName));
|
|
12
12
|
const structure = (0, combi_1.ver)(version_1.Release.v774, (0, combi_1.seq)("STRUCTURE FOR", derivedTypes), { also: combi_1.AlsoIn.OpenABAP });
|
|
13
13
|
const response = (0, combi_1.ver)(version_1.Release.v776, (0, combi_1.seq)("RESPONSE FOR", (0, combi_1.altPrio)((0, combi_1.seq)("FAILED EARLY", _1.NamespaceSimpleName), (0, combi_1.seq)("FAILED LATE", _1.NamespaceSimpleName), (0, combi_1.seq)("FAILED", _1.NamespaceSimpleName), (0, combi_1.seq)("MAPPED EARLY", _1.NamespaceSimpleName), (0, combi_1.seq)("MAPPED LATE", _1.NamespaceSimpleName), (0, combi_1.seq)("MAPPED", _1.NamespaceSimpleName), (0, combi_1.seq)("REPORTED EARLY", _1.NamespaceSimpleName), (0, combi_1.seq)("REPORTED LATE", _1.NamespaceSimpleName), (0, combi_1.seq)("REPORTED", _1.NamespaceSimpleName))), { also: combi_1.AlsoIn.OpenABAP });
|
|
14
14
|
const request = (0, combi_1.ver)(version_1.Release.v778, (0, combi_1.seq)("REQUEST FOR", (0, combi_1.alt)("CHANGE", "DELETE"), _1.NamespaceSimpleName), { also: combi_1.AlsoIn.OpenABAP });
|
|
@@ -6,9 +6,13 @@ const expressions_1 = require("../expressions");
|
|
|
6
6
|
const version_1 = require("../../../version");
|
|
7
7
|
class GetPermissions {
|
|
8
8
|
getMatcher() {
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
9
|
+
const aspect = (0, combi_1.altPrio)("FEATURES", "AUTHORIZATION");
|
|
10
|
+
const only = (0, combi_1.seq)("ONLY", (0, combi_1.altPrio)((0, combi_1.seq)("GLOBAL", (0, combi_1.optPrio)(aspect)), (0, combi_1.seq)("INSTANCE", (0, combi_1.optPrio)(aspect)), aspect, expressions_1.Dynamic));
|
|
11
|
+
const query = (0, combi_1.seq)("ENTITY", (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.EntityAssociation), (0, combi_1.optPrio)((0, combi_1.seq)("FROM", expressions_1.Source)), "REQUEST", expressions_1.Source, "RESULT", expressions_1.Target);
|
|
12
|
+
const long = (0, combi_1.seq)("OF", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(query));
|
|
13
|
+
const operations = (0, combi_1.seq)("OPERATIONS", expressions_1.Source);
|
|
14
|
+
const response = (0, combi_1.optPrio)((0, combi_1.per)((0, combi_1.seq)("FAILED", expressions_1.Target), (0, combi_1.seq)("REPORTED", expressions_1.Target)));
|
|
15
|
+
const s = (0, combi_1.seq)("GET PERMISSIONS", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.opt)("FORWARDING"), "PRIVILEGED")), (0, combi_1.optPrio)(only), (0, combi_1.altPrio)(long, operations, query), response);
|
|
12
16
|
return (0, combi_1.ver)(version_1.Release.v754, s, { also: combi_1.AlsoIn.OpenABAP });
|
|
13
17
|
}
|
|
14
18
|
}
|
|
@@ -266,6 +266,8 @@ class MethodParameters {
|
|
|
266
266
|
|| concat.includes(" FOR FEATURES ")
|
|
267
267
|
|| concat.includes(" FOR INSTANCE FEATURES ")
|
|
268
268
|
|| concat.includes(" FOR GLOBAL AUTHORIZATION ")
|
|
269
|
+
|| concat.includes(" FOR INSTANCE AUTHORIZATION ")
|
|
270
|
+
|| concat.includes(" FOR AUTHORIZATION ")
|
|
269
271
|
|| concat.includes(" FOR PRECHECK ")
|
|
270
272
|
|| concat.includes(" FOR NUMBERING ")
|
|
271
273
|
|| concat.includes(" FOR READ ")
|
package/build/src/registry.js
CHANGED