@mcp-abap-adt/adt-clients 0.1.26 → 0.1.30

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DataElementBuilder.d.ts","sourceRoot":"","sources":["../../../src/core/dataElement/DataElementBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAC;AAWhE,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,qBAAa,kBAAmB,YAAW,QAAQ,CAAC,uBAAuB,CAAC;IAC1E,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,MAAM,CAA2B;IACzC,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,KAAK,CAA0B;gBAGrC,UAAU,EAAE,cAAc,EAC1B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,wBAAwB;IAWlC,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAMrC,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI;IAM1C,OAAO,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI;IAMtC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAKzC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKnC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAK/B,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKnC,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAKvC,cAAc,CAA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lC,QAAQ,IAAI,QAAQ,CAAC,uBAAuB,CAAC;IAI7C,kBAAkB,IAAI,MAAM;IAI5B,aAAa,IAAI,MAAM,GAAG,SAAS;IAInC,YAAY,IAAI,MAAM,GAAG,IAAI;IAI7B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA8C3B,aAAa,IAAI,wBAAwB,GAAG,SAAS;IAYrD,eAAe,IAAI,aAAa,GAAG,SAAS;IAI5C,eAAe,IAAI,aAAa,GAAG,SAAS;IAI5C,cAAc,IAAI,aAAa,GAAG,SAAS;IAI3C,eAAe,IAAI,aAAa,GAAG,SAAS;IAI5C,iBAAiB,IAAI,aAAa,GAAG,SAAS;IAI9C,eAAe,IAAI,aAAa,GAAG,SAAS;IAI5C,SAAS,IAAI,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;QAAC,SAAS,EAAE,IAAI,CAAA;KAAE,CAAC;IAK7E,UAAU,IAAI;QACZ,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,KAAK,CAAC,EAAE,aAAa,CAAC;QACtB,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,KAAK,CAAC;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,KAAK,CAAC;YAAC,SAAS,EAAE,IAAI,CAAA;SAAE,CAAC,CAAC;KAClE;CAYF"}
@@ -173,6 +173,29 @@ class DataElementBuilder {
173
173
  throw new Error('typeKind is required in DataElementBuilderConfig. Must be one of: domain, predefinedAbapType, refToPredefinedAbapType, refToDictionaryType, refToClifType');
174
174
  }
175
175
  const typeKind = this.config.typeKind;
176
+ // Validate required parameters based on type_kind
177
+ // predefinedAbapType and refToPredefinedAbapType require data_type
178
+ // Other types (domain, refToDictionaryType, refToClifType) require type_name
179
+ if (typeKind === 'predefinedAbapType' || typeKind === 'refToPredefinedAbapType') {
180
+ if (!this.config.dataType) {
181
+ throw new Error(`dataType is required when typeKind is '${typeKind}'. Provide data type (e.g., CHAR, NUMC, INT4).`);
182
+ }
183
+ }
184
+ else {
185
+ // domain, refToDictionaryType, refToClifType require type_name
186
+ if (typeKind === 'domain') {
187
+ // For domain, type_name (domain name) is required, but it will be used as data_type internally
188
+ if (!this.config.typeName && !this.config.dataType) {
189
+ throw new Error(`typeName (domain name) is required when typeKind is 'domain'. Provide domain name (e.g., ZOK_AUTH_ID).`);
190
+ }
191
+ }
192
+ else {
193
+ // refToDictionaryType, refToClifType
194
+ if (!this.config.typeName) {
195
+ throw new Error(`typeName is required when typeKind is '${typeKind}'. Provide ${typeKind === 'refToDictionaryType' ? 'data element name' : 'class name'}.`);
196
+ }
197
+ }
198
+ }
176
199
  this.logger.info?.('Creating data element:', this.config.dataElementName);
