node-autotask 0.32.0 → 0.33.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 (37) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/MCP_TOOL_CATALOG.json +27 -8
  3. package/MCP_TOOL_MANIFEST.md +14 -13
  4. package/N8N_MCP_MANIFEST.json +38 -12
  5. package/N8N_MCP_MANIFEST.md +10 -9
  6. package/README.md +1 -1
  7. package/capabilities.json +1448 -1307
  8. package/dist/capabilities.cjs +2 -2
  9. package/dist/capabilities.js +1 -1
  10. package/dist/{chunk-QCB4LYKD.cjs → chunk-3LAZZT7V.cjs} +143 -143
  11. package/dist/{chunk-IKPFR6K2.cjs → chunk-4QN43TRP.cjs} +73 -48
  12. package/dist/{chunk-FVHPN7ZR.js → chunk-5DS6F6GF.js} +241 -91
  13. package/dist/{chunk-T6EDJRLT.js → chunk-7WNE5MPG.js} +2 -2
  14. package/dist/{chunk-R6HLJCI2.js → chunk-MFDQHFGJ.js} +26 -1
  15. package/dist/{chunk-FTF2FEQ6.cjs → chunk-OO67MRHN.cjs} +765 -615
  16. package/dist/{chunk-DCTHO7CQ.cjs → chunk-SP2SJJZX.cjs} +1447 -1306
  17. package/dist/{chunk-M2EGFPGF.js → chunk-VKE56TTN.js} +1447 -1306
  18. package/dist/{index-Cw4aNNMo.d.ts → index-BaeMHZPk.d.ts} +87 -1
  19. package/dist/{index-OkbCWcef.d.cts → index-Cq0VsfSz.d.cts} +87 -1
  20. package/dist/index.cjs +23 -23
  21. package/dist/index.d.cts +2 -2
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +5 -5
  24. package/dist/operations/index.cjs +120 -133
  25. package/dist/operations/index.d.cts +2 -2
  26. package/dist/operations/index.d.ts +2 -2
  27. package/dist/operations/index.js +3 -16
  28. package/dist/pool.cjs +9 -9
  29. package/dist/pool.d.cts +1 -1
  30. package/dist/pool.d.ts +1 -1
  31. package/dist/pool.js +4 -4
  32. package/dist/resources/index.cjs +4 -4
  33. package/dist/resources/index.d.cts +1 -1
  34. package/dist/resources/index.d.ts +1 -1
  35. package/dist/resources/index.js +3 -3
  36. package/docs/API.md +1 -1
  37. package/package.json +2 -1
@@ -135,13 +135,13 @@ import {
135
135
  VersionInformationResource,
136
136
  VersionResource,
137
137
  ZoneInformationResource
138
- } from "./chunk-FVHPN7ZR.js";
138
+ } from "./chunk-5DS6F6GF.js";
139
139
  import {
140
140
  AutotaskConfigError,
141
141
  HttpClient,
142
142
  resolveConfig,
143
143
  runWithSignal
144
- } from "./chunk-R6HLJCI2.js";
144
+ } from "./chunk-MFDQHFGJ.js";
145
145
 
146
146
  // src/client.ts
147
147
  var AutotaskClient = class {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CAPABILITIES
3
- } from "./chunk-M2EGFPGF.js";
3
+ } from "./chunk-VKE56TTN.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var AUTH_HEADERS = {
@@ -16791,6 +16791,20 @@ var HttpClient = class {
16791
16791
  }
16792
16792
  };
16793
16793
 
16794
+ // src/operations/requiredFields.ts
16795
+ function effectiveRequiredFields(record, zoneFacts) {
16796
+ const prefix = zoneFacts?.createGuidance?.liveProvenPrefix;
16797
+ if (Array.isArray(prefix) && prefix.length > 0) {
16798
+ return { fields: [...prefix], from: "live-proven" };
16799
+ }
16800
+ const zoneSet = zoneFacts?.createRequiredSet;
16801
+ if (Array.isArray(zoneSet) && zoneSet.length > 0) {
16802
+ return { fields: [...zoneSet], from: "zone" };
16803
+ }
16804
+ const spec = record?.requiredFields;
16805
+ return { fields: Array.isArray(spec) ? [...spec] : [], from: "spec" };
16806
+ }
16807
+
16794
16808
  // src/pagination.ts
16795
16809
  var MAX_PAGES = 1e3;
16796
16810
  function clampPageSize(pageSize) {
@@ -20005,6 +20019,16 @@ var MutationBase = class extends MetaBase {
20005
20019
  warnings.push(`parent ${parentId} not found; the vendor would reject the create`);
20006
20020
  }
20007
20021
  }
20022
+ if (isRecord2(data)) {
20023
+ const eff = effectiveRequiredFields(void 0, RELATIONSHIP_MAP[this.config.key]?.zoneFacts ?? null);
20024
+ const missing = eff.fields.filter((f) => f !== this.config.parentField && data[f] === void 0);
20025
+ if (missing.length > 0) {
20026
+ warnings.push(`required field(s) not in the data: ${missing.join(", ")} (${eff.from}); the vendor would likely reject the create`);
20027
+ }
20028
+ }
20029
+ if (this.config.key === "companies") {
20030
+ warnings.push('the vendor auto-creates a "Primary Address" location for a new company (rename it with company_locations.update; it cannot be deleted via the API)');
20031
+ }
20008
20032
  return buildDryRunResult({
20009
20033
  operation: `${this.config.key}.create`,
20010
20034
  method: "POST",
@@ -20400,6 +20424,7 @@ export {
20400
20424
  mergePartialBody,
20401
20425
  blindStampFor,
20402
20426
  decodeFileData,
20427
+ effectiveRequiredFields,
20403
20428
  MAX_PAGES,
20404
20429
  clampPageSize,
20405
20430
  totalPagesFor,