node-autotask 0.67.0 → 0.68.1

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 (34) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/MCP_TOOL_CATALOG.json +28 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +107 -8
  5. package/dist/capabilities-data.js +106 -7
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-C7M7PXLW.cjs → chunk-2D2KJOX2.cjs} +173 -173
  9. package/dist/{chunk-4GH73U2I.js → chunk-JCMXQUIC.js} +3 -3
  10. package/dist/{chunk-54L7KKUD.cjs → chunk-KRQONGLD.cjs} +31 -31
  11. package/dist/{chunk-UCPSQ6GN.js → chunk-LOLWHPTJ.js} +2 -2
  12. package/dist/{chunk-EXLJHU5W.js → chunk-S6HEIGGM.js} +2 -2
  13. package/dist/{chunk-7GBOQ7YA.cjs → chunk-SGH7F2CH.cjs} +3 -3
  14. package/dist/{chunk-VO4ABDZA.cjs → chunk-XKIRTR37.cjs} +2628 -2311
  15. package/dist/{chunk-N7WB65IS.js → chunk-YYHCZRUH.js} +2623 -2307
  16. package/dist/{index-CYlKHo5N.d.ts → index-DQ08uOH0.d.ts} +45 -5
  17. package/dist/{index-D_1wP3Je.d.cts → index-mIsdpO5d.d.cts} +45 -5
  18. package/dist/index.cjs +84 -84
  19. package/dist/index.d.cts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +5 -5
  22. package/dist/operations/index.cjs +50 -50
  23. package/dist/operations/index.d.cts +2 -2
  24. package/dist/operations/index.d.ts +2 -2
  25. package/dist/operations/index.js +2 -2
  26. package/dist/pool.cjs +29 -11
  27. package/dist/pool.js +25 -7
  28. package/dist/resources/index.cjs +27 -27
  29. package/dist/resources/index.d.cts +1 -1
  30. package/dist/resources/index.d.ts +1 -1
  31. package/dist/resources/index.js +3 -3
  32. package/docs/API.md +3 -3
  33. package/docs/VENDOR-QUIRKS.md +47 -0
  34. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  // src/capabilities.ts
2
2
  var CAPABILITY_PLAN_HASHES = {
3
- "B": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
4
- "A": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
5
- "operations": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55"
3
+ "B": "04fb614dcdd035a01636e51cf38d8178aeef7c9a1b45faf4af6187875800bd70",
4
+ "A": "04fb614dcdd035a01636e51cf38d8178aeef7c9a1b45faf4af6187875800bd70",
5
+ "operations": "04fb614dcdd035a01636e51cf38d8178aeef7c9a1b45faf4af6187875800bd70"
6
6
  };
7
7
  var cached = null;
