@mcp-abap-adt/adt-clients 37.2.0 → 37.3.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/README.md +21 -10
- package/dist/clients/AdtClient.d.ts +8 -4
- package/dist/clients/AdtClient.d.ts.map +1 -1
- package/dist/clients/AdtClient.js +7 -3
- package/dist/clients/AdtClientLegacy.d.ts +36 -9
- package/dist/clients/AdtClientLegacy.d.ts.map +1 -1
- package/dist/clients/AdtClientLegacy.js +89 -22
- package/dist/clients/AdtExecutorLegacy.d.ts +24 -7
- package/dist/clients/AdtExecutorLegacy.d.ts.map +1 -1
- package/dist/clients/AdtExecutorLegacy.js +26 -9
- package/dist/clients/absentOnLegacy.d.ts +13 -5
- package/dist/clients/absentOnLegacy.d.ts.map +1 -1
- package/dist/clients/absentOnLegacy.js +18 -9
- package/dist/clients/createAdtClient.d.ts +5 -4
- package/dist/clients/createAdtClient.d.ts.map +1 -1
- package/dist/clients/createAdtClient.js +5 -4
- package/dist/clients/createAdtExecutor.d.ts +2 -1
- package/dist/clients/createAdtExecutor.d.ts.map +1 -1
- package/dist/clients/createAdtExecutor.js +2 -1
- package/dist/core/class/AdtClassLegacy.d.ts +21 -19
- package/dist/core/class/AdtClassLegacy.d.ts.map +1 -1
- package/dist/core/class/AdtClassLegacy.js +22 -20
- package/dist/core/class/run.d.ts +3 -3
- package/dist/core/class/run.js +3 -3
- package/dist/core/ddl/AdtDdlLegacy.d.ts +23 -1
- package/dist/core/ddl/AdtDdlLegacy.d.ts.map +1 -1
- package/dist/core/ddl/AdtDdlLegacy.js +24 -1
- package/dist/core/functionGroup/AdtFunctionGroupLegacy.d.ts +24 -1
- package/dist/core/functionGroup/AdtFunctionGroupLegacy.d.ts.map +1 -1
- package/dist/core/functionGroup/AdtFunctionGroupLegacy.js +25 -1
- package/dist/core/functionInclude/AdtFunctionIncludeLegacy.d.ts +24 -0
- package/dist/core/functionInclude/AdtFunctionIncludeLegacy.d.ts.map +1 -0
- package/dist/core/functionInclude/AdtFunctionIncludeLegacy.js +26 -0
- package/dist/core/functionModule/AdtFunctionModuleLegacy.d.ts +23 -1
- package/dist/core/functionModule/AdtFunctionModuleLegacy.d.ts.map +1 -1
- package/dist/core/functionModule/AdtFunctionModuleLegacy.js +24 -1
- package/dist/core/include/AdtIncludeLegacy.d.ts +23 -0
- package/dist/core/include/AdtIncludeLegacy.d.ts.map +1 -0
- package/dist/core/include/AdtIncludeLegacy.js +25 -0
- package/dist/core/interface/AdtInterfaceLegacy.d.ts +24 -1
- package/dist/core/interface/AdtInterfaceLegacy.d.ts.map +1 -1
- package/dist/core/interface/AdtInterfaceLegacy.js +25 -1
- package/dist/core/messageClass/AdtMessageClassLegacy.d.ts +23 -0
- package/dist/core/messageClass/AdtMessageClassLegacy.d.ts.map +1 -0
- package/dist/core/messageClass/AdtMessageClassLegacy.js +25 -0
- package/dist/core/package/AdtPackageLegacy.d.ts +30 -4
- package/dist/core/package/AdtPackageLegacy.d.ts.map +1 -1
- package/dist/core/package/AdtPackageLegacy.js +38 -3
- package/dist/core/program/AdtProgramLegacy.d.ts +24 -1
- package/dist/core/program/AdtProgramLegacy.d.ts.map +1 -1
- package/dist/core/program/AdtProgramLegacy.js +25 -1
- package/dist/core/shared/AdtUtilsLegacy.d.ts +96 -8
- package/dist/core/shared/AdtUtilsLegacy.d.ts.map +1 -1
- package/dist/core/shared/AdtUtilsLegacy.js +166 -10
- package/dist/core/shared/abapUnit.d.ts +4 -5
- package/dist/core/shared/abapUnit.d.ts.map +1 -1
- package/dist/core/shared/abapUnit.js +4 -5
- package/dist/core/shared/deleteLegacy.d.ts +13 -6
- package/dist/core/shared/deleteLegacy.d.ts.map +1 -1
- package/dist/core/shared/deleteLegacy.js +13 -6
- package/dist/core/shared/refusalLegacy.d.ts +37 -0
- package/dist/core/shared/refusalLegacy.d.ts.map +1 -0
- package/dist/core/shared/refusalLegacy.js +68 -0
- package/dist/core/transport/AdtRequestLegacy.d.ts +59 -11
- package/dist/core/transport/AdtRequestLegacy.d.ts.map +1 -1
- package/dist/core/transport/AdtRequestLegacy.js +62 -10
- package/dist/executors/abapUnitRunLegacy.d.ts +25 -0
- package/dist/executors/abapUnitRunLegacy.d.ts.map +1 -0
- package/dist/executors/abapUnitRunLegacy.js +45 -0
- package/dist/executors/abapUnitRunner.d.ts +0 -5
- package/dist/executors/abapUnitRunner.d.ts.map +1 -1
- package/dist/executors/abapUnitRunner.js +0 -13
- package/dist/executors/class/ClassExecutorLegacy.d.ts +24 -0
- package/dist/executors/class/ClassExecutorLegacy.d.ts.map +1 -0
- package/dist/executors/class/ClassExecutorLegacy.js +38 -0
- package/dist/executors/class/ClassTestRunnerLegacy.d.ts +10 -18
- package/dist/executors/class/ClassTestRunnerLegacy.d.ts.map +1 -1
- package/dist/executors/class/ClassTestRunnerLegacy.js +15 -34
- package/dist/executors/class/index.d.ts +1 -0
- package/dist/executors/class/index.d.ts.map +1 -1
- package/dist/executors/class/index.js +3 -1
- package/dist/executors/functionGroup/FunctionGroupTestRunner.d.ts +0 -11
- package/dist/executors/functionGroup/FunctionGroupTestRunner.d.ts.map +1 -1
- package/dist/executors/functionGroup/FunctionGroupTestRunner.js +1 -21
- package/dist/executors/functionGroup/FunctionGroupTestRunnerLegacy.d.ts +18 -0
- package/dist/executors/functionGroup/FunctionGroupTestRunnerLegacy.d.ts.map +1 -0
- package/dist/executors/functionGroup/FunctionGroupTestRunnerLegacy.js +28 -0
- package/dist/executors/functionGroup/index.d.ts +2 -1
- package/dist/executors/functionGroup/index.d.ts.map +1 -1
- package/dist/executors/functionGroup/index.js +3 -2
- package/dist/executors/functionModule/FunctionModuleTestRunner.d.ts +0 -11
- package/dist/executors/functionModule/FunctionModuleTestRunner.d.ts.map +1 -1
- package/dist/executors/functionModule/FunctionModuleTestRunner.js +1 -21
- package/dist/executors/functionModule/FunctionModuleTestRunnerLegacy.d.ts +19 -0
- package/dist/executors/functionModule/FunctionModuleTestRunnerLegacy.d.ts.map +1 -0
- package/dist/executors/functionModule/FunctionModuleTestRunnerLegacy.js +34 -0
- package/dist/executors/functionModule/index.d.ts +2 -1
- package/dist/executors/functionModule/index.d.ts.map +1 -1
- package/dist/executors/functionModule/index.js +3 -2
- package/dist/executors/index.d.ts +2 -2
- package/dist/executors/index.d.ts.map +1 -1
- package/dist/executors/index.js +3 -1
- package/dist/executors/program/ProgramExecutorLegacy.d.ts +23 -0
- package/dist/executors/program/ProgramExecutorLegacy.d.ts.map +1 -0
- package/dist/executors/program/ProgramExecutorLegacy.js +37 -0
- package/dist/executors/program/ProgramTestRunner.d.ts +1 -2
- package/dist/executors/program/ProgramTestRunner.d.ts.map +1 -1
- package/dist/executors/program/ProgramTestRunner.js +1 -2
- package/dist/executors/program/ProgramTestRunnerLegacy.d.ts +8 -11
- package/dist/executors/program/ProgramTestRunnerLegacy.d.ts.map +1 -1
- package/dist/executors/program/ProgramTestRunnerLegacy.js +12 -16
- package/dist/executors/program/index.d.ts +1 -0
- package/dist/executors/program/index.d.ts.map +1 -1
- package/dist/executors/program/index.js +3 -1
- package/dist/utils/discoveryEndpoints.d.ts +2 -1
- package/dist/utils/discoveryEndpoints.d.ts.map +1 -1
- package/dist/utils/discoveryEndpoints.js +2 -1
- package/docs/usage/ADT_OBJECT_ENTITIES.md +9 -9
- package/docs/usage/CLIENT_API_REFERENCE.md +64 -9
- package/docs/usage/MIGRATION-24.md +4 -2
- package/docs/usage/OBJECT_LIFECYCLE.md +38 -1
- package/docs/usage/OPERATION_DELAYS.md +1 -1
- package/docs/usage/OPERATION_DELAYS_SUMMARY.md +1 -1
- package/docs/usage/RFC_CONNECTION.md +20 -21
- package/docs/usage/STATEFUL_SESSION_GUIDE.md +1 -1
- package/package.json +8 -5
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
* body sent on 2026-09-30, it answers `200` with an empty result: that, not the
|
|
19
19
|
* endpoint, was why that run found nothing. `runSync` therefore always sends
|
|
20
20
|
* `<options>`. An include's own URI answers empty even with `<options>`; its
|
|
21
|
-
* tests run through the report.
|
|
22
|
-
* system has been measured with `<options>` (`ProgramTestRunnerLegacy`).
|
|
21
|
+
* tests run through the report.
|
|
23
22
|
*/
|
|
24
23
|
import type { IAdtAnalyseOptions, IAdtError, IAdtResponse, IAdtRunnable, IClassUnitTestRunOptions } from '@mcp-abap-adt/interfaces-adt';
|
|
25
24
|
import type { IAbapConnection } from '@mcp-abap-adt/interfaces-adt-connection';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgramTestRunner.d.ts","sourceRoot":"","sources":["../../../src/executors/program/ProgramTestRunner.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ProgramTestRunner.d.ts","sourceRoot":"","sources":["../../../src/executors/program/ProgramTestRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EACL,cAAc,EAEd,KAAK,sBAAsB,EAC5B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,CAAC;AAC/D,eAAO,MAAM,0BAA0B;;;;CAA0B,CAAC;AAElE,qBAAa,iBAAiB,CAC1B,CAAC,SAAS,yBAAyB,GAAG,OAAO,0BAA0B,CAEzE,SAAQ,cAAc,CAAC,CAAC,CACxB,YACE,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,wBAAwB,CAAC;gBAGpE,UAAU,EAAE,eAAe,EAC3B,MAAM,CAAC,EAAE,OAAO,EAEhB,OAAO,GAAE,CAA8C;IAKzD,oDAAoD;IAC9C,GAAG,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EACvC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wBAAwB,GAAG,kBAAkB,CAAC,CAAC,CAAC,GACzD,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAIjD;;;;;;;;;;;;;;;;;;OAkBG;IACG,OAAO,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAC3C,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wBAAwB,GAAG,kBAAkB,CAAC,CAAC,CAAC,GACzD,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAGrD"}
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
* body sent on 2026-09-30, it answers `200` with an empty result: that, not the
|
|
20
20
|
* endpoint, was why that run found nothing. `runSync` therefore always sends
|
|
21
21
|
* `<options>`. An include's own URI answers empty even with `<options>`; its
|
|
22
|
-
* tests run through the report.
|
|
23
|
-
* system has been measured with `<options>` (`ProgramTestRunnerLegacy`).
|
|
22
|
+
* tests run through the report.
|
|
24
23
|
*/
|
|
25
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
25
|
exports.ProgramTestRunner = exports.programTestRunnerDocuments = void 0;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ProgramTestRunnerLegacy — a report's ABAP Unit tests on a legacy system
|
|
3
|
-
* (BASIS < 7.50), which has no `/abapunit/runs`.
|
|
3
|
+
* (BASIS < 7.50), which has no `/sap/bc/adt/abapunit/runs`.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* there are some. With `<options>` it runs them on SAP_BASIS 816 (2026-10-23),
|
|
10
|
-
* but no legacy system has been measured with that body: `run` and `runSync`
|
|
11
|
-
* stay refused until one is.
|
|
5
|
+
* `runSync` is the inherited one: `/sap/bc/adt/abapunit/testruns` given the
|
|
6
|
+
* report's URI, with `<options>`, answered the finished result on 7.40 SP04.
|
|
7
|
+
* `run` sends the same request, read by the `run` strategy — on 7.40 that POST
|
|
8
|
+
* is the run. There is no run id, so `getStatus` and `getResult` are refused.
|
|
12
9
|
*/
|
|
13
|
-
import type { IAdtError, IAdtResponse } from '@mcp-abap-adt/interfaces-adt';
|
|
10
|
+
import type { IAdtAnalyseOptions, IAdtError, IAdtResponse, IClassUnitTestRunOptions } from '@mcp-abap-adt/interfaces-adt';
|
|
14
11
|
import { type IProgramTestRunnerResults, ProgramTestRunner, type programTestRunnerDocuments } from './ProgramTestRunner';
|
|
15
12
|
export declare class ProgramTestRunnerLegacy<R extends IProgramTestRunnerResults = typeof programTestRunnerDocuments> extends ProgramTestRunner<R> {
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/** Run every test class of the report: the `runSync` request, read by `run`. */
|
|
14
|
+
run<E extends IAdtError = IAdtError>(programName: string, options?: IClassUnitTestRunOptions & IAdtAnalyseOptions<E>): Promise<IAdtResponse<ReturnType<R['run']>, E>>;
|
|
18
15
|
getStatus<E extends IAdtError = IAdtError>(): Promise<IAdtResponse<ReturnType<R['status']>, E>>;
|
|
19
16
|
getResult<E extends IAdtError = IAdtError>(): Promise<IAdtResponse<ReturnType<R['result']>, E>>;
|
|
20
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgramTestRunnerLegacy.d.ts","sourceRoot":"","sources":["../../../src/executors/program/ProgramTestRunnerLegacy.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ProgramTestRunnerLegacy.d.ts","sourceRoot":"","sources":["../../../src/executors/program/ProgramTestRunnerLegacy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,wBAAwB,EAEzB,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EACL,KAAK,yBAAyB,EAC9B,iBAAiB,EACjB,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,uBAAuB,CAClC,CAAC,SAAS,yBAAyB,GAAG,OAAO,0BAA0B,CACvE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IAC5B,gFAAgF;IACjE,GAAG,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAChD,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wBAAwB,GAAG,kBAAkB,CAAC,CAAC,CAAC,GACzD,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IASlC,SAAS,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,KAAK,OAAO,CAClE,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CACzC;IAIc,SAAS,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,KAAK,OAAO,CAClE,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CACzC;CAGF"}
|
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* ProgramTestRunnerLegacy — a report's ABAP Unit tests on a legacy system
|
|
4
|
-
* (BASIS < 7.50), which has no `/abapunit/runs`.
|
|
4
|
+
* (BASIS < 7.50), which has no `/sap/bc/adt/abapunit/runs`.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* there are some. With `<options>` it runs them on SAP_BASIS 816 (2026-10-23),
|
|
11
|
-
* but no legacy system has been measured with that body: `run` and `runSync`
|
|
12
|
-
* stay refused until one is.
|
|
6
|
+
* `runSync` is the inherited one: `/sap/bc/adt/abapunit/testruns` given the
|
|
7
|
+
* report's URI, with `<options>`, answered the finished result on 7.40 SP04.
|
|
8
|
+
* `run` sends the same request, read by the `run` strategy — on 7.40 that POST
|
|
9
|
+
* is the run. There is no run id, so `getStatus` and `getResult` are refused.
|
|
13
10
|
*/
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.ProgramTestRunnerLegacy = void 0;
|
|
16
|
-
const
|
|
13
|
+
const objects_1 = require("../../endpoints/objects");
|
|
14
|
+
const abapUnitRunLegacy_1 = require("../abapUnitRunLegacy");
|
|
17
15
|
const ProgramTestRunner_1 = require("./ProgramTestRunner");
|
|
18
16
|
class ProgramTestRunnerLegacy extends ProgramTestRunner_1.ProgramTestRunner {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
async runSync() {
|
|
23
|
-
return (0, abapUnitRunner_1.refusedBelow750)("a report's");
|
|
17
|
+
/** Run every test class of the report: the `runSync` request, read by `run`. */
|
|
18
|
+
async run(programName, options) {
|
|
19
|
+
return (0, abapUnitRunLegacy_1.runSyncLegacy)(this.connection, [objects_1.PROGRAM.uri(programName)], this.results.run, options);
|
|
24
20
|
}
|
|
25
21
|
async getStatus() {
|
|
26
|
-
return (0,
|
|
22
|
+
return (0, abapUnitRunLegacy_1.noRunToPoll)();
|
|
27
23
|
}
|
|
28
24
|
async getResult() {
|
|
29
|
-
return (0,
|
|
25
|
+
return (0, abapUnitRunLegacy_1.noResultToFetch)();
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
exports.ProgramTestRunnerLegacy = ProgramTestRunnerLegacy;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type IProgramExecutorResults, ProgramExecutor, programExecutorDocuments, } from './ProgramExecutor';
|
|
2
|
+
export { ProgramExecutorLegacy } from './ProgramExecutorLegacy';
|
|
2
3
|
export { type IProgramTestRunnerResults, ProgramTestRunner, programTestRunnerDocuments, } from './ProgramTestRunner';
|
|
3
4
|
export { ProgramTestRunnerLegacy } from './ProgramTestRunnerLegacy';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/program/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,eAAe,EACf,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,yBAAyB,EAC9B,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/program/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,eAAe,EACf,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,KAAK,yBAAyB,EAC9B,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProgramTestRunnerLegacy = exports.programTestRunnerDocuments = exports.ProgramTestRunner = exports.programExecutorDocuments = exports.ProgramExecutor = void 0;
|
|
3
|
+
exports.ProgramTestRunnerLegacy = exports.programTestRunnerDocuments = exports.ProgramTestRunner = exports.ProgramExecutorLegacy = exports.programExecutorDocuments = exports.ProgramExecutor = void 0;
|
|
4
4
|
var ProgramExecutor_1 = require("./ProgramExecutor");
|
|
5
5
|
Object.defineProperty(exports, "ProgramExecutor", { enumerable: true, get: function () { return ProgramExecutor_1.ProgramExecutor; } });
|
|
6
6
|
Object.defineProperty(exports, "programExecutorDocuments", { enumerable: true, get: function () { return ProgramExecutor_1.programExecutorDocuments; } });
|
|
7
|
+
var ProgramExecutorLegacy_1 = require("./ProgramExecutorLegacy");
|
|
8
|
+
Object.defineProperty(exports, "ProgramExecutorLegacy", { enumerable: true, get: function () { return ProgramExecutorLegacy_1.ProgramExecutorLegacy; } });
|
|
7
9
|
var ProgramTestRunner_1 = require("./ProgramTestRunner");
|
|
8
10
|
Object.defineProperty(exports, "ProgramTestRunner", { enumerable: true, get: function () { return ProgramTestRunner_1.ProgramTestRunner; } });
|
|
9
11
|
Object.defineProperty(exports, "programTestRunnerDocuments", { enumerable: true, get: function () { return ProgramTestRunner_1.programTestRunnerDocuments; } });
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* as the stronger signal of the two.
|
|
15
15
|
*
|
|
16
16
|
* The main library uses isModernAdtSystem() to auto-detect and
|
|
17
|
-
* AdtClientLegacy
|
|
17
|
+
* AdtClientLegacy answers a refusal for the types and members 7.40 SP04 lacks
|
|
18
|
+
* (`absentOnLegacy` and the `*Legacy` handlers), not by reading this catalogue.
|
|
18
19
|
* These utilities are for consumers who want manual checking.
|
|
19
20
|
*/
|
|
20
21
|
import type { IAbapConnection } from '@mcp-abap-adt/interfaces-adt-connection';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discoveryEndpoints.d.ts","sourceRoot":"","sources":["../../src/utils/discoveryEndpoints.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"discoveryEndpoints.d.ts","sourceRoot":"","sources":["../../src/utils/discoveryEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAG/E;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,UAAU,EAAE,eAAe,GAC1B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAmCtB;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,EACtB,IAAI,EAAE,MAAM,GACX,OAAO,CAMT"}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* as the stronger signal of the two.
|
|
16
16
|
*
|
|
17
17
|
* The main library uses isModernAdtSystem() to auto-detect and
|
|
18
|
-
* AdtClientLegacy
|
|
18
|
+
* AdtClientLegacy answers a refusal for the types and members 7.40 SP04 lacks
|
|
19
|
+
* (`absentOnLegacy` and the `*Legacy` handlers), not by reading this catalogue.
|
|
19
20
|
* These utilities are for consumers who want manual checking.
|
|
20
21
|
*/
|
|
21
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -36,7 +36,7 @@ _Generated by `tools/adt-object-entities.js`. Do not edit by hand._
|
|
|
36
36
|
- Core module: `class`
|
|
37
37
|
- Core classes: `AdtClass`, `AdtClassLegacy`, `AdtLocalDefinitions`, `AdtLocalMacros`, `AdtLocalTestClass`, `AdtLocalTypes`
|
|
38
38
|
- Client methods: `AdtClient.getClass`
|
|
39
|
-
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `
|
|
39
|
+
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `run.ts:startClassUnitTestRunSync`, `testclasses.ts:activateClassTestClasses`, `testclasses.ts:updateClassTestInclude`, `unlock.ts:unlockClass`, `update.ts:updateClass`, `update.ts:updateClassImplementations`, `validation.ts:validateClassName`, `validation.ts:validateClassSource`, `versions.ts:getClassIncludeVersions`, `versions.ts:getClassVersionSource`
|
|
40
40
|
|
|
41
41
|
## DataElement
|
|
42
42
|
- Core module: `dataElement`
|
|
@@ -76,7 +76,7 @@ _Generated by `tools/adt-object-entities.js`. Do not edit by hand._
|
|
|
76
76
|
|
|
77
77
|
## FunctionInclude
|
|
78
78
|
- Core module: `functionInclude`
|
|
79
|
-
- Core classes: `AdtFunctionInclude`
|
|
79
|
+
- Core classes: `AdtFunctionInclude`, `AdtFunctionIncludeLegacy`
|
|
80
80
|
- Client methods: `AdtClient.getFunctionInclude`
|
|
81
81
|
- Core functions: `activation.ts:activateFunctionInclude`, `check.ts:checkFunctionInclude`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteFunctionInclude`, `lock.ts:lockFunctionInclude`, `read.ts:readFunctionInclude`, `readSource.ts:readFunctionIncludeSource`, `unlock.ts:unlockFunctionInclude`, `update.ts:updateFunctionInclude`, `updateSource.ts:uploadFunctionIncludeSource`, `validation.ts:validateFunctionIncludeName`, `versions.ts:getFunctionIncludeVersions`, `versions.ts:getFunctionIncludeVersionSource`, `xmlBuilder.ts:buildFunctionIncludeXml`
|
|
82
82
|
|
|
@@ -88,7 +88,7 @@ _Generated by `tools/adt-object-entities.js`. Do not edit by hand._
|
|
|
88
88
|
|
|
89
89
|
## Include
|
|
90
90
|
- Core module: `include`
|
|
91
|
-
- Core classes: `AdtInclude`
|
|
91
|
+
- Core classes: `AdtInclude`, `AdtIncludeLegacy`
|
|
92
92
|
- Client methods: `AdtClient.getInclude`
|
|
93
93
|
- Core functions: `activation.ts:activateInclude`, `create.ts:create`, `delete.ts:deleteInclude`, `enhancements.ts:getIncludeEnhancementElements`, `enhancements.ts:getIncludeEnhancementOptions`, `lock.ts:lockInclude`, `read.ts:getIncludeMetadata`, `read.ts:getIncludeSource`, `unlock.ts:unlockInclude`, `update.ts:uploadIncludeSource`
|
|
94
94
|
|
|
@@ -102,35 +102,35 @@ _Generated by `tools/adt-object-entities.js`. Do not edit by hand._
|
|
|
102
102
|
- Core module: `class`
|
|
103
103
|
- Core classes: `AdtClass`, `AdtClassLegacy`, `AdtLocalDefinitions`, `AdtLocalMacros`, `AdtLocalTestClass`, `AdtLocalTypes`
|
|
104
104
|
- Client methods: `AdtClient.getLocalDefinitions`
|
|
105
|
-
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `
|
|
105
|
+
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `run.ts:startClassUnitTestRunSync`, `testclasses.ts:activateClassTestClasses`, `testclasses.ts:updateClassTestInclude`, `unlock.ts:unlockClass`, `update.ts:updateClass`, `update.ts:updateClassImplementations`, `validation.ts:validateClassName`, `validation.ts:validateClassSource`, `versions.ts:getClassIncludeVersions`, `versions.ts:getClassVersionSource`
|
|
106
106
|
|
|
107
107
|
## LocalMacros
|
|
108
108
|
- Core module: `class`
|
|
109
109
|
- Core classes: `AdtClass`, `AdtClassLegacy`, `AdtLocalDefinitions`, `AdtLocalMacros`, `AdtLocalTestClass`, `AdtLocalTypes`
|
|
110
110
|
- Client methods: `AdtClient.getLocalMacros`
|
|
111
|
-
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `
|
|
111
|
+
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `run.ts:startClassUnitTestRunSync`, `testclasses.ts:activateClassTestClasses`, `testclasses.ts:updateClassTestInclude`, `unlock.ts:unlockClass`, `update.ts:updateClass`, `update.ts:updateClassImplementations`, `validation.ts:validateClassName`, `validation.ts:validateClassSource`, `versions.ts:getClassIncludeVersions`, `versions.ts:getClassVersionSource`
|
|
112
112
|
|
|
113
113
|
## LocalTestClass
|
|
114
114
|
- Core module: `class`
|
|
115
115
|
- Core classes: `AdtClass`, `AdtClassLegacy`, `AdtLocalDefinitions`, `AdtLocalMacros`, `AdtLocalTestClass`, `AdtLocalTypes`
|
|
116
116
|
- Client methods: `AdtClient.getLocalTestClass`
|
|
117
|
-
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `
|
|
117
|
+
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `run.ts:startClassUnitTestRunSync`, `testclasses.ts:activateClassTestClasses`, `testclasses.ts:updateClassTestInclude`, `unlock.ts:unlockClass`, `update.ts:updateClass`, `update.ts:updateClassImplementations`, `validation.ts:validateClassName`, `validation.ts:validateClassSource`, `versions.ts:getClassIncludeVersions`, `versions.ts:getClassVersionSource`
|
|
118
118
|
|
|
119
119
|
## LocalTypes
|
|
120
120
|
- Core module: `class`
|
|
121
121
|
- Core classes: `AdtClass`, `AdtClassLegacy`, `AdtLocalDefinitions`, `AdtLocalMacros`, `AdtLocalTestClass`, `AdtLocalTypes`
|
|
122
122
|
- Client methods: `AdtClient.getLocalTypes`
|
|
123
|
-
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `
|
|
123
|
+
- Core functions: `activation.ts:activateClass`, `check.ts:checkClass`, `check.ts:checkClassDefinitions`, `check.ts:checkClassLocalTestClass`, `check.ts:checkClassLocalTypes`, `check.ts:checkClassMacros`, `create.ts:create`, `delete.ts:checkDeletion`, `delete.ts:deleteClass`, `enhancements.ts:getClassEnhancementElements`, `enhancements.ts:getClassEnhancementOptions`, `includes.ts:updateClassDefinitions`, `includes.ts:updateClassLocalTypes`, `includes.ts:updateClassMacros`, `lock.ts:lockClass`, `read.ts:getClassDefinitionsInclude`, `read.ts:getClassImplementationsInclude`, `read.ts:getClassMacrosInclude`, `read.ts:getClassMetadata`, `read.ts:getClassSource`, `read.ts:getClassTestClassesInclude`, `read.ts:getClassTransport`, `run.ts:runClass`, `run.ts:startClassUnitTestRun`, `run.ts:startClassUnitTestRunByObject`, `run.ts:startClassUnitTestRunSync`, `testclasses.ts:activateClassTestClasses`, `testclasses.ts:updateClassTestInclude`, `unlock.ts:unlockClass`, `update.ts:updateClass`, `update.ts:updateClassImplementations`, `validation.ts:validateClassName`, `validation.ts:validateClassSource`, `versions.ts:getClassIncludeVersions`, `versions.ts:getClassVersionSource`
|
|
124
124
|
|
|
125
125
|
## MessageClass
|
|
126
126
|
- Core module: `messageClass`
|
|
127
|
-
- Core classes: `AdtMessageClass`, `AdtMessageClassMessage`
|
|
127
|
+
- Core classes: `AdtMessageClass`, `AdtMessageClassLegacy`, `AdtMessageClassMessage`
|
|
128
128
|
- Client methods: `AdtClient.getMessageClass`
|
|
129
129
|
- Core functions: `create.ts:createMessageClass`, `delete.ts:checkDeletion`, `delete.ts:deleteMessageClass`, `lock.ts:lockClassForMessage`, `lock.ts:lockClassForMessageOrPlain`, `lock.ts:lockMessage`, `lock.ts:lockMessageClass`, `lock.ts:lockMessageIfGranted`, `read.ts:getMessageClassSource`, `unlock.ts:unlockAllMessages`, `unlock.ts:unlockMessageClass`, `update.ts:updateMessageClass`, `xml.ts:buildMessageClassXml`, `xml.ts:parseMessageClass`
|
|
130
130
|
|
|
131
131
|
## MessageClassMessage
|
|
132
132
|
- Core module: `messageClass`
|
|
133
|
-
- Core classes: `AdtMessageClass`, `AdtMessageClassMessage`
|
|
133
|
+
- Core classes: `AdtMessageClass`, `AdtMessageClassLegacy`, `AdtMessageClassMessage`
|
|
134
134
|
- Client methods: `AdtClient.getMessageClassMessage`
|
|
135
135
|
- Core functions: `create.ts:createMessageClass`, `delete.ts:checkDeletion`, `delete.ts:deleteMessageClass`, `lock.ts:lockClassForMessage`, `lock.ts:lockClassForMessageOrPlain`, `lock.ts:lockMessage`, `lock.ts:lockMessageClass`, `lock.ts:lockMessageIfGranted`, `read.ts:getMessageClassSource`, `unlock.ts:unlockAllMessages`, `unlock.ts:unlockMessageClass`, `update.ts:updateMessageClass`, `xml.ts:buildMessageClassXml`, `xml.ts:parseMessageClass`
|
|
136
136
|
|
|
@@ -228,6 +228,39 @@ console.log(answer.getResult().value); // the create's document, by default
|
|
|
228
228
|
What that value *is* comes from the reading the implementation was built with —
|
|
229
229
|
see [The reading is injected once](#the-reading-is-injected-once) below.
|
|
230
230
|
|
|
231
|
+
### The legacy client (`AdtClientLegacy`)
|
|
232
|
+
|
|
233
|
+
`createAdtClient(connection)` returns `AdtClientLegacy` on a system without
|
|
234
|
+
`/sap/bc/adt/core/discovery` (BASIS < 7.50). It is an **RFC client**: supported,
|
|
235
|
+
and measured on SAP_BASIS 7.40 SP04, over RFC only; HTTP to a legacy system is
|
|
236
|
+
unsupported. It hands out every getter of `AdtClient`; a getter it overrides
|
|
237
|
+
declares the base's return type or a subclass of it (`AdtClassLegacy` for
|
|
238
|
+
`AdtClass`, …), so code written against `AdtClient` compiles against it. Each
|
|
239
|
+
member sends the request measured accepted on 7.40 SP04, or keeps an unmeasured
|
|
240
|
+
request under a collection 7.40 advertises, or answers a refusal without a
|
|
241
|
+
request (`origin: 'refusal'`, `UNSUPPORTED_OPERATION`). In short, per type:
|
|
242
|
+
|
|
243
|
+
| Type (getter) | Legacy handler | On 7.40 SP04 |
|
|
244
|
+
|---|---|---|
|
|
245
|
+
| class, program, interface, function group, function module, DDL source | `AdtClassLegacy`, `AdtProgramLegacy`, `AdtInterfaceLegacy`, `AdtFunctionGroupLegacy`, `AdtFunctionModuleLegacy`, `AdtDdlLegacy` | served; `delete` is one `DELETE ?lockHandle=` under your lock; `checkDeletion` refused |
|
|
246
|
+
| local test class, types, definitions, macros | the modern handlers | served; their inherited `lock`, `unlock`, `activate`, `readMetadata` act on the container class |
|
|
247
|
+
| function include | `AdtFunctionIncludeLegacy` | served — create with the v1 pair `application/vnd.sap.adt.functions.fincludes+xml`; `delete`, `checkDeletion` refused |
|
|
248
|
+
| include (`PROG/I`) | `AdtIncludeLegacy` | read measured, the rest kept; `delete`, `checkDeletion` refused |
|
|
249
|
+
| message class | `AdtMessageClassLegacy` | `readMetadata` measured, the rest kept; `delete`, `checkDeletion` refused |
|
|
250
|
+
| message class message | the modern handler | `read` measured, the rest kept |
|
|
251
|
+
| package | `AdtPackageLegacy` | every member refused (`/packages/{name}` answers `404`) |
|
|
252
|
+
| transport request | `AdtRequestLegacy` | `list`, `readMetadata` (`/sap/bc/cts/transportrequests`); the rest refused |
|
|
253
|
+
| utilities | `AdtUtilsLegacy` | search, node structure, object structure, discovery, inactive objects served; where-used, virtual folders, object types, activation runs, group deletion, data preview refused |
|
|
254
|
+
| domain, data element, structure, table, table type, transformation, scalar function and its implementation, append structure, access control, service definition and binding, behavior definition and implementation, metadata extension, enhancement, authorization field, feature toggle | `absentOnLegacy` | every member refused |
|
|
255
|
+
|
|
256
|
+
`AdtExecutorLegacy` hands out `ClassTestRunnerLegacy`, `ProgramTestRunnerLegacy`,
|
|
257
|
+
`FunctionGroupTestRunnerLegacy`, `FunctionModuleTestRunnerLegacy`,
|
|
258
|
+
`ClassExecutorLegacy` and `ProgramExecutorLegacy`. Member by member, with the
|
|
259
|
+
measurement behind each and what is not measured:
|
|
260
|
+
[LEGACY.md](../architecture/LEGACY.md).
|
|
261
|
+
|
|
262
|
+
### More factories
|
|
263
|
+
|
|
231
264
|
Additional factory methods follow the same shape — a config in, a contract back:
|
|
232
265
|
|
|
233
266
|
```typescript
|
|
@@ -457,7 +490,7 @@ Contract notes:
|
|
|
457
490
|
|-------------|-----------------|--------------------------|---------------------|-------------------------------------------|
|
|
458
491
|
| Modern on-prem (BASIS ≥ 7.50) | ✅ with S_DEVELOP | ✅ with lock + transport | ✅ with transport | ✅ |
|
|
459
492
|
| Cloud MDD | ⚠️ usually SAP-reserved; HTTP 403 for customer creation | ⚠️ typically limited to SAP-provided toggles | ⚠️ depends on toggle's `configurable` flag | ✅ against SAP-provided toggles |
|
|
460
|
-
| Legacy (BASIS < 7.50
|
|
493
|
+
| Legacy (BASIS < 7.50) | ❌ refused without a request (`absentOnLegacy`) | ❌ | ❌ | ❌ |
|
|
461
494
|
|
|
462
495
|
### AbapGit (ADT-integrated)
|
|
463
496
|
|
|
@@ -931,11 +964,14 @@ transport requests must be able to say so without being reported as broken; the
|
|
|
931
964
|
distinction is the root element and the nesting, never a count.
|
|
932
965
|
|
|
933
966
|
**Legacy systems answer the same member.** `AdtRequestLegacy.list()` reads
|
|
934
|
-
`/sap/bc/cts/transportrequests
|
|
935
|
-
`
|
|
936
|
-
|
|
937
|
-
That
|
|
938
|
-
|
|
967
|
+
`/sap/bc/cts/transportrequests` — measured on 7.40 SP04 over RFC: `200`, a
|
|
968
|
+
`tm:root` document. The measured user had no requests, so a populated list is
|
|
969
|
+
**not measured**, and `transportTree` may well not recognise one; it will say
|
|
970
|
+
which element it expected and what it found. That is the cue to inject a reading
|
|
971
|
+
for your system. That endpoint is not a saved search, so
|
|
972
|
+
`AdtRequestLegacy.list()` keeps `configUri` optional and refuses one that is
|
|
973
|
+
given. `readMetadata` sends the same GET; every other member of the legacy
|
|
974
|
+
transport handler, `create` included, refuses without a request.
|
|
939
975
|
|
|
940
976
|
**Known limitation — `?targets=true` is not sent.** This library requests
|
|
941
977
|
`?configUri=` alone; Eclipse requests `?targets=true&configUri=`. With
|
|
@@ -1148,6 +1184,14 @@ if (source.ok) {
|
|
|
1148
1184
|
}
|
|
1149
1185
|
```
|
|
1150
1186
|
|
|
1187
|
+
On a legacy system `readObjectMetadata` refuses (answered, not thrown) for
|
|
1188
|
+
`domain`, `dataelement`, `structure`, `table`, `tabletype` and `package`, and
|
|
1189
|
+
`readObjectSource` for `structure`, `table` and `tabletype` — any alias, any
|
|
1190
|
+
case. For the domain, data element, structure, table and package families 7.40
|
|
1191
|
+
SP04 was measured not to serve the endpoint (`404`); table types are only absent
|
|
1192
|
+
from its discovery — not advertised, not measured — and refused until measured.
|
|
1193
|
+
The other types send the handler's own request.
|
|
1194
|
+
|
|
1151
1195
|
### What every member answers with
|
|
1152
1196
|
|
|
1153
1197
|
`IAdtResponse` is a discriminated union — a result **or** a failure:
|
|
@@ -1185,9 +1229,9 @@ address exists for, an ATC run over no objects), or a bug.
|
|
|
1185
1229
|
There is no `cause`. What a library threw inside itself is not part of what a
|
|
1186
1230
|
consumer reads; what the server said is, and that is `message` and `response`.
|
|
1187
1231
|
|
|
1188
|
-
On a legacy system `getSqlQuery` and `getTableContents` answer
|
|
1189
|
-
`origin: '
|
|
1190
|
-
|
|
1232
|
+
On a legacy system `getSqlQuery` and `getTableContents` answer a refusal
|
|
1233
|
+
without a request (`origin: 'refusal'`, `UNSUPPORTED_OPERATION`) — the endpoint
|
|
1234
|
+
is not there.
|
|
1191
1235
|
|
|
1192
1236
|
### The reading is injected once
|
|
1193
1237
|
|
|
@@ -1581,6 +1625,11 @@ await utils.activateObjectsGroup([
|
|
|
1581
1625
|
], undefined, { headers });
|
|
1582
1626
|
```
|
|
1583
1627
|
|
|
1628
|
+
On a legacy system `activateObjectsGroup` is a synchronous
|
|
1629
|
+
`POST /sap/bc/adt/activation?method=activate` (no run id; measured on an earlier
|
|
1630
|
+
BASIS 7.40 system, not measured on 7.40 SP04), and `checkDeletionGroup` and
|
|
1631
|
+
`deleteObjectsGroup` refuse without a request: 7.40 has no `/deletion/*`.
|
|
1632
|
+
|
|
1584
1633
|
### AdtUtils (Object properties)
|
|
1585
1634
|
|
|
1586
1635
|
`getObjectProperties(objectUri, options?)` is one GET to
|
|
@@ -1659,6 +1708,12 @@ it with `404`), left in 19.0.0: what to do on such a system is a decision about
|
|
|
1659
1708
|
your system, not a fallback hidden in here. Without `utilWhereUsedReferences`,
|
|
1660
1709
|
`getWhereUsed` answers the document.
|
|
1661
1710
|
|
|
1711
|
+
On a legacy system `getWhereUsed` and `getWhereUsedScope` refuse without a
|
|
1712
|
+
request: measured on 7.40 SP04 over RFC, `usageReferences` answers `404`. 7.40
|
|
1713
|
+
serves where-used only through RIS (`fullnamemapping` → `metadata` →
|
|
1714
|
+
`whereused?RIS_REQUEST_TYPE=WHERE_USED_LAZY`), another endpoint family this
|
|
1715
|
+
library does not implement.
|
|
1716
|
+
|
|
1662
1717
|
**`object_type`** is an ADT type code (`CLAS/OC`, `BDEF/BDO`, …, any case) or
|
|
1663
1718
|
one of the friendly names `class`, `program`, `include`, `function`,
|
|
1664
1719
|
`functiongroup`, `interface`, `package`, `table`, `structure`, `domain`,
|
|
@@ -49,8 +49,10 @@ an include it pulls in. A function group's through
|
|
|
49
49
|
24.0.0; there was no way to run them before.
|
|
50
50
|
|
|
51
51
|
**Integration test config.** Two new test cases, `run_program_unit_test` and
|
|
52
|
-
`run_function_group_unit_test`, are in `test-config.yaml.template
|
|
53
|
-
|
|
52
|
+
`run_function_group_unit_test`, are in `test-config.yaml.template`, the tracked base of the test configuration; they
|
|
53
|
+
reach your checkout with the pull, and nothing needs copying (the local file is
|
|
54
|
+
only a small overlay, see
|
|
55
|
+
[Test Config Schema](../development/TEST_CONFIG_SCHEMA.md)).
|
|
54
56
|
|
|
55
57
|
The result set shrank to what a runner answers: `run`, `status`, `result`.
|
|
56
58
|
`IUnitTestResults` and `unitTestDocuments` are gone; `IClassTestRunnerResults`
|
|
@@ -253,7 +253,8 @@ the read before editing it.
|
|
|
253
253
|
|
|
254
254
|
`delete` is the delete, and `checkDeletion` is the approval ADT wants first —
|
|
255
255
|
two members, one request each, both against `/sap/bc/adt/deletion/…`, which is
|
|
256
|
-
ADT's own deletion service. There is no lock to take and none to release
|
|
256
|
+
ADT's own deletion service. There is no lock to take and none to release —
|
|
257
|
+
except on a legacy system, which has no deletion service ([below](#on-a-legacy-system-lock-delete-with-the-handle-unlock)).
|
|
257
258
|
|
|
258
259
|
Both live on `IAdtDeletable`, because anything that can be deleted can be asked
|
|
259
260
|
whether it can be deleted *now*. Almost everything created can be removed; what
|
|
@@ -297,6 +298,42 @@ answer carries `adtcore:packageName` when it found one and says "Object does not
|
|
|
297
298
|
exist" when it did not — so an unbound object is reported absent while its name
|
|
298
299
|
stays taken, and there is nothing for the delete to act on.
|
|
299
300
|
|
|
301
|
+
### On a legacy system: lock, delete with the handle, unlock
|
|
302
|
+
|
|
303
|
+
`AdtClientLegacy` (SAP_BASIS 7.40 SP04, over RFC) has no deletion service:
|
|
304
|
+
`/sap/bc/adt/deletion/check` answers `404`. So, there:
|
|
305
|
+
|
|
306
|
+
- **`checkDeletion` is refused** without a request (`origin: 'refusal'`,
|
|
307
|
+
`UNSUPPORTED_OPERATION`), on every handler, and so is
|
|
308
|
+
`getUtils().checkDeletionGroup`.
|
|
309
|
+
- **`delete` is one `DELETE <object URI>?lockHandle=…`** for a class, program,
|
|
310
|
+
interface, function group, function module and DDL source, and it needs the
|
|
311
|
+
object's lock handle — **yours**, from `lock()`. Measured on 7.40 SP04: without
|
|
312
|
+
one, a class, program, interface or function group answers `400` "Parameter
|
|
313
|
+
lockHandle could not be found."; with one, all six are deleted. The member
|
|
314
|
+
does not lock or unlock; the request goes with or without a handle, and SAP's
|
|
315
|
+
answer is the answer. `&corrNr=` is added when the config's
|
|
316
|
+
`transportRequest` is given (not measured on 7.40 SP04).
|
|
317
|
+
- The include, function include and message class `delete`, and
|
|
318
|
+
`deleteObjectsGroup`, went through `/deletion/*` and are refused.
|
|
319
|
+
|
|
320
|
+
```typescript
|
|
321
|
+
const cls = client.getClass(); // AdtClientLegacy, over RFC
|
|
322
|
+
const config = { className: 'ZCL_TEST' };
|
|
323
|
+
|
|
324
|
+
const locked = await cls.lock(config);
|
|
325
|
+
if (!locked.ok) throw new Error(locked.getError().message);
|
|
326
|
+
const lockHandle = locked.getResult().value;
|
|
327
|
+
try {
|
|
328
|
+
const deleted = await cls.delete(config, { headers, lockHandle }); // one DELETE, stateless
|
|
329
|
+
if (!deleted.ok) throw new Error(deleted.getError().message);
|
|
330
|
+
} finally {
|
|
331
|
+
await cls.unlock(config, lockHandle);
|
|
332
|
+
}
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
See [LEGACY.md](../architecture/LEGACY.md#delete-lock-delete-with-the-handle-unlock).
|
|
336
|
+
|
|
300
337
|
### A behavior implementation needs a second write, and it is the class's
|
|
301
338
|
|
|
302
339
|
`create` makes the class. `update` writes its implementation include. Neither
|
|
@@ -4,7 +4,7 @@ Integration tests use configurable delays between ADT operations to avoid transi
|
|
|
4
4
|
|
|
5
5
|
## Configuration
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The defaults are in the tracked base, `src/__tests__/helpers/test-config.yaml.template`. They are not system-specific, so the local overlay does not carry them (see [Test Config Schema](../development/TEST_CONFIG_SCHEMA.md)); change them in the base:
|
|
8
8
|
|
|
9
9
|
```yaml
|
|
10
10
|
test_settings:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Operation Delays Summary
|
|
2
2
|
|
|
3
|
-
- Delays are configured in `test-config.yaml` under `test_settings.operation_delays`.
|
|
3
|
+
- Delays are configured in the base `test-config.yaml.template` under `test_settings.operation_delays`.
|
|
4
4
|
- `BaseTester` applies delays automatically for create/update/activate/delete flows.
|
|
5
5
|
- Only add manual delays when bypassing `BaseTester`.
|
|
@@ -4,7 +4,7 @@ RFC (Remote Function Call) transport allows ADT operations on legacy SAP systems
|
|
|
4
4
|
|
|
5
5
|
## When to Use RFC
|
|
6
6
|
|
|
7
|
-
- **Legacy systems** (BASIS < 7.50) —
|
|
7
|
+
- **Legacy systems** (BASIS < 7.50) — **always.** The legacy client (`AdtClientLegacy`, `AdtExecutorLegacy`) is supported, and was measured on SAP_BASIS 7.40 SP04, over RFC only. **HTTP to a legacy system is unsupported**: measured on 7.40 SP04, the logon needs a CSRF endpoint override, a write under a lock answers `423` whatever the session shape, some reads disagree with RFC, absent endpoints answer an empty `200` the library reads as success, and `/sap/bc/cts/*` is unreachable. The library does not detect the wire and does not refuse HTTP; it just is not supported. See [LEGACY.md](../architecture/LEGACY.md#http-is-not-a-supported-legacy-wire).
|
|
8
8
|
- **Systems without HTTP stateful support** — some custom configurations disable HTTP stateful sessions.
|
|
9
9
|
|
|
10
10
|
Modern systems (BASIS >= 7.50, S/4 HANA, BTP) work fine with HTTP connections and don't need RFC.
|
|
@@ -43,22 +43,13 @@ export LD_LIBRARY_PATH=$SAPNWRFC_HOME/lib:$LD_LIBRARY_PATH
|
|
|
43
43
|
|
|
44
44
|
RFC transport is provided by `@mcp-abap-adt/sap-rfc-lite`, which is pulled in automatically as a dependency of `@mcp-abap-adt/connection`. Nothing needs to be added to `package.json` — `adt-clients` consumes the `IAbapConnection` interface and does not depend on any RFC library directly.
|
|
45
45
|
|
|
46
|
-
It is an **optional** dependency with
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
# Windows (Git Bash) — the SDK path is wherever it was unpacked
|
|
54
|
-
SAPNWRFC_HOME='C:\nwrfcsdk\nwrfcsdk' PATH='C:\nwrfcsdk\nwrfcsdk\lib;'"$PATH" npm ci
|
|
55
|
-
|
|
56
|
-
# macOS
|
|
57
|
-
SAPNWRFC_HOME=~/nwrfcsdk PATH=$SAPNWRFC_HOME/lib:$PATH npm ci
|
|
58
|
-
|
|
59
|
-
# Linux
|
|
60
|
-
SAPNWRFC_HOME=~/nwrfcsdk PATH=$SAPNWRFC_HOME/lib:$PATH LD_LIBRARY_PATH=$SAPNWRFC_HOME/lib:$LD_LIBRARY_PATH npm ci
|
|
61
|
-
```
|
|
46
|
+
It is an **optional** dependency with no install script (sap-rfc-lite 0.3.x,
|
|
47
|
+
`@mcp-abap-adt/connection` 19 and later): `npm install` compiles nothing and needs
|
|
48
|
+
no SDK. It ships prebuilt bindings for linux-x64 (glibc), win32-x64 and
|
|
49
|
+
darwin-arm64. On any other platform the install succeeds without a binding and
|
|
50
|
+
the RFC connection fails when it loads sap-rfc-lite; build the binding from
|
|
51
|
+
sap-rfc-lite's repository (its README, "Installation") and install the package
|
|
52
|
+
you built.
|
|
62
53
|
|
|
63
54
|
`@mcp-abap-adt/sap-rfc-lite` binds to the SAP NW RFC SDK at runtime; the SDK libraries must be on the shared-library path as shown in step 1.
|
|
64
55
|
|
|
@@ -110,14 +101,21 @@ await connection.connect();
|
|
|
110
101
|
ADT clients work transparently with RFC connections — no code changes needed. The `IAbapConnection` interface is the same for both HTTP and RFC.
|
|
111
102
|
|
|
112
103
|
```typescript
|
|
113
|
-
import {
|
|
104
|
+
import { createAdtClient } from '@mcp-abap-adt/adt-clients';
|
|
114
105
|
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
// AdtClient on a modern system, AdtClientLegacy on BASIS < 7.50
|
|
107
|
+
const client = await createAdtClient(connection, logger);
|
|
117
108
|
const program = client.getProgram();
|
|
118
109
|
await program.read({ programName: 'ZTEST' });
|
|
119
110
|
```
|
|
120
111
|
|
|
112
|
+
On a legacy system the client is `AdtClientLegacy`, and over RFC it sends what
|
|
113
|
+
SAP_BASIS 7.40 SP04 serves and refuses the rest without a request (`origin:
|
|
114
|
+
'refusal'`, `UNSUPPORTED_OPERATION`). Two things differ for a caller: a
|
|
115
|
+
`delete` takes the object's lock handle from your own `lock()`, and there is no
|
|
116
|
+
`checkDeletion`. The member-by-member list is in
|
|
117
|
+
[LEGACY.md](../architecture/LEGACY.md).
|
|
118
|
+
|
|
121
119
|
### Legacy Content Types
|
|
122
120
|
|
|
123
121
|
On legacy systems, some ADT endpoints don't support versioned content types (v2+, v3+, v4+). The library automatically detects system capabilities via the `/sap/bc/adt/discovery` endpoint and uses appropriate content types:
|
|
@@ -158,7 +156,8 @@ If omitted, the library defaults to `text/plain; charset=utf-8` (unicode). Setti
|
|
|
158
156
|
| Aspect | HTTP | RFC |
|
|
159
157
|
|--------|------|-----|
|
|
160
158
|
| Session | Toggle stateful/stateless | Stateful requests: one persistent conversation; the rest: reset or throwaway ones |
|
|
161
|
-
| Lock handles |
|
|
159
|
+
| Lock handles | Lost on legacy systems (`423` on the write) | Preserved in the stateful conversation |
|
|
160
|
+
| Legacy client | Unsupported | Supported (measured on 7.40 SP04) |
|
|
162
161
|
| Content negotiation | Standard HTTP Accept | Some endpoints only accept `*/*` |
|
|
163
162
|
| sap-client | Added to URL query | Not needed (set in RFC params) |
|
|
164
163
|
| Authentication | Basic/JWT/XSUAA | Username/password only |
|
|
@@ -124,5 +124,5 @@ T100 key; pass nothing and it is the document, for you to read. Until 23.0.0
|
|
|
124
124
|
`AdtPackage.delete()` applied that reading on its own.
|
|
125
125
|
|
|
126
126
|
The test harness does exactly this, in `recycleTestSession()`, under the
|
|
127
|
-
`cleanup_session_after_test` flag in `test-config.yaml
|
|
127
|
+
`cleanup_session_after_test` flag in the test configuration (`test-config.yaml.template`). That is harness code on
|
|
128
128
|
the consumer side, not a library method, for the reasons above.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/adt-clients",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.3.0",
|
|
4
4
|
"description": "ADT clients for SAP ABAP systems - AdtClient and AdtRuntimeClient",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"format": "biome format --write src packages",
|
|
87
87
|
"build": "npm run --silent clean && biome check src packages --diagnostic-level=error && tsc -p tsconfig.json",
|
|
88
88
|
"build:fast": "tsc -p tsconfig.json",
|
|
89
|
-
"test:init": "node
|
|
90
|
-
"test:
|
|
89
|
+
"test:init": "node scripts/test-config.js init",
|
|
90
|
+
"test-config:migrate": "node scripts/test-config.js migrate",
|
|
91
91
|
"test": "jest --runInBand",
|
|
92
92
|
"test:unit": "jest src/__tests__/unit",
|
|
93
93
|
"test:detached": "bash scripts/run-detached.sh",
|
|
@@ -104,6 +104,10 @@
|
|
|
104
104
|
"shared:setup": "jest --testPathIgnorePatterns node_modules --testPathPatterns admin/shared-deps/setup",
|
|
105
105
|
"shared:teardown": "jest --testPathIgnorePatterns node_modules --testPathPatterns admin/shared-deps/teardown",
|
|
106
106
|
"shared:check": "jest --testPathIgnorePatterns node_modules --testPathPatterns admin/shared-deps/check",
|
|
107
|
+
"legacy:setup": "jest --testPathIgnorePatterns node_modules --testPathPatterns admin/legacy-env/setup",
|
|
108
|
+
"legacy:status": "jest --testPathIgnorePatterns node_modules --testPathPatterns admin/legacy-env/status",
|
|
109
|
+
"legacy:teardown": "jest --testPathIgnorePatterns node_modules --testPathPatterns admin/legacy-env/teardown",
|
|
110
|
+
"legacy:uninstall": "jest --testPathIgnorePatterns node_modules --testPathPatterns admin/legacy-env/uninstall",
|
|
107
111
|
"pretest": "npm run test:check:integration && npm run --silent check:config",
|
|
108
112
|
"prepublishOnly": "npm run build",
|
|
109
113
|
"prepare": "husky",
|
|
@@ -131,7 +135,7 @@
|
|
|
131
135
|
"@biomejs/biome": "^2.4.4",
|
|
132
136
|
"@mcp-abap-adt/adt-strategies": "^0.10.0",
|
|
133
137
|
"@mcp-abap-adt/auth-providers": "^6.0.2",
|
|
134
|
-
"@mcp-abap-adt/connection": "^
|
|
138
|
+
"@mcp-abap-adt/connection": "^19.0.0",
|
|
135
139
|
"@mcp-abap-adt/interfaces-auth": "^7.5.0",
|
|
136
140
|
"@mcp-abap-adt/interfaces-auth-sap": "^3.3.0",
|
|
137
141
|
"@types/jest": "^30.0.0",
|
|
@@ -147,7 +151,6 @@
|
|
|
147
151
|
"yaml": "^2.8.1"
|
|
148
152
|
},
|
|
149
153
|
"allowScripts": {
|
|
150
|
-
"@mcp-abap-adt/sap-rfc-lite": false,
|
|
151
154
|
"@parcel/watcher": false,
|
|
152
155
|
"unrs-resolver": false
|
|
153
156
|
}
|