node-autotask 0.74.0 → 0.76.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 +12 -0
- package/MCP_TOOL_CATALOG.json +265 -9
- package/README.md +1 -1
- package/capabilities.json +1219 -217
- package/dist/capabilities-data.js +1449 -447
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-HJKY7LUL.js → chunk-3SFIKG2R.js} +575 -215
- package/dist/{chunk-DSQJTGXK.cjs → chunk-55BQEFBO.cjs} +32 -30
- package/dist/{chunk-ASL3BIW2.cjs → chunk-C4S3EKIK.cjs} +3 -3
- package/dist/{chunk-IWTTCBCS.js → chunk-ECSE6B3U.js} +3 -3
- package/dist/{chunk-IFE5FWS7.js → chunk-S7QPD6TR.js} +2 -2
- package/dist/{chunk-PGSDJS52.js → chunk-UFK7JYYC.js} +4 -2
- package/dist/{chunk-AMB54GOO.cjs → chunk-Y4BH5N6R.cjs} +580 -220
- package/dist/{chunk-QZY5LAOG.cjs → chunk-YRTOAPWD.cjs} +199 -199
- package/dist/{index-CH65Ftmy.d.cts → index-BbAzrm2i.d.cts} +95 -1
- package/dist/{index-CH65Ftmy.d.ts → index-BbAzrm2i.d.ts} +95 -1
- package/dist/{index-ColCzIyw.d.ts → index-CY7exGOe.d.ts} +7 -8
- package/dist/{index-CkBDlaSS.d.cts → index-MY7qYY5d.d.cts} +7 -8
- package/dist/index.cjs +84 -84
- 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 +4 -4
- package/dist/operations/index.d.ts +4 -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 +4 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkYRTOAPWD_cjs = require('./chunk-YRTOAPWD.cjs');
|
|
4
|
+
var chunkY4BH5N6R_cjs = require('./chunk-Y4BH5N6R.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -123,6 +123,8 @@ var AutotaskClient = class {
|
|
|
123
123
|
tagAliases;
|
|
124
124
|
tagGroups;
|
|
125
125
|
tags;
|
|
126
|
+
taskAttachments;
|
|
127
|
+
taskNoteAttachments;
|
|
126
128
|
taskNotes;
|
|
127
129
|
taskPredecessors;
|
|
128
130
|
tasks;
|
|
@@ -159,34 +161,34 @@ var AutotaskClient = class {
|
|
|
159
161
|
* anything is wired. Construction issues NO request.
|
|
160
162
|
*/
|
|
161
163
|
constructor(options) {
|
|
162
|
-
this.config =
|
|
163
|
-
this.http = new
|
|
164
|
+
this.config = chunkY4BH5N6R_cjs.resolveConfig(options);
|
|
165
|
+
this.http = new chunkY4BH5N6R_cjs.HttpClient(this.config);
|
|
164
166
|
this.http.client = this;
|
|
165
|
-
for (const entry of
|
|
166
|
-
this[entry.accessor] = new
|
|
167
|
+
for (const entry of chunkY4BH5N6R_cjs.SIMPLE_RESOURCES) {
|
|
168
|
+
this[entry.accessor] = new chunkY4BH5N6R_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
167
169
|
}
|
|
168
|
-
this.companies = new
|
|
169
|
-
this.configurationItems = new
|
|
170
|
-
this.contacts = new
|
|
171
|
-
this.contracts = new
|
|
172
|
-
this.inventoryProducts = new
|
|
173
|
-
this.invoices = new
|
|
174
|
-
this.quotes = new
|
|
175
|
-
this.resourceTimeOffAdditional = new
|
|
176
|
-
this.resourceTimeOffBalances = new
|
|
177
|
-
this.resources = new
|
|
178
|
-
this.serviceCalls = new
|
|
179
|
-
this.ticketCharges = new
|
|
180
|
-
this.tickets = new
|
|
181
|
-
this.timeEntries = new
|
|
182
|
-
this.timeOffRequests = new
|
|
183
|
-
this.authenticateResource = new
|
|
184
|
-
this.entityInformation = new
|
|
185
|
-
this.modules = new
|
|
186
|
-
this.thresholdInformation = new
|
|
187
|
-
this.version = new
|
|
188
|
-
this.versionInformation = new
|
|
189
|
-
this.zoneInformation = new
|
|
170
|
+
this.companies = new chunkY4BH5N6R_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
171
|
+
this.configurationItems = new chunkYRTOAPWD_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
172
|
+
this.contacts = new chunkYRTOAPWD_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
173
|
+
this.contracts = new chunkY4BH5N6R_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
174
|
+
this.inventoryProducts = new chunkYRTOAPWD_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
175
|
+
this.invoices = new chunkY4BH5N6R_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
176
|
+
this.quotes = new chunkYRTOAPWD_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.resourceTimeOffAdditional = new chunkYRTOAPWD_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
178
|
+
this.resourceTimeOffBalances = new chunkYRTOAPWD_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
179
|
+
this.resources = new chunkYRTOAPWD_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
180
|
+
this.serviceCalls = new chunkYRTOAPWD_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
181
|
+
this.ticketCharges = new chunkYRTOAPWD_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
182
|
+
this.tickets = new chunkYRTOAPWD_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
183
|
+
this.timeEntries = new chunkY4BH5N6R_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
184
|
+
this.timeOffRequests = new chunkYRTOAPWD_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
185
|
+
this.authenticateResource = new chunkYRTOAPWD_cjs.AuthenticateResource(this.http);
|
|
186
|
+
this.entityInformation = new chunkYRTOAPWD_cjs.EntityInformationResource(this.http);
|
|
187
|
+
this.modules = new chunkYRTOAPWD_cjs.ModulesResource(this.http);
|
|
188
|
+
this.thresholdInformation = new chunkYRTOAPWD_cjs.ThresholdInformationResource(this.http);
|
|
189
|
+
this.version = new chunkYRTOAPWD_cjs.VersionResource(this.http);
|
|
190
|
+
this.versionInformation = new chunkYRTOAPWD_cjs.VersionInformationResource(this.http);
|
|
191
|
+
this.zoneInformation = new chunkYRTOAPWD_cjs.ZoneInformationResource(this.http);
|
|
190
192
|
}
|
|
191
193
|
/**
|
|
192
194
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -220,10 +222,10 @@ var AutotaskClient = class {
|
|
|
220
222
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
221
223
|
*/
|
|
222
224
|
withSignal(signal, fn) {
|
|
223
|
-
return
|
|
225
|
+
return chunkY4BH5N6R_cjs.runWithSignal(signal, fn);
|
|
224
226
|
}
|
|
225
227
|
async batch(fn, items, opts = {}) {
|
|
226
|
-
return
|
|
228
|
+
return chunkY4BH5N6R_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
227
229
|
}
|
|
228
230
|
};
|
|
229
231
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// src/capabilities.ts
|
|
4
4
|
var CAPABILITY_PLAN_HASHES = {
|
|
5
|
-
"B": "
|
|
6
|
-
"A": "
|
|
7
|
-
"operations": "
|
|
5
|
+
"B": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4",
|
|
6
|
+
"A": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4",
|
|
7
|
+
"operations": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4",
|
|
4
|
+
"A": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4",
|
|
5
|
+
"operations": "ad752908bb8c2b868f1df63ba52fd308bd4eaec8e6c9c9182f97504ad79f5ca4"
|
|
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, 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-3SFIKG2R.js';
|
|
2
|
+
import { loadCapabilityRecords } from './chunk-ECSE6B3U.js';
|
|
3
3
|
|
|
4
4
|
// src/resources/special/configuration_items.ts
|
|
5
5
|
async function fetchRecord(http, path, label, readOpts) {
|
|
@@ -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-S7QPD6TR.js';
|
|
2
|
+
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-3SFIKG2R.js';
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
var AutotaskClient = class {
|
|
@@ -121,6 +121,8 @@ var AutotaskClient = class {
|
|
|
121
121
|
tagAliases;
|
|
122
122
|
tagGroups;
|
|
123
123
|
tags;
|
|
124
|
+
taskAttachments;
|
|
125
|
+
taskNoteAttachments;
|
|
124
126
|
taskNotes;
|
|
125
127
|
taskPredecessors;
|
|
126
128
|
tasks;
|