node-autotask 0.66.0 → 0.67.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 +6 -0
- package/MCP_TOOL_CATALOG.json +2 -2
- package/capabilities.json +7 -7
- package/dist/capabilities-data.js +6 -6
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-L5K2D2MZ.js → chunk-4GH73U2I.js} +3 -3
- package/dist/{chunk-XAJ7SBPE.cjs → chunk-54L7KKUD.cjs} +31 -31
- package/dist/{chunk-FLVMENXG.cjs → chunk-7GBOQ7YA.cjs} +3 -3
- package/dist/{chunk-QG3O5G4L.cjs → chunk-C7M7PXLW.cjs} +173 -173
- package/dist/{chunk-T5TI22K5.js → chunk-EXLJHU5W.js} +2 -2
- package/dist/{chunk-KO36QZXN.js → chunk-N7WB65IS.js} +2 -2
- package/dist/{chunk-4HJVHVPE.js → chunk-UCPSQ6GN.js} +2 -2
- package/dist/{chunk-TIFJFCCN.cjs → chunk-VO4ABDZA.cjs} +7 -7
- package/dist/{index-BZ11hF8H.d.ts → index-CYlKHo5N.d.ts} +1 -1
- package/dist/{index-DnisYPlj.d.cts → index-D_1wP3Je.d.cts} +1 -1
- package/dist/index.cjs +84 -84
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +50 -50
- package/dist/operations/index.d.cts +2 -2
- package/dist/operations/index.d.ts +2 -2
- package/dist/operations/index.js +2 -2
- package/dist/pool.cjs +8 -8
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +27 -27
- package/dist/resources/index.d.cts +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.67.0] - 2026-11-17
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Prevent zone-scoped capability guidance with a structured-quirk hygiene check that covers numeric zone identifiers and keeps region/date provenance in evidence (#451). Remove the remaining zone qualifier from the contacts `isActive` wire-type guidance while preserving the field constraint and its original evidence. Shared API contracts do not imply shared tenant inventory or API-user visibility.
|
|
15
|
+
|
|
10
16
|
## [0.66.0] - 2026-11-17
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/MCP_TOOL_CATALOG.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generatedBy": "scripts/build-tool-catalog.mjs",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
4
|
-
"planHash": "
|
|
3
|
+
"generatedAt": "2026-11-17T06:07:35.025Z",
|
|
4
|
+
"planHash": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
5
5
|
"metaTools": [
|
|
6
6
|
{
|
|
7
7
|
"name": "autotask_catalog",
|
package/capabilities.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-11-
|
|
2
|
+
"generatedAt": "2026-11-17T06:07:20.117Z",
|
|
3
3
|
"groups": {
|
|
4
4
|
"B": {
|
|
5
|
-
"planHash": "
|
|
6
|
-
"builtAt": "2026-11-
|
|
5
|
+
"planHash": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
6
|
+
"builtAt": "2026-11-17T06:07:20.093Z",
|
|
7
7
|
"records": [
|
|
8
8
|
{
|
|
9
9
|
"id": "appointments.count",
|
|
@@ -42786,8 +42786,8 @@
|
|
|
42786
42786
|
]
|
|
42787
42787
|
},
|
|
42788
42788
|
"A": {
|
|
42789
|
-
"planHash": "
|
|
42790
|
-
"builtAt": "2026-11-
|
|
42789
|
+
"planHash": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
42790
|
+
"builtAt": "2026-11-17T06:07:20.093Z",
|
|
42791
42791
|
"records": [
|
|
42792
42792
|
{
|
|
42793
42793
|
"id": "companies.count",
|
|
@@ -82195,8 +82195,8 @@
|
|
|
82195
82195
|
]
|
|
82196
82196
|
},
|
|
82197
82197
|
"operations": {
|
|
82198
|
-
"planHash": "
|
|
82199
|
-
"builtAt": "2026-11-
|
|
82198
|
+
"planHash": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
82199
|
+
"builtAt": "2026-11-17T06:07:20.093Z",
|
|
82200
82200
|
"records": [
|
|
82201
82201
|
{
|
|
82202
82202
|
"id": "operations.aggregate",
|
|
@@ -348,8 +348,8 @@ const CAPABILITY_DATA = {
|
|
|
348
348
|
],
|
|
349
349
|
"groups": {
|
|
350
350
|
"B": {
|
|
351
|
-
"planHash": "
|
|
352
|
-
"builtAt": "2026-11-
|
|
351
|
+
"planHash": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
352
|
+
"builtAt": "2026-11-17T06:07:20.093Z",
|
|
353
353
|
"records": [
|
|
354
354
|
{
|
|
355
355
|
"id": "appointments.count",
|
|
@@ -43132,8 +43132,8 @@ const CAPABILITY_DATA = {
|
|
|
43132
43132
|
]
|
|
43133
43133
|
},
|
|
43134
43134
|
"A": {
|
|
43135
|
-
"planHash": "
|
|
43136
|
-
"builtAt": "2026-11-
|
|
43135
|
+
"planHash": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
43136
|
+
"builtAt": "2026-11-17T06:07:20.093Z",
|
|
43137
43137
|
"records": [
|
|
43138
43138
|
{
|
|
43139
43139
|
"id": "companies.count",
|
|
@@ -82541,8 +82541,8 @@ const CAPABILITY_DATA = {
|
|
|
82541
82541
|
]
|
|
82542
82542
|
},
|
|
82543
82543
|
"operations": {
|
|
82544
|
-
"planHash": "
|
|
82545
|
-
"builtAt": "2026-11-
|
|
82544
|
+
"planHash": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
82545
|
+
"builtAt": "2026-11-17T06:07:20.093Z",
|
|
82546
82546
|
"records": [
|
|
82547
82547
|
{
|
|
82548
82548
|
"id": "operations.aggregate",
|
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7GBOQ7YA_cjs = require('./chunk-7GBOQ7YA.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 chunk7GBOQ7YA_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7GBOQ7YA_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7GBOQ7YA_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-4GH73U2I.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
4
|
+
"A": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
5
|
+
"operations": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55"
|
|
6
6
|
};
|
|
7
7
|
var cached = null;
|
|
8
8
|
function loadCapabilities() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkC7M7PXLW_cjs = require('./chunk-C7M7PXLW.cjs');
|
|
4
|
+
var chunkVO4ABDZA_cjs = require('./chunk-VO4ABDZA.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -154,34 +154,34 @@ var AutotaskClient = class {
|
|
|
154
154
|
* anything is wired. Construction issues NO request.
|
|
155
155
|
*/
|
|
156
156
|
constructor(options) {
|
|
157
|
-
this.config =
|
|
158
|
-
this.http = new
|
|
157
|
+
this.config = chunkVO4ABDZA_cjs.resolveConfig(options);
|
|
158
|
+
this.http = new chunkVO4ABDZA_cjs.HttpClient(this.config);
|
|
159
159
|
this.http.client = this;
|
|
160
|
-
for (const entry of
|
|
161
|
-
this[entry.accessor] = new
|
|
160
|
+
for (const entry of chunkVO4ABDZA_cjs.SIMPLE_RESOURCES) {
|
|
161
|
+
this[entry.accessor] = new chunkVO4ABDZA_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
162
162
|
}
|
|
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
|
|
163
|
+
this.companies = new chunkVO4ABDZA_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
164
|
+
this.configurationItems = new chunkC7M7PXLW_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
165
|
+
this.contacts = new chunkC7M7PXLW_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
166
|
+
this.contracts = new chunkVO4ABDZA_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
167
|
+
this.inventoryProducts = new chunkC7M7PXLW_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
168
|
+
this.invoices = new chunkVO4ABDZA_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
169
|
+
this.quotes = new chunkC7M7PXLW_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
170
|
+
this.resourceTimeOffAdditional = new chunkC7M7PXLW_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
171
|
+
this.resourceTimeOffBalances = new chunkC7M7PXLW_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
172
|
+
this.resources = new chunkC7M7PXLW_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
173
|
+
this.serviceCalls = new chunkC7M7PXLW_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
174
|
+
this.ticketCharges = new chunkC7M7PXLW_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
175
|
+
this.tickets = new chunkC7M7PXLW_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
176
|
+
this.timeEntries = new chunkVO4ABDZA_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.timeOffRequests = new chunkC7M7PXLW_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.authenticateResource = new chunkC7M7PXLW_cjs.AuthenticateResource(this.http);
|
|
179
|
+
this.entityInformation = new chunkC7M7PXLW_cjs.EntityInformationResource(this.http);
|
|
180
|
+
this.modules = new chunkC7M7PXLW_cjs.ModulesResource(this.http);
|
|
181
|
+
this.thresholdInformation = new chunkC7M7PXLW_cjs.ThresholdInformationResource(this.http);
|
|
182
|
+
this.version = new chunkC7M7PXLW_cjs.VersionResource(this.http);
|
|
183
|
+
this.versionInformation = new chunkC7M7PXLW_cjs.VersionInformationResource(this.http);
|
|
184
|
+
this.zoneInformation = new chunkC7M7PXLW_cjs.ZoneInformationResource(this.http);
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -215,12 +215,12 @@ var AutotaskClient = class {
|
|
|
215
215
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
216
216
|
*/
|
|
217
217
|
withSignal(signal, fn) {
|
|
218
|
-
return
|
|
218
|
+
return chunkVO4ABDZA_cjs.runWithSignal(signal, fn);
|
|
219
219
|
}
|
|
220
220
|
async batch(fn, items, opts = {}) {
|
|
221
221
|
const concurrency = opts.concurrency ?? this.config.maxConcurrent;
|
|
222
222
|
if (!Number.isInteger(concurrency) || concurrency <= 0) {
|
|
223
|
-
throw new
|
|
223
|
+
throw new chunkVO4ABDZA_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
|
|
224
224
|
}
|
|
225
225
|
const { signal, settle } = opts;
|
|
226
226
|
const results = new Array(items.length);
|
|
@@ -235,7 +235,7 @@ var AutotaskClient = class {
|
|
|
235
235
|
const i = next++;
|
|
236
236
|
try {
|
|
237
237
|
const item = items[i];
|
|
238
|
-
const value = await (signal === void 0 ? fn(item) :
|
|
238
|
+
const value = await (signal === void 0 ? fn(item) : chunkVO4ABDZA_cjs.runWithSignal(signal, () => fn(item)));
|
|
239
239
|
results[i] = settle ? { status: "fulfilled", value } : value;
|
|
240
240
|
} catch (error) {
|
|
241
241
|
if (settle) results[i] = { status: "rejected", reason: error };
|
|
@@ -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": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
6
|
+
"A": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55",
|
|
7
|
+
"operations": "448bad244d0dfa1f8af0f6dfa4bc1a080ca60a114dc10366660585ff2dbc3e55"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|