@mcp-abap-adt/compact-modify 22.0.1 → 23.0.1

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.
Files changed (33) hide show
  1. package/README.md +2 -1
  2. package/dist/handlers/compactWriteRoutes.d.ts.map +1 -1
  3. package/dist/handlers/compactWriteRoutes.js +10 -0
  4. package/dist/handlers/compactWriteRoutes.js.map +1 -1
  5. package/dist/handlers/handleHandlerActivate.d.ts +15 -15
  6. package/dist/handlers/handleHandlerActivate.d.ts.map +1 -1
  7. package/dist/handlers/handleHandlerActivate.js +1 -0
  8. package/dist/handlers/handleHandlerActivate.js.map +1 -1
  9. package/dist/handlers/handleHandlerCreate.d.ts +237 -213
  10. package/dist/handlers/handleHandlerCreate.d.ts.map +1 -1
  11. package/dist/handlers/handleHandlerCreate.js +1 -0
  12. package/dist/handlers/handleHandlerCreate.js.map +1 -1
  13. package/dist/handlers/handleHandlerDelete.d.ts +135 -111
  14. package/dist/handlers/handleHandlerDelete.d.ts.map +1 -1
  15. package/dist/handlers/handleHandlerDelete.js +1 -0
  16. package/dist/handlers/handleHandlerDelete.js.map +1 -1
  17. package/dist/handlers/handleHandlerLock.d.ts +15 -15
  18. package/dist/handlers/handleHandlerLock.d.ts.map +1 -1
  19. package/dist/handlers/handleHandlerLock.js +1 -0
  20. package/dist/handlers/handleHandlerLock.js.map +1 -1
  21. package/dist/handlers/handleHandlerProfileRun.d.ts +24 -24
  22. package/dist/handlers/handleHandlerProfileRun.d.ts.map +1 -1
  23. package/dist/handlers/handleHandlerProfileRun.js +1 -0
  24. package/dist/handlers/handleHandlerProfileRun.js.map +1 -1
  25. package/dist/handlers/handleHandlerUnlock.d.ts +15 -15
  26. package/dist/handlers/handleHandlerUnlock.d.ts.map +1 -1
  27. package/dist/handlers/handleHandlerUnlock.js +1 -0
  28. package/dist/handlers/handleHandlerUnlock.js.map +1 -1
  29. package/dist/handlers/handleHandlerUpdate.d.ts +207 -168
  30. package/dist/handlers/handleHandlerUpdate.d.ts.map +1 -1
  31. package/dist/handlers/handleHandlerUpdate.js +1 -0
  32. package/dist/handlers/handleHandlerUpdate.js.map +1 -1
  33. package/package.json +4 -4
@@ -6,7 +6,7 @@ export declare const TOOL_DEFINITION: {
6
6
  readonly properties: {
7
7
  readonly object_type: {
8
8
  readonly type: "string";
9
- readonly enum: ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[] | readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "FUNCTION_GROUP", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "CLASS", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST", "CDS_UNIT_TEST", "PROGRAM", "INTERFACE", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_BINDING"];
9
+ readonly enum: ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "TABLE_TYPE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[] | readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TABLE_TYPE", "FUNCTION_GROUP", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "CLASS", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST", "CDS_UNIT_TEST", "PROGRAM", "INCLUDE", "INTERFACE", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_BINDING"];
10
10
  readonly description: string;
11
11
  };
