node-autotask 0.73.0 → 0.74.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 +10 -0
- package/MCP_TOOL_CATALOG.json +175 -9
- package/README.md +1 -1
- package/capabilities.json +532 -7
- package/dist/capabilities-data.js +531 -6
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-CWSXFVF2.cjs → chunk-AMB54GOO.cjs} +244 -86
- package/dist/{chunk-VHNWLON6.cjs → chunk-ASL3BIW2.cjs} +3 -3
- package/dist/{chunk-CKIKNZEB.cjs → chunk-DSQJTGXK.cjs} +31 -30
- package/dist/{chunk-VHN5B7OQ.js → chunk-HJKY7LUL.js} +239 -81
- package/dist/{chunk-RFH4VBMX.js → chunk-IFE5FWS7.js} +9 -7
- package/dist/{chunk-PNMEXWYR.js → chunk-IWTTCBCS.js} +3 -3
- package/dist/{chunk-L4J5EDCU.js → chunk-PGSDJS52.js} +3 -2
- package/dist/{chunk-STUQU7AX.cjs → chunk-QZY5LAOG.cjs} +206 -204
- package/dist/{index-CGp16Cdm.d.cts → index-CH65Ftmy.d.cts} +30 -1
- package/dist/{index-CGp16Cdm.d.ts → index-CH65Ftmy.d.ts} +30 -1
- package/dist/{index-MUM-uBX1.d.cts → index-CkBDlaSS.d.cts} +4 -2
- package/dist/{index-Dv8d9p_J.d.ts → index-ColCzIyw.d.ts} +4 -2
- 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 +3 -2
- package/package.json +1 -1
|
@@ -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": "cff16b0b9d022a81a1926ffacb0d01cf5a1e924805447744b62865a3cf9d3779",
|
|
6
|
+
"A": "cff16b0b9d022a81a1926ffacb0d01cf5a1e924805447744b62865a3cf9d3779",
|
|
7
|
+
"operations": "cff16b0b9d022a81a1926ffacb0d01cf5a1e924805447744b62865a3cf9d3779"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQZY5LAOG_cjs = require('./chunk-QZY5LAOG.cjs');
|
|
4
|
+
var chunkAMB54GOO_cjs = require('./chunk-AMB54GOO.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -124,6 +124,7 @@ var AutotaskClient = class {
|
|
|
124
124
|
tagGroups;
|
|
125
125
|
tags;
|
|
126
126
|
taskNotes;
|
|
127
|
+
taskPredecessors;
|
|
127
128
|
tasks;
|
|
128
129
|
taskSecondaryResources;
|
|
129
130
|
taxRegions;
|
|
@@ -158,34 +159,34 @@ var AutotaskClient = class {
|
|
|
158
159
|
* anything is wired. Construction issues NO request.
|
|
159
160
|
*/
|
|
160
161
|
constructor(options) {
|
|
161
|
-
this.config =
|
|
162
|
-
this.http = new
|
|
162
|
+
this.config = chunkAMB54GOO_cjs.resolveConfig(options);
|
|
163
|
+
this.http = new chunkAMB54GOO_cjs.HttpClient(this.config);
|
|
163
164
|
this.http.client = this;
|
|
164
|
-
for (const entry of
|
|
165
|
-
this[entry.accessor] = new
|
|
165
|
+
for (const entry of chunkAMB54GOO_cjs.SIMPLE_RESOURCES) {
|
|
166
|
+
this[entry.accessor] = new chunkAMB54GOO_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
166
167
|
}
|
|
167
|
-
this.companies = new
|
|
168
|
-
this.configurationItems = new
|
|
169
|
-
this.contacts = new
|
|
170
|
-
this.contracts = new
|
|
171
|
-
this.inventoryProducts = new
|
|
172
|
-
this.invoices = new
|
|
173
|
-
this.quotes = new
|
|
174
|
-
this.resourceTimeOffAdditional = new
|
|
175
|
-
this.resourceTimeOffBalances = new
|
|
176
|
-
this.resources = new
|
|
177
|
-
this.serviceCalls = new
|
|
178
|
-
this.ticketCharges = new
|
|
179
|
-
this.tickets = new
|
|
180
|
-
this.timeEntries = new
|
|
181
|
-
this.timeOffRequests = new
|
|
182
|
-
this.authenticateResource = new
|
|
183
|
-
this.entityInformation = new
|
|
184
|
-
this.modules = new
|
|
185
|
-
this.thresholdInformation = new
|
|
186
|
-
this.version = new
|
|
187
|
-
this.versionInformation = new
|
|
188
|
-
this.zoneInformation = new
|
|
168
|
+
this.companies = new chunkAMB54GOO_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
169
|
+
this.configurationItems = new chunkQZY5LAOG_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
170
|
+
this.contacts = new chunkQZY5LAOG_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
171
|
+
this.contracts = new chunkAMB54GOO_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
172
|
+
this.inventoryProducts = new chunkQZY5LAOG_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
173
|
+
this.invoices = new chunkAMB54GOO_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
174
|
+
this.quotes = new chunkQZY5LAOG_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
175
|
+
this.resourceTimeOffAdditional = new chunkQZY5LAOG_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
176
|
+
this.resourceTimeOffBalances = new chunkQZY5LAOG_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.resources = new chunkQZY5LAOG_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
178
|
+
this.serviceCalls = new chunkQZY5LAOG_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
179
|
+
this.ticketCharges = new chunkQZY5LAOG_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
180
|
+
this.tickets = new chunkQZY5LAOG_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
181
|
+
this.timeEntries = new chunkAMB54GOO_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
182
|
+
this.timeOffRequests = new chunkQZY5LAOG_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
183
|
+
this.authenticateResource = new chunkQZY5LAOG_cjs.AuthenticateResource(this.http);
|
|
184
|
+
this.entityInformation = new chunkQZY5LAOG_cjs.EntityInformationResource(this.http);
|
|
185
|
+
this.modules = new chunkQZY5LAOG_cjs.ModulesResource(this.http);
|
|
186
|
+
this.thresholdInformation = new chunkQZY5LAOG_cjs.ThresholdInformationResource(this.http);
|
|
187
|
+
this.version = new chunkQZY5LAOG_cjs.VersionResource(this.http);
|
|
188
|
+
this.versionInformation = new chunkQZY5LAOG_cjs.VersionInformationResource(this.http);
|
|
189
|
+
this.zoneInformation = new chunkQZY5LAOG_cjs.ZoneInformationResource(this.http);
|
|
189
190
|
}
|
|
190
191
|
/**
|
|
191
192
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -219,10 +220,10 @@ var AutotaskClient = class {
|
|
|
219
220
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
220
221
|
*/
|
|
221
222
|
withSignal(signal, fn) {
|
|
222
|
-
return
|
|
223
|
+
return chunkAMB54GOO_cjs.runWithSignal(signal, fn);
|
|
223
224
|
}
|
|
224
225
|
async batch(fn, items, opts = {}) {
|
|
225
|
-
return
|
|
226
|
+
return chunkAMB54GOO_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
226
227
|
}
|
|
227
228
|
};
|
|
228
229
|
|