@mcp-abap-adt/compact-modify 23.0.2 → 24.0.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.
Files changed (55) hide show
  1. package/dist/group.d.ts +5 -9
  2. package/dist/group.d.ts.map +1 -1
  3. package/dist/group.js +21 -53
  4. package/dist/group.js.map +1 -1
  5. package/dist/handlers/compactConfirmWith.d.ts.map +1 -1
  6. package/dist/handlers/compactConfirmWith.js +14 -15
  7. package/dist/handlers/compactConfirmWith.js.map +1 -1
  8. package/dist/handlers/compactWriteRoutes.d.ts +3 -2
  9. package/dist/handlers/compactWriteRoutes.d.ts.map +1 -1
  10. package/dist/handlers/compactWriteRoutes.js +21 -3
  11. package/dist/handlers/compactWriteRoutes.js.map +1 -1
  12. package/dist/handlers/handleHandlerActivate.d.ts +45 -189
  13. package/dist/handlers/handleHandlerActivate.d.ts.map +1 -1
  14. package/dist/handlers/handleHandlerActivate.js +1 -1
  15. package/dist/handlers/handleHandlerActivate.js.map +1 -1
  16. package/dist/handlers/handleHandlerCreate.d.ts +192 -490
  17. package/dist/handlers/handleHandlerCreate.d.ts.map +1 -1
  18. package/dist/handlers/handleHandlerCreate.js.map +1 -1
  19. package/dist/handlers/handleHandlerDelete.d.ts +72 -278
  20. package/dist/handlers/handleHandlerDelete.d.ts.map +1 -1
  21. package/dist/handlers/handleHandlerDelete.js.map +1 -1
  22. package/dist/handlers/handleHandlerLock.d.ts +19 -62
  23. package/dist/handlers/handleHandlerLock.d.ts.map +1 -1
  24. package/dist/handlers/handleHandlerLock.js +21 -16
  25. package/dist/handlers/handleHandlerLock.js.map +1 -1
  26. package/dist/handlers/handleHandlerProfileRun.d.ts +24 -97
  27. package/dist/handlers/handleHandlerProfileRun.d.ts.map +1 -1
  28. package/dist/handlers/handleHandlerProfileRun.js.map +1 -1
  29. package/dist/handlers/handleHandlerProfileSchedule.d.ts +16 -62
  30. package/dist/handlers/handleHandlerProfileSchedule.d.ts.map +1 -1
  31. package/dist/handlers/handleHandlerTransportCreate.d.ts +18 -38
  32. package/dist/handlers/handleHandlerTransportCreate.d.ts.map +1 -1
  33. package/dist/handlers/handleHandlerTransportCreate.js +1 -1
  34. package/dist/handlers/handleHandlerTransportCreate.js.map +1 -1
  35. package/dist/handlers/handleHandlerTransportMoveObjects.d.ts +13 -59
  36. package/dist/handlers/handleHandlerTransportMoveObjects.d.ts.map +1 -1
  37. package/dist/handlers/handleHandlerTransportMoveObjects.js.map +1 -1
  38. package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts +6 -20
  39. package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts.map +1 -1
  40. package/dist/handlers/handleHandlerTransportSortAndCompress.js.map +1 -1
  41. package/dist/handlers/handleHandlerUnitTestRun.d.ts +68 -154
  42. package/dist/handlers/handleHandlerUnitTestRun.d.ts.map +1 -1
  43. package/dist/handlers/handleHandlerUnitTestRun.js.map +1 -1
  44. package/dist/handlers/handleHandlerUnlock.d.ts +18 -65
  45. package/dist/handlers/handleHandlerUnlock.d.ts.map +1 -1
  46. package/dist/handlers/handleHandlerUnlock.js +26 -3
  47. package/dist/handlers/handleHandlerUnlock.js.map +1 -1
  48. package/dist/handlers/handleHandlerUpdate.d.ts +141 -430
  49. package/dist/handlers/handleHandlerUpdate.d.ts.map +1 -1
  50. package/dist/handlers/handleHandlerUpdate.js.map +1 -1
  51. package/dist/handlers/heldLockOf.d.ts +8 -0
  52. package/dist/handlers/heldLockOf.d.ts.map +1 -0
  53. package/dist/handlers/heldLockOf.js +41 -0
  54. package/dist/handlers/heldLockOf.js.map +1 -0
  55. package/package.json +4 -4
