node-autotask 0.42.0 → 0.44.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 (53) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/MCP_TOOL_CATALOG.json +27 -8
  3. package/MCP_TOOL_MANIFEST.md +138 -137
  4. package/N8N_MCP_MANIFEST.json +17 -17
  5. package/N8N_MCP_MANIFEST.md +18 -18
  6. package/README.md +6 -19
  7. package/capabilities.json +1825 -1442
  8. package/dist/{base-CVx2VMSj.d.cts → base-CftidiyZ.d.cts} +2 -1
  9. package/dist/{base-CVx2VMSj.d.ts → base-CftidiyZ.d.ts} +2 -1
  10. package/dist/capabilities.cjs +2 -2
  11. package/dist/capabilities.d.cts +2 -1
  12. package/dist/capabilities.d.ts +2 -1
  13. package/dist/capabilities.js +1 -1
  14. package/dist/{chunk-HD5BRA3Z.cjs → chunk-6WLGHKIU.cjs} +286 -286
  15. package/dist/{chunk-TTPHVFPJ.js → chunk-7MCKJTSA.js} +3 -3
  16. package/dist/{chunk-5VHSLJMR.js → chunk-A6LHCJQP.js} +30 -9
  17. package/dist/{chunk-ZR24JGW2.js → chunk-BKTOMNT2.js} +2 -2
  18. package/dist/{chunk-SEFJJY4J.cjs → chunk-EMYDC5SG.cjs} +151 -120
  19. package/dist/{chunk-MYL34QU5.cjs → chunk-KWQSGWY5.cjs} +143 -143
  20. package/dist/{chunk-AETFO6BO.js → chunk-LYI5FRPX.js} +55 -24
  21. package/dist/{chunk-WP33PQVM.js → chunk-N6IWPGHB.js} +1824 -1441
  22. package/dist/{chunk-VEOSOIU4.cjs → chunk-PH3ESYAF.cjs} +1824 -1441
  23. package/dist/{chunk-MJTKK3QG.cjs → chunk-SN4BMQ2N.cjs} +31 -10
  24. package/dist/{index-Cm_Xpt7X.d.cts → index-D8FtzUGP.d.ts} +54 -41
  25. package/dist/{index-C3KFMnRT.d.cts → index-DgBA1JMH.d.cts} +131 -130
  26. package/dist/{index-C3KFMnRT.d.ts → index-DgBA1JMH.d.ts} +131 -130
  27. package/dist/{index-C7rMJ4IV.d.ts → index-YbEk0awP.d.cts} +54 -41
  28. package/dist/index.cjs +23 -23
  29. package/dist/index.d.cts +8 -7
  30. package/dist/index.d.ts +8 -7
  31. package/dist/index.js +5 -5
  32. package/dist/operations/index.cjs +337 -244
  33. package/dist/operations/index.d.cts +53 -45
  34. package/dist/operations/index.d.ts +53 -45
  35. package/dist/operations/index.js +121 -28
  36. package/dist/pool.cjs +9 -9
  37. package/dist/pool.d.cts +4 -3
  38. package/dist/pool.d.ts +4 -3
  39. package/dist/pool.js +5 -5
  40. package/dist/resources/index.cjs +5 -5
  41. package/dist/resources/index.d.cts +2 -2
  42. package/dist/resources/index.d.ts +2 -2
  43. package/dist/resources/index.js +4 -4
  44. package/dist/types/index.d.cts +1 -1
  45. package/dist/types/index.d.ts +1 -1
  46. package/dist/untrusted.cjs +2 -2
  47. package/dist/untrusted.d.cts +14 -5
  48. package/dist/untrusted.d.ts +14 -5
  49. package/dist/untrusted.js +1 -1
  50. package/docs/API.md +126 -37
  51. package/examples/mcp/schemas.ts +2 -0
  52. package/examples/mcp/tools-read.ts +3 -2
  53. package/package.json +17 -10
