node-autotask 0.92.0 → 0.93.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 (40) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/MCP_TOOL_CATALOG.json +255 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +1042 -222
  5. package/dist/capabilities-data.js +1296 -476
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-ATDGRAX2.cjs → chunk-2FM7MRK2.cjs} +32 -30
  9. package/dist/{chunk-ELAU2MT5.js → chunk-3SURRIOQ.js} +4 -2
  10. package/dist/{chunk-2MC3LDZU.js → chunk-DCISF6AG.js} +3 -3
  11. package/dist/{chunk-XAOWO42G.js → chunk-FCQPZAIK.js} +4 -2
  12. package/dist/{chunk-NQNAEA23.js → chunk-HJKI5VVJ.js} +981 -523
  13. package/dist/{chunk-QXJQIZCT.cjs → chunk-SBHQIPCJ.cjs} +3 -3
  14. package/dist/{chunk-JPZ7M7QI.cjs → chunk-X7FGWEZ2.cjs} +202 -200
  15. package/dist/{chunk-H24SV774.cjs → chunk-ZIBH42H3.cjs} +987 -527
  16. package/dist/{index-B9y5IwT1.d.cts → index-Cbos4Wgx.d.cts} +100 -2
  17. package/dist/{index-B9y5IwT1.d.ts → index-Cbos4Wgx.d.ts} +100 -2
  18. package/dist/{index-lWek2NrV.d.cts → index-CnNxnu7M.d.cts} +14 -2
  19. package/dist/{index-U7Lepdm2.d.ts → index-coyFHSSF.d.ts} +14 -2
  20. package/dist/index.cjs +89 -85
  21. package/dist/index.d.cts +8 -4
  22. package/dist/index.d.ts +8 -4
  23. package/dist/index.js +5 -5
  24. package/dist/operations/index.cjs +51 -51
  25. package/dist/operations/index.d.cts +7 -4
  26. package/dist/operations/index.d.ts +7 -4
  27. package/dist/operations/index.js +2 -2
  28. package/dist/pool.cjs +12 -12
  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 +27 -27
  33. package/dist/resources/index.d.cts +2 -2
  34. package/dist/resources/index.d.ts +2 -2
  35. package/dist/resources/index.js +3 -3
  36. package/dist/types/index.d.cts +1 -1
  37. package/dist/types/index.d.ts +1 -1
  38. package/docs/API.md +40 -2
  39. package/examples/mcp-server-http.ts +6 -3
  40. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkQXJQIZCT_cjs = require('./chunk-QXJQIZCT.cjs');
3
+ var chunkSBHQIPCJ_cjs = require('./chunk-SBHQIPCJ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
8
8
  enumerable: true,
9
- get: function () { return chunkQXJQIZCT_cjs.CAPABILITY_PLAN_HASHES; }
9
+ get: function () { return chunkSBHQIPCJ_cjs.CAPABILITY_PLAN_HASHES; }
10
10
  });
11
11
  Object.defineProperty(exports, "loadCapabilities", {
12
12
  enumerable: true,
13
- get: function () { return chunkQXJQIZCT_cjs.loadCapabilities; }
13
+ get: function () { return chunkSBHQIPCJ_cjs.loadCapabilities; }
14
14
  });
15
15
  Object.defineProperty(exports, "loadCapabilityRecords", {
16
16
  enumerable: true,
17
- get: function () { return chunkQXJQIZCT_cjs.loadCapabilityRecords; }
17
+ get: function () { return chunkSBHQIPCJ_cjs.loadCapabilityRecords; }
18
18
  });
@@ -1 +1 @@
1
- export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-2MC3LDZU.js';
1
+ export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-DCISF6AG.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkJPZ7M7QI_cjs = require('./chunk-JPZ7M7QI.cjs');
4
- var chunkH24SV774_cjs = require('./chunk-H24SV774.cjs');
3
+ var chunkX7FGWEZ2_cjs = require('./chunk-X7FGWEZ2.cjs');
4
+ var chunkZIBH42H3_cjs = require('./chunk-ZIBH42H3.cjs');
5
5
 
6
6
  // src/client.ts
