node-autotask 0.70.0 → 0.72.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 +29 -0
- package/MCP_TOOL_CATALOG.json +515 -9
- package/README.md +1 -1
- package/capabilities.json +2108 -293
- package/dist/capabilities-data.js +2107 -292
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-TYUTIZWB.js → chunk-A4IRIYZ5.js} +6 -2
- package/dist/{chunk-3RANR2RY.js → chunk-EGG2RGL5.js} +433 -8
- package/dist/{chunk-MN5VLBCI.js → chunk-F2TYZKJS.js} +2 -2
- package/dist/{chunk-YQX45JBG.cjs → chunk-HJVTA7SI.cjs} +34 -30
- package/dist/{chunk-SCFB5MF3.js → chunk-K33DPJFK.js} +3 -3
- package/dist/{chunk-YRRTE2NF.cjs → chunk-KVC5DZAP.cjs} +438 -13
- package/dist/{chunk-KAZE4WC7.cjs → chunk-SPME362B.cjs} +3 -3
- package/dist/{chunk-GVP2WW47.cjs → chunk-V5UGW6KZ.cjs} +177 -177
- package/dist/{index-COQEG55Q.d.cts → index-BXnhBnhN.d.cts} +248 -1
- package/dist/{index-COQEG55Q.d.ts → index-BXnhBnhN.d.ts} +248 -1
- package/dist/{index-CGW80Uzc.d.cts → index-CqsY5YHt.d.cts} +7 -2
- package/dist/{index-By9Zw2Oc.d.ts → index-DxfspQR1.d.ts} +7 -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 +5 -5
- package/dist/operations/index.d.ts +5 -5
- 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 +86 -6
- package/docs/RELEASING.md +11 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkV5UGW6KZ_cjs = require('./chunk-V5UGW6KZ.cjs');
|
|
4
|
+
var chunkKVC5DZAP_cjs = require('./chunk-KVC5DZAP.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;
|
|
@@ -120,6 +123,7 @@ var AutotaskClient = class {
|
|
|
120
123
|
tagAliases;
|
|
121
124
|
tagGroups;
|
|
122
125
|
tags;
|
|
126
|
+
taskNotes;
|
|
123
127
|
tasks;
|
|
124
128
|
taskSecondaryResources;
|
|
125
129
|
taxRegions;
|
|
@@ -154,34 +158,34 @@ var AutotaskClient = class {
|
|
|
154
158
|
* anything is wired. Construction issues NO request.
|
|
155
159
|
*/
|
|
156
160
|
constructor(options) {
|
|
157
|
-
this.config =
|
|
158
|
-
this.http = new
|
|
161
|
+
this.config = chunkKVC5DZAP_cjs.resolveConfig(options);
|
|
162
|
+
this.http = new chunkKVC5DZAP_cjs.HttpClient(this.config);
|
|
159
163
|
this.http.client = this;
|
|
160
|
-
for (const entry of
|
|
161
|
-
this[entry.accessor] = new
|
|
164
|
+
for (const entry of chunkKVC5DZAP_cjs.SIMPLE_RESOURCES) {
|
|
165
|
+
this[entry.accessor] = new chunkKVC5DZAP_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
162
166
|
}
|
|
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
|
|
167
|
+
this.companies = new chunkKVC5DZAP_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
168
|
+
this.configurationItems = new chunkV5UGW6KZ_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
169
|
+
this.contacts = new chunkV5UGW6KZ_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
170
|
+
this.contracts = new chunkKVC5DZAP_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
171
|
+
this.inventoryProducts = new chunkV5UGW6KZ_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
172
|
+
this.invoices = new chunkKVC5DZAP_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
173
|
+
this.quotes = new chunkV5UGW6KZ_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
174
|
+
this.resourceTimeOffAdditional = new chunkV5UGW6KZ_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
175
|
+
this.resourceTimeOffBalances = new chunkV5UGW6KZ_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
176
|
+
this.resources = new chunkV5UGW6KZ_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
177
|
+
this.serviceCalls = new chunkV5UGW6KZ_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.ticketCharges = new chunkV5UGW6KZ_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
179
|
+
this.tickets = new chunkV5UGW6KZ_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
180
|
+
this.timeEntries = new chunkKVC5DZAP_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
181
|
+
this.timeOffRequests = new chunkV5UGW6KZ_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
182
|
+
this.authenticateResource = new chunkV5UGW6KZ_cjs.AuthenticateResource(this.http);
|
|
183
|
+
this.entityInformation = new chunkV5UGW6KZ_cjs.EntityInformationResource(this.http);
|
|
184
|
+
this.modules = new chunkV5UGW6KZ_cjs.ModulesResource(this.http);
|
|
185
|
+
this.thresholdInformation = new chunkV5UGW6KZ_cjs.ThresholdInformationResource(this.http);
|
|
186
|
+
this.version = new chunkV5UGW6KZ_cjs.VersionResource(this.http);
|
|
187
|
+
this.versionInformation = new chunkV5UGW6KZ_cjs.VersionInformationResource(this.http);
|
|
188
|
+
this.zoneInformation = new chunkV5UGW6KZ_cjs.ZoneInformationResource(this.http);
|
|
185
189
|
}
|
|
186
190
|
/**
|
|
187
191
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -215,10 +219,10 @@ var AutotaskClient = class {
|
|
|
215
219
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
216
220
|
*/
|
|
217
221
|
withSignal(signal, fn) {
|
|
218
|
-
return
|
|
222
|
+
return chunkKVC5DZAP_cjs.runWithSignal(signal, fn);
|
|
219
223
|
}
|
|
220
224
|
async batch(fn, items, opts = {}) {
|
|
221
|
-
return
|
|
225
|
+
return chunkKVC5DZAP_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
222
226
|
}
|
|
223
227
|
};
|
|
224
228
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
|
|
4
|
+
"A": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
|
|
5
|
+
"operations": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25"
|
|
6
6
|
};
|
|
7
7
|
var cached = null;
|
|
8
8
|
function loadCapabilities() {
|