12
12
  readonly lock_handle: {
@@ -17,116 +17,129 @@ export declare const TOOL_DEFINITION: {
17
17
  readonly type: "string";
18
18
  readonly description: "Transport request id, sent as the write's corrNr (the types whose description names it).";
19
19
  };
20
- readonly class_name: {
20
+ readonly class_name?: {
21
21
  readonly type: "string";
22
22
  readonly description: "ABAP class name.";
23
- };
24
- readonly program_name: {
23
+ } | undefined;
24
+ readonly program_name?: {
25
25
  readonly type: "string";
26
26
  readonly description: "ABAP program name.";
27
- };
28
- readonly domain_name: {
27
+ } | undefined;
28
+ readonly domain_name?: {
29
29
  readonly type: "string";
30
30
  readonly description: "ABAP domain name.";
31
- };
32
- readonly function_module_name: {
31
+ } | undefined;
32
+ readonly function_module_name?: {
33
33
  readonly type: "string";
34
34
  readonly description: "ABAP function module name.";
35
- };
36
- readonly function_group_name: {
35
+ } | undefined;
36
+ readonly function_group_name?: {
37
37
  readonly type: "string";
38
38
  readonly description: "ABAP function group name.";
39
- };
40
- readonly package_name: {
39
+ } | undefined;
40
+ readonly package_name?: {
41
41
  readonly type: "string";
42
42
  readonly description: "ABAP package name.";
43
- };
44
- readonly ddl_name: {
43
+ } | undefined;
44
+ readonly ddl_name?: {
45
45
  readonly type: "string";
46
46
  readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
47
- };
48
- readonly source_code: {
47
+ } | undefined;
48
+ readonly source_code?: {
49
49
  readonly type: "string";
50
- readonly description: "The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP the whole metadata document.";
51
- };
52
- readonly ddl_source: {
50
+ readonly description: "The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT, FUNCTION_GROUP, TABLE_TYPE and INCLUDE with part metadata the whole metadata document.";
51
+ } | undefined;
52
+ readonly part?: {
53
+ readonly type: "string";
54
+ readonly enum: readonly ["source", "metadata"];
55
+ readonly description: "The part of an INCLUDE written: source (when absent) its source, metadata its metadata document. Taken by INCLUDE alone.";
56
+ } | undefined;
57
+ readonly ddl_source?: {
53
58
  readonly type: "string";
54
59
  readonly description: "Complete DDL source code (for DDL update).";
55
- };
56
- readonly table_name: {
60
+ } | undefined;
61
+ readonly table_name?: {
57
62
  readonly type: "string";
58
63
  readonly description: "Table name.";
59
- };
60
- readonly structure_name: {
64
+ } | undefined;
65
+ readonly structure_name?: {
61
66
  readonly type: "string";
62
67
  readonly description: "Structure name.";
63
- };
64
- readonly data_element_name: {
68
+ } | undefined;
69
+ readonly data_element_name?: {
65
70
  readonly type: "string";
66
71
  readonly description: "Data element name.";
67
- };
68
- readonly interface_name: {
72
+ } | undefined;
73
+ readonly interface_name?: {
69
74
  readonly type: "string";
70
75
  readonly description: "Interface name.";
71
- };
72
- readonly service_definition_name: {
76
+ } | undefined;
77
+ readonly include_name?: {
78
+ readonly type: "string";
79
+ readonly description: "Include name.";
80
+ } | undefined;
81
+ readonly table_type_name?: {
82
+ readonly type: "string";
83
+ readonly description: "Table type name.";
84
+ } | undefined;
85
+ readonly service_definition_name?: {
73
86
  readonly type: "string";
74
87
  readonly description: "Service definition name.";
75
- };
76
- readonly service_binding_name: {
88
+ } | undefined;
89
+ readonly service_binding_name?: {
77
90
  readonly type: "string";
78
91
  readonly description: "Service binding name.";
79
- };
80
- readonly service_name: {
92
+ } | undefined;
93
+ readonly service_name?: {
81
94
  readonly type: "string";
82
95
  readonly description: "Published service name (SERVICE_BINDING, an OData V2 binding).";
83
- };
84
- readonly service_version: {
96
+ } | undefined;
97
+ readonly service_version?: {
85
98
  readonly type: "string";
86
99
  readonly description: "Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.";
87
- };
88
- readonly name: {
100
+ } | undefined;
101
+ readonly name?: {
89
102
  readonly type: "string";
90
103
  readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
91
- };
92
- readonly ddl_code: {
104
+ } | undefined;
105
+ readonly ddl_code?: {
93
106
  readonly type: "string";
94
107
  readonly description: "Complete DDL source code (for TABLE/STRUCTURE update).";
95
- };
96
- readonly implementation_code: {
108
+ } | undefined;
109
+ readonly implementation_code?: {
97
110
  readonly type: "string";
98
111
  readonly description: "Behavior implementation methods source code.";
99
- };
100
- readonly test_class_source: {
112
+ } | undefined;
113
+ readonly test_class_source?: {
101
114
  readonly type: "string";
102
115
  readonly description: "ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST update).";
103
- };
104
- readonly test_class_code: {
116
+ } | undefined;
117
+ readonly test_class_code?: {
105
118
  readonly type: "string";
106
119
  readonly description: "Updated source for the local test class.";
107
- };
108
- readonly local_types_code: {
120
+ } | undefined;
121
+ readonly local_types_code?: {
109
122
  readonly type: "string";
110
123
  readonly description: "Updated source for class local types.";
111
- };
112
- readonly definitions_code: {
124
+ } | undefined;
125
+ readonly definitions_code?: {
113
126
  readonly type: "string";
114
127
  readonly description: "Updated source for class local definitions.";
115
- };
116
- readonly macros_code: {
128
+ } | undefined;
129
+ readonly macros_code?: {
117
130
  readonly type: "string";
118
131
  readonly description: "Updated source for class local macros.";
119
- };
120
- readonly binding_variant: {
132
+ } | undefined;
133
+ readonly binding_variant?: {
121
134
  readonly type: "string";
122
135
  readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
123
136
  readonly description: "Service binding variant (service binding update).";
124
- };
125
- readonly desired_publication_state: {
137
+ } | undefined;
138
+ readonly desired_publication_state?: {
126
139
  readonly type: "string";
127
140
  readonly enum: readonly ["published", "unpublished"];
128
141
  readonly description: "Target publication state (service binding update).";
129
- };
142
+ } | undefined;
130
143
  };
