node-autotask 0.60.1 → 0.62.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 +30 -0
  2. package/MCP_TOOL_CATALOG.json +298 -9
  3. package/README.md +3 -3
  4. package/capabilities.json +1047 -7
  5. package/dist/capabilities-data.js +1046 -6
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-XYWSPKCN.cjs → chunk-LFEMZVOV.cjs} +33 -31
  9. package/dist/{chunk-2GPQ55O6.js → chunk-O6SYTORL.js} +4 -2
  10. package/dist/{chunk-XP43NERF.cjs → chunk-ODPM4YVG.cjs} +3 -3
  11. package/dist/{chunk-VN3OZHC7.cjs → chunk-QHM6ROAE.cjs} +174 -174
  12. package/dist/{chunk-XUPVX5MQ.js → chunk-S4YR3RLJ.js} +2 -2
  13. package/dist/{chunk-Y2SR6D2D.js → chunk-TGCFJCWN.js} +237 -8
  14. package/dist/{chunk-MYLSBOZI.cjs → chunk-VDYUG6RK.cjs} +242 -13
  15. package/dist/{chunk-K722F7EM.js → chunk-XJNNCMBS.js} +3 -3
  16. package/dist/{index-BmaFIj42.d.cts → index-BXJOPL7w.d.cts} +4 -2
  17. package/dist/{index-cAntv7_A.d.ts → index-C4wZRw9N.d.ts} +4 -2
  18. package/dist/{index-D6bAO4ZV.d.cts → index-COQEG55Q.d.cts} +90 -1
  19. package/dist/{index-D6bAO4ZV.d.ts → index-COQEG55Q.d.ts} +90 -1
  20. package/dist/index.cjs +84 -84
  21. package/dist/index.d.cts +3 -3
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.js +5 -5
  24. package/dist/operations/index.cjs +50 -50
  25. package/dist/operations/index.d.cts +4 -4
  26. package/dist/operations/index.d.ts +4 -4
  27. package/dist/operations/index.js +2 -2
  28. package/dist/pool.cjs +8 -8
  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 +4 -2
  39. package/docs/VENDOR-QUIRKS.md +18 -3
  40. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkXP43NERF_cjs = require('./chunk-XP43NERF.cjs');
3
+ var chunkODPM4YVG_cjs = require('./chunk-ODPM4YVG.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
8
8
  enumerable: true,
9
- get: function () { return chunkXP43NERF_cjs.CAPABILITY_PLAN_HASHES; }
9
+ get: function () { return chunkODPM4YVG_cjs.CAPABILITY_PLAN_HASHES; }
10
10
  });
11
11
  Object.defineProperty(exports, "loadCapabilities", {
12
12
  enumerable: true,
13
- get: function () { return chunkXP43NERF_cjs.loadCapabilities; }
13
+ get: function () { return chunkODPM4YVG_cjs.loadCapabilities; }
14
14
  });
15
15
  Object.defineProperty(exports, "loadCapabilityRecords", {
16
16
  enumerable: true,
17
- get: function () { return chunkXP43NERF_cjs.loadCapabilityRecords; }
17
+ get: function () { return chunkODPM4YVG_cjs.loadCapabilityRecords; }
18
18
  });
@@ -1 +1 @@
1
- export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-K722F7EM.js';
1
+ export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-XJNNCMBS.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkVN3OZHC7_cjs = require('./chunk-VN3OZHC7.cjs');
4
- var chunkMYLSBOZI_cjs = require('./chunk-MYLSBOZI.cjs');
3
+ var chunkQHM6ROAE_cjs = require('./chunk-QHM6ROAE.cjs');
4
+ var chunkVDYUG6RK_cjs = require('./chunk-VDYUG6RK.cjs');
5
5
 
6
6
  // src/client.ts
