@abaplint/core 2.93.54 → 2.93.56

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.
@@ -444,6 +444,24 @@ declare class BusinessAddInImplementation extends AbstractObject {
444
444
  getDescription(): string | undefined;
445
445
  }
446
446
 
447
+ declare class BusinessCatalog extends AbstractObject {
448
+ getType(): string;
449
+ getAllowedNaming(): {
450
+ maxLength: number;
451
+ allowNamespace: boolean;
452
+ };
453
+ getDescription(): string | undefined;
454
+ }
455
+
456
+ declare class BusinessCatalogAppAssignment extends AbstractObject {
457
+ getType(): string;
458
+ getAllowedNaming(): {
459
+ maxLength: number;
460
+ allowNamespace: boolean;
461
+ };
462
+ getDescription(): string | undefined;
463
+ }
464
+
447
465
  declare class BusinessConfigurationSet extends AbstractObject {
448
466
  getType(): string;
449
467
  getAllowedNaming(): {
@@ -1740,6 +1758,10 @@ declare class EnhancementSpot extends AbstractObject {
1740
1758
  private parseXML;
1741
1759
  }
1742
1760
 
1761
+ declare class EntityAssociation extends Expression {
1762
+ getRunnable(): IStatementRunnable;
1763
+ }
1764
+
1743
1765
  declare class EventBinding extends AbstractObject {
1744
1766
  getType(): string;
1745
1767
  getAllowedNaming(): {
@@ -1835,7 +1857,6 @@ declare namespace Expressions {
1835
1857
  Cast,
1836
1858
  ClassFinal,
1837
1859
  ClassFriends,
1838
- SimpleTarget,
1839
1860
  ClassGlobal_2 as ClassGlobal,
1840
1861
  ClassName,
1841
1862
  Color,
@@ -1867,6 +1888,7 @@ declare namespace Expressions {
1867
1888
  Dereference,
1868
1889
  Destination,
1869
1890
  Dynamic,
1891
+ EntityAssociation,
1870
1892
  EventHandler,
1871
1893
  ExceptionName,
1872
1894
  FieldAll,
@@ -1962,6 +1984,7 @@ declare namespace Expressions {
1962
1984
  SimpleSource2,
1963
1985
  SimpleSource3,
1964
1986
  SimpleSource4,
1987
+ SimpleTarget,
1965
1988
  SourceFieldSymbol,
1966
1989
  SourceField,
1967
1990
  Source,
@@ -4018,6 +4041,8 @@ declare namespace Objects {
4018
4041
  CheckpointGroup,
4019
4042
  ClassCategory,
4020
4043
  Class,
4044
+ BusinessCatalog,
4045
+ BusinessCatalogAppAssignment,
4021
4046
  Classification,
4022
4047
  CompositeEnhancementImplementation,
4023
4048
  CompositeEnhancementSpot,
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityAssociation = void 0;
4
+ const combi_1 = require("../combi");
5
+ class EntityAssociation extends combi_1.Expression {
6
+ getRunnable() {
7
+ return (0, combi_1.regex)(/^[\w]+\\_[\w]+$/);
8
+ }
9
+ }
10
+ exports.EntityAssociation = EntityAssociation;
11
+ //# sourceMappingURL=entity_association.js.map
@@ -30,7 +30,6 @@ __exportStar(require("./call_transformation_parameters"), exports);
30
30
  __exportStar(require("./cast"), exports);
31
31
  __exportStar(require("./class_final"), exports);
32
32
  __exportStar(require("./class_friends"), exports);
33
- __exportStar(require("./simple_target"), exports);
34
33
  __exportStar(require("./class_global"), exports);
35
34
  __exportStar(require("./class_name"), exports);
36
35
  __exportStar(require("./color"), exports);
@@ -62,6 +61,8 @@ __exportStar(require("./definition_name"), exports);
62
61
  __exportStar(require("./dereference"), exports);
63
62
  __exportStar(require("./destination"), exports);
64
63
  __exportStar(require("./dynamic"), exports);
64
+ __exportStar(require("./entity_association"), exports);
65
+ __exportStar(require("./entity_association"), exports);
65
66
  __exportStar(require("./event_handler"), exports);
66
67
  __exportStar(require("./exception_name"), exports);
67
68
  __exportStar(require("./field_all"), exports);
@@ -157,6 +158,7 @@ __exportStar(require("./simple_source1"), exports);
157
158
  __exportStar(require("./simple_source2"), exports);
158
159
  __exportStar(require("./simple_source3"), exports);
159
160
  __exportStar(require("./simple_source4"), exports);
161
+ __exportStar(require("./simple_target"), exports);
160
162
  __exportStar(require("./source_field_symbol"), exports);
161
163
  __exportStar(require("./source_field"), exports);
162
164
  __exportStar(require("./source"), exports);
@@ -21,7 +21,7 @@ class Source extends combi_1.Expression {
21
21
  const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), Source, rparen);
22
22
  const after = (0, combi_1.seq)((0, combi_1.altPrio)("&", "&&", _1.ArithOperator), Source);
23
23
  const bool = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.ver)(version_1.Version.v702, (0, combi_1.regex)(/^BOOLC$/i)), (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.regex)(/^XSDBOOL$/i))), (0, combi_1.tok)(tokens_1.ParenLeftW), _1.Cond, ")");
24
- const prefix = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WDashW), (0, combi_1.tok)(tokens_1.WPlus), (0, combi_1.tok)(tokens_1.WPlusW), "BIT-NOT");
24
+ const prefix = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WPlus), "BIT-NOT");
25
25
  const old = (0, combi_1.seq)((0, combi_1.optPrio)(prefix), (0, combi_1.altPrio)(_1.Constant, _1.StringTemplate, text_element_1.TextElement, bool, method, (0, combi_1.seq)(_1.FieldChain, (0, combi_1.optPrio)(dereference_1.Dereference)), paren), (0, combi_1.optPrio)(after));
