node-autotask 0.85.0 → 0.87.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 +13 -0
- package/MCP_TOOL_CATALOG.json +336 -9
- package/README.md +1 -1
- package/capabilities.json +1411 -218
- package/dist/capabilities-data.js +1562 -369
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-7GNZT7Y7.cjs → chunk-CUZJJCI5.cjs} +1231 -438
- package/dist/{chunk-GTTAPAGP.js → chunk-EXNDYJPG.js} +3 -3
- package/dist/{chunk-EPJG7M5C.js → chunk-G57Q7OAC.js} +2 -2
- package/dist/{chunk-L6YCH2I4.js → chunk-GAFG7RHG.js} +1226 -433
- package/dist/{chunk-PBOH2OHJ.cjs → chunk-HUA4WB4N.cjs} +32 -30
- package/dist/{chunk-HF5YG4TV.js → chunk-NXSQXXNK.js} +4 -2
- package/dist/{chunk-JV6MX2U3.cjs → chunk-RU4ECNQN.cjs} +200 -200
- package/dist/{chunk-JCKYM7FD.cjs → chunk-YVNGUGG6.cjs} +3 -3
- package/dist/{index-rWcPjRpX.d.ts → index-CsL5gGJo.d.ts} +33 -13
- package/dist/{index-CCW_EpLg.d.cts → index-Cxfr_DOD.d.cts} +76 -3
- package/dist/{index-CCW_EpLg.d.ts → index-Cxfr_DOD.d.ts} +76 -3
- package/dist/{index-DkyNXWyt.d.cts → index-DGiua9uK.d.cts} +33 -13
- 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 -20
- package/dist/operations/index.d.ts +5 -20
- 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/docs/VENDOR-QUIRKS.md +34 -17
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkRU4ECNQN_cjs = require('./chunk-RU4ECNQN.cjs');
|
|
4
|
+
var chunkCUZJJCI5_cjs = require('./chunk-CUZJJCI5.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -84,6 +84,8 @@ var AutotaskClient = class {
|
|
|
84
84
|
inventoryProducts;
|
|
85
85
|
invoices;
|
|
86
86
|
invoiceTemplates;
|
|
87
|
+
knowledgeBaseArticles;
|
|
88
|
+
knowledgeBaseCategories;
|
|
87
89
|
modules;
|
|
88
90
|
notificationHistory;
|
|
89
91
|
opportunities;
|
|
@@ -172,34 +174,34 @@ var AutotaskClient = class {
|
|
|
172
174
|
* anything is wired. Construction issues NO request.
|
|
173
175
|
*/
|
|
174
176
|
constructor(options) {
|
|
175
|
-
this.config =
|
|
176
|
-
this.http = new
|
|
177
|
+
this.config = chunkCUZJJCI5_cjs.resolveConfig(options);
|
|
178
|
+
this.http = new chunkCUZJJCI5_cjs.HttpClient(this.config);
|
|
177
179
|
this.http.client = this;
|
|
178
|
-
for (const entry of
|
|
179
|
-
this[entry.accessor] = new
|
|
180
|
+
for (const entry of chunkCUZJJCI5_cjs.SIMPLE_RESOURCES) {
|
|
181
|
+
this[entry.accessor] = new chunkCUZJJCI5_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
180
182
|
}
|
|
181
|
-
this.companies = new
|
|
182
|
-
this.configurationItems = new
|
|
183
|
-
this.contacts = new
|
|
184
|
-
this.contracts = new
|
|
185
|
-
this.inventoryProducts = new
|
|
186
|
-
this.invoices = new
|
|
187
|
-
this.quotes = new
|
|
188
|
-
this.resourceTimeOffAdditional = new
|
|
189
|
-
this.resourceTimeOffBalances = new
|
|
190
|
-
this.resources = new
|
|
191
|
-
this.serviceCalls = new
|
|
192
|
-
this.ticketCharges = new
|
|
193
|
-
this.tickets = new
|
|
194
|
-
this.timeEntries = new
|
|
195
|
-
this.timeOffRequests = new
|
|
196
|
-
this.authenticateResource = new
|
|
197
|
-
this.entityInformation = new
|
|
198
|
-
this.modules = new
|
|
199
|
-
this.thresholdInformation = new
|
|
200
|
-
this.version = new
|
|
201
|
-
this.versionInformation = new
|
|
202
|
-
this.zoneInformation = new
|
|
183
|
+
this.companies = new chunkCUZJJCI5_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
184
|
+
this.configurationItems = new chunkRU4ECNQN_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
185
|
+
this.contacts = new chunkRU4ECNQN_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
186
|
+
this.contracts = new chunkCUZJJCI5_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
187
|
+
this.inventoryProducts = new chunkRU4ECNQN_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
188
|
+
this.invoices = new chunkCUZJJCI5_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
189
|
+
this.quotes = new chunkRU4ECNQN_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
190
|
+
this.resourceTimeOffAdditional = new chunkRU4ECNQN_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
191
|
+
this.resourceTimeOffBalances = new chunkRU4ECNQN_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
192
|
+
this.resources = new chunkRU4ECNQN_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
193
|
+
this.serviceCalls = new chunkRU4ECNQN_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
194
|
+
this.ticketCharges = new chunkRU4ECNQN_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
195
|
+
this.tickets = new chunkRU4ECNQN_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
196
|
+
this.timeEntries = new chunkCUZJJCI5_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
197
|
+
this.timeOffRequests = new chunkRU4ECNQN_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
198
|
+
this.authenticateResource = new chunkRU4ECNQN_cjs.AuthenticateResource(this.http);
|
|
199
|
+
this.entityInformation = new chunkRU4ECNQN_cjs.EntityInformationResource(this.http);
|
|
200
|
+
this.modules = new chunkRU4ECNQN_cjs.ModulesResource(this.http);
|
|
201
|
+
this.thresholdInformation = new chunkRU4ECNQN_cjs.ThresholdInformationResource(this.http);
|
|
202
|
+
this.version = new chunkRU4ECNQN_cjs.VersionResource(this.http);
|
|
203
|
+
this.versionInformation = new chunkRU4ECNQN_cjs.VersionInformationResource(this.http);
|
|
204
|
+
this.zoneInformation = new chunkRU4ECNQN_cjs.ZoneInformationResource(this.http);
|
|
203
205
|
}
|
|
204
206
|
/**
|
|
205
207
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -233,10 +235,10 @@ var AutotaskClient = class {
|
|
|
233
235
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
234
236
|
*/
|
|
235
237
|
withSignal(signal, fn) {
|
|
236
|
-
return
|
|
238
|
+
return chunkCUZJJCI5_cjs.runWithSignal(signal, fn);
|
|
237
239
|
}
|
|
238
240
|
async batch(fn, items, opts = {}) {
|
|
239
|
-
return
|
|
241
|
+
return chunkCUZJJCI5_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
240
242
|
}
|
|
241
243
|
};
|
|
242
244
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-
|
|
2
|
-
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-
|
|
1
|
+
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-G57Q7OAC.js';
|
|
2
|
+
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-GAFG7RHG.js';
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
var AutotaskClient = class {
|
|
@@ -82,6 +82,8 @@ var AutotaskClient = class {
|
|
|
82
82
|
inventoryProducts;
|
|
83
83
|
invoices;
|
|
84
84
|
invoiceTemplates;
|
|
85
|
+
knowledgeBaseArticles;
|
|
86
|
+
knowledgeBaseCategories;
|
|
85
87
|
modules;
|
|
86
88
|
notificationHistory;
|
|
87
89
|
opportunities;
|