@@ -1,441 +1,152 @@
1
1
  import { type HandlerContext } from '@mcp-abap-adt/lib/handlers';
2
+ import type * as z from 'zod';
2
3
  export declare const TOOL_DEFINITION: {
3
4
  readonly description: string;
4
- readonly inputSchema: {
5
- readonly type: "object";
6
- readonly properties: {
7
- readonly object_type: {
8
- readonly type: "string";
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
- readonly description: string;
11
- };
12
- readonly lock_handle: {
13
- readonly type: "string";
14
- readonly description: "The lock handle of the object (for a class include, of the class): the write is sent under it.";
15
- };
16
- readonly transport_request: {
17
- readonly type: "string";
18
- readonly description: "Transport request id, sent as the write's corrNr (the types whose description names it).";
19
- };
20
- readonly class_name?: {
21
- readonly type: "string";
22
- readonly description: "ABAP class name.";
23
- } | undefined;
24
- readonly program_name?: {
25
- readonly type: "string";
26
- readonly description: "ABAP program name.";
27
- } | undefined;
28
- readonly domain_name?: {
29
- readonly type: "string";
30
- readonly description: "ABAP domain name.";
31
- } | undefined;
32
- readonly function_module_name?: {
33
- readonly type: "string";
34
- readonly description: "ABAP function module name.";
35
- } | undefined;
36
- readonly function_group_name?: {
37
- readonly type: "string";
38
- readonly description: "ABAP function group name.";
39
- } | undefined;
40
- readonly package_name?: {
41
- readonly type: "string";
42
- readonly description: "ABAP package name.";
43
- } | undefined;
44
- readonly ddl_name?: {
45
- readonly type: "string";
46
- readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
47
- } | undefined;
48
- readonly source_code?: {
49
- readonly type: "string";
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?: {
58
- readonly type: "string";
59
- readonly description: "Complete DDL source code (for DDL update).";
60
- } | undefined;
61
- readonly table_name?: {
62
- readonly type: "string";
63
- readonly description: "Table name.";
64
- } | undefined;
65
- readonly structure_name?: {
66
- readonly type: "string";
67
- readonly description: "Structure name.";
68
- } | undefined;
69
- readonly data_element_name?: {
70
- readonly type: "string";
71
- readonly description: "Data element name.";
72
- } | undefined;
73
- readonly interface_name?: {
74
- readonly type: "string";
75
- readonly description: "Interface 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?: {
86
- readonly type: "string";
87
- readonly description: "Service definition name.";
88
- } | undefined;
89
- readonly service_binding_name?: {
90
- readonly type: "string";
91
- readonly description: "Service binding name.";
92
- } | undefined;
93
- readonly service_name?: {
94
- readonly type: "string";
95
- readonly description: "Published service name (SERVICE_BINDING, an OData V2 binding).";
96
- } | undefined;
97
- readonly service_version?: {
98
- readonly type: "string";
99
- readonly description: "Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.";
100
- } | undefined;
101
- readonly name?: {
102
- readonly type: "string";
103
- readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
104
- } | undefined;
105
- readonly ddl_code?: {
106
- readonly type: "string";
107
- readonly description: "Complete DDL source code (for TABLE/STRUCTURE update).";
108
- } | undefined;
109
- readonly implementation_code?: {
110
- readonly type: "string";
111
- readonly description: "Behavior implementation methods source code.";
112
- } | undefined;
113
- readonly test_class_source?: {
114
- readonly type: "string";
115
- readonly description: "ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST update).";
116
- } | undefined;
117
- readonly test_class_code?: {
118
- readonly type: "string";
119
- readonly description: "Updated source for the local test class.";
120
- } | undefined;
121
- readonly local_types_code?: {
122
- readonly type: "string";
123
- readonly description: "Updated source for class local types.";
124
- } | undefined;
125
- readonly definitions_code?: {
126
- readonly type: "string";
127
- readonly description: "Updated source for class local definitions.";
128
- } | undefined;
129
- readonly macros_code?: {
130
- readonly type: "string";
131
- readonly description: "Updated source for class local macros.";
132
- } | undefined;
133
- readonly binding_variant?: {
134
- readonly type: "string";
135
- readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
136
- readonly description: "Service binding variant (service binding update).";
137
- } | undefined;
138
- readonly desired_publication_state?: {
139
- readonly type: "string";
140
- readonly enum: readonly ["published", "unpublished"];
141
- readonly description: "Target publication state (service binding update).";
142
- } | undefined;
143
- };
144
- readonly required: readonly ["object_type", "lock_handle"];
145
- };
5
+ readonly inputSchema: z.ZodObject<{
6
+ object_type: z.ZodType<"CLASS" | "PROGRAM" | "INCLUDE" | "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", unknown, z.core.$ZodTypeInternals<"CLASS" | "PROGRAM" | "INCLUDE" | "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", unknown>>;
7
+ lock_handle: z.ZodString;
8
+ transport_request: z.ZodOptional<z.ZodString>;
9
+ class_name: z.ZodOptional<z.ZodString>;
10
+ program_name: z.ZodOptional<z.ZodString>;
11
+ domain_name: z.ZodOptional<z.ZodString>;
12
+ function_module_name: z.ZodOptional<z.ZodString>;
13
+ function_group_name: z.ZodOptional<z.ZodString>;
14
+ package_name: z.ZodOptional<z.ZodString>;
15
+ ddl_name: z.ZodOptional<z.ZodString>;
16
+ source_code: z.ZodOptional<z.ZodString>;
17
+ part: z.ZodOptional<z.ZodEnum<{
18
+ source: "source";
19
+ metadata: "metadata";
20
+ }>>;
21
+ ddl_source: z.ZodOptional<z.ZodString>;
22
+ table_name: z.ZodOptional<z.ZodString>;
23
+ structure_name: z.ZodOptional<z.ZodString>;
24
+ data_element_name: z.ZodOptional<z.ZodString>;
25
+ interface_name: z.ZodOptional<z.ZodString>;
26
+ include_name: z.ZodOptional<z.ZodString>;
27
+ table_type_name: z.ZodOptional<z.ZodString>;
28
+ service_definition_name: z.ZodOptional<z.ZodString>;
29
+ service_binding_name: z.ZodOptional<z.ZodString>;
30
+ service_name: z.ZodOptional<z.ZodString>;
31
+ service_version: z.ZodOptional<z.ZodString>;
32
+ name: z.ZodOptional<z.ZodString>;
33
+ ddl_code: z.ZodOptional<z.ZodString>;
34
+ implementation_code: z.ZodOptional<z.ZodString>;
35
+ test_class_source: z.ZodOptional<z.ZodString>;
36
+ test_class_code: z.ZodOptional<z.ZodString>;
37
+ local_types_code: z.ZodOptional<z.ZodString>;
38
+ definitions_code: z.ZodOptional<z.ZodString>;
39
+ macros_code: z.ZodOptional<z.ZodString>;
40
+ binding_variant: z.ZodOptional<z.ZodEnum<{
41
+ ODATA_V2_UI: "ODATA_V2_UI";
42
+ ODATA_V2_WEB_API: "ODATA_V2_WEB_API";
43
+ ODATA_V4_UI: "ODATA_V4_UI";
44
+ ODATA_V4_WEB_API: "ODATA_V4_WEB_API";
45
+ }>>;
46
+ desired_publication_state: z.ZodOptional<z.ZodEnum<{
47
+ published: "published";
48
+ unpublished: "unpublished";
49
+ }>>;
50
+ }, z.core.$strip>;
146
51
  readonly variants: {
147
- readonly onprem: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
148
- readonly type: "object";
149
- readonly properties: {
150
- readonly object_type: {
151
- readonly type: "string";
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"];
153
- readonly description: string;
154
- };
155
- readonly lock_handle: {
156
- readonly type: "string";
157
- readonly description: "The lock handle of the object (for a class include, of the class): the write is sent under it.";
158
- };
159
- readonly transport_request: {
160
- readonly type: "string";
161
- readonly description: "Transport request id, sent as the write's corrNr (the types whose description names it).";
162
- };
163
- readonly class_name?: {
164
- readonly type: "string";
165
- readonly description: "ABAP class name.";
166
- } | undefined;
167
- readonly program_name?: {
168
- readonly type: "string";
169
- readonly description: "ABAP program name.";
170
- } | undefined;
171
- readonly domain_name?: {
172
- readonly type: "string";
173
- readonly description: "ABAP domain name.";
174
- } | undefined;
175
- readonly function_module_name?: {
176
- readonly type: "string";
177
- readonly description: "ABAP function module name.";
178
- } | undefined;
179
- readonly function_group_name?: {
180
- readonly type: "string";
181
- readonly description: "ABAP function group name.";
182
- } | undefined;
183
- readonly package_name?: {
184
- readonly type: "string";
185
- readonly description: "ABAP package name.";
186
- } | undefined;
187
- readonly ddl_name?: {
188
- readonly type: "string";
189
- readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
190
- } | undefined;
191
- readonly source_code?: {
192
- readonly type: "string";
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?: {
201
- readonly type: "string";
202
- readonly description: "Complete DDL source code (for DDL update).";
203
- } | undefined;
204
- readonly table_name?: {
205
- readonly type: "string";
206
- readonly description: "Table name.";
207
- } | undefined;
208
- readonly structure_name?: {
209
- readonly type: "string";
210
- readonly description: "Structure name.";
211
- } | undefined;
212
- readonly data_element_name?: {
213
- readonly type: "string";
214
- readonly description: "Data element name.";
215
- } | undefined;
216
- readonly interface_name?: {
217
- readonly type: "string";
218
- readonly description: "Interface 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?: {
229
- readonly type: "string";
230
- readonly description: "Service definition name.";
231
- } | undefined;
232
- readonly service_binding_name?: {
233
- readonly type: "string";
234
- readonly description: "Service binding name.";
235
- } | undefined;
236
- readonly service_name?: {
237
- readonly type: "string";
238
- readonly description: "Published service name (SERVICE_BINDING, an OData V2 binding).";
239
- } | undefined;
240
- readonly service_version?: {
241
- readonly type: "string";
242
- readonly description: "Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.";
243
- } | undefined;
244
- readonly name?: {
245
- readonly type: "string";
246
- readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
247
- } | undefined;
248
- readonly ddl_code?: {
249
- readonly type: "string";
250
- readonly description: "Complete DDL source code (for TABLE/STRUCTURE update).";
251
- } | undefined;
252
- readonly implementation_code?: {
253
- readonly type: "string";
254
- readonly description: "Behavior implementation methods source code.";
255
- } | undefined;
256
- readonly test_class_source?: {
257
- readonly type: "string";
258
- readonly description: "ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST update).";
259
- } | undefined;
260
- readonly test_class_code?: {
261
- readonly type: "string";
262
- readonly description: "Updated source for the local test class.";
263
- } | undefined;
264
- readonly local_types_code?: {
265
- readonly type: "string";
266
- readonly description: "Updated source for class local types.";
267
- } | undefined;
268
- readonly definitions_code?: {
269
- readonly type: "string";
270
- readonly description: "Updated source for class local definitions.";
271
- } | undefined;
272
- readonly macros_code?: {
273
- readonly type: "string";
274
- readonly description: "Updated source for class local macros.";
275
- } | undefined;
276
- readonly binding_variant?: {
277
- readonly type: "string";
278
- readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
279
- readonly description: "Service binding variant (service binding update).";
280
- } | undefined;
281
- readonly desired_publication_state?: {
282
- readonly type: "string";
283
- readonly enum: readonly ["published", "unpublished"];
284
- readonly description: "Target publication state (service binding update).";
285
- } | undefined;
286
- };
287
- readonly required: readonly ["object_type", "lock_handle"];
288
- }>;
289
- readonly cloud: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
290
- readonly type: "object";
291
- readonly properties: {
292
- readonly object_type: {
293
- readonly type: "string";
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"];
295
- readonly description: string;
296
- };
297
- readonly lock_handle: {
298
- readonly type: "string";
299
- readonly description: "The lock handle of the object (for a class include, of the class): the write is sent under it.";
300
- };
301
- readonly transport_request: {
302
- readonly type: "string";
303
- readonly description: "Transport request id, sent as the write's corrNr (the types whose description names it).";
304
- };
305
- readonly class_name?: {
306
- readonly type: "string";
307
- readonly description: "ABAP class name.";
308
- } | undefined;
309
- readonly program_name?: {
310
- readonly type: "string";
311
- readonly description: "ABAP program name.";
312
- } | undefined;
313
- readonly domain_name?: {
314
- readonly type: "string";
315
- readonly description: "ABAP domain name.";
316
- } | undefined;
317
- readonly function_module_name?: {
318
- readonly type: "string";
319
- readonly description: "ABAP function module name.";
320
- } | undefined;
321
- readonly function_group_name?: {
322
- readonly type: "string";
323
- readonly description: "ABAP function group name.";
324
- } | undefined;
325
- readonly package_name?: {
326
- readonly type: "string";
327
- readonly description: "ABAP package name.";
328
- } | undefined;
329
- readonly ddl_name?: {
330
- readonly type: "string";
331
- readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
332
- } | undefined;
333
- readonly source_code?: {
334
- readonly type: "string";
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?: {
343
- readonly type: "string";
344
- readonly description: "Complete DDL source code (for DDL update).";
345
- } | undefined;
346
- readonly table_name?: {
347
- readonly type: "string";
348
- readonly description: "Table name.";
349
- } | undefined;
350
- readonly structure_name?: {
351
- readonly type: "string";
352
- readonly description: "Structure name.";
353
- } | undefined;
354
- readonly data_element_name?: {
355
- readonly type: "string";
356
- readonly description: "Data element name.";
357
- } | undefined;
358
- readonly interface_name?: {
359
- readonly type: "string";
360
- readonly description: "Interface 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?: {
371
- readonly type: "string";
372
- readonly description: "Service definition name.";
373
- } | undefined;
374
- readonly service_binding_name?: {
375
- readonly type: "string";
376
- readonly description: "Service binding name.";
377
- } | undefined;
378
- readonly service_name?: {
379
- readonly type: "string";
380
- readonly description: "Published service name (SERVICE_BINDING, an OData V2 binding).";
381
- } | undefined;
382
- readonly service_version?: {
383
- readonly type: "string";
384
- readonly description: "Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.";
385
- } | undefined;
386
- readonly name?: {
387
- readonly type: "string";
388
- readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
389
- } | undefined;
390
- readonly ddl_code?: {
391
- readonly type: "string";
392
- readonly description: "Complete DDL source code (for TABLE/STRUCTURE update).";
393
- } | undefined;
394
- readonly implementation_code?: {
395
- readonly type: "string";
396
- readonly description: "Behavior implementation methods source code.";
397
- } | undefined;
398
- readonly test_class_source?: {
399
- readonly type: "string";
400
- readonly description: "ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST update).";
401
- } | undefined;
402
- readonly test_class_code?: {
403
- readonly type: "string";
404
- readonly description: "Updated source for the local test class.";
405
- } | undefined;
406
- readonly local_types_code?: {
407
- readonly type: "string";
408
- readonly description: "Updated source for class local types.";
409
- } | undefined;
410
- readonly definitions_code?: {
411
- readonly type: "string";
412
- readonly description: "Updated source for class local definitions.";
413
- } | undefined;
414
- readonly macros_code?: {
415
- readonly type: "string";
416
- readonly description: "Updated source for class local macros.";
417
- } | undefined;
418
- readonly binding_variant?: {
419
- readonly type: "string";
420
- readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
421
- readonly description: "Service binding variant (service binding update).";
422
- } | undefined;
423
- readonly desired_publication_state?: {
424
- readonly type: "string";
425
- readonly enum: readonly ["published", "unpublished"];
426
- readonly description: "Target publication state (service binding update).";
427
- } | undefined;
428
- };
429
- readonly required: readonly ["object_type", "lock_handle"];
430
- }>;
52
+ readonly onprem: import("../../../dist/lib/variantDefinition").StatedOnVariant<z.ZodObject<{
53
+ object_type: z.ZodType<"CLASS" | "PROGRAM" | "INCLUDE" | "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", unknown, z.core.$ZodTypeInternals<"CLASS" | "PROGRAM" | "INCLUDE" | "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", unknown>>;
54
+ lock_handle: z.ZodString;
55
+ transport_request: z.ZodOptional<z.ZodString>;
56
+ class_name: z.ZodOptional<z.ZodString>;
57
+ program_name: z.ZodOptional<z.ZodString>;
58
+ domain_name: z.ZodOptional<z.ZodString>;
59
+ function_module_name: z.ZodOptional<z.ZodString>;
60
+ function_group_name: z.ZodOptional<z.ZodString>;
61
+ package_name: z.ZodOptional<z.ZodString>;
62
+ ddl_name: z.ZodOptional<z.ZodString>;
63
+ source_code: z.ZodOptional<z.ZodString>;
64
+ part: z.ZodOptional<z.ZodEnum<{
65
+ source: "source";
66
+ metadata: "metadata";
67
+ }>>;
68
+ ddl_source: z.ZodOptional<z.ZodString>;
69
+ table_name: z.ZodOptional<z.ZodString>;
70
+ structure_name: z.ZodOptional<z.ZodString>;
71
+ data_element_name: z.ZodOptional<z.ZodString>;
72
+ interface_name: z.ZodOptional<z.ZodString>;
73
+ include_name: z.ZodOptional<z.ZodString>;
74
+ table_type_name: z.ZodOptional<z.ZodString>;
75
+ service_definition_name: z.ZodOptional<z.ZodString>;
76
+ service_binding_name: z.ZodOptional<z.ZodString>;
77
+ service_name: z.ZodOptional<z.ZodString>;
78
+ service_version: z.ZodOptional<z.ZodString>;
79
+ name: z.ZodOptional<z.ZodString>;
80
+ ddl_code: z.ZodOptional<z.ZodString>;
81
+ implementation_code: z.ZodOptional<z.ZodString>;
82
+ test_class_source: z.ZodOptional<z.ZodString>;
83
+ test_class_code: z.ZodOptional<z.ZodString>;
84
+ local_types_code: z.ZodOptional<z.ZodString>;
85
+ definitions_code: z.ZodOptional<z.ZodString>;
86
+ macros_code: z.ZodOptional<z.ZodString>;
87
+ binding_variant: z.ZodOptional<z.ZodEnum<{
88
+ ODATA_V2_UI: "ODATA_V2_UI";
89
+ ODATA_V2_WEB_API: "ODATA_V2_WEB_API";
90
+ ODATA_V4_UI: "ODATA_V4_UI";
91
+ ODATA_V4_WEB_API: "ODATA_V4_WEB_API";
92
+ }>>;
93
+ desired_publication_state: z.ZodOptional<z.ZodEnum<{
94
+ published: "published";
95
+ unpublished: "unpublished";
96
+ }>>;
97
+ }, z.core.$strip>>;
98
+ readonly cloud: import("../../../dist/lib/variantDefinition").StatedOnVariant<z.ZodObject<{
99
+ object_type: z.ZodType<"CLASS" | "PROGRAM" | "INCLUDE" | "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", unknown, z.core.$ZodTypeInternals<"CLASS" | "PROGRAM" | "INCLUDE" | "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", unknown>>;
100
+ lock_handle: z.ZodString;
101
+ transport_request: z.ZodOptional<z.ZodString>;
102
+ class_name: z.ZodOptional<z.ZodString>;
103
+ program_name: z.ZodOptional<z.ZodString>;
104
+ domain_name: z.ZodOptional<z.ZodString>;
105
+ function_module_name: z.ZodOptional<z.ZodString>;
106
+ function_group_name: z.ZodOptional<z.ZodString>;
107
+ package_name: z.ZodOptional<z.ZodString>;
108
+ ddl_name: z.ZodOptional<z.ZodString>;
109
+ source_code: z.ZodOptional<z.ZodString>;
110
+ part: z.ZodOptional<z.ZodEnum<{
111
+ source: "source";
112
+ metadata: "metadata";
113
+ }>>;
114
+ ddl_source: z.ZodOptional<z.ZodString>;
115
+ table_name: z.ZodOptional<z.ZodString>;
116
+ structure_name: z.ZodOptional<z.ZodString>;
117
+ data_element_name: z.ZodOptional<z.ZodString>;
118
+ interface_name: z.ZodOptional<z.ZodString>;
119
+ include_name: z.ZodOptional<z.ZodString>;
120
+ table_type_name: z.ZodOptional<z.ZodString>;
121
+ service_definition_name: z.ZodOptional<z.ZodString>;
122
+ service_binding_name: z.ZodOptional<z.ZodString>;
123
+ service_name: z.ZodOptional<z.ZodString>;
124
+ service_version: z.ZodOptional<z.ZodString>;
125
+ name: z.ZodOptional<z.ZodString>;
126
+ ddl_code: z.ZodOptional<z.ZodString>;
127
+ implementation_code: z.ZodOptional<z.ZodString>;
128
+ test_class_source: z.ZodOptional<z.ZodString>;
129
+ test_class_code: z.ZodOptional<z.ZodString>;
130
+ local_types_code: z.ZodOptional<z.ZodString>;
131
+ definitions_code: z.ZodOptional<z.ZodString>;
132
+ macros_code: z.ZodOptional<z.ZodString>;
133
+ binding_variant: z.ZodOptional<z.ZodEnum<{
134
+ ODATA_V2_UI: "ODATA_V2_UI";
135
+ ODATA_V2_WEB_API: "ODATA_V2_WEB_API";
136
+ ODATA_V4_UI: "ODATA_V4_UI";
137
+ ODATA_V4_WEB_API: "ODATA_V4_WEB_API";
138
+ }>>;
139
+ desired_publication_state: z.ZodOptional<z.ZodEnum<{
140
+ published: "published";
141
+ unpublished: "unpublished";
142
+ }>>;
143
+ }, z.core.$strip>>;
431
144
  };
432
145
  readonly name: "HandlerUpdate";
433
146
  readonly available_in: readonly ["onprem", "cloud"];
434
147
  };
435
- type HandlerUpdateArgs = {
436
- object_type: string;
437
- } & Record<string, unknown>;
148
+ type HandlerUpdateArgs = z.output<typeof TOOL_DEFINITION.inputSchema>;
438
149
  /** One request: the type's write under `lock_handle` (`handleUpdateUnderLock`, spec §4.6). */
439
- export declare function handleHandlerUpdate(context: HandlerContext, args: HandlerUpdateArgs): Promise<unknown>;
150
+ export declare function handleHandlerUpdate(context: HandlerContext, args: HandlerUpdateArgs): Promise<import("../../../dist/lib/auth").FailureAnswer | import("@mcp-abap-adt/lib/handlers").ToolResultLike>;
440
151
  export {};
441
152
  //# sourceMappingURL=handleHandlerUpdate.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,OAAO,CAAC,CAAC,EAAE,CACjG,CACF,CAAC;IACJ,CAAC;IACD,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;AAChF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ToolArgs } from '@mcp-abap-adt/lib/handlers';
2
+ /** `HandlerUnlock`: its handle, except a service binding's empty one (nothing to unlock). */
3
+ export declare function unlockHeldLockOf(args: ToolArgs): string | undefined;
4
+ /** `HandlerUpdate`: its handle, except a service binding's empty one (a publication under none). */
5
+ export declare function updateHeldLockOf(args: ToolArgs): string | undefined;
6
+ /** `HandlerDelete`: an emptied include's handle; every other type deletes under none. */
7
+ export declare function deleteHeldLockOf(args: ToolArgs): string | undefined;
8
+ //# sourceMappingURL=heldLockOf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heldLockOf.d.ts","sourceRoot":"","sources":["../../src/handlers/heldLockOf.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAMzE,6FAA6F;AAC7F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAQnE;AAED,oGAAoG;AACpG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAKnE;AAED,yFAAyF;AACzF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAMnE"}