131
144
  readonly required: readonly ["object_type", "lock_handle"];
132
145
  };
@@ -136,7 +149,7 @@ export declare const TOOL_DEFINITION: {
136
149
  readonly properties: {
137
150
  readonly object_type: {
138
151
  readonly type: "string";
139
- readonly enum: ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[] | readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "FUNCTION_GROUP", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "CLASS", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST", "CDS_UNIT_TEST", "PROGRAM", "INTERFACE", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_BINDING"];
152
+ readonly enum: ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "TABLE_TYPE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[] | readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TABLE_TYPE", "FUNCTION_GROUP", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "CLASS", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST", "CDS_UNIT_TEST", "PROGRAM", "INCLUDE", "INTERFACE", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_BINDING"];
140
153
  readonly description: string;
141
154
  };
142
155
  readonly lock_handle: {
@@ -147,116 +160,129 @@ export declare const TOOL_DEFINITION: {
147
160
  readonly type: "string";
148
161
  readonly description: "Transport request id, sent as the write's corrNr (the types whose description names it).";
149
162
  };
150
- readonly class_name: {
163
+ readonly class_name?: {
151
164
  readonly type: "string";
152
165
  readonly description: "ABAP class name.";
153
- };
154
- readonly program_name: {
166
+ } | undefined;
167
+ readonly program_name?: {
155
168
  readonly type: "string";
156
169
  readonly description: "ABAP program name.";
157
- };
158
- readonly domain_name: {
170
+ } | undefined;
171
+ readonly domain_name?: {
159
172
  readonly type: "string";
160
173
  readonly description: "ABAP domain name.";
161
- };
162
- readonly function_module_name: {
174
+ } | undefined;
175
+ readonly function_module_name?: {
163
176
  readonly type: "string";
164
177
  readonly description: "ABAP function module name.";
165
- };
166
- readonly function_group_name: {
178
+ } | undefined;
179
+ readonly function_group_name?: {
167
180
  readonly type: "string";
168
181
  readonly description: "ABAP function group name.";
169
- };
170
- readonly package_name: {
182
+ } | undefined;
183
+ readonly package_name?: {
171
184
  readonly type: "string";
172
185
  readonly description: "ABAP package name.";
173
- };
174
- readonly ddl_name: {
186
+ } | undefined;
187
+ readonly ddl_name?: {
175
188
  readonly type: "string";
176
189
  readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
177
- };
178
- readonly source_code: {
190
+ } | undefined;
191
+ readonly source_code?: {
179
192
  readonly type: "string";
180
- readonly description: "The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP the whole metadata document.";
181
- };
182
- readonly ddl_source: {
193
+ readonly description: "The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT, FUNCTION_GROUP, TABLE_TYPE and INCLUDE with part metadata the whole metadata document.";
194
+ } | undefined;
195
+ readonly part?: {
196
+ readonly type: "string";
197
+ readonly enum: readonly ["source", "metadata"];
198
+ readonly description: "The part of an INCLUDE written: source (when absent) its source, metadata its metadata document. Taken by INCLUDE alone.";
199
+ } | undefined;
200
+ readonly ddl_source?: {
183
201
  readonly type: "string";
184
202
  readonly description: "Complete DDL source code (for DDL update).";
185
- };
186
- readonly table_name: {
203
+ } | undefined;
204
+ readonly table_name?: {
187
205
  readonly type: "string";
188
206
  readonly description: "Table name.";
189
- };
190
- readonly structure_name: {
207
+ } | undefined;
208
+ readonly structure_name?: {
191
209
  readonly type: "string";
192
210
  readonly description: "Structure name.";
193
- };
194
- readonly data_element_name: {
211
+ } | undefined;
212
+ readonly data_element_name?: {
195
213
  readonly type: "string";
196
214
  readonly description: "Data element name.";
197
- };
198
- readonly interface_name: {
215
+ } | undefined;
216
+ readonly interface_name?: {
199
217
  readonly type: "string";
200
218
  readonly description: "Interface name.";
201
- };
202
- readonly service_definition_name: {
219
+ } | undefined;
220
+ readonly include_name?: {
221
+ readonly type: "string";
222
+ readonly description: "Include name.";
223
+ } | undefined;
224
+ readonly table_type_name?: {
225
+ readonly type: "string";
226
+ readonly description: "Table type name.";
227
+ } | undefined;
228
+ readonly service_definition_name?: {
203
229
  readonly type: "string";
204
230
  readonly description: "Service definition name.";
205
- };
206
- readonly service_binding_name: {
231
+ } | undefined;
232
+ readonly service_binding_name?: {
207
233
  readonly type: "string";
208
234
  readonly description: "Service binding name.";
209
- };
210
- readonly service_name: {
235
+ } | undefined;
236
+ readonly service_name?: {
211
237
  readonly type: "string";
212
238
  readonly description: "Published service name (SERVICE_BINDING, an OData V2 binding).";
213
- };
214
- readonly service_version: {
239
+ } | undefined;
240
+ readonly service_version?: {
215
241
  readonly type: "string";
216
242
  readonly description: "Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.";
217
- };
218
- readonly name: {
243
+ } | undefined;
244
+ readonly name?: {
219
245
  readonly type: "string";
220
246
  readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
221
- };
222
- readonly ddl_code: {
247
+ } | undefined;
248
+ readonly ddl_code?: {
223
249
  readonly type: "string";
224
250
  readonly description: "Complete DDL source code (for TABLE/STRUCTURE update).";
225
- };
226
- readonly implementation_code: {
251
+ } | undefined;
252
+ readonly implementation_code?: {
227
253
  readonly type: "string";
228
254
  readonly description: "Behavior implementation methods source code.";
229
- };
230
- readonly test_class_source: {
255
+ } | undefined;
256
+ readonly test_class_source?: {
231
257
  readonly type: "string";
232
258
  readonly description: "ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST update).";
233
- };
234
- readonly test_class_code: {
259
+ } | undefined;
260
+ readonly test_class_code?: {
235
261
  readonly type: "string";
236
262
  readonly description: "Updated source for the local test class.";
237
- };
238
- readonly local_types_code: {
263
+ } | undefined;
264
+ readonly local_types_code?: {
239
265
  readonly type: "string";
240
266
  readonly description: "Updated source for class local types.";
241
- };
242
- readonly definitions_code: {
267
+ } | undefined;
268
+ readonly definitions_code?: {
243
269
  readonly type: "string";
244
270
  readonly description: "Updated source for class local definitions.";
245
- };
246
- readonly macros_code: {
271
+ } | undefined;
272
+ readonly macros_code?: {
247
273
  readonly type: "string";
248
274
  readonly description: "Updated source for class local macros.";
249
- };
250
- readonly binding_variant: {
275
+ } | undefined;
276
+ readonly binding_variant?: {
251
277
  readonly type: "string";
252
278
  readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
253
279
  readonly description: "Service binding variant (service binding update).";
254
- };
255
- readonly desired_publication_state: {
280
+ } | undefined;
281
+ readonly desired_publication_state?: {
256
282
  readonly type: "string";
257
283
  readonly enum: readonly ["published", "unpublished"];
258
284
  readonly description: "Target publication state (service binding update).";
259
- };
285
+ } | undefined;
260
286
  };
