node-autotask 0.75.0 → 0.77.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 +1499 -547
- package/dist/capabilities-data.js +1498 -546
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-VMFQ53HQ.cjs → chunk-3FZJJX5B.cjs} +3 -3
- package/dist/{chunk-YGJCTU7F.cjs → chunk-5MH3MPLB.cjs} +32 -30
- package/dist/{chunk-54CRUNXF.cjs → chunk-6VBOBCWA.cjs} +355 -24
- package/dist/{chunk-MCAGTC6R.js → chunk-F5Y7WBWY.js} +350 -19
- package/dist/{chunk-OFYXDB5G.js → chunk-G2U6NHPO.js} +3 -3
- package/dist/{chunk-52YS7NCR.cjs → chunk-NAI7XIX4.cjs} +199 -199
- package/dist/{chunk-OTDNHBJJ.js → chunk-QTFK2HAO.js} +4 -2
- package/dist/{chunk-JEARDPBL.js → chunk-RLXUY4VM.js} +2 -2
- package/dist/{index-BEuTtkQE.d.cts → index-B-vNyiD_.d.cts} +92 -1
- package/dist/{index-BEuTtkQE.d.ts → index-B-vNyiD_.d.ts} +92 -1
- package/dist/{index-BAu5alhB.d.cts → index-PLdAoAFJ.d.cts} +4 -2
- package/dist/{index-CNuQgQ_Z.d.ts → index-ecr6unv3.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 +4 -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 chunk3FZJJX5B_cjs = require('./chunk-3FZJJX5B.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 chunk3FZJJX5B_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk3FZJJX5B_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk3FZJJX5B_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-G2U6NHPO.js';
|
|
@@ -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": "3b14a93bbda886bce89c87d61ba40092f9acf6a829a959f042be1c3a0744ed42",
|
|
6
|
+
"A": "3b14a93bbda886bce89c87d61ba40092f9acf6a829a959f042be1c3a0744ed42",
|
|
7
|
+
"operations": "3b14a93bbda886bce89c87d61ba40092f9acf6a829a959f042be1c3a0744ed42"
|
|
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 chunkNAI7XIX4_cjs = require('./chunk-NAI7XIX4.cjs');
|
|
4
|
+
var chunk6VBOBCWA_cjs = require('./chunk-6VBOBCWA.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -28,6 +28,7 @@ var AutotaskClient = class {
|
|
|
28
28
|
companyNotes;
|
|
29
29
|
companySiteConfigurations;
|
|
30
30
|
companyWebhooks;
|
|
31
|
+
configurationItemAttachments;
|
|
31
32
|
configurationItemBillingProductAssociations;
|
|
32
33
|
configurationItemCategories;
|
|
33
34
|
configurationItemCategoryUdfAssociations;
|
|
@@ -124,6 +125,7 @@ var AutotaskClient = class {
|
|
|
124
125
|
tagGroups;
|
|
125
126
|
tags;
|
|
126
127
|
taskAttachments;
|
|
128
|
+
taskNoteAttachments;
|
|
127
129
|
taskNotes;
|
|
128
130
|
taskPredecessors;
|
|
129
131
|
tasks;
|
|
@@ -160,34 +162,34 @@ var AutotaskClient = class {
|
|
|
160
162
|
* anything is wired. Construction issues NO request.
|
|
161
163
|
*/
|
|
162
164
|
constructor(options) {
|
|
163
|
-
this.config =
|
|
164
|
-
this.http = new
|
|
165
|
+
this.config = chunk6VBOBCWA_cjs.resolveConfig(options);
|
|
166
|
+
this.http = new chunk6VBOBCWA_cjs.HttpClient(this.config);
|
|
165
167
|
this.http.client = this;
|
|
166
|
-
for (const entry of
|
|
167
|
-
this[entry.accessor] = new
|
|
168
|
+
for (const entry of chunk6VBOBCWA_cjs.SIMPLE_RESOURCES) {
|
|
169
|
+
this[entry.accessor] = new chunk6VBOBCWA_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
168
170
|
}
|
|
169
|
-
this.companies = new
|
|
170
|
-
this.configurationItems = new
|
|
171
|
-
this.contacts = new
|
|
172
|
-
this.contracts = new
|
|
173
|
-
this.inventoryProducts = new
|
|
174
|
-
this.invoices = new
|
|
175
|
-
this.quotes = new
|
|
176
|
-
this.resourceTimeOffAdditional = new
|
|
177
|
-
this.resourceTimeOffBalances = new
|
|
178
|
-
this.resources = new
|
|
179
|
-
this.serviceCalls = new
|
|
180
|
-
this.ticketCharges = new
|
|
181
|
-
this.tickets = new
|
|
182
|
-
this.timeEntries = new
|
|
183
|
-
this.timeOffRequests = new
|
|
184
|
-
this.authenticateResource = new
|
|
185
|
-
this.entityInformation = new
|
|
186
|
-
this.modules = new
|
|
187
|
-
this.thresholdInformation = new
|
|
188
|
-
this.version = new
|
|
189
|
-
this.versionInformation = new
|
|
190
|
-
this.zoneInformation = new
|
|
171
|
+
this.companies = new chunk6VBOBCWA_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
172
|
+
this.configurationItems = new chunkNAI7XIX4_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
173
|
+
this.contacts = new chunkNAI7XIX4_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
174
|
+
this.contracts = new chunk6VBOBCWA_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
175
|
+
this.inventoryProducts = new chunkNAI7XIX4_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
176
|
+
this.invoices = new chunk6VBOBCWA_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.quotes = new chunkNAI7XIX4_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
178
|
+
this.resourceTimeOffAdditional = new chunkNAI7XIX4_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
179
|
+
this.resourceTimeOffBalances = new chunkNAI7XIX4_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
180
|
+
this.resources = new chunkNAI7XIX4_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
181
|
+
this.serviceCalls = new chunkNAI7XIX4_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
182
|
+
this.ticketCharges = new chunkNAI7XIX4_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
183
|
+
this.tickets = new chunkNAI7XIX4_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
184
|
+
this.timeEntries = new chunk6VBOBCWA_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
185
|
+
this.timeOffRequests = new chunkNAI7XIX4_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
186
|
+
this.authenticateResource = new chunkNAI7XIX4_cjs.AuthenticateResource(this.http);
|
|
187
|
+
this.entityInformation = new chunkNAI7XIX4_cjs.EntityInformationResource(this.http);
|
|
188
|
+
this.modules = new chunkNAI7XIX4_cjs.ModulesResource(this.http);
|
|
189
|
+
this.thresholdInformation = new chunkNAI7XIX4_cjs.ThresholdInformationResource(this.http);
|
|
190
|
+
this.version = new chunkNAI7XIX4_cjs.VersionResource(this.http);
|
|
191
|
+
this.versionInformation = new chunkNAI7XIX4_cjs.VersionInformationResource(this.http);
|
|
192
|
+
this.zoneInformation = new chunkNAI7XIX4_cjs.ZoneInformationResource(this.http);
|
|
191
193
|
}
|
|
192
194
|
/**
|
|
193
195
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -221,10 +223,10 @@ var AutotaskClient = class {
|
|
|
221
223
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
222
224
|
*/
|
|
223
225
|
withSignal(signal, fn) {
|
|
224
|
-
return
|
|
226
|
+
return chunk6VBOBCWA_cjs.runWithSignal(signal, fn);
|
|
225
227
|
}
|
|
226
228
|
async batch(fn, items, opts = {}) {
|
|
227
|
-
return
|
|
229
|
+
return chunk6VBOBCWA_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
228
230
|
}
|
|
229
231
|
};
|
|
230
232
|
|