node-autotask 0.65.0 → 0.66.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 +19 -0
- package/MCP_TOOL_CATALOG.json +34 -14
- package/README.md +1 -1
- package/capabilities.json +157 -96
- package/dist/capabilities-data.js +156 -95
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-C73NILBZ.js → chunk-4HJVHVPE.js} +2 -2
- package/dist/{chunk-WKR5IJEC.cjs → chunk-FLVMENXG.cjs} +3 -3
- package/dist/{chunk-ULI4UUB3.js → chunk-KO36QZXN.js} +390 -405
- package/dist/{chunk-N4EO3KAY.js → chunk-L5K2D2MZ.js} +3 -3
- package/dist/{chunk-M63TK4ZH.cjs → chunk-QG3O5G4L.cjs} +175 -179
- package/dist/{chunk-MXLE2F5G.js → chunk-T5TI22K5.js} +4 -8
- package/dist/{chunk-NTHEFYA7.cjs → chunk-TIFJFCCN.cjs} +395 -410
- package/dist/{chunk-UHV7SAX6.cjs → chunk-XAJ7SBPE.cjs} +31 -31
- package/dist/{index-vcFKvZqm.d.ts → index-BZ11hF8H.d.ts} +10 -24
- package/dist/{index-CRVQBajX.d.cts → index-DnisYPlj.d.cts} +10 -24
- 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 +3 -3
- package/dist/operations/index.d.ts +3 -3
- 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/API.md +2 -2
- package/docs/VENDOR-QUIRKS.md +50 -34
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQG3O5G4L_cjs = require('./chunk-QG3O5G4L.cjs');
|
|
4
|
+
var chunkTIFJFCCN_cjs = require('./chunk-TIFJFCCN.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 = chunkTIFJFCCN_cjs.resolveConfig(options);
|
|
158
|
+
this.http = new chunkTIFJFCCN_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 chunkTIFJFCCN_cjs.SIMPLE_RESOURCES) {
|
|
161
|
+
this[entry.accessor] = new chunkTIFJFCCN_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 chunkTIFJFCCN_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
164
|
+
this.configurationItems = new chunkQG3O5G4L_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
165
|
+
this.contacts = new chunkQG3O5G4L_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
166
|
+
this.contracts = new chunkTIFJFCCN_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
167
|
+
this.inventoryProducts = new chunkQG3O5G4L_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
168
|
+
this.invoices = new chunkTIFJFCCN_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
169
|
+
this.quotes = new chunkQG3O5G4L_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
170
|
+
this.resourceTimeOffAdditional = new chunkQG3O5G4L_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
171
|
+
this.resourceTimeOffBalances = new chunkQG3O5G4L_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
172
|
+
this.resources = new chunkQG3O5G4L_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
173
|
+
this.serviceCalls = new chunkQG3O5G4L_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
174
|
+
this.ticketCharges = new chunkQG3O5G4L_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
175
|
+
this.tickets = new chunkQG3O5G4L_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
176
|
+
this.timeEntries = new chunkTIFJFCCN_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.timeOffRequests = new chunkQG3O5G4L_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.authenticateResource = new chunkQG3O5G4L_cjs.AuthenticateResource(this.http);
|
|
179
|
+
this.entityInformation = new chunkQG3O5G4L_cjs.EntityInformationResource(this.http);
|
|
180
|
+
this.modules = new chunkQG3O5G4L_cjs.ModulesResource(this.http);
|
|
181
|
+
this.thresholdInformation = new chunkQG3O5G4L_cjs.ThresholdInformationResource(this.http);
|
|
182
|
+
this.version = new chunkQG3O5G4L_cjs.VersionResource(this.http);
|
|
183
|
+
this.versionInformation = new chunkQG3O5G4L_cjs.VersionInformationResource(this.http);
|
|
184
|
+
this.zoneInformation = new chunkQG3O5G4L_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 chunkTIFJFCCN_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 chunkTIFJFCCN_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) : chunkTIFJFCCN_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 };
|
|
@@ -32,7 +32,7 @@ import { L as Logger } from './logger-B1gYmFre.js';
|
|
|
32
32
|
* queryBounded noteChars free-text cap (issue #61 — response-side only);
|
|
33
33
|
* - docs/VENDOR-QUIRKS.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
|
|
34
34
|
*
|
|
35
|
-
* planHash:
|
|
35
|
+
* planHash: 94052c314d189d4b2fcf6bc842d983d4817c8410109074ed9505b682f4855790
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/** One pinned blind-surface stamp (the result-time sentinel object). */
|
|
@@ -43,7 +43,7 @@ interface BlindSurfaceInfo {
|
|
|
43
43
|
kind: 'unowned-blind' | 'fully-blind' | 'unfiltered-blind';
|
|
44
44
|
/** The authority op that returns the record (the remedy the sentinel serves). */
|
|
45
45
|
authority: string;
|
|
46
|
-
/** The
|
|
46
|
+
/** The conditional visibility warning and remedy. */
|
|
47
47
|
note: string;
|
|
48
48
|
}
|
|
49
49
|
/** The create-blocker class (issue #12 — the closed 9-set; the gate re-derives). */
|
|
@@ -994,17 +994,10 @@ interface CompanyFullProfilePart<TItem> {
|
|
|
994
994
|
capped: boolean;
|
|
995
995
|
}
|
|
996
996
|
/**
|
|
997
|
-
* The open-tickets part
|
|
998
|
-
*
|
|
999
|
-
*
|
|
1000
|
-
*
|
|
1001
|
-
* (3 open tickets via a companyID+status filter). So an EMPTY answer degrades
|
|
1002
|
-
* to the TYPED blind part (`blind: true` + the S12-C sentinel + the note)
|
|
1003
|
-
* ONLY when the filter-aware `blindStampFor` predicate stamps THIS call — on
|
|
1004
|
-
* the `unfiltered-blind` tickets surface a filtered empty answer is a TRUE
|
|
1005
|
-
* zero (the company has no open tickets), never a sentinel; a non-empty
|
|
1006
|
-
* answer is data and clears the flag. Never an error, never a misleading
|
|
1007
|
-
* empty list.
|
|
997
|
+
* The open-tickets part uses the current closed-status semantics and a company filter.
|
|
998
|
+
* A conservative sentinel may annotate an empty result only when its filter-aware
|
|
999
|
+
* predicate covers the call. Non-empty data is never marked blind; an empty scoped
|
|
1000
|
+
* query does not establish tenant-wide absence or different zone capabilities.
|
|
1008
1001
|
*/
|
|
1009
1002
|
interface CompanyFullProfileOpenTickets {
|
|
1010
1003
|
items: Ticket[];
|
|
@@ -1325,20 +1318,13 @@ interface ConfigurationItemProfilePart<TItem> {
|
|
|
1325
1318
|
items: TItem[];
|
|
1326
1319
|
capped: boolean;
|
|
1327
1320
|
}
|
|
1328
|
-
/**
|
|
1329
|
-
* The billing-product associations part (plan T7): the raw association rows
|
|
1330
|
-
* (billingProductID FK) + the TYPED product-wall annotation. On a productless
|
|
1331
|
-
* tenant (ww29: products.count = 0, live-verified — the wall that blocked
|
|
1332
|
-
* every CI create) the association's product references cannot be
|
|
1333
|
-
* enumerated: the served zone-facts quirk annotates the part
|
|
1334
|
-
* (`blind: true` + `note`) — NEVER an error.
|
|
1335
|
-
*/
|
|
1321
|
+
/** The billing-product association rows returned by the scoped vendor query. */
|
|
1336
1322
|
interface ConfigurationItemProfileProductAssociations {
|
|
1337
1323
|
items: ConfigurationItemBillingProductAssociations[];
|
|
1338
1324
|
capped: boolean;
|
|
1339
|
-
/**
|
|
1325
|
+
/** Compatibility flag: a successful association query is not classified blind by static create guidance. */
|
|
1340
1326
|
blind: boolean;
|
|
1341
|
-
/**
|
|
1327
|
+
/** Optional visibility note; never inferred from a product create constraint or tenant inventory. */
|
|
1342
1328
|
note?: string;
|
|
1343
1329
|
}
|
|
1344
1330
|
/** The full configuration-item profile in ONE call (<=6 bounded reads). */
|
|
@@ -1353,7 +1339,7 @@ interface ConfigurationItemProfile {
|
|
|
1353
1339
|
productAssociations: ConfigurationItemProfileProductAssociations;
|
|
1354
1340
|
/** The opt-in name/label section (issue #77) — present EXACTLY when `names: true` (the sibling keys are absent from the rows otherwise). */
|
|
1355
1341
|
names?: CompositeNamesSection;
|
|
1356
|
-
/** Per-part status: FK parts 'ok' | 'absent' (dangling/missing FK); list parts 'ok'; productAssociations 'ok'
|
|
1342
|
+
/** Per-part status: FK parts 'ok' | 'absent' (dangling/missing FK); list parts 'ok'; productAssociations 'ok' on a successful scoped query ('blind' retained for compatibility). */
|
|
1357
1343
|
parts: {
|
|
1358
1344
|
ci: 'ok';
|
|
1359
1345
|
type: 'ok' | 'absent';
|
|
@@ -32,7 +32,7 @@ import { L as Logger } from './logger-B1gYmFre.cjs';
|
|
|
32
32
|
* queryBounded noteChars free-text cap (issue #61 — response-side only);
|
|
33
33
|
* - docs/VENDOR-QUIRKS.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
|
|
34
34
|
*
|
|
35
|
-
* planHash:
|
|
35
|
+
* planHash: 94052c314d189d4b2fcf6bc842d983d4817c8410109074ed9505b682f4855790
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/** One pinned blind-surface stamp (the result-time sentinel object). */
|
|
@@ -43,7 +43,7 @@ interface BlindSurfaceInfo {
|
|
|
43
43
|
kind: 'unowned-blind' | 'fully-blind' | 'unfiltered-blind';
|
|
44
44
|
/** The authority op that returns the record (the remedy the sentinel serves). */
|
|
45
45
|
authority: string;
|
|
46
|
-
/** The
|
|
46
|
+
/** The conditional visibility warning and remedy. */
|
|
47
47
|
note: string;
|
|
48
48
|
}
|
|
49
49
|
/** The create-blocker class (issue #12 — the closed 9-set; the gate re-derives). */
|
|
@@ -994,17 +994,10 @@ interface CompanyFullProfilePart<TItem> {
|
|
|
994
994
|
capped: boolean;
|
|
995
995
|
}
|
|
996
996
|
/**
|
|
997
|
-
* The open-tickets part
|
|
998
|
-
*
|
|
999
|
-
*
|
|
1000
|
-
*
|
|
1001
|
-
* (3 open tickets via a companyID+status filter). So an EMPTY answer degrades
|
|
1002
|
-
* to the TYPED blind part (`blind: true` + the S12-C sentinel + the note)
|
|
1003
|
-
* ONLY when the filter-aware `blindStampFor` predicate stamps THIS call — on
|
|
1004
|
-
* the `unfiltered-blind` tickets surface a filtered empty answer is a TRUE
|
|
1005
|
-
* zero (the company has no open tickets), never a sentinel; a non-empty
|
|
1006
|
-
* answer is data and clears the flag. Never an error, never a misleading
|
|
1007
|
-
* empty list.
|
|
997
|
+
* The open-tickets part uses the current closed-status semantics and a company filter.
|
|
998
|
+
* A conservative sentinel may annotate an empty result only when its filter-aware
|
|
999
|
+
* predicate covers the call. Non-empty data is never marked blind; an empty scoped
|
|
1000
|
+
* query does not establish tenant-wide absence or different zone capabilities.
|
|
1008
1001
|
*/
|
|
1009
1002
|
interface CompanyFullProfileOpenTickets {
|
|
1010
1003
|
items: Ticket[];
|
|
@@ -1325,20 +1318,13 @@ interface ConfigurationItemProfilePart<TItem> {
|
|
|
1325
1318
|
items: TItem[];
|
|
1326
1319
|
capped: boolean;
|
|
1327
1320
|
}
|
|
1328
|
-
/**
|
|
1329
|
-
* The billing-product associations part (plan T7): the raw association rows
|
|
1330
|
-
* (billingProductID FK) + the TYPED product-wall annotation. On a productless
|
|
1331
|
-
* tenant (ww29: products.count = 0, live-verified — the wall that blocked
|
|
1332
|
-
* every CI create) the association's product references cannot be
|
|
1333
|
-
* enumerated: the served zone-facts quirk annotates the part
|
|
1334
|
-
* (`blind: true` + `note`) — NEVER an error.
|
|
1335
|
-
*/
|
|
1321
|
+
/** The billing-product association rows returned by the scoped vendor query. */
|
|
1336
1322
|
interface ConfigurationItemProfileProductAssociations {
|
|
1337
1323
|
items: ConfigurationItemBillingProductAssociations[];
|
|
1338
1324
|
capped: boolean;
|
|
1339
|
-
/**
|
|
1325
|
+
/** Compatibility flag: a successful association query is not classified blind by static create guidance. */
|
|
1340
1326
|
blind: boolean;
|
|
1341
|
-
/**
|
|
1327
|
+
/** Optional visibility note; never inferred from a product create constraint or tenant inventory. */
|
|
1342
1328
|
note?: string;
|
|
1343
1329
|
}
|
|
1344
1330
|
/** The full configuration-item profile in ONE call (<=6 bounded reads). */
|
|
@@ -1353,7 +1339,7 @@ interface ConfigurationItemProfile {
|
|
|
1353
1339
|
productAssociations: ConfigurationItemProfileProductAssociations;
|
|
1354
1340
|
/** The opt-in name/label section (issue #77) — present EXACTLY when `names: true` (the sibling keys are absent from the rows otherwise). */
|
|
1355
1341
|
names?: CompositeNamesSection;
|
|
1356
|
-
/** Per-part status: FK parts 'ok' | 'absent' (dangling/missing FK); list parts 'ok'; productAssociations 'ok'
|
|
1342
|
+
/** Per-part status: FK parts 'ok' | 'absent' (dangling/missing FK); list parts 'ok'; productAssociations 'ok' on a successful scoped query ('blind' retained for compatibility). */
|
|
1357
1343
|
parts: {
|
|
1358
1344
|
ci: 'ok';
|
|
1359
1345
|
type: 'ok' | 'absent';
|