@mcp-abap-adt/adt-clients 3.4.0 → 3.5.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/dist/core/class/AdtClass.d.ts.map +1 -1
- package/dist/core/class/AdtClass.js +1 -1
- package/dist/core/class/AdtLocalDefinitions.d.ts.map +1 -1
- package/dist/core/class/AdtLocalDefinitions.js +4 -4
- package/dist/core/class/AdtLocalMacros.d.ts.map +1 -1
- package/dist/core/class/AdtLocalMacros.js +4 -4
- package/dist/core/class/AdtLocalTestClass.d.ts.map +1 -1
- package/dist/core/class/AdtLocalTestClass.js +4 -4
- package/dist/core/class/AdtLocalTypes.d.ts.map +1 -1
- package/dist/core/class/AdtLocalTypes.js +4 -4
- package/dist/core/class/check.d.ts +4 -4
- package/dist/core/class/check.d.ts.map +1 -1
- package/dist/core/class/check.js +15 -60
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdtClass.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtClass.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAGL,KAAK,YAAY,IAAI,aAAa,EAElC,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAWpD,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKzD,qBAAa,QAAS,YAAW,UAAU,CAAC,YAAY,EAAE,WAAW,CAAC;IACpE,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;IAC/C,SAAS,CAAC,QAAQ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A;KAAE,GACtC,OAAO,CAAC,WAAW,CAAC;CAmCxB"}
|
|
@@ -584,7 +584,7 @@ class AdtClass {
|
|
|
584
584
|
if (!config.testClassCode) {
|
|
585
585
|
throw new Error('Test class code is required');
|
|
586
586
|
}
|
|
587
|
-
return await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, config.testClassCode, version);
|
|
587
|
+
return await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, config.testClassCode, version, this.contentTypes?.sourceArtifactContentType());
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
590
590
|
* Update test classes (local classes) with full operation chain
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdtLocalDefinitions.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtLocalDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,mBAAoB,SAAQ,QAAQ;IAC/C,SAAgB,UAAU,EAAE,MAAM,CAAsB;IAExD;;OAEG;IACG,QAAQ,CACZ,MAAM,EAAE,OAAO,CAAC,uBAAuB,CAAC,GACvC,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"AdtLocalDefinitions.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtLocalDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChF,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AC1C,OAAO,CAAC,WAAW,CAAC;CA2BxB"}
|
|
@@ -55,7 +55,7 @@ class AdtLocalDefinitions extends AdtClass_1.AdtClass {
|
|
|
55
55
|
if (!config.definitionsCode) {
|
|
56
56
|
throw new Error('Definitions code is required for validation');
|
|
57
57
|
}
|
|
58
|
-
const checkResponse = await (0, check_1.checkClassDefinitions)(this.connection, config.className, config.definitionsCode, 'inactive');
|
|
58
|
+
const checkResponse = await (0, check_1.checkClassDefinitions)(this.connection, config.className, config.definitionsCode, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
59
59
|
return {
|
|
60
60
|
validationResponse: checkResponse,
|
|
61
61
|
errors: [],
|
|
@@ -86,7 +86,7 @@ class AdtLocalDefinitions extends AdtClass_1.AdtClass {
|
|
|
86
86
|
const codeToCheck = options?.sourceCode || config.definitionsCode;
|
|
87
87
|
if (codeToCheck) {
|
|
88
88
|
this.logger?.info?.('Step 2: Checking local definitions code');
|
|
89
|
-
const checkResponse = await (0, check_1.checkClassDefinitions)(this.connection, config.className, codeToCheck, 'inactive');
|
|
89
|
+
const checkResponse = await (0, check_1.checkClassDefinitions)(this.connection, config.className, codeToCheck, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
90
90
|
state.checkResult = checkResponse;
|
|
91
91
|
this.logger?.info?.('Local definitions check passed');
|
|
92
92
|
}
|
|
@@ -181,7 +181,7 @@ class AdtLocalDefinitions extends AdtClass_1.AdtClass {
|
|
|
181
181
|
const codeToCheck = options?.sourceCode || config.definitionsCode;
|
|
182
182
|
if (codeToCheck) {
|
|
183
183
|
this.logger?.info?.('Step 2: Checking local definitions code');
|
|
184
|
-
const checkResponse = await (0, check_1.checkClassDefinitions)(this.connection, config.className, codeToCheck, 'inactive');
|
|
184
|
+
const checkResponse = await (0, check_1.checkClassDefinitions)(this.connection, config.className, codeToCheck, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
185
185
|
state.checkResult = checkResponse;
|
|
186
186
|
this.logger?.info?.('Local definitions check passed');
|
|
187
187
|
}
|
|
@@ -245,7 +245,7 @@ class AdtLocalDefinitions extends AdtClass_1.AdtClass {
|
|
|
245
245
|
if (!config.definitionsCode) {
|
|
246
246
|
throw new Error('Definitions code is required');
|
|
247
247
|
}
|
|
248
|
-
const checkResponse = await (0, check_1.checkClassDefinitions)(this.connection, config.className, config.definitionsCode, version);
|
|
248
|
+
const checkResponse = await (0, check_1.checkClassDefinitions)(this.connection, config.className, config.definitionsCode, version, this.contentTypes?.sourceArtifactContentType());
|
|
249
249
|
return {
|
|
250
250
|
checkResult: checkResponse,
|
|
251
251
|
errors: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdtLocalMacros.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtLocalMacros.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,SAAgB,UAAU,EAAE,MAAM,CAAiB;IAEnD;;OAEG;IACG,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"AdtLocalMacros.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtLocalMacros.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OA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C,OAAO,CAAC,WAAW,CAAC;CA2BxB"}
|
|
@@ -56,7 +56,7 @@ class AdtLocalMacros extends AdtClass_1.AdtClass {
|
|
|
56
56
|
if (!config.macrosCode) {
|
|
57
57
|
throw new Error('Macros code is required for validation');
|
|
58
58
|
}
|
|
59
|
-
const checkResponse = await (0, check_1.checkClassMacros)(this.connection, config.className, config.macrosCode, 'inactive');
|
|
59
|
+
const checkResponse = await (0, check_1.checkClassMacros)(this.connection, config.className, config.macrosCode, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
60
60
|
return {
|
|
61
61
|
validationResponse: checkResponse,
|
|
62
62
|
errors: [],
|
|
@@ -87,7 +87,7 @@ class AdtLocalMacros extends AdtClass_1.AdtClass {
|
|
|
87
87
|
const codeToCheck = options?.sourceCode || config.macrosCode;
|
|
88
88
|
if (codeToCheck) {
|
|
89
89
|
this.logger?.info?.('Step 2: Checking local macros code');
|
|
90
|
-
const checkResponse = await (0, check_1.checkClassMacros)(this.connection, config.className, codeToCheck, 'inactive');
|
|
90
|
+
const checkResponse = await (0, check_1.checkClassMacros)(this.connection, config.className, codeToCheck, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
91
91
|
state.checkResult = checkResponse;
|
|
92
92
|
this.logger?.info?.('Local macros check passed');
|
|
93
93
|
}
|
|
@@ -182,7 +182,7 @@ class AdtLocalMacros extends AdtClass_1.AdtClass {
|
|
|
182
182
|
const codeToCheck = options?.sourceCode || config.macrosCode;
|
|
183
183
|
if (codeToCheck) {
|
|
184
184
|
this.logger?.info?.('Step 2: Checking local macros code');
|
|
185
|
-
const checkResponse = await (0, check_1.checkClassMacros)(this.connection, config.className, codeToCheck, 'inactive');
|
|
185
|
+
const checkResponse = await (0, check_1.checkClassMacros)(this.connection, config.className, codeToCheck, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
186
186
|
state.checkResult = checkResponse;
|
|
187
187
|
this.logger?.info?.('Local macros check passed');
|
|
188
188
|
}
|
|
@@ -246,7 +246,7 @@ class AdtLocalMacros extends AdtClass_1.AdtClass {
|
|
|
246
246
|
if (!config.macrosCode) {
|
|
247
247
|
throw new Error('Macros code is required');
|
|
248
248
|
}
|
|
249
|
-
const checkResponse = await (0, check_1.checkClassMacros)(this.connection, config.className, config.macrosCode, version);
|
|
249
|
+
const checkResponse = await (0, check_1.checkClassMacros)(this.connection, config.className, config.macrosCode, version, this.contentTypes?.sourceArtifactContentType());
|
|
250
250
|
return {
|
|
251
251
|
checkResult: checkResponse,
|
|
252
252
|
errors: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdtLocalTestClass.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtLocalTestClass.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,SAAgB,UAAU,EAAE,MAAM,CAAoB;IAEtD;;OAEG;IACG,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"AdtLocalTestClass.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtLocalTestClass.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,KAAK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_1.AdtClass {
|
|
|
55
55
|
if (!config.testClassCode) {
|
|
56
56
|
throw new Error('Test class code is required for validation');
|
|
57
57
|
}
|
|
58
|
-
const checkResponse = await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, config.testClassCode, 'inactive');
|
|
58
|
+
const checkResponse = await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, config.testClassCode, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
59
59
|
return {
|
|
60
60
|
validationResponse: checkResponse,
|
|
61
61
|
errors: [],
|
|
@@ -86,7 +86,7 @@ class AdtLocalTestClass extends AdtClass_1.AdtClass {
|
|
|
86
86
|
// 2. Check test class code
|
|
87
87
|
if (config.testClassCode) {
|
|
88
88
|
this.logger?.info?.('Step 2: Checking test class code');
|
|
89
|
-
const checkResponse = await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, config.testClassCode, 'inactive');
|
|
89
|
+
const checkResponse = await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, config.testClassCode, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
90
90
|
state.checkResult = checkResponse;
|
|
91
91
|
this.logger?.info?.('Test class check passed');
|
|
92
92
|
}
|
|
@@ -193,7 +193,7 @@ class AdtLocalTestClass extends AdtClass_1.AdtClass {
|
|
|
193
193
|
const codeToCheck = options?.sourceCode || config.testClassCode;
|
|
194
194
|
if (codeToCheck) {
|
|
195
195
|
this.logger?.info?.('Step 2: Checking test class code');
|
|
196
|
-
const checkResponse = await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, codeToCheck, 'inactive');
|
|
196
|
+
const checkResponse = await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, codeToCheck, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
197
197
|
state.checkResult = checkResponse;
|
|
198
198
|
this.logger?.info?.('Test class check passed');
|
|
199
199
|
}
|
|
@@ -260,7 +260,7 @@ class AdtLocalTestClass extends AdtClass_1.AdtClass {
|
|
|
260
260
|
if (!config.testClassCode) {
|
|
261
261
|
throw new Error('Test class code is required');
|
|
262
262
|
}
|
|
263
|
-
const checkResponse = await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, config.testClassCode, status);
|
|
263
|
+
const checkResponse = await (0, check_1.checkClassLocalTestClass)(this.connection, config.className, config.testClassCode, status, this.contentTypes?.sourceArtifactContentType());
|
|
264
264
|
return {
|
|
265
265
|
checkResult: checkResponse,
|
|
266
266
|
errors: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdtLocalTypes.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtLocalTypes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,aAAc,SAAQ,QAAQ;IACzC,SAAgB,UAAU,EAAE,MAAM,CAAgB;IAElD;;OAEG;IACG,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"AdtLocalTypes.d.ts","sourceRoot":"","sources":["../../../src/core/class/AdtLocalTypes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,KAA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ypesCode) {
|
|
56
56
|
throw new Error('Local types code is required for validation');
|
|
57
57
|
}
|
|
58
|
-
const checkResponse = await (0, check_1.checkClassLocalTypes)(this.connection, config.className, config.localTypesCode, 'inactive');
|
|
58
|
+
const checkResponse = await (0, check_1.checkClassLocalTypes)(this.connection, config.className, config.localTypesCode, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
59
59
|
return {
|
|
60
60
|
validationResponse: checkResponse,
|
|
61
61
|
errors: [],
|
|
@@ -85,7 +85,7 @@ class AdtLocalTypes extends AdtClass_1.AdtClass {
|
|
|
85
85
|
};
|
|
86
86
|
if (codeToCheck) {
|
|
87
87
|
this.logger?.info?.('Step 2: Checking local types code');
|
|
88
|
-
const checkResponse = await (0, check_1.checkClassLocalTypes)(this.connection, config.className, codeToCheck, 'inactive');
|
|
88
|
+
const checkResponse = await (0, check_1.checkClassLocalTypes)(this.connection, config.className, codeToCheck, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
89
89
|
state.checkResult = checkResponse;
|
|
90
90
|
this.logger?.info?.('Local types check passed');
|
|
91
91
|
}
|
|
@@ -179,7 +179,7 @@ class AdtLocalTypes extends AdtClass_1.AdtClass {
|
|
|
179
179
|
};
|
|
180
180
|
if (codeToCheck) {
|
|
181
181
|
this.logger?.info?.('Step 2: Checking local types code');
|
|
182
|
-
const checkResponse = await (0, check_1.checkClassLocalTypes)(this.connection, config.className, codeToCheck, 'inactive');
|
|
182
|
+
const checkResponse = await (0, check_1.checkClassLocalTypes)(this.connection, config.className, codeToCheck, 'inactive', this.contentTypes?.sourceArtifactContentType());
|
|
183
183
|
state.checkResult = checkResponse;
|
|
184
184
|
this.logger?.info?.('Local types check passed');
|
|
185
185
|
}
|
|
@@ -243,7 +243,7 @@ class AdtLocalTypes extends AdtClass_1.AdtClass {
|
|
|
243
243
|
if (!config.localTypesCode) {
|
|
244
244
|
throw new Error('Local types code is required');
|
|
245
245
|
}
|
|
246
|
-
const checkResponse = await (0, check_1.checkClassLocalTypes)(this.connection, config.className, config.localTypesCode, version);
|
|
246
|
+
const checkResponse = await (0, check_1.checkClassLocalTypes)(this.connection, config.className, config.localTypesCode, version, this.contentTypes?.sourceArtifactContentType());
|
|
247
247
|
return {
|
|
248
248
|
checkResult: checkResponse,
|
|
249
249
|
errors: [],
|
|
@@ -32,7 +32,7 @@ export declare function checkClass(connection: IAbapConnection, className: strin
|
|
|
32
32
|
* @returns Check result with errors/warnings
|
|
33
33
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
34
34
|
*/
|
|
35
|
-
export declare function checkClassLocalTestClass(connection: IAbapConnection, className: string, testClassSource: string, version?: 'active' | 'inactive'): Promise<AxiosResponse>;
|
|
35
|
+
export declare function checkClassLocalTestClass(connection: IAbapConnection, className: string, testClassSource: string, version?: 'active' | 'inactive', artifactContentType?: string): Promise<AxiosResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* Check class local types (implementations include)
|
|
38
38
|
*
|
|
@@ -46,7 +46,7 @@ export declare function checkClassLocalTestClass(connection: IAbapConnection, cl
|
|
|
46
46
|
* @returns Check result with errors/warnings
|
|
47
47
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
48
48
|
*/
|
|
49
|
-
export declare function checkClassLocalTypes(connection: IAbapConnection, className: string, localTypesSource: string, version?: 'active' | 'inactive'): Promise<AxiosResponse>;
|
|
49
|
+
export declare function checkClassLocalTypes(connection: IAbapConnection, className: string, localTypesSource: string, version?: 'active' | 'inactive', artifactContentType?: string): Promise<AxiosResponse>;
|
|
50
50
|
/**
|
|
51
51
|
* Check class-relevant local types (definitions include)
|
|
52
52
|
*
|
|
@@ -60,7 +60,7 @@ export declare function checkClassLocalTypes(connection: IAbapConnection, classN
|
|
|
60
60
|
* @returns Check result with errors/warnings
|
|
61
61
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
62
62
|
*/
|
|
63
|
-
export declare function checkClassDefinitions(connection: IAbapConnection, className: string, definitionsSource: string, version?: 'active' | 'inactive'): Promise<AxiosResponse>;
|
|
63
|
+
export declare function checkClassDefinitions(connection: IAbapConnection, className: string, definitionsSource: string, version?: 'active' | 'inactive', artifactContentType?: string): Promise<AxiosResponse>;
|
|
64
64
|
/**
|
|
65
65
|
* Check class macros
|
|
66
66
|
*
|
|
@@ -74,5 +74,5 @@ export declare function checkClassDefinitions(connection: IAbapConnection, class
|
|
|
74
74
|
* @returns Check result with errors/warnings
|
|
75
75
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
76
76
|
*/
|
|
77
|
-
export declare function checkClassMacros(connection: IAbapConnection, className: string, macrosSource: string, version?: 'active' | 'inactive'): Promise<AxiosResponse>;
|
|
77
|
+
export declare function checkClassMacros(connection: IAbapConnection, className: string, macrosSource: string, version?: 'active' | 'inactive', artifactContentType?: string): Promise<AxiosResponse>;
|
|
78
78
|
//# sourceMappingURL=check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/core/class/check.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,YAAY,IAAI,aAAa,EAC7B,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAMlC;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,UAAU,CAC9B,UAAU,EAAE,eAAe,EAC3B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,QAAQ,GAAG,UAAU,EAC9B,UAAU,CAAC,EAAE,MAAM,EACnB,mBAAmB,CAAC,EAAE,MAAM,GAC3B,OAAO,CAAC,aAAa,CAAC,CAmDxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,wBAAwB,CAC5C,UAAU,EAAE,eAAe,EAC3B,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,QAAQ,GAAG,UAAuB,
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/core/class/check.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,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 -102,54 +102,8 @@ async function checkClass(connection, className, version, sourceCode, artifactCo
|
|
|
102
102
|
* @returns Check result with errors/warnings
|
|
103
103
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
104
104
|
*/
|
|
105
|
-
async function checkClassLocalTestClass(connection, className, testClassSource, version = 'inactive') {
|
|
106
|
-
|
|
107
|
-
const { encodeSapObjectName } = await Promise.resolve().then(() => __importStar(require('../../utils/internalUtils')));
|
|
108
|
-
const { parseCheckRunResponse } = await Promise.resolve().then(() => __importStar(require('../../utils/checkRun')));
|
|
109
|
-
const encodedName = encodeSapObjectName(className.toLowerCase());
|
|
110
|
-
const objectUri = `/sap/bc/adt/oo/classes/${encodedName}`;
|
|
111
|
-
const testClassUri = `${objectUri}/includes/testclasses`;
|
|
112
|
-
// Encode test class source to base64
|
|
113
|
-
const base64Source = Buffer.from(testClassSource, 'utf-8').toString('base64');
|
|
114
|
-
// Build XML with testclasses artifact
|
|
115
|
-
// TODO: analyze whether chkrun:contentType can be extracted to a constant
|
|
116
|
-
const xmlBody = `<?xml version="1.0" encoding="UTF-8"?><chkrun:checkObjectList xmlns:chkrun="http://www.sap.com/adt/checkrun" xmlns:adtcore="http://www.sap.com/adt/core">
|
|
117
|
-
<chkrun:checkObject adtcore:uri="${objectUri}" chkrun:version="${version}">
|
|
118
|
-
<chkrun:artifacts>
|
|
119
|
-
<chkrun:artifact chkrun:contentType="text/plain; charset=utf-8" chkrun:uri="${testClassUri}">
|
|
120
|
-
<chkrun:content>${base64Source}</chkrun:content>
|
|
121
|
-
</chkrun:artifact>
|
|
122
|
-
</chkrun:artifacts>
|
|
123
|
-
</chkrun:checkObject>
|
|
124
|
-
</chkrun:checkObjectList>`;
|
|
125
|
-
const headers = {
|
|
126
|
-
Accept: contentTypes_1.ACCEPT_CHECK_MESSAGES,
|
|
127
|
-
'Content-Type': contentTypes_1.CT_CHECK_OBJECTS,
|
|
128
|
-
};
|
|
129
|
-
const url = `/sap/bc/adt/checkruns?reporters=abapCheckRun`;
|
|
130
|
-
const response = await connection.makeAdtRequest({
|
|
131
|
-
url,
|
|
132
|
-
method: 'POST',
|
|
133
|
-
timeout: getTimeout('default'),
|
|
134
|
-
data: xmlBody,
|
|
135
|
-
headers,
|
|
136
|
-
});
|
|
137
|
-
const checkResult = parseCheckRunResponse(response);
|
|
138
|
-
// "has been checked" or "was checked" messages are normal responses, not errors
|
|
139
|
-
const hasCheckedMessage = checkResult.message?.toLowerCase().includes('has been checked') ||
|
|
140
|
-
checkResult.message?.toLowerCase().includes('was checked') ||
|
|
141
|
-
checkResult.errors.some((err) => (err.text || '').toLowerCase().includes('has been checked'));
|
|
142
|
-
if (hasCheckedMessage && !checkResult.has_errors) {
|
|
143
|
-
return response; // "has been checked" with no errors is a normal response
|
|
144
|
-
}
|
|
145
|
-
// Throw error if there are actual problems (ERROR type)
|
|
146
|
-
if (checkResult.has_errors) {
|
|
147
|
-
const errorMessages = checkResult.errors
|
|
148
|
-
.map((err) => err.text)
|
|
149
|
-
.join('; ');
|
|
150
|
-
throw new Error(`Test class check failed: ${errorMessages}`);
|
|
151
|
-
}
|
|
152
|
-
return response;
|
|
105
|
+
async function checkClassLocalTestClass(connection, className, testClassSource, version = 'inactive', artifactContentType = 'text/plain; charset=utf-8') {
|
|
106
|
+
return checkClassInclude(connection, className, testClassSource, 'testclasses', version, 'Test class', artifactContentType);
|
|
153
107
|
}
|
|
154
108
|
/**
|
|
155
109
|
* Check class local types (implementations include)
|
|
@@ -164,8 +118,8 @@ async function checkClassLocalTestClass(connection, className, testClassSource,
|
|
|
164
118
|
* @returns Check result with errors/warnings
|
|
165
119
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
166
120
|
*/
|
|
167
|
-
async function checkClassLocalTypes(connection, className, localTypesSource, version = 'inactive') {
|
|
168
|
-
return checkClassInclude(connection, className, localTypesSource, 'implementations', version, 'Local types');
|
|
121
|
+
async function checkClassLocalTypes(connection, className, localTypesSource, version = 'inactive', artifactContentType = 'text/plain; charset=utf-8') {
|
|
122
|
+
return checkClassInclude(connection, className, localTypesSource, 'implementations', version, 'Local types', artifactContentType);
|
|
169
123
|
}
|
|
170
124
|
/**
|
|
171
125
|
* Check class-relevant local types (definitions include)
|
|
@@ -180,8 +134,8 @@ async function checkClassLocalTypes(connection, className, localTypesSource, ver
|
|
|
180
134
|
* @returns Check result with errors/warnings
|
|
181
135
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
182
136
|
*/
|
|
183
|
-
async function checkClassDefinitions(connection, className, definitionsSource, version = 'inactive') {
|
|
184
|
-
return checkClassInclude(connection, className, definitionsSource, 'definitions', version, 'Definitions');
|
|
137
|
+
async function checkClassDefinitions(connection, className, definitionsSource, version = 'inactive', artifactContentType = 'text/plain; charset=utf-8') {
|
|
138
|
+
return checkClassInclude(connection, className, definitionsSource, 'definitions', version, 'Definitions', artifactContentType);
|
|
185
139
|
}
|
|
186
140
|
/**
|
|
187
141
|
* Check class macros
|
|
@@ -196,8 +150,8 @@ async function checkClassDefinitions(connection, className, definitionsSource, v
|
|
|
196
150
|
* @returns Check result with errors/warnings
|
|
197
151
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
198
152
|
*/
|
|
199
|
-
async function checkClassMacros(connection, className, macrosSource, version = 'inactive') {
|
|
200
|
-
return checkClassInclude(connection, className, macrosSource, 'macros', version, 'Macros');
|
|
153
|
+
async function checkClassMacros(connection, className, macrosSource, version = 'inactive', artifactContentType = 'text/plain; charset=utf-8') {
|
|
154
|
+
return checkClassInclude(connection, className, macrosSource, 'macros', version, 'Macros', artifactContentType);
|
|
201
155
|
}
|
|
202
156
|
/**
|
|
203
157
|
* Generic function to check any class include file
|
|
@@ -211,7 +165,7 @@ async function checkClassMacros(connection, className, macrosSource, version = '
|
|
|
211
165
|
* @returns Check result with errors/warnings
|
|
212
166
|
* @throws Error if check finds errors (chkrun:type="E")
|
|
213
167
|
*/
|
|
214
|
-
async function checkClassInclude(connection, className, includeSource, includeType, version = 'inactive', includeName) {
|
|
168
|
+
async function checkClassInclude(connection, className, includeSource, includeType, version = 'inactive', includeName, artifactContentType = 'text/plain; charset=utf-8') {
|
|
215
169
|
const { getTimeout } = await Promise.resolve().then(() => __importStar(require('../../utils/timeouts')));
|
|
216
170
|
const { encodeSapObjectName } = await Promise.resolve().then(() => __importStar(require('../../utils/internalUtils')));
|
|
217
171
|
const { parseCheckRunResponse } = await Promise.resolve().then(() => __importStar(require('../../utils/checkRun')));
|
|
@@ -221,11 +175,10 @@ async function checkClassInclude(connection, className, includeSource, includeTy
|
|
|
221
175
|
// Encode source to base64
|
|
222
176
|
const base64Source = Buffer.from(includeSource, 'utf-8').toString('base64');
|
|
223
177
|
// Build XML with include artifact
|
|
224
|
-
// TODO: analyze whether chkrun:contentType can be extracted to a constant
|
|
225
178
|
const xmlBody = `<?xml version="1.0" encoding="UTF-8"?><chkrun:checkObjectList xmlns:chkrun="http://www.sap.com/adt/checkrun" xmlns:adtcore="http://www.sap.com/adt/core">
|
|
226
179
|
<chkrun:checkObject adtcore:uri="${objectUri}" chkrun:version="${version}">
|
|
227
180
|
<chkrun:artifacts>
|
|
228
|
-
<chkrun:artifact chkrun:contentType="
|
|
181
|
+
<chkrun:artifact chkrun:contentType="${artifactContentType}" chkrun:uri="${includeUri}">
|
|
229
182
|
<chkrun:content>${base64Source}</chkrun:content>
|
|
230
183
|
</chkrun:artifact>
|
|
231
184
|
</chkrun:artifacts>
|
|
@@ -253,9 +206,11 @@ async function checkClassInclude(connection, className, includeSource, includeTy
|
|
|
253
206
|
}
|
|
254
207
|
// Throw error if there are actual problems (ERROR type)
|
|
255
208
|
if (checkResult.has_errors) {
|
|
256
|
-
const errorMessages = checkResult.errors
|
|
257
|
-
|
|
258
|
-
|
|
209
|
+
const errorMessages = checkResult.errors.length > 0
|
|
210
|
+
? checkResult.errors
|
|
211
|
+
.map((err) => err.text)
|
|
212
|
+
.join('; ')
|
|
213
|
+
: `status=${checkResult.status}, message=${checkResult.message || 'none'}`;
|
|
259
214
|
throw new Error(`${includeName} check failed: ${errorMessages}`);
|
|
260
215
|
}
|
|
261
216
|
return response;
|