26
26
  const corr = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CORRESPONDING", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.CorrespondingBody, rparen, (0, combi_1.optPrio)(after)));
27
27
  const conv = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("CONV", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.ConvBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
@@ -32,7 +32,8 @@ class Source extends combi_1.Expression {
32
32
  const exact = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("EXACT", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), Source, rparen, (0, combi_1.optPrio)(after)));
33
33
  const filter = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("FILTER", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.FilterBody, rparen));
34
34
  const reduce = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("REDUCE", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.ReduceBody, rparen, (0, combi_1.optPrio)(after)));
35
- const ret = (0, combi_1.altPrio)(filter, reff, corr, conv, value, cond, exact, swit, reduce, old);
35
+ const prefix1 = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WDashW), (0, combi_1.tok)(tokens_1.WPlusW));
36
+ const ret = (0, combi_1.seq)((0, combi_1.starPrio)(prefix1), (0, combi_1.altPrio)(filter, reff, corr, conv, value, cond, exact, swit, reduce, old));
36
37
  return ret;
37
38
  }
38
39
  }
@@ -8,7 +8,7 @@ const dynamic_1 = require("./dynamic");
8
8
  const sql_arithmetics_1 = require("./sql_arithmetics");
9
9
  class SQLAggregation extends combi_1.Expression {
10
10
  getRunnable() {
11
- const f = (0, combi_1.altPrio)(sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic);
11
+ const f = (0, combi_1.altPrio)(sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction);
12
12
  const fparen = (0, combi_1.seq)("(", _1.Field, ")");
13
13
  const count = (0, combi_1.seq)("COUNT", (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.tok)(tokens_1.ParenLeftW)), (0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)("*", _1.Field, fparen), ")");
14
14
  const max = (0, combi_1.seq)("MAX", (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.tok)(tokens_1.ParenLeftW)), f, ")");
@@ -10,12 +10,13 @@ const sql_alias_field_1 = require("./sql_alias_field");
10
10
  const sql_field_name_1 = require("./sql_field_name");
11
11
  const simple_source3_1 = require("./simple_source3");
12
12
  const source_1 = require("./source");
13
+ const sql_aggregation_1 = require("./sql_aggregation");
13
14
  class SQLFunction extends combi_1.Expression {
14
15
  getRunnable() {
15
16
  const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), source_1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
16
17
  const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.alt)(simple_source3_1.SimpleSource3, paren)));
17
- const param = (0, combi_1.alt)(sql_field_name_1.SQLFieldName, sql_alias_field_1.SQLAliasField, SQLFunction, constant_1.Constant, at);
18
- const castTypes = (0, combi_1.altPrio)((0, combi_1.seq)("CHAR", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), "FLTP");
18
+ const param = (0, combi_1.alt)(sql_field_name_1.SQLFieldName, sql_alias_field_1.SQLAliasField, SQLFunction, constant_1.Constant, sql_aggregation_1.SQLAggregation, at);
19
+ const castTypes = (0, combi_1.altPrio)((0, combi_1.seq)("CHAR", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), (0, combi_1.seq)("DEC", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, ",", integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), "FLTP");
19
20
  const abs = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("abs", (0, combi_1.tok)(tokens_1.ParenLeftW), param, (0, combi_1.tok)(tokens_1.WParenRightW)));
