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.
- package/CHANGELOG.md +9 -0
- package/MCP_TOOL_CATALOG.json +255 -9
- package/README.md +1 -1
- package/capabilities.json +1042 -222
- package/dist/capabilities-data.js +1296 -476
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-ATDGRAX2.cjs → chunk-2FM7MRK2.cjs} +32 -30
- package/dist/{chunk-ELAU2MT5.js → chunk-3SURRIOQ.js} +4 -2
- package/dist/{chunk-2MC3LDZU.js → chunk-DCISF6AG.js} +3 -3
- package/dist/{chunk-XAOWO42G.js → chunk-FCQPZAIK.js} +4 -2
- package/dist/{chunk-NQNAEA23.js → chunk-HJKI5VVJ.js} +981 -523
- package/dist/{chunk-QXJQIZCT.cjs → chunk-SBHQIPCJ.cjs} +3 -3
- package/dist/{chunk-JPZ7M7QI.cjs → chunk-X7FGWEZ2.cjs} +202 -200
- package/dist/{chunk-H24SV774.cjs → chunk-ZIBH42H3.cjs} +987 -527
- package/dist/{index-B9y5IwT1.d.cts → index-Cbos4Wgx.d.cts} +100 -2
- package/dist/{index-B9y5IwT1.d.ts → index-Cbos4Wgx.d.ts} +100 -2
- package/dist/{index-lWek2NrV.d.cts → index-CnNxnu7M.d.cts} +14 -2
- package/dist/{index-U7Lepdm2.d.ts → index-coyFHSSF.d.ts} +14 -2
- package/dist/index.cjs +89 -85
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +51 -51
- package/dist/operations/index.d.cts +7 -4
- package/dist/operations/index.d.ts +7 -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 +40 -2
- package/examples/mcp-server-http.ts +6 -3
- package/package.json +1 -1
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
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
|
|
13
|
+
get: function () { return chunkSBHQIPCJ_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSBHQIPCJ_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-DCISF6AG.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
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 =
|
|
182
|
-
this.http = new
|
|
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
|
|
185
|
-
this[entry.accessor] = new
|
|
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
|
|
188
|
-
this.configurationItems = new
|
|
189
|
-
this.contacts = new
|
|
190
|
-
this.contracts = new
|
|
191
|
-
this.inventoryProducts = new
|
|
192
|
-
this.invoices = new
|
|
193
|
-
this.quotes = new
|
|
194
|
-
this.resourceTimeOffAdditional = new
|
|
195
|
-
this.resourceTimeOffBalances = new
|
|
196
|
-
this.resources = new
|
|
197
|
-
this.serviceCalls = new
|
|
198
|
-
this.ticketCharges = new
|
|
199
|
-
this.tickets = new
|
|
200
|
-
this.timeEntries = new
|
|
201
|
-
this.timeOffRequests = new
|
|
202
|
-
this.authenticateResource = new
|
|
203
|
-
this.entityInformation = new
|
|
204
|
-
this.modules = new
|
|
205
|
-
this.thresholdInformation = new
|
|
206
|
-
this.version = new
|
|
207
|
-
this.versionInformation = new
|
|
208
|
-
this.zoneInformation = new
|
|
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
|
|
244
|
+
return chunkZIBH42H3_cjs.runWithSignal(signal, fn);
|
|
243
245
|
}
|
|
244
246
|
async batch(fn, items, opts = {}) {
|
|
245
|
-
return
|
|
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-
|
|
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-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": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
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-
|
|
2
|
-
import { loadCapabilityRecords } from './chunk-
|
|
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");
|