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.
- package/CHANGELOG.md +31 -0
- package/MCP_TOOL_CATALOG.json +27 -8
- package/MCP_TOOL_MANIFEST.md +138 -137
- package/N8N_MCP_MANIFEST.json +17 -17
- package/N8N_MCP_MANIFEST.md +18 -18
- package/README.md +6 -19
- package/capabilities.json +1825 -1442
- package/dist/{base-CVx2VMSj.d.cts → base-CftidiyZ.d.cts} +2 -1
- package/dist/{base-CVx2VMSj.d.ts → base-CftidiyZ.d.ts} +2 -1
- package/dist/capabilities.cjs +2 -2
- package/dist/capabilities.d.cts +2 -1
- package/dist/capabilities.d.ts +2 -1
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-HD5BRA3Z.cjs → chunk-6WLGHKIU.cjs} +286 -286
- package/dist/{chunk-TTPHVFPJ.js → chunk-7MCKJTSA.js} +3 -3
- package/dist/{chunk-5VHSLJMR.js → chunk-A6LHCJQP.js} +30 -9
- package/dist/{chunk-ZR24JGW2.js → chunk-BKTOMNT2.js} +2 -2
- package/dist/{chunk-SEFJJY4J.cjs → chunk-EMYDC5SG.cjs} +151 -120
- package/dist/{chunk-MYL34QU5.cjs → chunk-KWQSGWY5.cjs} +143 -143
- package/dist/{chunk-AETFO6BO.js → chunk-LYI5FRPX.js} +55 -24
- package/dist/{chunk-WP33PQVM.js → chunk-N6IWPGHB.js} +1824 -1441
- package/dist/{chunk-VEOSOIU4.cjs → chunk-PH3ESYAF.cjs} +1824 -1441
- package/dist/{chunk-MJTKK3QG.cjs → chunk-SN4BMQ2N.cjs} +31 -10
- package/dist/{index-Cm_Xpt7X.d.cts → index-D8FtzUGP.d.ts} +54 -41
- package/dist/{index-C3KFMnRT.d.cts → index-DgBA1JMH.d.cts} +131 -130
- package/dist/{index-C3KFMnRT.d.ts → index-DgBA1JMH.d.ts} +131 -130
- package/dist/{index-C7rMJ4IV.d.ts → index-YbEk0awP.d.cts} +54 -41
- package/dist/index.cjs +23 -23
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +337 -244
- package/dist/operations/index.d.cts +53 -45
- package/dist/operations/index.d.ts +53 -45
- package/dist/operations/index.js +121 -28
- package/dist/pool.cjs +9 -9
- package/dist/pool.d.cts +4 -3
- package/dist/pool.d.ts +4 -3
- package/dist/pool.js +5 -5
- package/dist/resources/index.cjs +5 -5
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +4 -4
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/untrusted.cjs +2 -2
- package/dist/untrusted.d.cts +14 -5
- package/dist/untrusted.d.ts +14 -5
- package/dist/untrusted.js +1 -1
- package/docs/API.md +126 -37
- package/examples/mcp/schemas.ts +2 -0
- package/examples/mcp/tools-read.ts +3 -2
- package/package.json +17 -10
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
unwrapItems,
|
|
31
31
|
unwrapOperation,
|
|
32
32
|
vendorId
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LYI5FRPX.js";
|
|
34
34
|
import {
|
|
35
35
|
CAPABILITIES
|
|
36
|
-
} from "./chunk-
|
|
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/
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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-
|
|
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-
|
|
144
|
+
} from "./chunk-LYI5FRPX.js";
|
|
145
145
|
|
|
146
146
|
// src/client.ts
|
|
147
147
|
var AutotaskClient = class {
|