177
200
  const params = {
178
201
  data_element_name: this.config.dataElementName,
@@ -237,6 +260,29 @@ class DataElementBuilder {
237
260
  throw new Error('typeKind is required in DataElementBuilderConfig. Must be one of: domain, predefinedAbapType, refToPredefinedAbapType, refToDictionaryType, refToClifType');
238
261
  }
239
262
  const typeKind = this.config.typeKind;
263
+ // Validate required parameters based on type_kind
264
+ // predefinedAbapType and refToPredefinedAbapType require data_type
265
+ // Other types (domain, refToDictionaryType, refToClifType) require type_name
266
+ if (typeKind === 'predefinedAbapType' || typeKind === 'refToPredefinedAbapType') {
267
+ if (!this.config.dataType) {
268
+ throw new Error(`dataType is required when typeKind is '${typeKind}'. Provide data type (e.g., CHAR, NUMC, INT4).`);
269
+ }
270
+ }
271
+ else {
272
+ // domain, refToDictionaryType, refToClifType require type_name
273
+ if (typeKind === 'domain') {
274
+ // For domain, type_name (domain name) is required, but it will be used as data_type internally
275
+ if (!this.config.typeName && !this.config.dataType) {
276
+ throw new Error(`typeName (domain name) is required when typeKind is 'domain'. Provide domain name (e.g., ZOK_AUTH_ID).`);
277
+ }
278
+ }
279
+ else {
280
+ // refToDictionaryType, refToClifType
281
+ if (!this.config.typeName) {
282
+ throw new Error(`typeName is required when typeKind is '${typeKind}'. Provide ${typeKind === 'refToDictionaryType' ? 'data element name' : 'class name'}.`);
283
+ }
284
+ }
285
+ }
240
286
  this.logger.info?.('Updating data element:', this.config.dataElementName);
241
287
  const username = process.env.SAP_USER || process.env.SAP_USERNAME || 'MPCUSER';
242
288
  const params = {
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/core/dataElement/create.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAc,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAElD;;;GAGG;AACH,wBAAsB,MAAM,CAC1B,UAAU,EAAE,cAAc,EAC1B,IAAI,EAAE,uBAAuB,GAC5B,OAAO,CAAC,aAAa,CAAC,CAgGxB"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/core/dataElement/create.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAc,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAElD;;;GAGG;AACH,wBAAsB,MAAM,CAC1B,UAAU,EAAE,cAAc,EAC1B,IAAI,EAAE,uBAAuB,GAC5B,OAAO,CAAC,aAAa,CAAC,CAuHxB"}
@@ -23,13 +23,36 @@ async function create(connection, args) {
23
23
  if (!args.type_kind) {
24
24
  throw new Error('type_kind is required. Must be one of: domain, predefinedAbapType, refToPredefinedAbapType, refToDictionaryType, refToClifType');
25
25
  }
26
+ // Validate required parameters based on type_kind
27
+ // predefinedAbapType and refToPredefinedAbapType require data_type
28
+ // Other types (domain, refToDictionaryType, refToClifType) require type_name
29
+ if (args.type_kind === 'predefinedAbapType' || args.type_kind === 'refToPredefinedAbapType') {
30
+ if (!args.data_type) {
31
+ throw new Error(`data_type is required when type_kind is '${args.type_kind}'. Provide data type (e.g., CHAR, NUMC, INT4).`);
32
+ }
33
+ }
34
+ else {
35
+ // domain, refToDictionaryType, refToClifType require type_name
36
+ if (args.type_kind === 'domain') {
37
+ // For domain, type_name (domain name) is required, but it will be used as data_type internally
38
+ if (!args.type_name && !args.data_type) {
39
+ throw new Error(`type_name (domain name) is required when type_kind is 'domain'. Provide domain name (e.g., ZOK_AUTH_ID).`);
40
+ }
41
+ }
42
+ else {
43
+ // refToDictionaryType, refToClifType
44
+ if (!args.type_name) {
45
+ throw new Error(`type_name is required when type_kind is '${args.type_kind}'. Provide ${args.type_kind === 'refToDictionaryType' ? 'data element name' : 'class name'}.`);
46
+ }
47
+ }
48
+ }
26
49
  const typeKindXml = args.type_kind;
27
50
  // Use provided values directly - no automatic determination
28
51
  // When typeKind is 'domain', dataType should contain the domain name, and it goes to typeName in XML
29
52
  let typeName = '';
30
53
  if (typeKindXml === 'domain') {
31
- // For domain type, typeName comes from dataType
32
- typeName = args.data_type ? args.data_type.toUpperCase() : '';
54
+ // For domain type, typeName comes from dataType (or type_name if dataType not provided)
55
+ typeName = (args.data_type || args.type_name) ? (args.data_type || args.type_name).toUpperCase() : '';
33
56
  }
34
57
  else {
35
58
  // For other types, typeName comes from type_name parameter
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/core/dataElement/update.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAc,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGlD;;GAEG;AACH,wBAAsB,aA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B,UAAU,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACjE,OAAO,CAAC,aAAa,CAAC,CAwJxB;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,cAAc,EAC1B,MAAM,EAAE,uBAAuB,EAC/B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,aAAa,CAAC,CAuBxB"}
@@ -70,13 +70,36 @@ async function updateDataElementInternal(connection, args, lockHandle, username,
70
70
  if (!args.type_kind) {
71
71
  throw new Error('type_kind is required. Must be one of: domain, predefinedAbapType, refToPredefinedAbapType, refToDictionaryType, refToClifType');
72
72
  }
73
+ // Validate required parameters based on type_kind
74
+ // predefinedAbapType and refToPredefinedAbapType require data_type
75
+ // Other types (domain, refToDictionaryType, refToClifType) require type_name
76
+ if (args.type_kind === 'predefinedAbapType' || args.type_kind === 'refToPredefinedAbapType') {
77
+ if (!args.data_type) {
78
+ throw new Error(`data_type is required when type_kind is '${args.type_kind}'. Provide data type (e.g., CHAR, NUMC, INT4).`);
79
+ }
80
+ }
81
+ else {
82
+ // domain, refToDictionaryType, refToClifType require type_name
83
+ if (args.type_kind === 'domain') {
84
+ // For domain, type_name (domain name) is required, but it will be used as data_type internally
85
+ if (!args.type_name && !args.data_type) {
86
+ throw new Error(`type_name (domain name) is required when type_kind is 'domain'. Provide domain name (e.g., ZOK_AUTH_ID).`);
87
+ }
88
+ }
89
+ else {
90
+ // refToDictionaryType, refToClifType
91
+ if (!args.type_name) {
92
+ throw new Error(`type_name is required when type_kind is '${args.type_kind}'. Provide ${args.type_kind === 'refToDictionaryType' ? 'data element name' : 'class name'}.`);
93
+ }
94
+ }
95
+ }
73
96
  const typeKind = args.type_kind;
74
97
  // Use provided values directly - no automatic determination
75
98
  // When typeKind is 'domain', dataType should contain the domain name, and it goes to typeName in XML
76
99
  let typeName = '';
77
100
  if (typeKind === 'domain') {
78
- // For domain type, typeName comes from dataType
79
- typeName = args.data_type ? args.data_type.toUpperCase() : '';
101
+ // For domain type, typeName comes from dataType (or type_name if dataType not provided)
102
+ typeName = (args.data_type || args.type_name) ? (args.data_type || args.type_name).toUpperCase() : '';
80
103
  }
81
104
  else {
82
105
  // For other types, typeName comes from type_name parameter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/adt-clients",
3
- "version": "0.1.26",
3
+ "version": "0.1.30",
4
4
  "description": "ADT clients for SAP ABAP systems - Read-only and CRUD operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  "node": ">=18.0.0"
59
59
  },
60
60
  "dependencies": {
61
- "@mcp-abap-adt/connection": "^0.1.11",
61
+ "@mcp-abap-adt/connection": "^0.1.12",
62
62
  "fast-xml-parser": "^5.2.5",
63
63
  "yaml": "^2.3.4"
64
64
  },