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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericResource, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, RELATIONSHIP_MAP, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, numericIds, IN_FILTER_CAP, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, cursorToPath } from './chunk-
|
|
2
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { GenericResource, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, RELATIONSHIP_MAP, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, numericIds, IN_FILTER_CAP, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, cursorToPath } from './chunk-TGCFJCWN.js';
|
|
2
|
+
import { loadCapabilityRecords } from './chunk-XJNNCMBS.js';
|
|
3
3
|
|
|
4
4
|
// src/resources/special/configuration_items.ts
|
|
5
5
|
async function fetchRecord(http, path, label, readOpts) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { loadCapabilityRecords } from './chunk-XJNNCMBS.js';
|
|
2
2
|
import { NoopLogger, REDACTED, deepMarkUntrusted, wrapUntrusted } from './chunk-7NKB4UXV.js';
|
|
3
3
|
import { randomUUID } from 'crypto';
|
|
4
4
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
@@ -9162,8 +9162,23 @@ var RELATIONSHIP_MAP = {
|
|
|
9162
9162
|
"searchCovers": null,
|
|
9163
9163
|
"findBy": []
|
|
9164
9164
|
},
|
|
9165
|
-
"blindSurfaces":
|
|
9165
|
+
"blindSurfaces": {
|
|
9166
|
+
"count": {
|
|
9167
|
+
"kind": "unfiltered-blind",
|
|
9168
|
+
"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 \u2014 count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
9169
|
+
}
|
|
9170
|
+
},
|
|
9166
9171
|
"zoneFacts": {
|
|
9172
|
+
"quirks": [
|
|
9173
|
+
{
|
|
9174
|
+
"kind": "blind-surface",
|
|
9175
|
+
"ops": [
|
|
9176
|
+
"count"
|
|
9177
|
+
],
|
|
9178
|
+
"statement": "The UNFILTERED count is blind in this zone (0 even when data exists); a FILTERED count returns the real total and the unfiltered query returns rows, so count with a filter (e.g. id gt 0).",
|
|
9179
|
+
"evidence": "the UNFILTERED count answers 0 while a filtered count (a single `id gt 0` condition) returns the real total and the unfiltered query page returns real rows"
|
|
9180
|
+
}
|
|
9181
|
+
],
|
|
9167
9182
|
"createGuidance": {
|
|
9168
9183
|
"createOp": "user_defined_field_definitions.create",
|
|
9169
9184
|
"parentScoped": false,
|
|
@@ -9209,8 +9224,23 @@ var RELATIONSHIP_MAP = {
|
|
|
9209
9224
|
"searchCovers": null,
|
|
9210
9225
|
"findBy": []
|
|
9211
9226
|
},
|
|
9212
|
-
"blindSurfaces":
|
|
9227
|
+
"blindSurfaces": {
|
|
9228
|
+
"count": {
|
|
9229
|
+
"kind": "unfiltered-blind",
|
|
9230
|
+
"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 \u2014 count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
9231
|
+
}
|
|
9232
|
+
},
|
|
9213
9233
|
"zoneFacts": {
|
|
9234
|
+
"quirks": [
|
|
9235
|
+
{
|
|
9236
|
+
"kind": "blind-surface",
|
|
9237
|
+
"ops": [
|
|
9238
|
+
"count"
|
|
9239
|
+
],
|
|
9240
|
+
"statement": "The UNFILTERED count is blind in this zone (0 even when data exists); a FILTERED count returns the real total and the unfiltered query returns rows, so count with a filter (e.g. id gt 0).",
|
|
9241
|
+
"evidence": "the UNFILTERED count answers 0 while a filtered count (a single `id gt 0` condition) returns the real total and the unfiltered query page returns real rows"
|
|
9242
|
+
}
|
|
9243
|
+
],
|
|
9214
9244
|
"createGuidance": {
|
|
9215
9245
|
"createOp": "user_defined_field_list_items.create",
|
|
9216
9246
|
"parentScoped": true,
|
|
@@ -9405,6 +9435,22 @@ var BLIND_SURFACE_STAMPS = {
|
|
|
9405
9435
|
"authority": "billing_codes.get",
|
|
9406
9436
|
"note": "the UNFILTERED billing_codes count/query surface is blind in this zone. Query with `useType` (1 = general, 3 = internal) + `isActive` filters \u2014 filtered queries return real data; a raw caller must pass those filters (the allocation-code-aware createForResource node op was cut). get(id) is the authority."
|
|
9407
9437
|
}
|
|
9438
|
+
},
|
|
9439
|
+
"user_defined_field_definitions": {
|
|
9440
|
+
"count": {
|
|
9441
|
+
"surface": "user_defined_field_definitions.count",
|
|
9442
|
+
"kind": "unfiltered-blind",
|
|
9443
|
+
"authority": "user_defined_field_definitions.get",
|
|
9444
|
+
"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 \u2014 count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
9445
|
+
}
|
|
9446
|
+
},
|
|
9447
|
+
"user_defined_field_list_items": {
|
|
9448
|
+
"count": {
|
|
9449
|
+
"surface": "user_defined_field_list_items.count",
|
|
9450
|
+
"kind": "unfiltered-blind",
|
|
9451
|
+
"authority": "user_defined_field_list_items.get",
|
|
9452
|
+
"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 \u2014 count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
9453
|
+
}
|
|
9408
9454
|
}
|
|
9409
9455
|
};
|
|
9410
9456
|
var DELETE_BOUNDARY_NOTES = {
|
|
@@ -15037,8 +15083,7 @@ function attachEmptyReasonDetails(err) {
|
|
|
15037
15083
|
if (stamp !== void 0) {
|
|
15038
15084
|
err.details.emptyReason = stamp;
|
|
15039
15085
|
} else if (isGetMiss) {
|
|
15040
|
-
const
|
|
15041
|
-
const blind = blindOps !== void 0 ? Object.values(blindOps).find((v) => v !== void 0) : void 0;
|
|
15086
|
+
const blind = BLIND_SURFACE_STAMPS[resource]?.query;
|
|
15042
15087
|
err.details.emptyReason = blind !== void 0 ? {
|
|
15043
15088
|
surface,
|
|
15044
15089
|
kind: "blind-surface",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkODPM4YVG_cjs = require('./chunk-ODPM4YVG.cjs');
|
|
4
4
|
var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
|
|
5
5
|
var crypto = require('crypto');
|
|
6
6
|
var async_hooks = require('async_hooks');
|
|
@@ -1422,7 +1422,7 @@ async function capabilitySets() {
|
|
|
1422
1422
|
const fieldOps = /* @__PURE__ */ new Map();
|
|
1423
1423
|
const udfCapable = /* @__PURE__ */ new Set();
|
|
1424
1424
|
const resources = /* @__PURE__ */ new Set();
|
|
1425
|
-
for (const rec of await
|
|
1425
|
+
for (const rec of await chunkODPM4YVG_cjs.loadCapabilityRecords()) {
|
|
1426
1426
|
if (rec.resource === "operations") continue;
|
|
1427
1427
|
resources.add(rec.resource);
|
|
1428
1428
|
if (rec.operation === "getFieldInfo") fieldOps.set(rec.resource, rec);
|
|
@@ -1433,7 +1433,7 @@ async function capabilitySets() {
|
|
|
1433
1433
|
var derivedIndexPromise = null;
|
|
1434
1434
|
function derivedIndexLoad() {
|
|
1435
1435
|
if (derivedIndexPromise === null) {
|
|
1436
|
-
derivedIndexPromise =
|
|
1436
|
+
derivedIndexPromise = chunkODPM4YVG_cjs.loadCapabilityRecords().then((records) => {
|
|
1437
1437
|
const index = /* @__PURE__ */ new Map();
|
|
1438
1438
|
for (const rec of records) {
|
|
1439
1439
|
const declared = rec.metadata?.derivedFields;
|
|
@@ -9164,8 +9164,23 @@ var RELATIONSHIP_MAP = {
|
|
|
9164
9164
|
"searchCovers": null,
|
|
9165
9165
|
"findBy": []
|
|
9166
9166
|
},
|
|
9167
|
-
"blindSurfaces":
|
|
9167
|
+
"blindSurfaces": {
|
|
9168
|
+
"count": {
|
|
9169
|
+
"kind": "unfiltered-blind",
|
|
9170
|
+
"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 \u2014 count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
9171
|
+
}
|
|
9172
|
+
},
|
|
9168
9173
|
"zoneFacts": {
|
|
9174
|
+
"quirks": [
|
|
9175
|
+
{
|
|
9176
|
+
"kind": "blind-surface",
|
|
9177
|
+
"ops": [
|
|
9178
|
+
"count"
|
|
9179
|
+
],
|
|
9180
|
+
"statement": "The UNFILTERED count is blind in this zone (0 even when data exists); a FILTERED count returns the real total and the unfiltered query returns rows, so count with a filter (e.g. id gt 0).",
|
|
9181
|
+
"evidence": "the UNFILTERED count answers 0 while a filtered count (a single `id gt 0` condition) returns the real total and the unfiltered query page returns real rows"
|
|
9182
|
+
}
|
|
9183
|
+
],
|
|
9169
9184
|
"createGuidance": {
|
|
9170
9185
|
"createOp": "user_defined_field_definitions.create",
|
|
9171
9186
|
"parentScoped": false,
|
|
@@ -9211,8 +9226,23 @@ var RELATIONSHIP_MAP = {
|
|
|
9211
9226
|
"searchCovers": null,
|
|
9212
9227
|
"findBy": []
|
|
9213
9228
|
},
|
|
9214
|
-
"blindSurfaces":
|
|
9229
|
+
"blindSurfaces": {
|
|
9230
|
+
"count": {
|
|
9231
|
+
"kind": "unfiltered-blind",
|
|
9232
|
+
"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 \u2014 count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
9233
|
+
}
|
|
9234
|
+
},
|
|
9215
9235
|
"zoneFacts": {
|
|
9236
|
+
"quirks": [
|
|
9237
|
+
{
|
|
9238
|
+
"kind": "blind-surface",
|
|
9239
|
+
"ops": [
|
|
9240
|
+
"count"
|
|
9241
|
+
],
|
|
9242
|
+
"statement": "The UNFILTERED count is blind in this zone (0 even when data exists); a FILTERED count returns the real total and the unfiltered query returns rows, so count with a filter (e.g. id gt 0).",
|
|
9243
|
+
"evidence": "the UNFILTERED count answers 0 while a filtered count (a single `id gt 0` condition) returns the real total and the unfiltered query page returns real rows"
|
|
9244
|
+
}
|
|
9245
|
+
],
|
|
9216
9246
|
"createGuidance": {
|
|
9217
9247
|
"createOp": "user_defined_field_list_items.create",
|
|
9218
9248
|
"parentScoped": true,
|
|
@@ -9407,6 +9437,22 @@ var BLIND_SURFACE_STAMPS = {
|
|
|
9407
9437
|
"authority": "billing_codes.get",
|
|
9408
9438
|
"note": "the UNFILTERED billing_codes count/query surface is blind in this zone. Query with `useType` (1 = general, 3 = internal) + `isActive` filters \u2014 filtered queries return real data; a raw caller must pass those filters (the allocation-code-aware createForResource node op was cut). get(id) is the authority."
|
|
9409
9439
|
}
|
|
9440
|
+
},
|
|
9441
|
+
"user_defined_field_definitions": {
|
|
9442
|
+
"count": {
|
|
9443
|
+
"surface": "user_defined_field_definitions.count",
|
|
9444
|
+
"kind": "unfiltered-blind",
|
|
9445
|
+
"authority": "user_defined_field_definitions.get",
|
|
9446
|
+
"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 \u2014 count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
9447
|
+
}
|
|
9448
|
+
},
|
|
9449
|
+
"user_defined_field_list_items": {
|
|
9450
|
+
"count": {
|
|
9451
|
+
"surface": "user_defined_field_list_items.count",
|
|
9452
|
+
"kind": "unfiltered-blind",
|
|
9453
|
+
"authority": "user_defined_field_list_items.get",
|
|
9454
|
+
"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 \u2014 count with a filter (e.g. `id gt 0`) or page the query; get(id) is the authority for a specific record."
|
|
9455
|
+
}
|
|
9410
9456
|
}
|
|
9411
9457
|
};
|
|
9412
9458
|
var DELETE_BOUNDARY_NOTES = {
|
|
@@ -15039,8 +15085,7 @@ function attachEmptyReasonDetails(err) {
|
|
|
15039
15085
|
if (stamp !== void 0) {
|
|
15040
15086
|
err.details.emptyReason = stamp;
|
|
15041
15087
|
} else if (isGetMiss) {
|
|
15042
|
-
const
|
|
15043
|
-
const blind = blindOps !== void 0 ? Object.values(blindOps).find((v) => v !== void 0) : void 0;
|
|
15088
|
+
const blind = BLIND_SURFACE_STAMPS[resource]?.query;
|
|
15044
15089
|
err.details.emptyReason = blind !== void 0 ? {
|
|
15045
15090
|
surface,
|
|
15046
15091
|
kind: "blind-surface",
|
|
@@ -21537,7 +21582,7 @@ function dateBucketLabel(value, bucket) {
|
|
|
21537
21582
|
var queryResourceKeysPromise = null;
|
|
21538
21583
|
function queryResourceKeys() {
|
|
21539
21584
|
if (queryResourceKeysPromise === null) {
|
|
21540
|
-
queryResourceKeysPromise =
|
|
21585
|
+
queryResourceKeysPromise = chunkODPM4YVG_cjs.loadCapabilityRecords().then((records) => {
|
|
21541
21586
|
const s = /* @__PURE__ */ new Set();
|
|
21542
21587
|
for (const rec of records) if (rec.operation === "query") s.add(rec.resource);
|
|
21543
21588
|
return s;
|
|
@@ -21659,7 +21704,7 @@ function parseTopAndLimit(opts, problems) {
|
|
|
21659
21704
|
return { top, limit };
|
|
21660
21705
|
}
|
|
21661
21706
|
async function checkFieldNames(resourceKey, conditions, opts, problems) {
|
|
21662
|
-
const records = resourceKey === void 0 ? [] : await
|
|
21707
|
+
const records = resourceKey === void 0 ? [] : await chunkODPM4YVG_cjs.loadCapabilityRecords();
|
|
21663
21708
|
const record = resourceKey === void 0 ? void 0 : records.find((r) => r.resource === resourceKey && r.operation === "query");
|
|
21664
21709
|
if (record === void 0) return void 0;
|
|
21665
21710
|
const strings = (v) => Array.isArray(v) ? v.filter((f) => typeof f === "string" && f.trim() !== "") : [];
|
|
@@ -22299,7 +22344,7 @@ async function uiLink(client, input) {
|
|
|
22299
22344
|
var indexPromise = null;
|
|
22300
22345
|
function operationIndex() {
|
|
22301
22346
|
if (indexPromise === null) {
|
|
22302
|
-
indexPromise =
|
|
22347
|
+
indexPromise = chunkODPM4YVG_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
|
|
22303
22348
|
}
|
|
22304
22349
|
return indexPromise;
|
|
22305
22350
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
4
|
+
"A": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
5
|
+
"operations": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0"
|
|
6
6
|
};
|
|
7
7
|
var cached = null;
|
|
8
8
|
function loadCapabilities() {
|
|
@@ -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: ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/** One pinned blind-surface stamp (the result-time sentinel object). */
|
|
@@ -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: ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/** One pinned blind-surface stamp (the result-time sentinel object). */
|