@abaplint/core 2.93.59 → 2.93.61

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.
@@ -987,6 +987,15 @@ declare class Communication implements IStatement {
987
987
  getMatcher(): IStatementRunnable;
988
988
  }
989
989
 
990
+ declare class CommunicationScenario extends AbstractObject {
991
+ getType(): string;
992
+ getAllowedNaming(): {
993
+ maxLength: number;
994
+ allowNamespace: boolean;
995
+ };
996
+ getDescription(): string | undefined;
997
+ }
998
+
990
999
  declare class Compare extends Expression {
991
1000
  getRunnable(): IStatementRunnable;
992
1001
  }
@@ -2539,6 +2548,15 @@ declare class Hide implements IStatement {
2539
2548
  getMatcher(): IStatementRunnable;
2540
2549
  }
2541
2550
 
2551
+ declare class HttpService extends AbstractObject {
2552
+ getType(): string;
2553
+ getAllowedNaming(): {
2554
+ maxLength: number;
2555
+ allowNamespace: boolean;
2556
+ };
2557
+ getDescription(): string | undefined;
2558
+ }
2559
+
2542
2560
  declare interface IABAPFileInformation {
2543
2561
  listInterfaceDefinitions(): readonly InfoInterfaceDefinition[];
2544
2562
  getInterfaceDefinitionByName(name: string): InfoInterfaceDefinition | undefined;
@@ -2600,6 +2618,15 @@ declare interface IAllowedNaming {
2600
2618
  customRegex?: RegExp;
2601
2619
  }
2602
2620
 
2621
+ declare class IAMApp extends AbstractObject {
2622
+ getType(): string;
2623
+ getAllowedNaming(): {
2624
+ maxLength: number;
2625
+ allowNamespace: boolean;
2626
+ };
2627
+ getDescription(): string | undefined;
2628
+ }
2629
+
2603
2630
  declare interface IArtifact {
2604
2631
  getType(): string;
2605
2632
  getAllowedNaming(): IAllowedNaming;
@@ -2941,6 +2968,15 @@ declare class ImportNametab implements IStatement {
2941
2968
  getMatcher(): IStatementRunnable;
2942
2969
  }
2943
2970
 
2971
+ declare class InboundService extends AbstractObject {
2972
+ getType(): string;
2973
+ getAllowedNaming(): {
2974
+ maxLength: number;
2975
+ allowNamespace: boolean;
2976
+ };
2977
+ getDescription(): string | undefined;
2978
+ }
2979
+
2944
2980
  declare class Include implements IStatement {
2945
2981
  getMatcher(): IStatementRunnable;
2946
2982
  }
@@ -4032,6 +4068,8 @@ declare namespace Objects {
4032
4068
  BehaviorDefinition,
4033
4069
  BSPApplication,
4034
4070
  BusinessAddInImplementation,
4071
+ BusinessCatalogAppAssignment,
4072
+ BusinessCatalog,
4035
4073
  BusinessConfigurationSet,
4036
4074
  BusinessFunctionAssignment,
4037
4075
  BusinessFunctionSetAssignment,
@@ -4041,10 +4079,9 @@ declare namespace Objects {
4041
4079
  ChangeDocument,
4042
4080
  ChapterOfBookStructure,
4043
4081
  CheckpointGroup,
4082
+ CommunicationScenario,
4044
4083
  ClassCategory,
4045
4084
  Class,
4046
- BusinessCatalog,
4047
- BusinessCatalogAppAssignment,
4048
4085
  Classification,
4049
4086
  CompositeEnhancementImplementation,
4050
4087
  CompositeEnhancementSpot,
@@ -4083,13 +4120,16 @@ declare namespace Objects {
4083
4120
  GeneralHierarchyStorageExtrensionName,
4084
4121
  GeneralStorageStructure,
4085
4122
  GeneralText,
4123
+ HttpService,
4086
4124
  IACBinaryData,
4087
4125
  IACLanguageResource,
4088
4126
  IACService,
4089
4127
  IACTemplate,
4128
+ IAMApp,
4090
4129
  ICFService,
4091
4130
  IdocExtension,
4092
4131
  Idoc,
4132
+ InboundService,
4093
4133
  InfoObject,
4094
4134
  Interface,
4095
4135
  LockObject,
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommitEntities = void 0;
4
+ const Expressions = require("../../2_statements/expressions");
5
+ const source_1 = require("../expressions/source");
6
+ const target_1 = require("../expressions/target");
7
+ const inline_data_1 = require("../expressions/inline_data");
8
+ const basic_1 = require("../../types/basic");
9
+ class CommitEntities {
10
+ runSyntax(node, scope, filename) {
11
+ for (const s of node.findDirectExpressions(Expressions.Source)) {
12
+ new source_1.Source().runSyntax(s, scope, filename);
13
+ }
14
+ for (const t of node.findDirectExpressions(Expressions.Target)) {
15
+ const inline = t === null || t === void 0 ? void 0 : t.findDirectExpression(Expressions.InlineData);
16
+ if (inline) {
17
+ new inline_data_1.InlineData().runSyntax(inline, scope, filename, new basic_1.VoidType("CommitEntities"));
18
+ }
19
+ else {
20
+ new target_1.Target().runSyntax(t, scope, filename);
21
+ }
22
+ }
23
+ }
24
+ }
25
+ exports.CommitEntities = CommitEntities;
26
+ //# sourceMappingURL=commit_entities.js.map
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModifyEntities = void 0;
4
+ const Expressions = require("../../2_statements/expressions");
5
+ const source_1 = require("../expressions/source");
6
+ const target_1 = require("../expressions/target");
7
+ const inline_data_1 = require("../expressions/inline_data");
8
+ const basic_1 = require("../../types/basic");
9
+ class ModifyEntities {
10
+ runSyntax(node, scope, filename) {
11
+ for (const s of node.findDirectExpressions(Expressions.Source)) {
12
+ new source_1.Source().runSyntax(s, scope, filename);
13
+ }
14
+ for (const t of node.findDirectExpressions(Expressions.Target)) {
15
+ const inline = t === null || t === void 0 ? void 0 : t.findDirectExpression(Expressions.InlineData);
16
+ if (inline) {
17
+ new inline_data_1.InlineData().runSyntax(inline, scope, filename, new basic_1.VoidType("ModifyEntities"));
18
+ }
19
+ else {
20
+ new target_1.Target().runSyntax(t, scope, filename);
21
+ }
22
+ }
23
+ }
24
+ }
25
+ exports.ModifyEntities = ModifyEntities;
26
+ //# sourceMappingURL=modify_entities.js.map
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReadEntities = void 0;
4
+ const Expressions = require("../../2_statements/expressions");
5
+ const source_1 = require("../expressions/source");
6
+ const target_1 = require("../expressions/target");
7
+ const inline_data_1 = require("../expressions/inline_data");
8
+ const basic_1 = require("../../types/basic");
9
+ class ReadEntities {
10
+ runSyntax(node, scope, filename) {
11
+ for (const s of node.findDirectExpressions(Expressions.Source)) {
12
+ new source_1.Source().runSyntax(s, scope, filename);
13
+ }
14
+ for (const t of node.findDirectExpressions(Expressions.Target)) {
15
+ const inline = t === null || t === void 0 ? void 0 : t.findDirectExpression(Expressions.InlineData);
16
+ if (inline) {
17
+ new inline_data_1.InlineData().runSyntax(inline, scope, filename, new basic_1.VoidType("ReadEntities"));
18
+ }
19
+ else {
20
+ new target_1.Target().runSyntax(t, scope, filename);
21
+ }
22
+ }
23
+ }
24
+ }
25
+ exports.ReadEntities = ReadEntities;
26
+ //# sourceMappingURL=read_entities.js.map
@@ -132,6 +132,9 @@ const insert_textpool_1 = require("./statements/insert_textpool");
132
132
  const get_cursor_1 = require("./statements/get_cursor");
133
133
  const loop_at_screen_1 = require("./statements/loop_at_screen");
134
134
  const insert_field_group_1 = require("./statements/insert_field_group");
135
+ const read_entities_1 = require("./statements/read_entities");
136
+ const modify_entities_1 = require("./statements/modify_entities");
137
+ const commit_entities_1 = require("./statements/commit_entities");
135
138
  // -----------------------------------
136
139
  const map = {};
137
140
  function addToMap(handler) {
@@ -250,6 +253,9 @@ if (Object.keys(map).length === 0) {
250
253
  addToMap(new tables_1.Tables());
251
254
  addToMap(new parameter_1.Parameter());
252
255
  addToMap(new fieldsymbol_1.FieldSymbol());
256
+ addToMap(new read_entities_1.ReadEntities());
257
+ addToMap(new modify_entities_1.ModifyEntities());
258
+ addToMap(new commit_entities_1.CommitEntities());
253
259
  }
254
260
  // -----------------------------------
255
261
  class SyntaxLogic {
@@ -6,7 +6,7 @@ const __1 = require("../..");
6
6
  const combi_1 = require("../../abap/2_statements/combi");
7
7
  class CDSDefineProjection extends combi_1.Expression {
8
8
  getRunnable() {
9
- return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, "PROVIDER CONTRACT", _1.CDSName, "AS PROJECTION ON", _1.CDSName, (0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
9
+ return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, (0, combi_1.opt)((0, combi_1.seq)("PROVIDER CONTRACT", _1.CDSName)), "AS PROJECTION ON", _1.CDSName, (0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
10
10
  }
11
11
  }
12
12
  exports.CDSDefineProjection = CDSDefineProjection;
@@ -4,7 +4,8 @@ exports.CDSName = void 0;
4
4
  const combi_1 = require("../../abap/2_statements/combi");
5
5
  class CDSName extends combi_1.Expression {
6
6
  getRunnable() {
7
- return (0, combi_1.seq)((0, combi_1.opt)(":"), (0, combi_1.regex)(/^\$?#?[\w_]+$/));
7
+ const pre = (0, combi_1.seq)("/", (0, combi_1.regex)(/^[\w_]+$/), "/");
8
+ return (0, combi_1.seq)((0, combi_1.opt)(":"), (0, combi_1.opt)(pre), (0, combi_1.regex)(/^\$?#?[\w_]+$/));
8
9
  }
9
10
  }
10
11
  exports.CDSName = CDSName;
@@ -5,7 +5,8 @@ const _1 = require(".");
5
5
  const combi_1 = require("../../abap/2_statements/combi");
6
6
  class CDSSource extends combi_1.Expression {
7
7
  getRunnable() {
8
- return (0, combi_1.seq)((0, combi_1.regex)(/^[\w_]+$/), (0, combi_1.opt)(_1.CDSAs));
8
+ const pre = (0, combi_1.seq)("/", (0, combi_1.regex)(/^[\w_]+$/), "/");
9
+ return (0, combi_1.seq)((0, combi_1.opt)(pre), (0, combi_1.regex)(/^[\w_]+$/), (0, combi_1.opt)(_1.CDSAs));
9
10
  }
10
11
  }
11
12
  exports.CDSSource = CDSSource;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommunicationScenario = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class CommunicationScenario extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "SCO1";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 30,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.CommunicationScenario = CommunicationScenario;
21
+ //# sourceMappingURL=communication_scenario.js.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HttpService = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class HttpService extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "HTTP";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 200,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.HttpService = HttpService;
21
+ //# sourceMappingURL=http_service.js.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IAMApp = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class IAMApp extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "SIA6";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 200,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.IAMApp = IAMApp;
21
+ //# sourceMappingURL=iam_app.js.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InboundService = void 0;
4
+ const _abstract_object_1 = require("./_abstract_object");
5
+ class InboundService extends _abstract_object_1.AbstractObject {
6
+ getType() {
7
+ return "SCO2";
8
+ }
9
+ getAllowedNaming() {
10
+ return {
11
+ maxLength: 200,
12
+ allowNamespace: true,
13
+ };
14
+ }
15
+ getDescription() {
16
+ // todo
17
+ return undefined;
18
+ }
19
+ }
20
+ exports.InboundService = InboundService;
21
+ //# sourceMappingURL=inbound_service.js.map
@@ -24,6 +24,8 @@ __exportStar(require("./authorization_object"), exports);
24
24
  __exportStar(require("./behavior_definition"), exports);
25
25
  __exportStar(require("./bsp_application"), exports);
26
26
  __exportStar(require("./business_add_in_implementation"), exports);
27
+ __exportStar(require("./business_catalog_app_assignment"), exports);
28
+ __exportStar(require("./business_catalog"), exports);
27
29
  __exportStar(require("./business_configuration_set"), exports);
28
30
  __exportStar(require("./business_function_assignment"), exports);
29
31
  __exportStar(require("./business_function_set_assignment"), exports);
@@ -32,9 +34,8 @@ __exportStar(require("./cds_metadata_extension"), exports);
32
34
  __exportStar(require("./change_document"), exports);
33
35
  __exportStar(require("./chapter_of_book_structure"), exports);
34
36
  __exportStar(require("./checkpoint_group"), exports);
37
+ __exportStar(require("./communication_scenario"), exports);
35
38
  __exportStar(require("./class"), exports);
36
- __exportStar(require("./business_catalog"), exports);
37
- __exportStar(require("./business_catalog_app_assignment"), exports);
38
39
  __exportStar(require("./classification"), exports);
39
40
  __exportStar(require("./composite_enhancement_implementation"), exports);
40
41
  __exportStar(require("./composite_enhancement_spot"), exports);
@@ -70,13 +71,16 @@ __exportStar(require("./gateway_vocabulary_annotation"), exports);
70
71
  __exportStar(require("./general_hierarchy_storage_extrension_name"), exports);
71
72
  __exportStar(require("./general_storage_structure"), exports);
72
73
  __exportStar(require("./general_text"), exports);
74
+ __exportStar(require("./http_service"), exports);
73
75
  __exportStar(require("./iac_binary_data"), exports);
74
76
  __exportStar(require("./iac_language_resource"), exports);
75
77
  __exportStar(require("./iac_service"), exports);
76
78
  __exportStar(require("./iac_template"), exports);
79
+ __exportStar(require("./iam_app"), exports);
77
80
  __exportStar(require("./icf_service"), exports);
78
81
  __exportStar(require("./idoc_extension"), exports);
79
82
  __exportStar(require("./idoc"), exports);
83
+ __exportStar(require("./inbound_service"), exports);
80
84
  __exportStar(require("./info_object"), exports);
81
85
  __exportStar(require("./interface"), exports);
82
86
  __exportStar(require("./lock_object"), 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.59";
66
+ return "2.93.61";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
@@ -37,23 +37,30 @@ class CloudTypes {
37
37
  }
38
38
  run(obj) {
39
39
  if (this.reg.getConfig().getVersion() !== version_1.Version.Cloud
40
+ || obj instanceof Objects.AssignmentServiceToAuthorizationGroup
41
+ || obj instanceof Objects.BehaviorDefinition
42
+ || obj instanceof Objects.BusinessCatalog
43
+ || obj instanceof Objects.BusinessCatalogAppAssignment
44
+ || obj instanceof Objects.CDSMetadataExtension
40
45
  || obj instanceof Objects.Class
46
+ || obj instanceof Objects.DataControl
47
+ || obj instanceof Objects.DataDefinition
48
+ || obj instanceof Objects.DataElement
49
+ || obj instanceof Objects.Domain
50
+ || obj instanceof Objects.FunctionGroup
51
+ || obj instanceof Objects.HttpService
52
+ || obj instanceof Objects.IAMApp
53
+ || obj instanceof Objects.CommunicationScenario
54
+ || obj instanceof Objects.InboundService
41
55
  || obj instanceof Objects.Interface
56
+ || obj instanceof Objects.LockObject
42
57
  || obj instanceof Objects.MessageClass
43
58
  || obj instanceof Objects.Package
59
+ || obj instanceof Objects.ServiceBinding
60
+ || obj instanceof Objects.ServiceDefinition
44
61
  || obj instanceof Objects.Table
45
62
  || obj instanceof Objects.TableType
46
- || obj instanceof Objects.DataDefinition
47
- || obj instanceof Objects.BusinessCatalog
48
- || obj instanceof Objects.BusinessCatalogAppAssignment
49
- || obj instanceof Objects.AssignmentServiceToAuthorizationGroup
50
- || obj instanceof Objects.DataControl
51
- || obj instanceof Objects.LockObject
52
- || obj instanceof Objects.CDSMetadataExtension
53
- || obj instanceof Objects.Transformation
54
- || obj instanceof Objects.FunctionGroup
55
- || obj instanceof Objects.DataElement
56
- || obj instanceof Objects.Domain) {
63
+ || obj instanceof Objects.Transformation) {
57
64
  return [];
58
65
  }
59
66
  const position = new position_1.Position(1, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.93.59",
3
+ "version": "2.93.61",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -49,7 +49,7 @@
49
49
  "@microsoft/api-extractor": "^7.33.5",
50
50
  "@types/chai": "^4.3.3",
51
51
  "@types/mocha": "^10.0.0",
52
- "@types/node": "^18.11.8",
52
+ "@types/node": "^18.11.9",
53
53
  "chai": "^4.3.6",
54
54
  "eslint": "^8.26.0",
55
55
  "mocha": "^10.1.0",