@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
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unlockHeldLockOf = unlockHeldLockOf;
4
+ exports.updateHeldLockOf = updateHeldLockOf;
5
+ exports.deleteHeldLockOf = deleteHeldLockOf;
6
+ /**
7
+ * The lock handle a compact call would be sent under, read from its
8
+ * arguments as they reach the server (#4): the server refuses a handle its
9
+ * instance does not hold before it takes a connection, so a refused call
10
+ * sends nothing — no logon either. Each function answers what its handler
11
+ * checks with `lockHeldHere`, and `undefined` where the handler sends under
12
+ * no handle (or refuses a missing one in words of its own).
13
+ */
14
+ const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
15
+ /** A non-blank string, trimmed, as the handlers read it. */
16
+ const text = (value) => typeof value === 'string' && value.trim() !== '' ? value.trim() : undefined;
17
+ /** `HandlerUnlock`: its handle, except a service binding's empty one (nothing to unlock). */
18
+ function unlockHeldLockOf(args) {
19
+ const handle = args.lock_handle;
20
+ if (typeof handle !== 'string')
21
+ return undefined;
22
+ const type = typeof args.object_type === 'string'
23
+ ? (0, compact_shared_1.acceptedOf)(args.object_type, ['SERVICE_BINDING'])
24
+ : undefined;
25
+ return type === 'SERVICE_BINDING' && handle === '' ? undefined : handle;
26
+ }
27
+ /** `HandlerUpdate`: its handle, except a service binding's empty one (a publication under none). */
28
+ function updateHeldLockOf(args) {
29
+ if (args.object_type === 'SERVICE_BINDING' && args.lock_handle === '') {
30
+ return undefined;
31
+ }
32
+ return text(args.lock_handle);
33
+ }
34
+ /** `HandlerDelete`: an emptied include's handle; every other type deletes under none. */
35
+ function deleteHeldLockOf(args) {
36
+ const emptied = typeof args.object_type === 'string'
37
+ ? (0, compact_shared_1.acceptedOf)(args.object_type, compact_shared_1.EMPTIED_INCLUDE_TYPES)
38
+ : undefined;
39
+ return emptied === undefined ? undefined : text(args.lock_handle);
40
+ }
41
+ //# sourceMappingURL=heldLockOf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heldLockOf.js","sourceRoot":"","sources":["../../src/handlers/heldLockOf.ts"],"names":[],"mappings":";;AAmBA,4CAQC;AAGD,4CAKC;AAGD,4CAMC;AA5CD;;;;;;;GAOG;AACH,qEAG0C;AAG1C,4DAA4D;AAC5D,MAAM,IAAI,GAAG,CAAC,KAAmB,EAAsB,EAAE,CACvD,OAAO,KAAK,KAAK,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t/compact-modify",
3
- "version": "23.0.2",
3
+ "version": "24.0.0",
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": "^25.0.2"
54
+ "@mcp-abap-adt/interfaces-adt": "^27.4.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@mcp-abap-adt/lib": "^23.0.2"
57
+ "@mcp-abap-adt/lib": "^24.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@mcp-abap-adt/lib": "^23.0.2",
60
+ "@mcp-abap-adt/lib": "^24.0.0",
61
61
  "typescript": "^6.0.2",
62
62
  "@types/node": "^22.20.5"
63
63
  }