node-autotask 0.81.0 → 0.83.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 +393 -9
- package/README.md +1 -1
- package/capabilities.json +1663 -235
- package/dist/capabilities-data.js +1662 -234
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-6HMGV3MY.cjs → chunk-5AHEJCSP.cjs} +33 -30
- package/dist/{chunk-MR5TGVHR.cjs → chunk-C2AFRW5M.cjs} +453 -10
- package/dist/{chunk-ACF32I5D.js → chunk-CV56RIGS.js} +448 -5
- package/dist/{chunk-5MJZ554M.js → chunk-DBEAS3IR.js} +3 -3
- package/dist/{chunk-X7G4W5DF.js → chunk-HQJLIRXW.js} +5 -2
- package/dist/{chunk-PLERXELA.cjs → chunk-QCA5R7QF.cjs} +3 -3
- package/dist/{chunk-KKUBJRO3.cjs → chunk-QEMBBAF5.cjs} +199 -199
- package/dist/{chunk-LCUUFTYD.js → chunk-ZKAJVHHZ.js} +2 -2
- package/dist/{index-lj8ocwxy.d.cts → index-8Hg6dytT.d.cts} +131 -1
- package/dist/{index-lj8ocwxy.d.ts → index-8Hg6dytT.d.ts} +131 -1
- package/dist/{index-BxPqypDD.d.cts → index-DxESlIIg.d.cts} +5 -2
- package/dist/{index-DswDMDNH.d.ts → index-nXhYAQOf.d.ts} +5 -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 +5 -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 chunkQCA5R7QF_cjs = require('./chunk-QCA5R7QF.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 chunkQCA5R7QF_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQCA5R7QF_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQCA5R7QF_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-DBEAS3IR.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQEMBBAF5_cjs = require('./chunk-QEMBBAF5.cjs');
|
|
4
|
+
var chunkC2AFRW5M_cjs = require('./chunk-C2AFRW5M.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -74,6 +74,7 @@ var AutotaskClient = class {
|
|
|
74
74
|
entityInformation;
|
|
75
75
|
expenseItemAttachments;
|
|
76
76
|
expenseItems;
|
|
77
|
+
expenseReportAttachments;
|
|
77
78
|
expenseReports;
|
|
78
79
|
holidays;
|
|
79
80
|
holidaySets;
|
|
@@ -104,6 +105,7 @@ var AutotaskClient = class {
|
|
|
104
105
|
quoteLocations;
|
|
105
106
|
quotes;
|
|
106
107
|
quoteTemplates;
|
|
108
|
+
resourceAttachments;
|
|
107
109
|
resourceRoleQueues;
|
|
108
110
|
resourceRoles;
|
|
109
111
|
resources;
|
|
@@ -112,6 +114,7 @@ var AutotaskClient = class {
|
|
|
112
114
|
resourceTimeOffApprovers;
|
|
113
115
|
resourceTimeOffBalances;
|
|
114
116
|
roles;
|
|
117
|
+
salesOrderAttachments;
|
|
115
118
|
salesOrders;
|
|
116
119
|
serviceCalls;
|
|
117
120
|
serviceCallTaskResources;
|
|
@@ -166,34 +169,34 @@ var AutotaskClient = class {
|
|
|
166
169
|
* anything is wired. Construction issues NO request.
|
|
167
170
|
*/
|
|
168
171
|
constructor(options) {
|
|
169
|
-
this.config =
|
|
170
|
-
this.http = new
|
|
172
|
+
this.config = chunkC2AFRW5M_cjs.resolveConfig(options);
|
|
173
|
+
this.http = new chunkC2AFRW5M_cjs.HttpClient(this.config);
|
|
171
174
|
this.http.client = this;
|
|
172
|
-
for (const entry of
|
|
173
|
-
this[entry.accessor] = new
|
|
175
|
+
for (const entry of chunkC2AFRW5M_cjs.SIMPLE_RESOURCES) {
|
|
176
|
+
this[entry.accessor] = new chunkC2AFRW5M_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
174
177
|
}
|
|
175
|
-
this.companies = new
|
|
176
|
-
this.configurationItems = new
|
|
177
|
-
this.contacts = new
|
|
178
|
-
this.contracts = new
|
|
179
|
-
this.inventoryProducts = new
|
|
180
|
-
this.invoices = new
|
|
181
|
-
this.quotes = new
|
|
182
|
-
this.resourceTimeOffAdditional = new
|
|
183
|
-
this.resourceTimeOffBalances = new
|
|
184
|
-
this.resources = new
|
|
185
|
-
this.serviceCalls = new
|
|
186
|
-
this.ticketCharges = new
|
|
187
|
-
this.tickets = new
|
|
188
|
-
this.timeEntries = new
|
|
189
|
-
this.timeOffRequests = new
|
|
190
|
-
this.authenticateResource = new
|
|
191
|
-
this.entityInformation = new
|
|
192
|
-
this.modules = new
|
|
193
|
-
this.thresholdInformation = new
|
|
194
|
-
this.version = new
|
|
195
|
-
this.versionInformation = new
|
|
196
|
-
this.zoneInformation = new
|
|
178
|
+
this.companies = new chunkC2AFRW5M_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
179
|
+
this.configurationItems = new chunkQEMBBAF5_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
180
|
+
this.contacts = new chunkQEMBBAF5_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
181
|
+
this.contracts = new chunkC2AFRW5M_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
182
|
+
this.inventoryProducts = new chunkQEMBBAF5_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
183
|
+
this.invoices = new chunkC2AFRW5M_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
184
|
+
this.quotes = new chunkQEMBBAF5_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
185
|
+
this.resourceTimeOffAdditional = new chunkQEMBBAF5_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
186
|
+
this.resourceTimeOffBalances = new chunkQEMBBAF5_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
187
|
+
this.resources = new chunkQEMBBAF5_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
188
|
+
this.serviceCalls = new chunkQEMBBAF5_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
189
|
+
this.ticketCharges = new chunkQEMBBAF5_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
190
|
+
this.tickets = new chunkQEMBBAF5_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
191
|
+
this.timeEntries = new chunkC2AFRW5M_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
192
|
+
this.timeOffRequests = new chunkQEMBBAF5_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
193
|
+
this.authenticateResource = new chunkQEMBBAF5_cjs.AuthenticateResource(this.http);
|
|
194
|
+
this.entityInformation = new chunkQEMBBAF5_cjs.EntityInformationResource(this.http);
|
|
195
|
+
this.modules = new chunkQEMBBAF5_cjs.ModulesResource(this.http);
|
|
196
|
+
this.thresholdInformation = new chunkQEMBBAF5_cjs.ThresholdInformationResource(this.http);
|
|
197
|
+
this.version = new chunkQEMBBAF5_cjs.VersionResource(this.http);
|
|
198
|
+
this.versionInformation = new chunkQEMBBAF5_cjs.VersionInformationResource(this.http);
|
|
199
|
+
this.zoneInformation = new chunkQEMBBAF5_cjs.ZoneInformationResource(this.http);
|
|
197
200
|
}
|
|
198
201
|
/**
|
|
199
202
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -227,10 +230,10 @@ var AutotaskClient = class {
|
|
|
227
230
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
228
231
|
*/
|
|
229
232
|
withSignal(signal, fn) {
|
|
230
|
-
return
|
|
233
|
+
return chunkC2AFRW5M_cjs.runWithSignal(signal, fn);
|
|
231
234
|
}
|
|
232
235
|
async batch(fn, items, opts = {}) {
|
|
233
|
-
return
|
|
236
|
+
return chunkC2AFRW5M_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
234
237
|
}
|
|
235
238
|
};
|
|
236
239
|
|