261
287
  readonly required: readonly ["object_type", "lock_handle"];
262
288
  }>;
@@ -265,7 +291,7 @@ export declare const TOOL_DEFINITION: {
265
291
  readonly properties: {
266
292
  readonly object_type: {
267
293
  readonly type: "string";
268
- readonly enum: ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[] | readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "FUNCTION_GROUP", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "CLASS", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST", "CDS_UNIT_TEST", "PROGRAM", "INTERFACE", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_BINDING"];
294
+ readonly enum: ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "TABLE_TYPE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[] | readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TABLE_TYPE", "FUNCTION_GROUP", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "CLASS", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST", "CDS_UNIT_TEST", "PROGRAM", "INCLUDE", "INTERFACE", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_BINDING"];
269
295
  readonly description: string;
270
296
  };
271
297
  readonly lock_handle: {
@@ -276,116 +302,129 @@ export declare const TOOL_DEFINITION: {
276
302
  readonly type: "string";
277
303
  readonly description: "Transport request id, sent as the write's corrNr (the types whose description names it).";
278
304
  };
279
- readonly class_name: {
305
+ readonly class_name?: {
280
306
  readonly type: "string";
281
307
  readonly description: "ABAP class name.";
282
- };
283
- readonly program_name: {
308
+ } | undefined;
309
+ readonly program_name?: {
284
310
  readonly type: "string";
285
311
  readonly description: "ABAP program name.";
286
- };
287
- readonly domain_name: {
312
+ } | undefined;
313
+ readonly domain_name?: {
288
314
  readonly type: "string";
289
315
  readonly description: "ABAP domain name.";
290
- };
291
- readonly function_module_name: {
316
+ } | undefined;
317
+ readonly function_module_name?: {
292
318
  readonly type: "string";
293
319
  readonly description: "ABAP function module name.";
294
- };
295
- readonly function_group_name: {
320
+ } | undefined;
321
+ readonly function_group_name?: {
296
322
  readonly type: "string";
297
323
  readonly description: "ABAP function group name.";
298
- };
299
- readonly package_name: {
324
+ } | undefined;
325
+ readonly package_name?: {
300
326
  readonly type: "string";
301
327
  readonly description: "ABAP package name.";
302
- };
303
- readonly ddl_name: {
328
+ } | undefined;
329
+ readonly ddl_name?: {
304
330
  readonly type: "string";
305
331
  readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
306
- };
307
- readonly source_code: {
332
+ } | undefined;
333
+ readonly source_code?: {
308
334
  readonly type: "string";
309
- readonly description: "The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP the whole metadata document.";
310
- };
311
- readonly ddl_source: {
335
+ readonly description: "The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT, FUNCTION_GROUP, TABLE_TYPE and INCLUDE with part metadata the whole metadata document.";
336
+ } | undefined;
337
+ readonly part?: {
338
+ readonly type: "string";
339
+ readonly enum: readonly ["source", "metadata"];
340
+ readonly description: "The part of an INCLUDE written: source (when absent) its source, metadata its metadata document. Taken by INCLUDE alone.";
341
+ } | undefined;
342
+ readonly ddl_source?: {
312
343
  readonly type: "string";
313
344
  readonly description: "Complete DDL source code (for DDL update).";
314
- };
315
- readonly table_name: {
345
+ } | undefined;
346
+ readonly table_name?: {
316
347
  readonly type: "string";
317
348
  readonly description: "Table name.";
318
- };
319
- readonly structure_name: {
349
+ } | undefined;
350
+ readonly structure_name?: {
320
351
  readonly type: "string";
321
352
  readonly description: "Structure name.";
322
- };
323
- readonly data_element_name: {
353
+ } | undefined;
354
+ readonly data_element_name?: {
324
355
  readonly type: "string";
325
356
  readonly description: "Data element name.";
326
- };
327
- readonly interface_name: {
357
+ } | undefined;
358
+ readonly interface_name?: {
328
359
  readonly type: "string";
329
360
  readonly description: "Interface name.";
330
- };
331
- readonly service_definition_name: {
361
+ } | undefined;
362
+ readonly include_name?: {
363
+ readonly type: "string";
364
+ readonly description: "Include name.";
365
+ } | undefined;
366
+ readonly table_type_name?: {
367
+ readonly type: "string";
368
+ readonly description: "Table type name.";
369
+ } | undefined;
370
+ readonly service_definition_name?: {
332
371
  readonly type: "string";
333
372
  readonly description: "Service definition name.";
334
- };
335
- readonly service_binding_name: {
373
+ } | undefined;
374
+ readonly service_binding_name?: {
336
375
  readonly type: "string";
337
376
  readonly description: "Service binding name.";
338
- };
339
- readonly service_name: {
377
+ } | undefined;
378
+ readonly service_name?: {
340
379
  readonly type: "string";
341
380
  readonly description: "Published service name (SERVICE_BINDING, an OData V2 binding).";
342
- };
343
- readonly service_version: {
381
+ } | undefined;
382
+ readonly service_version?: {
344
383
  readonly type: "string";
345
384
  readonly description: "Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.";
346
- };
347
- readonly name: {
385
+ } | undefined;
386
+ readonly name?: {
348
387
  readonly type: "string";
349
388
  readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
350
- };
351
- readonly ddl_code: {
389
+ } | undefined;
390
+ readonly ddl_code?: {
352
391
  readonly type: "string";
353
392
  readonly description: "Complete DDL source code (for TABLE/STRUCTURE update).";
354
- };
355
- readonly implementation_code: {
393
+ } | undefined;
394
+ readonly implementation_code?: {
356
395
  readonly type: "string";
357
396
  readonly description: "Behavior implementation methods source code.";
358
- };
359
- readonly test_class_source: {
397
+ } | undefined;
398
+ readonly test_class_source?: {
360
399
  readonly type: "string";
361
400
  readonly description: "ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST update).";
362
- };
363
- readonly test_class_code: {
401
+ } | undefined;
402
+ readonly test_class_code?: {
364
403
  readonly type: "string";
365
404
  readonly description: "Updated source for the local test class.";
366
- };
367
- readonly local_types_code: {
405
+ } | undefined;
406
+ readonly local_types_code?: {
368
407
  readonly type: "string";
369
408
  readonly description: "Updated source for class local types.";
370
- };
371
- readonly definitions_code: {
409
+ } | undefined;
410
+ readonly definitions_code?: {
372
411
  readonly type: "string";
373
412
  readonly description: "Updated source for class local definitions.";
374
- };
375
- readonly macros_code: {
413
+ } | undefined;
414
+ readonly macros_code?: {
376
415
  readonly type: "string";
377
416
  readonly description: "Updated source for class local macros.";
378
- };
379
- readonly binding_variant: {
417
+ } | undefined;
418
+ readonly binding_variant?: {
380
419
  readonly type: "string";
381
420
  readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
382
421
  readonly description: "Service binding variant (service binding update).";
383
- };
384
- readonly desired_publication_state: {
422
+ } | undefined;
423
+ readonly desired_publication_state?: {
385
424
  readonly type: "string";
386
425
  readonly enum: readonly ["published", "unpublished"];
387
426
  readonly description: "Target publication state (service binding update).";
388
- };
427
+ } | undefined;
389
428
  };