8
8
  function loadCapabilities() {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkC7M7PXLW_cjs = require('./chunk-C7M7PXLW.cjs');
4
- var chunkVO4ABDZA_cjs = require('./chunk-VO4ABDZA.cjs');
3
+ var chunk2D2KJOX2_cjs = require('./chunk-2D2KJOX2.cjs');
4
+ var chunkXKIRTR37_cjs = require('./chunk-XKIRTR37.cjs');
5
5
 
6
6
  // src/client.ts
7
7
  var AutotaskClient = class {
@@ -154,34 +154,34 @@ var AutotaskClient = class {
154
154
  * anything is wired. Construction issues NO request.
155
155
  */
156
156
  constructor(options) {
157
- this.config = chunkVO4ABDZA_cjs.resolveConfig(options);
158
- this.http = new chunkVO4ABDZA_cjs.HttpClient(this.config);
157
+ this.config = chunkXKIRTR37_cjs.resolveConfig(options);
158
+ this.http = new chunkXKIRTR37_cjs.HttpClient(this.config);
159
159
  this.http.client = this;
160
- for (const entry of chunkVO4ABDZA_cjs.SIMPLE_RESOURCES) {
161
- this[entry.accessor] = new chunkVO4ABDZA_cjs.GenericResource(this.http, entry, this.config.pageSize);
160
+ for (const entry of chunkXKIRTR37_cjs.SIMPLE_RESOURCES) {
161
+ this[entry.accessor] = new chunkXKIRTR37_cjs.GenericResource(this.http, entry, this.config.pageSize);
162
162
  }
163
- this.companies = new chunkVO4ABDZA_cjs.CompaniesResource(this.http, this.config.pageSize);
164
- this.configurationItems = new chunkC7M7PXLW_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
165
- this.contacts = new chunkC7M7PXLW_cjs.ContactsResource(this.http, this.config.pageSize);
166
- this.contracts = new chunkVO4ABDZA_cjs.ContractsResource(this.http, this.config.pageSize);
167
- this.inventoryProducts = new chunkC7M7PXLW_cjs.InventoryProductsResource(this.http, this.config.pageSize);
168
- this.invoices = new chunkVO4ABDZA_cjs.InvoicesResource(this.http, this.config.pageSize);
169
- this.quotes = new chunkC7M7PXLW_cjs.QuotesResource(this.http, this.config.pageSize);
170
- this.resourceTimeOffAdditional = new chunkC7M7PXLW_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
171
- this.resourceTimeOffBalances = new chunkC7M7PXLW_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
172
- this.resources = new chunkC7M7PXLW_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
173
- this.serviceCalls = new chunkC7M7PXLW_cjs.ServiceCallsResource(this.http, this.config.pageSize);
174
- this.ticketCharges = new chunkC7M7PXLW_cjs.TicketChargesResource(this.http, this.config.pageSize);
175
- this.tickets = new chunkC7M7PXLW_cjs.TicketsResource(this.http, this.config.pageSize);
176
- this.timeEntries = new chunkVO4ABDZA_cjs.TimeEntriesResource(this.http, this.config.pageSize);
177
- this.timeOffRequests = new chunkC7M7PXLW_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
178
- this.authenticateResource = new chunkC7M7PXLW_cjs.AuthenticateResource(this.http);
179
- this.entityInformation = new chunkC7M7PXLW_cjs.EntityInformationResource(this.http);
180
- this.modules = new chunkC7M7PXLW_cjs.ModulesResource(this.http);
181
- this.thresholdInformation = new chunkC7M7PXLW_cjs.ThresholdInformationResource(this.http);
182
- this.version = new chunkC7M7PXLW_cjs.VersionResource(this.http);
183
- this.versionInformation = new chunkC7M7PXLW_cjs.VersionInformationResource(this.http);
184
- this.zoneInformation = new chunkC7M7PXLW_cjs.ZoneInformationResource(this.http);
163
+ this.companies = new chunkXKIRTR37_cjs.CompaniesResource(this.http, this.config.pageSize);
164
+ this.configurationItems = new chunk2D2KJOX2_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
165
+ this.contacts = new chunk2D2KJOX2_cjs.ContactsResource(this.http, this.config.pageSize);
166
+ this.contracts = new chunkXKIRTR37_cjs.ContractsResource(this.http, this.config.pageSize);
167
+ this.inventoryProducts = new chunk2D2KJOX2_cjs.InventoryProductsResource(this.http, this.config.pageSize);
168
+ this.invoices = new chunkXKIRTR37_cjs.InvoicesResource(this.http, this.config.pageSize);
169
+ this.quotes = new chunk2D2KJOX2_cjs.QuotesResource(this.http, this.config.pageSize);
170
+ this.resourceTimeOffAdditional = new chunk2D2KJOX2_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
171
+ this.resourceTimeOffBalances = new chunk2D2KJOX2_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
172
+ this.resources = new chunk2D2KJOX2_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
173
+ this.serviceCalls = new chunk2D2KJOX2_cjs.ServiceCallsResource(this.http, this.config.pageSize);
174
+ this.ticketCharges = new chunk2D2KJOX2_cjs.TicketChargesResource(this.http, this.config.pageSize);
175
+ this.tickets = new chunk2D2KJOX2_cjs.TicketsResource(this.http, this.config.pageSize);
176
+ this.timeEntries = new chunkXKIRTR37_cjs.TimeEntriesResource(this.http, this.config.pageSize);
177
+ this.timeOffRequests = new chunk2D2KJOX2_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
178
+ this.authenticateResource = new chunk2D2KJOX2_cjs.AuthenticateResource(this.http);
179
+ this.entityInformation = new chunk2D2KJOX2_cjs.EntityInformationResource(this.http);
180
+ this.modules = new chunk2D2KJOX2_cjs.ModulesResource(this.http);
181
+ this.thresholdInformation = new chunk2D2KJOX2_cjs.ThresholdInformationResource(this.http);
182
+ this.version = new chunk2D2KJOX2_cjs.VersionResource(this.http);
183
+ this.versionInformation = new chunk2D2KJOX2_cjs.VersionInformationResource(this.http);
184
+ this.zoneInformation = new chunk2D2KJOX2_cjs.ZoneInformationResource(this.http);
185
185
  }
186
186
  /**
187
187
  * `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
@@ -215,12 +215,12 @@ var AutotaskClient = class {
215
215
  * parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
216
216
  */
217
217
  withSignal(signal, fn) {
218
- return chunkVO4ABDZA_cjs.runWithSignal(signal, fn);
218
+ return chunkXKIRTR37_cjs.runWithSignal(signal, fn);
219
219
  }
220
220
  async batch(fn, items, opts = {}) {
221
221
  const concurrency = opts.concurrency ?? this.config.maxConcurrent;
222
222
  if (!Number.isInteger(concurrency) || concurrency <= 0) {
223
- throw new chunkVO4ABDZA_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
223
+ throw new chunkXKIRTR37_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
224
224
  }
225
225
  const { signal, settle } = opts;
226
226
  const results = new Array(items.length);
@@ -235,7 +235,7 @@ var AutotaskClient = class {
235
235
  const i = next++;
236
236
  try {
237
237
  const item = items[i];
238
- const value = await (signal === void 0 ? fn(item) : chunkVO4ABDZA_cjs.runWithSignal(signal, () => fn(item)));
238
+ const value = await (signal === void 0 ? fn(item) : chunkXKIRTR37_cjs.runWithSignal(signal, () => fn(item)));
239
239
  results[i] = settle ? { status: "fulfilled", value } : value;
240
240
  } catch (error) {
241
241
  if (settle) results[i] = { status: "rejected", reason: error };
@@ -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-EXLJHU5W.js';
2
- import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-N7WB65IS.js';
1
+ import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-S6HEIGGM.js';
2
+ import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-YYHCZRUH.js';
3
3
 
4
4
  // src/client.ts
5
5
  var AutotaskClient = class {
@@ -1,5 +1,5 @@
1
- import { GenericResource, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, numericIds, IN_FILTER_CAP, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-N7WB65IS.js';
2
- import { loadCapabilityRecords } from './chunk-4GH73U2I.js';
1
+ import { GenericResource, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, numericIds, IN_FILTER_CAP, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-YYHCZRUH.js';
2
+ import { loadCapabilityRecords } from './chunk-JCMXQUIC.js';
3
3
 
4
4
  // src/resources/special/configuration_items.ts
5
5
  async function fetchRecord(http, path, label, readOpts) {
@@ -2,9 +2,9 @@
2
2
 
3
3
  // src/capabilities.ts
4
4
  var CAPABILITY_PLAN_HASHES = {
5
- "B": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
6
- "A": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
7
- "operations": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55"
5
+ "B": "04fb614dcdd035a01636e51cf38d8178aeef7c9a1b45faf4af6187875800bd70",
6
+ "A": "04fb614dcdd035a01636e51cf38d8178aeef7c9a1b45faf4af6187875800bd70",
7
+ "operations": "04fb614dcdd035a01636e51cf38d8178aeef7c9a1b45faf4af6187875800bd70"
8
8
  };
9
9
  var cached = null;
10
10
  function loadCapabilities() {