node-autotask 0.65.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 +25 -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-N4EO3KAY.js → chunk-4GH73U2I.js} +3 -3
- package/dist/{chunk-UHV7SAX6.cjs → chunk-54L7KKUD.cjs} +31 -31
- package/dist/{chunk-WKR5IJEC.cjs → chunk-7GBOQ7YA.cjs} +3 -3
- package/dist/{chunk-M63TK4ZH.cjs → chunk-C7M7PXLW.cjs} +175 -179
- package/dist/{chunk-MXLE2F5G.js → chunk-EXLJHU5W.js} +4 -8
- package/dist/{chunk-ULI4UUB3.js → chunk-N7WB65IS.js} +391 -406
- package/dist/{chunk-C73NILBZ.js → chunk-UCPSQ6GN.js} +2 -2
- package/dist/{chunk-NTHEFYA7.cjs → chunk-VO4ABDZA.cjs} +396 -411
- package/dist/{index-vcFKvZqm.d.ts → index-CYlKHo5N.d.ts} +10 -24
- package/dist/{index-CRVQBajX.d.cts → index-D_1wP3Je.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,5 +1,5 @@
|
|
|
1
|
-
import { GenericResource, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult,
|
|
2
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { GenericResource, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, 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, RELATIONSHIP_MAP, cursorToPath } from './chunk-N7WB65IS.js';
|
|
2
|
+
import { loadCapabilityRecords } from './chunk-4GH73U2I.js';
|
|
3
3
|
|
|
4
4
|
// src/resources/special/configuration_items.ts
|
|
5
5
|
async function fetchRecord(http, path, label, readOpts) {
|
|
@@ -131,15 +131,11 @@ async function profile(resource, id, opts = {}) {
|
|
|
131
131
|
const notes = await ciScopedQuery(http, "/V1.0/ConfigurationItemNotes/query", id, noteLimit);
|
|
132
132
|
const relatedItems = await ciScopedQuery(http, "/V1.0/ConfigurationItemRelatedItems/query", id, relatedLimit);
|
|
133
133
|
const associations = await ciScopedQuery(http, "/V1.0/ConfigurationItemBillingProductAssociations/query", id, PROFILE_PART_LIMIT);
|
|
134
|
-
const wallQuirk = RELATIONSHIP_MAP["configuration_items"]?.zoneFacts?.quirks?.find(
|
|
135
|
-
(q) => q.kind === "field-constraint" && q.ops.includes("create") && (q.fields ?? []).includes("productID")
|
|
136
|
-
);
|
|
137
134
|
const productAssociations = {
|
|
138
135
|
items: associations,
|
|
139
136
|
capped: associations.length >= PROFILE_PART_LIMIT,
|
|
140
|
-
blind:
|
|
137
|
+
blind: false
|
|
141
138
|
};
|
|
142
|
-
if (wallQuirk !== void 0) productAssociations.note = wallQuirk.statement;
|
|
143
139
|
const result = {
|
|
144
140
|
ci,
|
|
145
141
|
type,
|
|
@@ -153,7 +149,7 @@ async function profile(resource, id, opts = {}) {
|
|
|
153
149
|
category: category !== null ? "ok" : "absent",
|
|
154
150
|
notes: "ok",
|
|
155
151
|
relatedItems: "ok",
|
|
156
|
-
productAssociations:
|
|
152
|
+
productAssociations: "ok"
|
|
157
153
|
}
|
|
158
154
|
};
|
|
159
155
|
if (opts.names === true) {
|