390
429
  readonly required: readonly ["object_type", "lock_handle"];
391
430
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerUpdate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerUpdate.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,4BAA4B,CAAC;AAI5E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3E,8FAA8F;AAC9F,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB,oBAqBxB"}
1
+ {"version":3,"file":"handleHandlerUpdate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerUpdate.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,4BAA4B,CAAC;AAI5E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3E,8FAA8F;AAC9F,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB,oBAqBxB"}
@@ -12,6 +12,7 @@ exports.TOOL_DEFINITION = {
12
12
  ...(0, compact_shared_1.byVariant)((variant) => ({
13
13
  description: (0, compact_shared_1.compactUpdateDescription)(variant),
14
14
  inputSchema: (0, compact_shared_1.compactUpdateSchemaFor)(compact_shared_1.COMPACT_UPDATE[variant]),
15
+ members: compact_shared_1.COMPACT_UPDATE[variant],
15
16
  })),
16
17
  };
17
18
  /** One request: the type's write under `lock_handle` (`handleUpdateUnderLock`, spec §4.6). */
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerUpdate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUpdate.ts"],"names":[],"mappings":";;;AAwBA,kDAuBC;AA/CD,qEAO0C;AAC1C,yDAA4E;AAC5E,mDAAuD;AACvD,6DAAyD;AAE5C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,GAA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4
4
  "description": "The compact ABAP ADT tools that write, lock, activate or execute: one tool per operation, the object in the arguments.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Oleksii Kyslytsia <oleksij.kyslytsja@gmail.com>",
@@ -51,13 +51,13 @@
51
51
  "prepublishOnly": "npm run build"
52
52
  },
53
53
  "dependencies": {
54
- "@mcp-abap-adt/interfaces-adt": "^24.0.1"
54
+ "@mcp-abap-adt/interfaces-adt": "^25.0.2"
55
55
  },
56
56
  "peerDependencies": {
57
- "@mcp-abap-adt/lib": "^22.0.1"
57
+ "@mcp-abap-adt/lib": "^23.0.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@mcp-abap-adt/lib": "^22.0.1",
60
+ "@mcp-abap-adt/lib": "^23.0.1",
61
61
  "typescript": "^6.0.2",
62
62
  "@types/node": "^22.20.5"
63
63
  }