7
7
  var AutotaskClient = class {
@@ -143,6 +143,8 @@ var AutotaskClient = class {
143
143
  timeEntries;
144
144
  timeEntryAttachments;
145
145
  timeOffRequests;
146
+ userDefinedFieldDefinitions;
147
+ userDefinedFieldListItems;
146
148
  version;
147
149
  versionInformation;
148
150
  zoneInformation;
@@ -152,34 +154,34 @@ var AutotaskClient = class {
152
154
  * anything is wired. Construction issues NO request.
153
155
  */
154
156
  constructor(options) {
155
- this.config = chunkMYLSBOZI_cjs.resolveConfig(options);
156
- this.http = new chunkMYLSBOZI_cjs.HttpClient(this.config);
157
+ this.config = chunkVDYUG6RK_cjs.resolveConfig(options);
158
+ this.http = new chunkVDYUG6RK_cjs.HttpClient(this.config);
157
159
  this.http.client = this;
158
- for (const entry of chunkMYLSBOZI_cjs.SIMPLE_RESOURCES) {
159
- this[entry.accessor] = new chunkMYLSBOZI_cjs.GenericResource(this.http, entry, this.config.pageSize);
160
+ for (const entry of chunkVDYUG6RK_cjs.SIMPLE_RESOURCES) {
161
+ this[entry.accessor] = new chunkVDYUG6RK_cjs.GenericResource(this.http, entry, this.config.pageSize);
160
162
  }
161
- this.companies = new chunkMYLSBOZI_cjs.CompaniesResource(this.http, this.config.pageSize);
162
- this.configurationItems = new chunkVN3OZHC7_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
163
- this.contacts = new chunkVN3OZHC7_cjs.ContactsResource(this.http, this.config.pageSize);
164
- this.contracts = new chunkMYLSBOZI_cjs.ContractsResource(this.http, this.config.pageSize);
165
- this.inventoryProducts = new chunkVN3OZHC7_cjs.InventoryProductsResource(this.http, this.config.pageSize);
166
- this.invoices = new chunkMYLSBOZI_cjs.InvoicesResource(this.http, this.config.pageSize);
167
- this.quotes = new chunkVN3OZHC7_cjs.QuotesResource(this.http, this.config.pageSize);
168
- this.resourceTimeOffAdditional = new chunkVN3OZHC7_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
169
- this.resourceTimeOffBalances = new chunkVN3OZHC7_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
170
- this.resources = new chunkVN3OZHC7_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
171
- this.serviceCalls = new chunkVN3OZHC7_cjs.ServiceCallsResource(this.http, this.config.pageSize);
172
- this.ticketCharges = new chunkVN3OZHC7_cjs.TicketChargesResource(this.http, this.config.pageSize);
173
- this.tickets = new chunkVN3OZHC7_cjs.TicketsResource(this.http, this.config.pageSize);
174
- this.timeEntries = new chunkMYLSBOZI_cjs.TimeEntriesResource(this.http, this.config.pageSize);
175
- this.timeOffRequests = new chunkVN3OZHC7_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
176
- this.authenticateResource = new chunkVN3OZHC7_cjs.AuthenticateResource(this.http);
177
- this.entityInformation = new chunkVN3OZHC7_cjs.EntityInformationResource(this.http);
178
- this.modules = new chunkVN3OZHC7_cjs.ModulesResource(this.http);
179
- this.thresholdInformation = new chunkVN3OZHC7_cjs.ThresholdInformationResource(this.http);
180
- this.version = new chunkVN3OZHC7_cjs.VersionResource(this.http);
181
- this.versionInformation = new chunkVN3OZHC7_cjs.VersionInformationResource(this.http);
182
- this.zoneInformation = new chunkVN3OZHC7_cjs.ZoneInformationResource(this.http);
163
+ this.companies = new chunkVDYUG6RK_cjs.CompaniesResource(this.http, this.config.pageSize);
164
+ this.configurationItems = new chunkQHM6ROAE_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
165
+ this.contacts = new chunkQHM6ROAE_cjs.ContactsResource(this.http, this.config.pageSize);
166
+ this.contracts = new chunkVDYUG6RK_cjs.ContractsResource(this.http, this.config.pageSize);
167
+ this.inventoryProducts = new chunkQHM6ROAE_cjs.InventoryProductsResource(this.http, this.config.pageSize);
168
+ this.invoices = new chunkVDYUG6RK_cjs.InvoicesResource(this.http, this.config.pageSize);
169
+ this.quotes = new chunkQHM6ROAE_cjs.QuotesResource(this.http, this.config.pageSize);
170
+ this.resourceTimeOffAdditional = new chunkQHM6ROAE_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
171
+ this.resourceTimeOffBalances = new chunkQHM6ROAE_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
172
+ this.resources = new chunkQHM6ROAE_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
173
+ this.serviceCalls = new chunkQHM6ROAE_cjs.ServiceCallsResource(this.http, this.config.pageSize);
174
+ this.ticketCharges = new chunkQHM6ROAE_cjs.TicketChargesResource(this.http, this.config.pageSize);
175
+ this.tickets = new chunkQHM6ROAE_cjs.TicketsResource(this.http, this.config.pageSize);
176
+ this.timeEntries = new chunkVDYUG6RK_cjs.TimeEntriesResource(this.http, this.config.pageSize);
177
+ this.timeOffRequests = new chunkQHM6ROAE_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
178
+ this.authenticateResource = new chunkQHM6ROAE_cjs.AuthenticateResource(this.http);
179
+ this.entityInformation = new chunkQHM6ROAE_cjs.EntityInformationResource(this.http);
180
+ this.modules = new chunkQHM6ROAE_cjs.ModulesResource(this.http);
181
+ this.thresholdInformation = new chunkQHM6ROAE_cjs.ThresholdInformationResource(this.http);
182
+ this.version = new chunkQHM6ROAE_cjs.VersionResource(this.http);
183
+ this.versionInformation = new chunkQHM6ROAE_cjs.VersionInformationResource(this.http);
184
+ this.zoneInformation = new chunkQHM6ROAE_cjs.ZoneInformationResource(this.http);
183
185
  }
184
186
  /**
185
187
  * `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
@@ -213,12 +215,12 @@ var AutotaskClient = class {
213
215
  * parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
214
216
  */
215
217
  withSignal(signal, fn) {
216
- return chunkMYLSBOZI_cjs.runWithSignal(signal, fn);
218
+ return chunkVDYUG6RK_cjs.runWithSignal(signal, fn);
217
219
  }
218
220
  async batch(fn, items, opts = {}) {
219
221
  const concurrency = opts.concurrency ?? this.config.maxConcurrent;
220
222
  if (!Number.isInteger(concurrency) || concurrency <= 0) {
221
- throw new chunkMYLSBOZI_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
223
+ throw new chunkVDYUG6RK_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
222
224
  }
223
225
  const { signal, settle } = opts;
224
226
  const results = new Array(items.length);
@@ -233,7 +235,7 @@ var AutotaskClient = class {
233
235
  const i = next++;
234
236
  try {
235
237
  const item = items[i];
236
- const value = await (signal === void 0 ? fn(item) : chunkMYLSBOZI_cjs.runWithSignal(signal, () => fn(item)));
238
+ const value = await (signal === void 0 ? fn(item) : chunkVDYUG6RK_cjs.runWithSignal(signal, () => fn(item)));
237
239
  results[i] = settle ? { status: "fulfilled", value } : value;
238
240
  } catch (error) {
239
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-XUPVX5MQ.js';
2
- import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-Y2SR6D2D.js';
1
+ import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-S4YR3RLJ.js';
2
+ import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-TGCFJCWN.js';
3
3
 
4
4
  // src/client.ts
5
5
  var AutotaskClient = class {
@@ -141,6 +141,8 @@ var AutotaskClient = class {
141
141
  timeEntries;
142
142
  timeEntryAttachments;
143
143
  timeOffRequests;
144
+ userDefinedFieldDefinitions;
145
+ userDefinedFieldListItems;
144
146
  version;
145
147
  versionInformation;
146
148
  zoneInformation;
@@ -2,9 +2,9 @@
2
2
 
3
3
  // src/capabilities.ts
4
4
  var CAPABILITY_PLAN_HASHES = {
5
- "B": "95323eaa92fca1ba1541721c6f34ce671118736aca889ea432156d87a8a8ecd8",
6
- "A": "95323eaa92fca1ba1541721c6f34ce671118736aca889ea432156d87a8a8ecd8",
7
- "operations": "95323eaa92fca1ba1541721c6f34ce671118736aca889ea432156d87a8a8ecd8"
5
+ "B": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
6
+ "A": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
7
+ "operations": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0"
8
8
  };
9
9
  var cached = null;
10
10
  function loadCapabilities() {