20
21
  const cast = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("cast", (0, combi_1.tok)(tokens_1.ParenLeftW), param, "AS", castTypes, (0, combi_1.tok)(tokens_1.WParenRightW)));
21
22
  const ceil = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("ceil", (0, combi_1.tok)(tokens_1.ParenLeftW), param, (0, combi_1.tok)(tokens_1.WParenRightW)));
@@ -8,7 +8,8 @@ const version_1 = require("../../../version");
8
8
  class SQLIn extends combi_1.Expression {
9
9
  getRunnable() {
10
10
  const val = new _1.SQLSource();
11
- const listOld = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeft), val, (0, combi_1.starPrio)((0, combi_1.seq)(",", val)), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenRight), (0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.WParenRightW)));
11
+ const short = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.At), _1.SimpleSource3);
12
+ const listOld = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeft), (0, combi_1.alt)((0, combi_1.ver)(version_1.Version.v740sp05, short), val), (0, combi_1.starPrio)((0, combi_1.seq)(",", val)), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenRight), (0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.WParenRightW)));
12
13
  const listNew = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), val, (0, combi_1.starPrio)((0, combi_1.seq)(",", val)), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRight), (0, combi_1.tok)(tokens_1.WParenRightW)));
13
14
  const list = (0, combi_1.alt)(listOld, (0, combi_1.ver)(version_1.Version.v740sp02, listNew)); // version is a guess, https://github.com/abaplint/abaplint/issues/2530
14
15
  const subSelect = (0, combi_1.seq)("(", _1.Select, ")");
@@ -13,7 +13,10 @@ class MethodDef {
13
13
  const tableFunction = (0, combi_1.seq)("TABLE FUNCTION", (0, combi_1.regex)(/^\w+?$/));
14
14
  // todo, this is only from version something
15
15
  const ddl = "DDL OBJECT OPTIONS CDS SESSION CLIENT REQUIRED";
16
- const behavior = (0, combi_1.altPrio)((0, combi_1.seq)("VALIDATE ON SAVE IMPORTING", expressions_1.MethodParamName, "FOR", expressions_1.TypeName), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, "FOR ACTION", expressions_1.TypeName, "RESULT", expressions_1.MethodParamName), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, "FOR CREATE", expressions_1.TypeName), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, "FOR DELETE", expressions_1.TypeName), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, "FOR UPDATE", expressions_1.TypeName), (0, combi_1.seq)("READ IMPORTING", expressions_1.MethodParamName, "FOR READ", expressions_1.TypeName, "RESULT", expressions_1.MethodParamName), (0, combi_1.seq)("FEATURES IMPORTING", expressions_1.MethodParamName, "REQUEST", expressions_1.NamespaceSimpleName, "FOR", expressions_1.NamespaceSimpleName, "RESULT", expressions_1.MethodParamName), (0, combi_1.seq)("DETERMINE ON MODIFY IMPORTING", expressions_1.MethodParamName, "FOR", expressions_1.TypeName), (0, combi_1.seq)("DETERMINE ON SAVE IMPORTING", expressions_1.MethodParamName, "FOR", expressions_1.TypeName));
16
+ const result = (0, combi_1.seq)("RESULT", expressions_1.MethodParamName);
17
+ const link = (0, combi_1.seq)("LINK", expressions_1.MethodParamName);
18
+ const full = (0, combi_1.seq)("FULL", expressions_1.MethodParamName);
19
+ const behavior = (0, combi_1.altPrio)((0, combi_1.seq)("VALIDATE ON SAVE IMPORTING", expressions_1.MethodParamName, "FOR", expressions_1.TypeName), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, "FOR ACTION", expressions_1.TypeName, result), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, "FOR CREATE", (0, combi_1.alt)(expressions_1.TypeName, expressions_1.EntityAssociation)), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, "FOR DELETE", expressions_1.TypeName), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, "FOR UPDATE", expressions_1.TypeName), (0, combi_1.seq)("READ IMPORTING", expressions_1.MethodParamName, "FOR READ", (0, combi_1.alt)(expressions_1.TypeName, expressions_1.EntityAssociation), (0, combi_1.optPrio)(full), result, (0, combi_1.optPrio)(link)), (0, combi_1.seq)("FEATURES IMPORTING", expressions_1.MethodParamName, "REQUEST", expressions_1.NamespaceSimpleName, "FOR", expressions_1.NamespaceSimpleName, result), (0, combi_1.seq)("DETERMINE ON MODIFY IMPORTING", expressions_1.MethodParamName, "FOR", expressions_1.TypeName), (0, combi_1.seq)("DETERMINE ON SAVE IMPORTING", expressions_1.MethodParamName, "FOR", expressions_1.TypeName));
17
20
  // todo, this is only from version something