7
7
  var AutotaskClient = class {
@@ -97,6 +97,7 @@ var AutotaskClient = class {
97
97
  organizationalLevel1s;
98
98
  organizationalLevel2s;
99
99
  organizationalLevelAssociations;
100
+ organizationalResources;
100
101
  phases;
101
102
  products;
102
103
  productVendors;
@@ -114,6 +115,7 @@ var AutotaskClient = class {
114
115
  quotes;
115
116
  quoteTemplates;
116
117
  resourceAttachments;
118
+ resourceDailyAvailabilities;
117
119
  resourceRoleQueues;
118
120
  resourceRoles;
119
121
  resources;
@@ -178,34 +180,34 @@ var AutotaskClient = class {
178
180
  * anything is wired. Construction issues NO request.
179
181
  */
180
182
  constructor(options) {
181
- this.config = chunkH24SV774_cjs.resolveConfig(options);
182
- this.http = new chunkH24SV774_cjs.HttpClient(this.config);
183
+ this.config = chunkZIBH42H3_cjs.resolveConfig(options);
184
+ this.http = new chunkZIBH42H3_cjs.HttpClient(this.config);
183
185
  this.http.client = this;
184
- for (const entry of chunkH24SV774_cjs.SIMPLE_RESOURCES) {
185
- this[entry.accessor] = new chunkH24SV774_cjs.GenericResource(this.http, entry, this.config.pageSize);
186
+ for (const entry of chunkZIBH42H3_cjs.SIMPLE_RESOURCES) {
187
+ this[entry.accessor] = new chunkZIBH42H3_cjs.GenericResource(this.http, entry, this.config.pageSize);
186
188
  }
187
- this.companies = new chunkH24SV774_cjs.CompaniesResource(this.http, this.config.pageSize);
188
- this.configurationItems = new chunkJPZ7M7QI_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
189
- this.contacts = new chunkJPZ7M7QI_cjs.ContactsResource(this.http, this.config.pageSize);
190
- this.contracts = new chunkH24SV774_cjs.ContractsResource(this.http, this.config.pageSize);
191
- this.inventoryProducts = new chunkJPZ7M7QI_cjs.InventoryProductsResource(this.http, this.config.pageSize);
192
- this.invoices = new chunkH24SV774_cjs.InvoicesResource(this.http, this.config.pageSize);
193
- this.quotes = new chunkJPZ7M7QI_cjs.QuotesResource(this.http, this.config.pageSize);
194
- this.resourceTimeOffAdditional = new chunkJPZ7M7QI_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
195
- this.resourceTimeOffBalances = new chunkJPZ7M7QI_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
196
- this.resources = new chunkJPZ7M7QI_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
197
- this.serviceCalls = new chunkJPZ7M7QI_cjs.ServiceCallsResource(this.http, this.config.pageSize);
198
- this.ticketCharges = new chunkJPZ7M7QI_cjs.TicketChargesResource(this.http, this.config.pageSize);
199
- this.tickets = new chunkJPZ7M7QI_cjs.TicketsResource(this.http, this.config.pageSize);
200
- this.timeEntries = new chunkH24SV774_cjs.TimeEntriesResource(this.http, this.config.pageSize);
201
- this.timeOffRequests = new chunkJPZ7M7QI_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
202
- this.authenticateResource = new chunkJPZ7M7QI_cjs.AuthenticateResource(this.http);
203
- this.entityInformation = new chunkJPZ7M7QI_cjs.EntityInformationResource(this.http);
204
- this.modules = new chunkJPZ7M7QI_cjs.ModulesResource(this.http);
205
- this.thresholdInformation = new chunkJPZ7M7QI_cjs.ThresholdInformationResource(this.http);
206
- this.version = new chunkJPZ7M7QI_cjs.VersionResource(this.http);
207
- this.versionInformation = new chunkJPZ7M7QI_cjs.VersionInformationResource(this.http);
208
- this.zoneInformation = new chunkJPZ7M7QI_cjs.ZoneInformationResource(this.http);
189
+ this.companies = new chunkZIBH42H3_cjs.CompaniesResource(this.http, this.config.pageSize);
190
+ this.configurationItems = new chunkX7FGWEZ2_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
191
+ this.contacts = new chunkX7FGWEZ2_cjs.ContactsResource(this.http, this.config.pageSize);
192
+ this.contracts = new chunkZIBH42H3_cjs.ContractsResource(this.http, this.config.pageSize);
193
+ this.inventoryProducts = new chunkX7FGWEZ2_cjs.InventoryProductsResource(this.http, this.config.pageSize);
194
+ this.invoices = new chunkZIBH42H3_cjs.InvoicesResource(this.http, this.config.pageSize);
195
+ this.quotes = new chunkX7FGWEZ2_cjs.QuotesResource(this.http, this.config.pageSize);
196
+ this.resourceTimeOffAdditional = new chunkX7FGWEZ2_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
197
+ this.resourceTimeOffBalances = new chunkX7FGWEZ2_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
198
+ this.resources = new chunkX7FGWEZ2_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
199
+ this.serviceCalls = new chunkX7FGWEZ2_cjs.ServiceCallsResource(this.http, this.config.pageSize);
200
+ this.ticketCharges = new chunkX7FGWEZ2_cjs.TicketChargesResource(this.http, this.config.pageSize);
201
+ this.tickets = new chunkX7FGWEZ2_cjs.TicketsResource(this.http, this.config.pageSize);
202
+ this.timeEntries = new chunkZIBH42H3_cjs.TimeEntriesResource(this.http, this.config.pageSize);
203
+ this.timeOffRequests = new chunkX7FGWEZ2_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
204
+ this.authenticateResource = new chunkX7FGWEZ2_cjs.AuthenticateResource(this.http);
205
+ this.entityInformation = new chunkX7FGWEZ2_cjs.EntityInformationResource(this.http);
206
+ this.modules = new chunkX7FGWEZ2_cjs.ModulesResource(this.http);
207
+ this.thresholdInformation = new chunkX7FGWEZ2_cjs.ThresholdInformationResource(this.http);
208
+ this.version = new chunkX7FGWEZ2_cjs.VersionResource(this.http);
209
+ this.versionInformation = new chunkX7FGWEZ2_cjs.VersionInformationResource(this.http);
210
+ this.zoneInformation = new chunkX7FGWEZ2_cjs.ZoneInformationResource(this.http);
209
211
  }
210
212
  /**
211
213
  * `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
@@ -239,10 +241,10 @@ var AutotaskClient = class {
239
241
  * parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
240
242
  */
241
243
  withSignal(signal, fn) {
242
- return chunkH24SV774_cjs.runWithSignal(signal, fn);
244
+ return chunkZIBH42H3_cjs.runWithSignal(signal, fn);
243
245
  }
244
246
  async batch(fn, items, opts = {}) {
245
- return chunkH24SV774_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
247
+ return chunkZIBH42H3_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
246
248
  }
247
249
  };
248
250
 
@@ -1,5 +1,5 @@
1
- import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-XAOWO42G.js';
2
- import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-NQNAEA23.js';
1
+ import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-FCQPZAIK.js';
2
+ import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-HJKI5VVJ.js';
3
3
 
4
4
  // src/client.ts
5
5
  var AutotaskClient = class {
@@ -95,6 +95,7 @@ var AutotaskClient = class {
95
95
  organizationalLevel1s;
96
96
  organizationalLevel2s;
97
97
  organizationalLevelAssociations;
98
+ organizationalResources;
98
99
  phases;
99
100
  products;
100
101
  productVendors;
@@ -112,6 +113,7 @@ var AutotaskClient = class {
112
113
  quotes;
113
114
  quoteTemplates;
114
115
  resourceAttachments;
116
+ resourceDailyAvailabilities;
115
117
  resourceRoleQueues;
116
118
  resourceRoles;
117
119
  resources;
@@ -1,8 +1,8 @@
1
1
  // src/capabilities.ts
2
2
  var CAPABILITY_PLAN_HASHES = {
3
- "B": "21e75d0f8bf9986b21c6b7996dfb1fec78b3aaa9afa86f50f5351c54c733d4ac",
4
- "A": "21e75d0f8bf9986b21c6b7996dfb1fec78b3aaa9afa86f50f5351c54c733d4ac",
5
- "operations": "21e75d0f8bf9986b21c6b7996dfb1fec78b3aaa9afa86f50f5351c54c733d4ac"
3
+ "B": "51888554f455b96e13c50591342fa516b095065762430b783201ac7a995a0901",
4
+ "A": "51888554f455b96e13c50591342fa516b095065762430b783201ac7a995a0901",
5
+ "operations": "51888554f455b96e13c50591342fa516b095065762430b783201ac7a995a0901"
6
6
  };
7
7
  var cached = null;
8
8
  function loadCapabilities() {
@@ -1,5 +1,5 @@
1
- import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-NQNAEA23.js';
2
- import { loadCapabilityRecords } from './chunk-2MC3LDZU.js';
1
+ import { GenericResource, readTasks, OperationNotSupportedError, rejectInventoryFactsOption, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-HJKI5VVJ.js';
2
+ import { loadCapabilityRecords } from './chunk-DCISF6AG.js';
3
3
 
4
4
  // src/resources/special/configuration_items.ts
5
5
  async function fetchRecord(http, path, label, readOpts) {
@@ -1895,6 +1895,7 @@ var TimeOffRequestsResource = class extends GenericResource {
1895
1895
  }
1896
1896
  async create(a, b, c = {}) {
1897
1897
  if (typeof a !== "number" && typeof a !== "string") throw new OperationNotSupportedError("time_off_requests", "create");
1898
+ rejectInventoryFactsOption(c, "time_off_requests.create");
1898
1899
  const parentId = parseIdentifier(a, "parentId");
1899
1900
  if (typeof parentId !== "number") throw this.writeError("create", "parentId cannot be represented safely in the numeric resourceID create body; this is an SDK create-body limit, not a vendor record-id maximum");
1900
1901
  const data = this.writePayload(b, "create");
@@ -1906,6 +1907,7 @@ var TimeOffRequestsResource = class extends GenericResource {
1906
1907
  }
1907
1908
  async update(a, b, c, d = {}) {
1908
1909
  if (typeof b !== "number" && typeof b !== "string") throw new OperationNotSupportedError("time_off_requests", "update");
1910
+ rejectInventoryFactsOption(d, "time_off_requests.update");
1909
1911
  const parentId = parseIdentifier(a, "parentId");
1910
1912
  const id = parseIdentifier(b, "id");
1911
1913
  const data = this.writePayload(c, "update");