node-autotask 0.90.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 +8 -0
- package/MCP_TOOL_CATALOG.json +360 -9
- package/README.md +1 -1
- package/capabilities.json +2022 -655
- package/dist/capabilities-data.js +2021 -654
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-K5X4BPQC.js → chunk-2MC3LDZU.js} +3 -3
- package/dist/{chunk-4CI27SCM.cjs → chunk-ATDGRAX2.cjs} +33 -30
- package/dist/{chunk-HU6OGAPI.js → chunk-ELAU2MT5.js} +5 -2
- package/dist/{chunk-OI6E5XQA.cjs → chunk-H24SV774.cjs} +473 -122
- package/dist/{chunk-D7MJC7HA.cjs → chunk-JPZ7M7QI.cjs} +200 -200
- package/dist/{chunk-CY6USWUY.js → chunk-NQNAEA23.js} +468 -117
- package/dist/{chunk-ZLMYYO7R.cjs → chunk-QXJQIZCT.cjs} +3 -3
- package/dist/{chunk-Q73VQSUP.js → chunk-XAOWO42G.js} +2 -2
- package/dist/{index-4jmitXBs.d.cts → index-B9y5IwT1.d.cts} +115 -1
- package/dist/{index-4jmitXBs.d.ts → index-B9y5IwT1.d.ts} +115 -1
- package/dist/{index-DWyJAad_.d.ts → index-U7Lepdm2.d.ts} +10 -5
- package/dist/{index-BEqbDuMk.d.cts → index-lWek2NrV.d.cts} +10 -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 +5 -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 {
|
|
@@ -81,6 +81,8 @@ var AutotaskClient = class {
|
|
|
81
81
|
expenseReports;
|
|
82
82
|
holidays;
|
|
83
83
|
holidaySets;
|
|
84
|
+
internalLocations;
|
|
85
|
+
inventoryItems;
|
|
84
86
|
inventoryLocations;
|
|
85
87
|
inventoryProducts;
|
|
86
88
|
invoices;
|
|
@@ -129,6 +131,7 @@ var AutotaskClient = class {
|
|
|
129
131
|
serviceCallTickets;
|
|
130
132
|
serviceLevelAgreementResults;
|
|
131
133
|
services;
|
|
134
|
+
shippingTypes;
|
|
132
135
|
skills;
|
|
133
136
|
subscriptionPeriods;
|
|
134
137
|
subscriptions;
|
|
@@ -175,34 +178,34 @@ var AutotaskClient = class {
|
|
|
175
178
|
* anything is wired. Construction issues NO request.
|
|
176
179
|
*/
|
|
177
180
|
constructor(options) {
|
|
178
|
-
this.config =
|
|
179
|
-
this.http = new
|
|
181
|
+
this.config = chunkH24SV774_cjs.resolveConfig(options);
|
|
182
|
+
this.http = new chunkH24SV774_cjs.HttpClient(this.config);
|
|
180
183
|
this.http.client = this;
|
|
181
|
-
for (const entry of
|
|
182
|
-
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);
|
|
183
186
|
}
|
|
184
|
-
this.companies = new
|
|
185
|
-
this.configurationItems = new
|
|
186
|
-
this.contacts = new
|
|
187
|
-
this.contracts = new
|
|
188
|
-
this.inventoryProducts = new
|
|
189
|
-
this.invoices = new
|
|
190
|
-
this.quotes = new
|
|
191
|
-
this.resourceTimeOffAdditional = new
|
|
192
|
-
this.resourceTimeOffBalances = new
|
|
193
|
-
this.resources = new
|
|
194
|
-
this.serviceCalls = new
|
|
195
|
-
this.ticketCharges = new
|
|
196
|
-
this.tickets = new
|
|
197
|
-
this.timeEntries = new
|
|
198
|
-
this.timeOffRequests = new
|
|
199
|
-
this.authenticateResource = new
|
|
200
|
-
this.entityInformation = new
|
|
201
|
-
this.modules = new
|
|
202
|
-
this.thresholdInformation = new
|
|
203
|
-
this.version = new
|
|
204
|
-
this.versionInformation = new
|
|
205
|
-
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);
|
|
206
209
|
}
|
|
207
210
|
/**
|
|
208
211
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -236,10 +239,10 @@ var AutotaskClient = class {
|
|
|
236
239
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
237
240
|
*/
|
|
238
241
|
withSignal(signal, fn) {
|
|
239
|
-
return
|
|
242
|
+
return chunkH24SV774_cjs.runWithSignal(signal, fn);
|
|
240
243
|
}
|
|
241
244
|
async batch(fn, items, opts = {}) {
|
|
242
|
-
return
|
|
245
|
+
return chunkH24SV774_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
243
246
|
}
|
|
244
247
|
};
|
|
245
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 {
|
|
@@ -79,6 +79,8 @@ var AutotaskClient = class {
|
|
|
79
79
|
expenseReports;
|
|
80
80
|
holidays;
|
|
81
81
|
holidaySets;
|
|
82
|
+
internalLocations;
|
|
83
|
+
inventoryItems;
|
|
82
84
|
inventoryLocations;
|
|
83
85
|
inventoryProducts;
|
|
84
86
|
invoices;
|
|
@@ -127,6 +129,7 @@ var AutotaskClient = class {
|
|
|
127
129
|
serviceCallTickets;
|
|
128
130
|
serviceLevelAgreementResults;
|
|
129
131
|
services;
|
|
132
|
+
shippingTypes;
|
|
130
133
|
skills;
|
|
131
134
|
subscriptionPeriods;
|
|
132
135
|
subscriptions;
|