@mcp-abap-adt/adt-clients 1.0.3 → 1.0.5

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.
@@ -52,8 +52,8 @@ async function create(connection, args) {
52
52
  // When typeKind is 'domain', dataType should contain the domain name, and it goes to typeName in XML
53
53
  let typeName = '';
54
54
  if (typeKindXml === 'domain') {
55
- // For domain type, typeName comes from dataType (or type_name if dataType not provided)
56
- typeName = (args.data_type || args.type_name || '').toUpperCase();
55
+ // For domain type, typeName is the domain name (type_name), not the underlying data type
56
+ typeName = (args.type_name || args.data_type || '').toUpperCase();
57
57
  }
58
58
  else {
59
59
  // For other types, typeName comes from type_name parameter
@@ -105,8 +105,8 @@ async function updateDataElementInternal(connection, args, lockHandle, username,
105
105
  // When typeKind is 'domain', dataType should contain the domain name, and it goes to typeName in XML
106
106
  let typeName = '';
107
107
  if (typeKind === 'domain') {
108
- // For domain type, typeName comes from dataType (or type_name if dataType not provided)
109
- typeName = (args.data_type || args.type_name || '').toUpperCase();
108
+ // For domain type, typeName is the domain name (type_name), not the underlying data type
109
+ typeName = (args.type_name || args.data_type || '').toUpperCase();
110
110
  }
111
111
  else {
112
112
  // For other types, typeName comes from type_name parameter
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/core/package/update.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,YAAY,IAAI,aAAa,EAC7B,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAMlC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAgEpD,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,UAAU,EAAE,eAAe,EAC3B,MAAM,EAAE,mBAAmB,EAC3B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,aAAa,CAAC,CAuBxB;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,UAAU,EAAE,eAAe,EAC3B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,aAAa,CAAC,CAsBxB"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/core/package/update.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,YAAY,IAAI,aAAa,EAC7B,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAMlC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAgEpD,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,UAAU,EAAE,eAAe,EAC3B,MAAM,EAAE,mBAAmB,EAC3B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,aAAa,CAAC,CA0BxB;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,UAAU,EAAE,eAAe,EAC3B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,aAAa,CAAC,CAsBxB"}
@@ -103,7 +103,10 @@ async function updatePackage(connection, params, lockHandle) {
103
103
  throw new Error('package_name is required');
104
104
  }
105
105
  const packageNameEncoded = (0, internalUtils_1.encodeSapObjectName)(params.package_name);
106
- const url = `/sap/bc/adt/packages/${packageNameEncoded}?lockHandle=${lockHandle}`;
106
+ const corrNrParam = params.transport_request
107
+ ? `&corrNr=${params.transport_request}`
108
+ : '';
109
+ const url = `/sap/bc/adt/packages/${packageNameEncoded}?lockHandle=${lockHandle}${corrNrParam}`;
107
110
  const xmlBody = await buildUpdatePackageXml(connection, params);
108
111
  const headers = {
109
112
  'Content-Type': 'application/vnd.sap.adt.packages.v2+xml',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/adt-clients",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
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",