@@ -30,10 +30,10 @@ import {
30
30
  unwrapItems,
31
31
  unwrapOperation,
32
32
  vendorId
33
- } from "./chunk-AETFO6BO.js";
33
+ } from "./chunk-LYI5FRPX.js";
34
34
  import {
35
35
  CAPABILITIES
36
- } from "./chunk-WP33PQVM.js";
36
+ } from "./chunk-N6IWPGHB.js";
37
37
 
38
38
  // src/resources/appointments.ts
39
39
  var AppointmentsResource = class extends BaseResource {
@@ -3604,7 +3604,7 @@ var ExpenseItemsResource = class extends BaseResource {
3604
3604
  parentField: "expenseReportID",
3605
3605
  deletable: false,
3606
3606
  udfCapable: true,
3607
- parentPath: "/V1.0/Expenses"
3607
+ parentPath: "/V1.0/ExpenseReports"
3608
3608
  }, pageSize);
3609
3609
  }
3610
3610
  /** Query ExpenseItem records (global; narrow with the expenseReportID filter). */
@@ -30,15 +30,36 @@ function markUntrusted(record, fields) {
30
30
  }
31
31
  return out;
32
32
  }
33
- function deepMarkUntrusted(value, fields) {
34
- if (Array.isArray(value)) return value.map((entry) => deepMarkUntrusted(entry, fields));
35
- if (!isPlainRecord(value)) return value;
36
- const marked = markUntrusted(value, fields);
37
- const out = {};
38
- for (const [key, entry] of Object.entries(marked)) {
39
- out[key] = deepMarkUntrusted(entry, fields);
40
- }
41
- return out;
33
+ function deepMarkUntrusted(value, fields, projector) {
34
+ const fieldSet = new Set(fields);
35
+ const walk = (input, depth, wrap = false, udf = false, target, key) => {
36
+ if (typeof input === "string") {
37
+ if (!wrap) return input;
38
+ return projector !== void 0 && target !== void 0 && key !== void 0 ? projector(input, target, key) : wrapUntrusted(input) ?? input;
39
+ }
40
+ if (!Array.isArray(input) && !isPlainRecord(input)) return input;
41
+ if (depth >= 64) return "[DEPTH]";
42
+ if (Array.isArray(input)) {
43
+ const out2 = new Array(input.length);
44
+ let changed2 = fieldSet.size > 0;
45
+ input.forEach((entry, index) => {
46
+ const projected = walk(entry, depth + 1, wrap, udf && isPlainRecord(entry), out2, index);
47
+ out2[index] = projected;
48
+ if (projected !== entry || projector !== void 0 && wrap && typeof entry === "string") changed2 = true;
49
+ });
50
+ return changed2 ? out2 : input;
51
+ }
52
+ const out = {};
53
+ let changed = fieldSet.size > 0;
54
+ for (const [key2, entry] of Object.entries(input)) {
55
+ const marked = fieldSet.has(key2) || udf && key2 === "value";
56
+ const projected = walk(entry, depth + 1, marked, key2 === "userDefinedFields" && Array.isArray(entry), out, key2);
57
+ if (projected !== entry || projector !== void 0 && marked && typeof entry === "string") changed = true;
58
+ Object.defineProperty(out, key2, { value: projected, enumerable: true, writable: true, configurable: true });
59
+ }
60
+ return changed ? out : input;
61
+ };
62
+ return walk(value, 0);
42
63
  }
43
64
  function stripUntrustedWrapper(value) {
44
65
  if (typeof value !== "string") return value;
@@ -125,7 +125,7 @@ import {
125
125
  VersionInformationResource,
126
126
  VersionResource,
127
127
  ZoneInformationResource
128
- } from "./chunk-TTPHVFPJ.js";
128
+ } from "./chunk-7MCKJTSA.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-AETFO6BO.js";
144
+ } from "./chunk-LYI5FRPX.js";
145
145
 
146
146
  // src/client.ts
147
147
  var AutotaskClient = class {