node-autotask 0.61.0 → 0.62.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 +11 -0
- package/MCP_TOOL_CATALOG.json +2 -2
- package/README.md +2 -2
- package/capabilities.json +19 -7
- package/dist/capabilities-data.js +18 -6
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-JTRC7XEH.cjs → chunk-LFEMZVOV.cjs} +31 -31
- package/dist/{chunk-NFTWRHUR.js → chunk-O6SYTORL.js} +2 -2
- package/dist/{chunk-TE7RUKU2.cjs → chunk-ODPM4YVG.cjs} +3 -3
- package/dist/{chunk-CWH2SLP2.cjs → chunk-QHM6ROAE.cjs} +174 -174
- package/dist/{chunk-O63FO5XC.js → chunk-S4YR3RLJ.js} +2 -2
- package/dist/{chunk-BSFJ5JYP.js → chunk-TGCFJCWN.js} +50 -5
- package/dist/{chunk-4SEIDMF6.cjs → chunk-VDYUG6RK.cjs} +55 -10
- package/dist/{chunk-GUXVYGBK.js → chunk-XJNNCMBS.js} +3 -3
- package/dist/{index-D1dW10iM.d.cts → index-BXJOPL7w.d.cts} +1 -1
- package/dist/{index-Bc3yX2Nc.d.ts → index-C4wZRw9N.d.ts} +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/docs/VENDOR-QUIRKS.md +18 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.62.0] - 2026-11-12
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- The unfiltered `count` on `user_defined_field_definitions` and `user_defined_field_list_items` is now pinned as an
|
|
15
|
+
`unfiltered-blind` surface (#432). On the verified zone it answers 0 even though data exists, and 0.61.0 served that
|
|
16
|
+
0 as a plain number. It now carries the typed `blindSurface` sentinel, and a `latest` read no longer returns an
|
|
17
|
+
empty answer from it. It walks the unfiltered query, which is not blind. A filtered count of 0 stays a true zero.
|
|
18
|
+
Only `count` is pinned, so a UDF `get` miss still reports `not-found`. In the capabilities gate, a count-only pin
|
|
19
|
+
binds its reachability row's kind only when that row is not data-full. The UDF rows are data-full.
|
|
20
|
+
|
|
10
21
|
## [0.61.0] - 2026-11-11
|
|
11
22
|
|
|
12
23
|
### Added
|
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-11T22:57:14.052Z",
|
|
4
|
+
"planHash": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
5
5
|
"metaTools": [
|
|
6
6
|
{
|
|
7
7
|
"name": "autotask_catalog",
|
package/README.md
CHANGED
|
@@ -375,8 +375,8 @@ The SDK ships the mechanical substrate, not a server (no MCP imports, no zod):
|
|
|
375
375
|
LLM-facing guidance encodes — the spec-derived delete
|
|
376
376
|
boundaries (`plan.deleteBoundaries`) (incl. the 7-endpoint 405 class — scratch records on those
|
|
377
377
|
endpoints are API-undeletable, cleanup is UI-only), the
|
|
378
|
-
blind count/query surfaces (companies, unfiltered billing_codes,
|
|
379
|
-
— `get(id)` is the authority), the isActive-is-a-number quirk, the
|
|
378
|
+
blind count/query surfaces (companies, unfiltered billing_codes, the unfiltered
|
|
379
|
+
UDF definition / list-item counts, resources — `get(id)` is the authority), the isActive-is-a-number quirk, the
|
|
380
380
|
time-entry `internalBillingCodeID` wire key, and the W-D3 posted-state
|
|
381
381
|
gap on this zone's `time_entries` (the live TimeEntry entity has NO
|
|
382
382
|
`postedDate`; `time_entries.dateWorkedWindow` (the single posted-state read
|
package/capabilities.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-11-
|
|
2
|
+
"generatedAt": "2026-11-11T22:57:13.343Z",
|
|
3
3
|
"groups": {
|
|
4
4
|
"B": {
|
|
5
|
-
"planHash": "
|
|
6
|
-
"builtAt": "2026-11-
|
|
5
|
+
"planHash": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
6
|
+
"builtAt": "2026-11-11T22:57:13.332Z",
|
|
7
7
|
"records": [
|
|
8
8
|
{
|
|
9
9
|
"id": "appointments.count",
|
|
@@ -41616,6 +41616,12 @@
|
|
|
41616
41616
|
"user_defined_field_definitions.query"
|
|
41617
41617
|
],
|
|
41618
41618
|
"args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
41619
|
+
"blindSurface": {
|
|
41620
|
+
"surface": "user_defined_field_definitions.count",
|
|
41621
|
+
"kind": "unfiltered-blind",
|
|
41622
|
+
"authority": "user_defined_field_definitions.get",
|
|
41623
|
+
"note": "the UNFILTERED user_defined_field_definitions count is blind in this zone: the unfiltered count answers 0 while a filtered count (a single `id gt 0` condition) returns the real total. The unfiltered query is NOT blind (it returns real rows), and a FILTERED count of 0 is a TRUE absence, never a sentinel. An unfiltered count of 0 proves nothing — count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
41624
|
+
},
|
|
41619
41625
|
"untrustedFields": [
|
|
41620
41626
|
"description",
|
|
41621
41627
|
"mergeVariableName",
|
|
@@ -42124,6 +42130,12 @@
|
|
|
42124
42130
|
"user_defined_field_list_items.query"
|
|
42125
42131
|
],
|
|
42126
42132
|
"args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
42133
|
+
"blindSurface": {
|
|
42134
|
+
"surface": "user_defined_field_list_items.count",
|
|
42135
|
+
"kind": "unfiltered-blind",
|
|
42136
|
+
"authority": "user_defined_field_list_items.get",
|
|
42137
|
+
"note": "the UNFILTERED user_defined_field_list_items count is blind in this zone: the unfiltered count answers 0 while a filtered count (a single `id gt 0` condition) returns the real total. The unfiltered query is NOT blind (it returns real rows), and a FILTERED count of 0 is a TRUE absence, never a sentinel. An unfiltered count of 0 proves nothing — count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
42138
|
+
},
|
|
42127
42139
|
"untrustedFields": [
|
|
42128
42140
|
"valueForDisplay",
|
|
42129
42141
|
"valueForExport"
|
|
@@ -42713,8 +42725,8 @@
|
|
|
42713
42725
|
]
|
|
42714
42726
|
},
|
|
42715
42727
|
"A": {
|
|
42716
|
-
"planHash": "
|
|
42717
|
-
"builtAt": "2026-11-
|
|
42728
|
+
"planHash": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
42729
|
+
"builtAt": "2026-11-11T22:57:13.333Z",
|
|
42718
42730
|
"records": [
|
|
42719
42731
|
{
|
|
42720
42732
|
"id": "companies.count",
|
|
@@ -82122,8 +82134,8 @@
|
|
|
82122
82134
|
]
|
|
82123
82135
|
},
|
|
82124
82136
|
"operations": {
|
|
82125
|
-
"planHash": "
|
|
82126
|
-
"builtAt": "2026-11-
|
|
82137
|
+
"planHash": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
82138
|
+
"builtAt": "2026-11-11T22:57:13.333Z",
|
|
82127
82139
|
"records": [
|
|
82128
82140
|
{
|
|
82129
82141
|
"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": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
352
|
+
"builtAt": "2026-11-11T22:57:13.332Z",
|
|
353
353
|
"records": [
|
|
354
354
|
{
|
|
355
355
|
"id": "appointments.count",
|
|
@@ -41962,6 +41962,12 @@ const CAPABILITY_DATA = {
|
|
|
41962
41962
|
"user_defined_field_definitions.query"
|
|
41963
41963
|
],
|
|
41964
41964
|
"args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
41965
|
+
"blindSurface": {
|
|
41966
|
+
"surface": "user_defined_field_definitions.count",
|
|
41967
|
+
"kind": "unfiltered-blind",
|
|
41968
|
+
"authority": "user_defined_field_definitions.get",
|
|
41969
|
+
"note": "the UNFILTERED user_defined_field_definitions count is blind in this zone: the unfiltered count answers 0 while a filtered count (a single `id gt 0` condition) returns the real total. The unfiltered query is NOT blind (it returns real rows), and a FILTERED count of 0 is a TRUE absence, never a sentinel. An unfiltered count of 0 proves nothing — count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
41970
|
+
},
|
|
41965
41971
|
"untrustedFields": [
|
|
41966
41972
|
"description",
|
|
41967
41973
|
"mergeVariableName",
|
|
@@ -42470,6 +42476,12 @@ const CAPABILITY_DATA = {
|
|
|
42470
42476
|
"user_defined_field_list_items.query"
|
|
42471
42477
|
],
|
|
42472
42478
|
"args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
42479
|
+
"blindSurface": {
|
|
42480
|
+
"surface": "user_defined_field_list_items.count",
|
|
42481
|
+
"kind": "unfiltered-blind",
|
|
42482
|
+
"authority": "user_defined_field_list_items.get",
|
|
42483
|
+
"note": "the UNFILTERED user_defined_field_list_items count is blind in this zone: the unfiltered count answers 0 while a filtered count (a single `id gt 0` condition) returns the real total. The unfiltered query is NOT blind (it returns real rows), and a FILTERED count of 0 is a TRUE absence, never a sentinel. An unfiltered count of 0 proves nothing — count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
42484
|
+
},
|
|
42473
42485
|
"untrustedFields": [
|
|
42474
42486
|
"valueForDisplay",
|
|
42475
42487
|
"valueForExport"
|
|
@@ -43059,8 +43071,8 @@ const CAPABILITY_DATA = {
|
|
|
43059
43071
|
]
|
|
43060
43072
|
},
|
|
43061
43073
|
"A": {
|
|
43062
|
-
"planHash": "
|
|
43063
|
-
"builtAt": "2026-11-
|
|
43074
|
+
"planHash": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
43075
|
+
"builtAt": "2026-11-11T22:57:13.333Z",
|
|
43064
43076
|
"records": [
|
|
43065
43077
|
{
|
|
43066
43078
|
"id": "companies.count",
|
|
@@ -82468,8 +82480,8 @@ const CAPABILITY_DATA = {
|
|
|
82468
82480
|
]
|
|
82469
82481
|
},
|
|
82470
82482
|
"operations": {
|
|
82471
|
-
"planHash": "
|
|
82472
|
-
"builtAt": "2026-11-
|
|
82483
|
+
"planHash": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
82484
|
+
"builtAt": "2026-11-11T22:57:13.333Z",
|
|
82473
82485
|
"records": [
|
|
82474
82486
|
{
|
|
82475
82487
|
"id": "operations.aggregate",
|
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkODPM4YVG_cjs = require('./chunk-ODPM4YVG.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 chunkODPM4YVG_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkODPM4YVG_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkODPM4YVG_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-XJNNCMBS.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQHM6ROAE_cjs = require('./chunk-QHM6ROAE.cjs');
|
|
4
|
+
var chunkVDYUG6RK_cjs = require('./chunk-VDYUG6RK.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 = chunkVDYUG6RK_cjs.resolveConfig(options);
|
|
158
|
+
this.http = new chunkVDYUG6RK_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 chunkVDYUG6RK_cjs.SIMPLE_RESOURCES) {
|
|
161
|
+
this[entry.accessor] = new chunkVDYUG6RK_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 chunkVDYUG6RK_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
164
|
+
this.configurationItems = new chunkQHM6ROAE_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
165
|
+
this.contacts = new chunkQHM6ROAE_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
166
|
+
this.contracts = new chunkVDYUG6RK_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
167
|
+
this.inventoryProducts = new chunkQHM6ROAE_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
168
|
+
this.invoices = new chunkVDYUG6RK_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
169
|
+
this.quotes = new chunkQHM6ROAE_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
170
|
+
this.resourceTimeOffAdditional = new chunkQHM6ROAE_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
171
|
+
this.resourceTimeOffBalances = new chunkQHM6ROAE_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
172
|
+
this.resources = new chunkQHM6ROAE_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
173
|
+
this.serviceCalls = new chunkQHM6ROAE_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
174
|
+
this.ticketCharges = new chunkQHM6ROAE_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
175
|
+
this.tickets = new chunkQHM6ROAE_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
176
|
+
this.timeEntries = new chunkVDYUG6RK_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.timeOffRequests = new chunkQHM6ROAE_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.authenticateResource = new chunkQHM6ROAE_cjs.AuthenticateResource(this.http);
|
|
179
|
+
this.entityInformation = new chunkQHM6ROAE_cjs.EntityInformationResource(this.http);
|
|
180
|
+
this.modules = new chunkQHM6ROAE_cjs.ModulesResource(this.http);
|
|
181
|
+
this.thresholdInformation = new chunkQHM6ROAE_cjs.ThresholdInformationResource(this.http);
|
|
182
|
+
this.version = new chunkQHM6ROAE_cjs.VersionResource(this.http);
|
|
183
|
+
this.versionInformation = new chunkQHM6ROAE_cjs.VersionInformationResource(this.http);
|
|
184
|
+
this.zoneInformation = new chunkQHM6ROAE_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 chunkVDYUG6RK_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 chunkVDYUG6RK_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) : chunkVDYUG6RK_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 };
|
|
@@ -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, AutotaskConfigError } from './chunk-
|
|
1
|
+
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-S4YR3RLJ.js';
|
|
2
|
+
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-TGCFJCWN.js';
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
var AutotaskClient = class {
|
|
@@ -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": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
6
|
+
"A": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
7
|
+
"operations": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|