node-autotask 0.91.0 → 0.92.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 +4 -0
- package/MCP_TOOL_CATALOG.json +152 -9
- package/README.md +1 -1
- package/capabilities.json +575 -28
- package/dist/capabilities-data.js +574 -27
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-43ADHLZJ.js → chunk-2MC3LDZU.js} +3 -3
- package/dist/{chunk-YFC5VAKK.cjs → chunk-ATDGRAX2.cjs} +31 -30
- package/dist/{chunk-Y2KXGSWM.js → chunk-ELAU2MT5.js} +3 -2
- package/dist/{chunk-RXXITZH4.cjs → chunk-H24SV774.cjs} +377 -114
- package/dist/{chunk-5PUHGPKG.cjs → chunk-JPZ7M7QI.cjs} +200 -200
- package/dist/{chunk-2GP7W6QB.js → chunk-NQNAEA23.js} +372 -109
- package/dist/{chunk-KRYDLTY3.cjs → chunk-QXJQIZCT.cjs} +3 -3
- package/dist/{chunk-WAHRZDV4.js → chunk-XAOWO42G.js} +2 -2
- package/dist/{index-Dy92Xbpv.d.cts → index-B9y5IwT1.d.cts} +41 -1
- package/dist/{index-Dy92Xbpv.d.ts → index-B9y5IwT1.d.ts} +41 -1
- package/dist/{index-C3jXvpXZ.d.ts → index-U7Lepdm2.d.ts} +8 -5
- package/dist/{index-BfGOllfY.d.cts → index-lWek2NrV.d.cts} +8 -5
- package/dist/index.cjs +85 -85
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +51 -51
- package/dist/operations/index.d.cts +6 -4
- package/dist/operations/index.d.ts +6 -4
- package/dist/operations/index.js +2 -2
- package/dist/pool.cjs +12 -12
- package/dist/pool.d.cts +1 -1
- package/dist/pool.d.ts +1 -1
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +27 -27
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/docs/API.md +3 -2
- package/examples/mcp/manifest.ts +1 -1
- package/examples/mcp/tools-mode.ts +15 -6
- package/examples/mcp/tools-read.ts +8 -2
- package/package.json +1 -1
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQXJQIZCT_cjs = require('./chunk-QXJQIZCT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkQXJQIZCT_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQXJQIZCT_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQXJQIZCT_cjs.loadCapabilityRecords; }
|
|
18
18
|
});
|
package/dist/capabilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-
|
|
1
|
+
export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-2MC3LDZU.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "21e75d0f8bf9986b21c6b7996dfb1fec78b3aaa9afa86f50f5351c54c733d4ac",
|
|
4
|
+
"A": "21e75d0f8bf9986b21c6b7996dfb1fec78b3aaa9afa86f50f5351c54c733d4ac",
|
|
5
|
+
"operations": "21e75d0f8bf9986b21c6b7996dfb1fec78b3aaa9afa86f50f5351c54c733d4ac"
|
|
6
6
|
};
|
|
7
7
|
var cached = null;
|
|
8
8
|
function loadCapabilities() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkJPZ7M7QI_cjs = require('./chunk-JPZ7M7QI.cjs');
|
|
4
|
+
var chunkH24SV774_cjs = require('./chunk-H24SV774.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -82,6 +82,7 @@ var AutotaskClient = class {
|
|
|
82
82
|
holidays;
|
|
83
83
|
holidaySets;
|
|
84
84
|
internalLocations;
|
|
85
|
+
inventoryItems;
|
|
85
86
|
inventoryLocations;
|
|
86
87
|
inventoryProducts;
|
|
87
88
|
invoices;
|
|
@@ -177,34 +178,34 @@ var AutotaskClient = class {
|
|
|
177
178
|
* anything is wired. Construction issues NO request.
|
|
178
179
|
*/
|
|
179
180
|
constructor(options) {
|
|
180
|
-
this.config =
|
|
181
|
-
this.http = new
|
|
181
|
+
this.config = chunkH24SV774_cjs.resolveConfig(options);
|
|
182
|
+
this.http = new chunkH24SV774_cjs.HttpClient(this.config);
|
|
182
183
|
this.http.client = this;
|
|
183
|
-
for (const entry of
|
|
184
|
-
this[entry.accessor] = new
|
|
184
|
+
for (const entry of chunkH24SV774_cjs.SIMPLE_RESOURCES) {
|
|
185
|
+
this[entry.accessor] = new chunkH24SV774_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
185
186
|
}
|
|
186
|
-
this.companies = new
|
|
187
|
-
this.configurationItems = new
|
|
188
|
-
this.contacts = new
|
|
189
|
-
this.contracts = new
|
|
190
|
-
this.inventoryProducts = new
|
|
191
|
-
this.invoices = new
|
|
192
|
-
this.quotes = new
|
|
193
|
-
this.resourceTimeOffAdditional = new
|
|
194
|
-
this.resourceTimeOffBalances = new
|
|
195
|
-
this.resources = new
|
|
196
|
-
this.serviceCalls = new
|
|
197
|
-
this.ticketCharges = new
|
|
198
|
-
this.tickets = new
|
|
199
|
-
this.timeEntries = new
|
|
200
|
-
this.timeOffRequests = new
|
|
201
|
-
this.authenticateResource = new
|
|
202
|
-
this.entityInformation = new
|
|
203
|
-
this.modules = new
|
|
204
|
-
this.thresholdInformation = new
|
|
205
|
-
this.version = new
|
|
206
|
-
this.versionInformation = new
|
|
207
|
-
this.zoneInformation = new
|
|
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);
|
|
208
209
|
}
|
|
209
210
|
/**
|
|
210
211
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -238,10 +239,10 @@ var AutotaskClient = class {
|
|
|
238
239
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
239
240
|
*/
|
|
240
241
|
withSignal(signal, fn) {
|
|
241
|
-
return
|
|
242
|
+
return chunkH24SV774_cjs.runWithSignal(signal, fn);
|
|
242
243
|
}
|
|
243
244
|
async batch(fn, items, opts = {}) {
|
|
244
|
-
return
|
|
245
|
+
return chunkH24SV774_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
245
246
|
}
|
|
246
247
|
};
|
|
247
248
|
|
|
@@ -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-
|
|
2
|
-
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-
|
|
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';
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
var AutotaskClient = class {
|
|
@@ -80,6 +80,7 @@ var AutotaskClient = class {
|
|
|
80
80
|
holidays;
|
|
81
81
|
holidaySets;
|
|
82
82
|
internalLocations;
|
|
83
|
+
inventoryItems;
|
|
83
84
|
inventoryLocations;
|
|
84
85
|
inventoryProducts;
|
|
85
86
|
invoices;
|