node-autotask 0.39.4 → 0.40.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 (44) hide show
  1. package/ARCHITECTURE.md +6 -2
  2. package/CHANGELOG.md +26 -0
  3. package/MCP_TOOL_CATALOG.json +3 -3
  4. package/MCP_TOOL_MANIFEST.md +5 -5
  5. package/N8N_MCP_MANIFEST.json +2 -2
  6. package/N8N_MCP_MANIFEST.md +3 -3
  7. package/README.md +28 -36
  8. package/capabilities.json +1315 -1320
  9. package/dist/base-CVx2VMSj.d.cts +103 -0
  10. package/dist/base-CVx2VMSj.d.ts +103 -0
  11. package/dist/capabilities.cjs +2 -2
  12. package/dist/capabilities.js +1 -1
  13. package/dist/{chunk-H4S4KSXX.cjs → chunk-E5W24BZB.cjs} +143 -143
  14. package/dist/{chunk-DJCRQLQE.cjs → chunk-EUGSF3U4.cjs} +287 -292
  15. package/dist/{chunk-VR6RYXTD.cjs → chunk-EVDVESQM.cjs} +1314 -1319
  16. package/dist/{chunk-SGKGNJEI.cjs → chunk-FEYVLIHD.cjs} +764 -1726
  17. package/dist/{chunk-JBQ55HYG.js → chunk-MTFRSD7P.js} +2 -2
  18. package/dist/{chunk-DBLXPY4B.js → chunk-O32L6GS5.js} +4 -9
  19. package/dist/{chunk-GHRB46YN.js → chunk-VDVBXXJW.js} +566 -1528
  20. package/dist/{chunk-GDSCYY2G.js → chunk-Y6YJYKBZ.js} +1314 -1319
  21. package/dist/{index-DkZVRMeW.d.ts → index-BKp8_P2L.d.cts} +125 -806
  22. package/dist/{index-DkZVRMeW.d.cts → index-BKp8_P2L.d.ts} +125 -806
  23. package/dist/index.cjs +22 -50
  24. package/dist/index.d.cts +103 -102
  25. package/dist/index.d.ts +103 -102
  26. package/dist/index.js +18 -46
  27. package/dist/operations/index.cjs +178 -178
  28. package/dist/operations/index.d.cts +5 -4
  29. package/dist/operations/index.d.ts +5 -4
  30. package/dist/operations/index.js +3 -3
  31. package/dist/pool.cjs +17 -60
  32. package/dist/pool.d.cts +5 -13
  33. package/dist/pool.d.ts +5 -13
  34. package/dist/pool.js +13 -56
  35. package/dist/resources/index.cjs +4 -4
  36. package/dist/resources/index.d.cts +1 -1
  37. package/dist/resources/index.d.ts +1 -1
  38. package/dist/resources/index.js +3 -3
  39. package/dist/types/index.d.cts +1 -1
  40. package/dist/types/index.d.ts +1 -1
  41. package/docs/API.md +130 -319
  42. package/docs/N8N-ADAPTER.md +7 -7
  43. package/examples/mcp-server-http.ts +18 -18
  44. package/package.json +1 -1
@@ -125,7 +125,7 @@ import {
125
125
  VersionInformationResource,
126
126
  VersionResource,
127
127
  ZoneInformationResource
128
- } from "./chunk-DBLXPY4B.js";
128
+ } from "./chunk-O32L6GS5.js";
129
129
  import {
130
130
  AutotaskConfigError,
131
131
  BillingCodesResource,
@@ -141,7 +141,7 @@ import {
141
141
  TimeEntriesResource,
142
142
  resolveConfig,
143
143
  runWithSignal
144
- } from "./chunk-GHRB46YN.js";
144
+ } from "./chunk-VDVBXXJW.js";
145
145
 
146
146
  // src/client.ts
147
147
  var AutotaskClient = class {
@@ -30,10 +30,10 @@ import {
30
30
  unwrapItems,
31
31
  unwrapOperation,
32
32
  vendorId
33
- } from "./chunk-GHRB46YN.js";
33
+ } from "./chunk-VDVBXXJW.js";
34
34
  import {
35
35
  CAPABILITIES
36
- } from "./chunk-GDSCYY2G.js";
36
+ } from "./chunk-Y6YJYKBZ.js";
37
37
 
38
38
  // src/resources/appointments.ts
39
39
  var AppointmentsResource = class extends BaseResource {
@@ -6554,12 +6554,7 @@ var ThresholdInformationResource = class {
6554
6554
  operation: "threshold_information.get",
6555
6555
  // Bypass the tenant 429 cooldown gate so a throttled tenant can still
6556
6556
  // read its own headroom (a 2xx clears the gate; a 429 re-arms it).
6557
- bypassCooldown: true,
6558
- // Bypass the host circuit breaker's REFUSAL so a downed host can
6559
- // still be probed for headroom (issue #26 — the #6 bypass applies);
6560
- // the outcome is still recorded (a 2xx closes toward recovery; a
6561
- // counted failure re-arms).
6562
- bypassCircuitBreaker: true
6557
+ bypassCooldown: true
6563
6558
  });
6564
6559
  }
6565
6560
  };
@@ -8058,7 +8053,7 @@ async function guardTargetStatus(resource, http, targetStatus) {
8058
8053
  if (!isAutotaskError(err) || err.code === "ABORTED") throw err;
8059
8054
  }
8060
8055
  if (liveStatus !== null && !liveStatus.has(targetStatus)) {
8061
- http.fieldCache?.invalidate("tickets");
8056
+ http.fieldCache?.invalidate("tickets:");
8062
8057
  let freshStatus = null;
8063
8058
  let reReadFailed = false;
8064
8059
  try {