@abaplint/core 2.93.53 → 2.93.55
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 +20 -0
- package/build/src/abap/2_statements/statements/method_def.js +1 -1
- package/build/src/abap/2_statements/statements/read_entities.js +2 -1
- package/build/src/abap/5_syntax/statements/move_corresponding.js +3 -3
- package/build/src/objects/business_catalog.js +21 -0
- package/build/src/objects/business_catalog_app_assignment.js +21 -0
- package/build/src/objects/index.js +2 -0
- package/build/src/registry.js +1 -1
- package/build/src/rules/cloud_types.js +4 -0
- package/package.json +1 -1
package/build/abaplint.d.ts
CHANGED
|
@@ -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(): {
|
|
@@ -4018,6 +4036,8 @@ declare namespace Objects {
|
|
|
4018
4036
|
CheckpointGroup,
|
|
4019
4037
|
ClassCategory,
|
|
4020
4038
|
Class,
|
|
4039
|
+
BusinessCatalog,
|
|
4040
|
+
BusinessCatalogAppAssignment,
|
|
4021
4041
|
Classification,
|
|
4022
4042
|
CompositeEnhancementImplementation,
|
|
4023
4043
|
CompositeEnhancementSpot,
|
|
@@ -13,7 +13,7 @@ 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 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 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));
|
|
17
17
|
// todo, this is only from version something
|
|
18
18
|
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
19
|
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)));
|
|
@@ -9,7 +9,8 @@ class ReadEntities {
|
|
|
9
9
|
getMatcher() {
|
|
10
10
|
const from = (0, combi_1.seq)("FROM", expressions_1.Source);
|
|
11
11
|
const fields = (0, combi_1.seq)("FIELDS", (0, combi_1.tok)(tokens_1.WParenLeftW), (0, combi_1.plus)(expressions_1.SimpleName), (0, combi_1.tok)(tokens_1.WParenRightW), "WITH", expressions_1.Source);
|
|
12
|
-
const
|
|
12
|
+
const all = (0, combi_1.seq)("ALL FIELDS WITH", expressions_1.Source);
|
|
13
|
+
const s = (0, combi_1.seq)("READ ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), "ENTITY", expressions_1.SimpleName, (0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.AssociationName)), (0, combi_1.alt)(fields, from, all), "RESULT", expressions_1.Target, (0, combi_1.optPrio)((0, combi_1.seq)("LINK", expressions_1.Target)), (0, combi_1.optPrio)((0, combi_1.seq)("FAILED", expressions_1.Target)), (0, combi_1.optPrio)((0, combi_1.seq)("REPORTED", expressions_1.Target)));
|
|
13
14
|
return (0, combi_1.ver)(version_1.Version.v754, s);
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -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-
|
|
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-
|
|
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);
|
package/build/src/registry.js
CHANGED
|
@@ -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
|