node-autotask 0.69.1 → 0.71.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 +30 -0
- package/MCP_TOOL_CATALOG.json +369 -9
- package/README.md +7 -1
- package/capabilities.json +1697 -392
- package/dist/capabilities-data.js +1696 -391
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-WFVLF7EW.cjs → chunk-4DSLRDIF.cjs} +33 -30
- package/dist/{chunk-FK37JXSJ.js → chunk-4OR3XBIP.js} +699 -168
- package/dist/{chunk-MMGO3SFL.js → chunk-5COLIVBE.js} +2 -2
- package/dist/{chunk-KAZE4WC7.cjs → chunk-JLCHKCEB.cjs} +3 -3
- package/dist/{chunk-SCFB5MF3.js → chunk-LKJA57CH.js} +3 -3
- package/dist/{chunk-EWXRFHPP.cjs → chunk-QJ327YI6.cjs} +177 -177
- package/dist/{chunk-CLHDTYWO.cjs → chunk-QQFF7X67.cjs} +704 -172
- package/dist/{chunk-64BMSXWT.js → chunk-YKQ2KNQO.js} +5 -2
- package/dist/{index-BT_0tTPS.d.cts → index-CAXT5ZKT.d.cts} +14 -4
- package/dist/{index-COQEG55Q.d.cts → index-CM_SRgtH.d.cts} +209 -1
- package/dist/{index-COQEG55Q.d.ts → index-CM_SRgtH.d.ts} +209 -1
- package/dist/{index-Coe7LFLY.d.ts → index-lGpxr4gY.d.ts} +14 -4
- 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 +54 -50
- package/dist/operations/index.d.cts +25 -7
- package/dist/operations/index.d.ts +25 -7
- 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 +108 -2
- package/docs/N8N-ADAPTER.md +1 -1
- package/docs/RELEASING.md +11 -3
- package/docs/performance-caching.md +92 -0
- package/docs/performance-reads.md +9 -1
- package/package.json +1 -1
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJLCHKCEB_cjs = require('./chunk-JLCHKCEB.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 chunkJLCHKCEB_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkJLCHKCEB_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkJLCHKCEB_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-LKJA57CH.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQJ327YI6_cjs = require('./chunk-QJ327YI6.cjs');
|
|
4
|
+
var chunkQQFF7X67_cjs = require('./chunk-QQFF7X67.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -11,6 +11,7 @@ var AutotaskClient = class {
|
|
|
11
11
|
http;
|
|
12
12
|
// [GENERATED:RESOURCE_ACCESSORS:START]
|
|
13
13
|
appointments;
|
|
14
|
+
attachmentInfo;
|
|
14
15
|
authenticateResource;
|
|
15
16
|
billingCodes;
|
|
16
17
|
billingItemApprovalLevels;
|
|
@@ -21,7 +22,9 @@ var AutotaskClient = class {
|
|
|
21
22
|
classificationIcons;
|
|
22
23
|
companies;
|
|
23
24
|
companyAlerts;
|
|
25
|
+
companyAttachments;
|
|
24
26
|
companyLocations;
|
|
27
|
+
companyNoteAttachments;
|
|
25
28
|
companyNotes;
|
|
26
29
|
companySiteConfigurations;
|
|
27
30
|
companyWebhooks;
|
|
@@ -154,34 +157,34 @@ var AutotaskClient = class {
|
|
|
154
157
|
* anything is wired. Construction issues NO request.
|
|
155
158
|
*/
|
|
156
159
|
constructor(options) {
|
|
157
|
-
this.config =
|
|
158
|
-
this.http = new
|
|
160
|
+
this.config = chunkQQFF7X67_cjs.resolveConfig(options);
|
|
161
|
+
this.http = new chunkQQFF7X67_cjs.HttpClient(this.config);
|
|
159
162
|
this.http.client = this;
|
|
160
|
-
for (const entry of
|
|
161
|
-
this[entry.accessor] = new
|
|
163
|
+
for (const entry of chunkQQFF7X67_cjs.SIMPLE_RESOURCES) {
|
|
164
|
+
this[entry.accessor] = new chunkQQFF7X67_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
162
165
|
}
|
|
163
|
-
this.companies = new
|
|
164
|
-
this.configurationItems = new
|
|
165
|
-
this.contacts = new
|
|
166
|
-
this.contracts = new
|
|
167
|
-
this.inventoryProducts = new
|
|
168
|
-
this.invoices = new
|
|
169
|
-
this.quotes = new
|
|
170
|
-
this.resourceTimeOffAdditional = new
|
|
171
|
-
this.resourceTimeOffBalances = new
|
|
172
|
-
this.resources = new
|
|
173
|
-
this.serviceCalls = new
|
|
174
|
-
this.ticketCharges = new
|
|
175
|
-
this.tickets = new
|
|
176
|
-
this.timeEntries = new
|
|
177
|
-
this.timeOffRequests = new
|
|
178
|
-
this.authenticateResource = new
|
|
179
|
-
this.entityInformation = new
|
|
180
|
-
this.modules = new
|
|
181
|
-
this.thresholdInformation = new
|
|
182
|
-
this.version = new
|
|
183
|
-
this.versionInformation = new
|
|
184
|
-
this.zoneInformation = new
|
|
166
|
+
this.companies = new chunkQQFF7X67_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
167
|
+
this.configurationItems = new chunkQJ327YI6_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
168
|
+
this.contacts = new chunkQJ327YI6_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
169
|
+
this.contracts = new chunkQQFF7X67_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
170
|
+
this.inventoryProducts = new chunkQJ327YI6_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
171
|
+
this.invoices = new chunkQQFF7X67_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
172
|
+
this.quotes = new chunkQJ327YI6_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
173
|
+
this.resourceTimeOffAdditional = new chunkQJ327YI6_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
174
|
+
this.resourceTimeOffBalances = new chunkQJ327YI6_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
175
|
+
this.resources = new chunkQJ327YI6_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
176
|
+
this.serviceCalls = new chunkQJ327YI6_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
177
|
+
this.ticketCharges = new chunkQJ327YI6_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
178
|
+
this.tickets = new chunkQJ327YI6_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
179
|
+
this.timeEntries = new chunkQQFF7X67_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
180
|
+
this.timeOffRequests = new chunkQJ327YI6_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
181
|
+
this.authenticateResource = new chunkQJ327YI6_cjs.AuthenticateResource(this.http);
|
|
182
|
+
this.entityInformation = new chunkQJ327YI6_cjs.EntityInformationResource(this.http);
|
|
183
|
+
this.modules = new chunkQJ327YI6_cjs.ModulesResource(this.http);
|
|
184
|
+
this.thresholdInformation = new chunkQJ327YI6_cjs.ThresholdInformationResource(this.http);
|
|
185
|
+
this.version = new chunkQJ327YI6_cjs.VersionResource(this.http);
|
|
186
|
+
this.versionInformation = new chunkQJ327YI6_cjs.VersionInformationResource(this.http);
|
|
187
|
+
this.zoneInformation = new chunkQJ327YI6_cjs.ZoneInformationResource(this.http);
|
|
185
188
|
}
|
|
186
189
|
/**
|
|
187
190
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -215,10 +218,10 @@ var AutotaskClient = class {
|
|
|
215
218
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
216
219
|
*/
|
|
217
220
|
withSignal(signal, fn) {
|
|
218
|
-
return
|
|
221
|
+
return chunkQQFF7X67_cjs.runWithSignal(signal, fn);
|
|
219
222
|
}
|
|
220
223
|
async batch(fn, items, opts = {}) {
|
|
221
|
-
return
|
|
224
|
+
return chunkQQFF7X67_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
222
225
|
}
|
|
223
226
|
};
|
|
224
227
|
|