18
21
  const amdp = (0, combi_1.seq)("AMDP OPTIONS CDS SESSION CLIENT CURRENT", (0, combi_1.optPrio)(expressions_1.MethodDefImporting), (0, combi_1.optPrio)(expressions_1.MethodDefExporting), (0, combi_1.optPrio)(expressions_1.MethodDefRaising));
19
22
  const ret = (0, combi_1.seq)((0, combi_1.altPrio)("CLASS-METHODS", "METHODS"), expressions_1.MethodName, (0, combi_1.alt)((0, combi_1.seq)((0, combi_1.optPrio)(expressions_1.Abstract), expressions_1.EventHandler), parameters, testing, (0, combi_1.seq)("FOR", (0, combi_1.alt)(tableFunction, ddl, behavior)), amdp, "NOT AT END OF MODE", (0, combi_1.optPrio)(expressions_1.Redefinition)));
@@ -15,12 +15,12 @@ class MoveCorresponding {
15
15
  }
16
16
  const sourceType = new source_1.Source().runSyntax(s, scope, filename);
17
17
  const targetType = new target_1.Target().runSyntax(t, scope, filename);
18
- if (scope.getVersion() < version_1.Version.v740sp05) {
18
+ if (scope.getVersion() < version_1.Version.v740sp05 && scope.getVersion() !== version_1.Version.Cloud) {
19
19
  if (sourceType instanceof basic_1.TableType && sourceType.isWithHeader() === false) {
20
- throw new Error("MOVE-CORRESPONSING with tables possible from v740sp05");
20
+ throw new Error("MOVE-CORRESPONDING with tables possible from v740sp05");
21
21
  }
22
22
  else if (targetType instanceof basic_1.TableType && targetType.isWithHeader() === false) {
23
- throw new Error("MOVE-CORRESPONSING with tables possible from v740sp05");
23
+ throw new Error("MOVE-CORRESPONDING with tables possible from v740sp05");
24
24
  }
25
25
  }
26
26
  }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BusinessCatalog = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class BusinessCatalog extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "SIA1";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 200,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.BusinessCatalog = BusinessCatalog;
21
+ //# sourceMappingURL=business_catalog.js.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BusinessCatalogAppAssignment = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class BusinessCatalogAppAssignment extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "SIA7";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 200,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.BusinessCatalogAppAssignment = BusinessCatalogAppAssignment;
21
+ //# sourceMappingURL=business_catalog_app_assignment.js.map
@@ -33,6 +33,8 @@ __exportStar(require("./change_document"), exports);
33
33
  __exportStar(require("./chapter_of_book_structure"), exports);
34
34
  __exportStar(require("./checkpoint_group"), exports);
35
35
  __exportStar(require("./class"), exports);
36
+ __exportStar(require("./business_catalog"), exports);
37
+ __exportStar(require("./business_catalog_app_assignment"), exports);
36
38
  __exportStar(require("./classification"), exports);
37
39
  __exportStar(require("./composite_enhancement_implementation"), exports);
38
40
  __exportStar(require("./composite_enhancement_spot"), exports);
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.93.54";
66
+ return "2.93.56";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
@@ -44,8 +44,12 @@ class CloudTypes {
44
44
  || obj instanceof Objects.Table
45
45
  || obj instanceof Objects.TableType
46
46
  || obj instanceof Objects.DataDefinition
47
+ || obj instanceof Objects.BusinessCatalog
48
+ || obj instanceof Objects.BusinessCatalogAppAssignment
49
+ || obj instanceof Objects.AssignmentServiceToAuthorizationGroup
47
50
  || obj instanceof Objects.DataControl
48
51
  || obj instanceof Objects.LockObject
52
+ || obj instanceof Objects.CDSMetadataExtension
49
53
  || obj instanceof Objects.Transformation
50
54
  || obj instanceof Objects.FunctionGroup
51
55
  || obj instanceof Objects.DataElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.93.54",
3
+ "version": "2.93.56",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",