node-autotask 0.9.0 → 0.10.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/MCP_TOOL_CATALOG.json +2 -2
- package/MCP_TOOL_MANIFEST.md +4 -4
- package/N8N_MCP_MANIFEST.json +2 -2
- package/N8N_MCP_MANIFEST.md +3 -3
- package/capabilities.json +1259 -1259
- package/dist/capabilities.cjs +2 -3
- package/dist/capabilities.js +1 -2
- package/dist/{chunk-UYJ5V262.js → chunk-3VB6N44U.js} +32 -182
- package/dist/{chunk-BZPFDRAE.js → chunk-6KFP5HV3.js} +1258 -1259
- package/dist/chunk-DMMMWO6A.js +0 -0
- package/dist/chunk-FLB2X6O5.cjs +1 -0
- package/dist/{chunk-UDWV4VVD.js → chunk-HWC2WPX2.js} +214 -20
- package/dist/chunk-IDPB4N2Q.cjs +1 -0
- package/dist/{chunk-QJU2N32V.js → chunk-NVJ2PTN3.js} +2 -3
- package/dist/{chunk-53MC2QRQ.cjs → chunk-QUM74WLQ.cjs} +135 -136
- package/dist/{chunk-OYHKIYVR.cjs → chunk-S7VMY5KN.cjs} +422 -572
- package/dist/chunk-UPQIUWOS.js +0 -0
- package/dist/{chunk-LTKMTXUR.cjs → chunk-WTVD2JZN.cjs} +1258 -1259
- package/dist/{chunk-RWLPTU67.cjs → chunk-WTVLHMZA.cjs} +235 -41
- package/dist/{index-ZknpNhtc.d.ts → index-BOyh7S65.d.cts} +8 -8
- package/dist/{index-CfU1JDgS.d.cts → index-DGgMD8aq.d.ts} +8 -8
- package/dist/{index-O2zzIMcQ.d.cts → index-cQ6CRexR.d.cts} +3 -1
- package/dist/{index-O2zzIMcQ.d.ts → index-cQ6CRexR.d.ts} +3 -1
- package/dist/index.cjs +21 -22
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -7
- package/dist/operations/index.cjs +133 -129
- package/dist/operations/index.d.cts +8 -3
- package/dist/operations/index.d.ts +8 -3
- package/dist/operations/index.js +9 -5
- package/dist/pool.cjs +36 -12
- package/dist/pool.d.cts +2 -2
- package/dist/pool.d.ts +2 -2
- package/dist/pool.js +31 -7
- package/dist/resources/index.cjs +5 -6
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +4 -5
- package/dist/types/index.cjs +1 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -2
- package/dist/untrusted.cjs +0 -1
- package/dist/untrusted.js +0 -1
- package/docs/API.md +12 -6
- package/package.json +1 -1
- package/dist/capabilities.cjs.map +0 -1
- package/dist/capabilities.js.map +0 -1
- package/dist/chunk-53MC2QRQ.cjs.map +0 -1
- package/dist/chunk-BZPFDRAE.js.map +0 -1
- package/dist/chunk-CXM35TEC.cjs +0 -1
- package/dist/chunk-CXM35TEC.cjs.map +0 -1
- package/dist/chunk-GIVD2CQ3.js +0 -1
- package/dist/chunk-GIVD2CQ3.js.map +0 -1
- package/dist/chunk-LTKMTXUR.cjs.map +0 -1
- package/dist/chunk-MHBMSBTA.js +0 -1
- package/dist/chunk-MHBMSBTA.js.map +0 -1
- package/dist/chunk-NZUFSSIZ.cjs +0 -1
- package/dist/chunk-NZUFSSIZ.cjs.map +0 -1
- package/dist/chunk-OYHKIYVR.cjs.map +0 -1
- package/dist/chunk-QJU2N32V.js.map +0 -1
- package/dist/chunk-RWLPTU67.cjs.map +0 -1
- package/dist/chunk-UDWV4VVD.js.map +0 -1
- package/dist/chunk-UYJ5V262.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/operations/index.cjs.map +0 -1
- package/dist/operations/index.js.map +0 -1
- package/dist/pool.cjs.map +0 -1
- package/dist/pool.js.map +0 -1
- package/dist/resources/index.cjs.map +0 -1
- package/dist/resources/index.js.map +0 -1
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/untrusted.cjs.map +0 -1
- package/dist/untrusted.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWTVD2JZNcjs = require('./chunk-WTVD2JZN.cjs');
|
|
4
4
|
|
|
5
5
|
// src/auth.ts
|
|
6
6
|
var AUTH_HEADERS = {
|
|
@@ -349,14 +349,15 @@ var QueryTooLongError = class extends AutotaskError {
|
|
|
349
349
|
this.name = "QueryTooLongError";
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
var MISSING_REQUIRED_FIELD =
|
|
352
|
+
var MISSING_REQUIRED_FIELD = /Missing Required Field:\s*([A-Za-z_][A-Za-z0-9_]*)/;
|
|
353
|
+
var VALUE_DOES_NOT_EXIST_FOR_FIELD = /Value does not exist for the required field\s+([A-Za-z_][A-Za-z0-9_]*)/;
|
|
353
354
|
function parseVendorErrors(body) {
|
|
354
355
|
if (!isRecord(body) || !Array.isArray(body.errors)) return void 0;
|
|
355
356
|
const out = [];
|
|
356
357
|
for (const entry of body.errors) {
|
|
357
358
|
if (typeof entry === "string") {
|
|
358
359
|
const item2 = { message: entry };
|
|
359
|
-
const m = MISSING_REQUIRED_FIELD.exec(entry);
|
|
360
|
+
const m = _nullishCoalesce(MISSING_REQUIRED_FIELD.exec(entry), () => ( VALUE_DOES_NOT_EXIST_FOR_FIELD.exec(entry)));
|
|
360
361
|
if (m) item2.field = m[1];
|
|
361
362
|
out.push(item2);
|
|
362
363
|
continue;
|
|
@@ -372,7 +373,11 @@ function parseVendorErrors(body) {
|
|
|
372
373
|
}
|
|
373
374
|
return out;
|
|
374
375
|
}
|
|
375
|
-
var DETERMINISTIC_VENDOR_500_PHRASES = [
|
|
376
|
+
var DETERMINISTIC_VENDOR_500_PHRASES = [
|
|
377
|
+
/exceeds maximum length/i,
|
|
378
|
+
/Missing Required Field/i,
|
|
379
|
+
/Value does not exist for the required field/i
|
|
380
|
+
];
|
|
376
381
|
function isDeterministicVendor500(entries) {
|
|
377
382
|
if (entries === void 0) return false;
|
|
378
383
|
return entries.some(
|
|
@@ -2621,16 +2626,20 @@ var RELATIONSHIP_MAP = {
|
|
|
2621
2626
|
"liveProvenPrefix": [
|
|
2622
2627
|
"endDateTime",
|
|
2623
2628
|
"actionType",
|
|
2624
|
-
"startDateTime"
|
|
2629
|
+
"startDateTime",
|
|
2630
|
+
"assignedResourceID"
|
|
2625
2631
|
],
|
|
2626
|
-
"unproven":
|
|
2632
|
+
"unproven": false,
|
|
2627
2633
|
"blocker": {
|
|
2628
|
-
"kind": "
|
|
2629
|
-
"message":
|
|
2630
|
-
"remedy": "the
|
|
2634
|
+
"kind": "delete-absent",
|
|
2635
|
+
"message": 'create succeeded live (DG-1 verification, 2026-10-11, ww29, parent company 29683380, record id 30230658, marker name "node-autotask DG-1 create probe") once the four vendor-required body fields were present \u2014 actionType, assignedResourceID, startDateTime, endDateTime \u2014 plus the parent companyID in the path. The vendor reports a missing required field as HTTP 500 SERVER_ERROR naming the field; it is a deterministic rejection, not a transient fault (the SDK now answers retryable: false \u2014 add the field, do not retry). The vendor defines no DELETE endpoint for this resource (W-A1) \u2014 the record is residue; cleanup is UI-only.',
|
|
2636
|
+
"remedy": "provision via the API as proven: send actionType (picklist, e.g. 3 = Note: General), assignedResourceID (a resource id), startDateTime and endDateTime (UTC ISO) in the body and the company id as the parent; name and note are optional content fields. Clean up the residue record in the Autotask UI (the marker name is the lookup handle) \u2014 there is no API delete path."
|
|
2631
2637
|
},
|
|
2632
2638
|
"vendorEvidence": [
|
|
2633
|
-
|
|
2639
|
+
`{"error":true,"code":"SERVER_ERROR","category":"server","retryable":false,"httpStatus":500,"operation":"company_notes.create","message":"Field 'assignedResourceID': Value does not exist for the required field assignedResourceID. ; on record number [1].","suggestedAction":"Deterministic field rejection \u2014 fix the value, do not retry. Consult operations.fieldCatalog for the field catalog (types, required, maxLength)."}`,
|
|
2640
|
+
`{"error":true,"code":"SERVER_ERROR","category":"server","retryable":false,"httpStatus":500,"operation":"company_notes.create","message":"Field 'actionType': Missing Required Field: actionType. ; on record number [1].","suggestedAction":"Deterministic field rejection \u2014 fix the value, do not retry. Consult operations.fieldCatalog for the field catalog (types, required, maxLength)."}`,
|
|
2641
|
+
`{"error":true,"code":"SERVER_ERROR","category":"server","retryable":false,"httpStatus":500,"operation":"company_notes.create","message":"Field 'endDateTime': Missing Required Field: endDateTime. ; on record number [1].","suggestedAction":"Deterministic field rejection \u2014 fix the value, do not retry. Consult operations.fieldCatalog for the field catalog (types, required, maxLength)."}`,
|
|
2642
|
+
`{"error":true,"code":"SERVER_ERROR","category":"server","retryable":false,"httpStatus":500,"operation":"company_notes.create","message":"Field 'startDateTime': Missing Required Field: startDateTime. ; on record number [1].","suggestedAction":"Deterministic field rejection \u2014 fix the value, do not retry. Consult operations.fieldCatalog for the field catalog (types, required, maxLength)."}`
|
|
2634
2643
|
],
|
|
2635
2644
|
"deleteBoundary": {
|
|
2636
2645
|
"available": false,
|
|
@@ -11940,16 +11949,20 @@ var CREATE_GUIDANCE = {
|
|
|
11940
11949
|
"liveProvenPrefix": [
|
|
11941
11950
|
"endDateTime",
|
|
11942
11951
|
"actionType",
|
|
11943
|
-
"startDateTime"
|
|
11952
|
+
"startDateTime",
|
|
11953
|
+
"assignedResourceID"
|
|
11944
11954
|
],
|
|
11945
|
-
"unproven":
|
|
11955
|
+
"unproven": false,
|
|
11946
11956
|
"blocker": {
|
|
11947
|
-
"kind": "
|
|
11948
|
-
"message":
|
|
11949
|
-
"remedy": "the
|
|
11957
|
+
"kind": "delete-absent",
|
|
11958
|
+
"message": 'create succeeded live (DG-1 verification, 2026-10-11, ww29, parent company 29683380, record id 30230658, marker name "node-autotask DG-1 create probe") once the four vendor-required body fields were present \u2014 actionType, assignedResourceID, startDateTime, endDateTime \u2014 plus the parent companyID in the path. The vendor reports a missing required field as HTTP 500 SERVER_ERROR naming the field; it is a deterministic rejection, not a transient fault (the SDK now answers retryable: false \u2014 add the field, do not retry). The vendor defines no DELETE endpoint for this resource (W-A1) \u2014 the record is residue; cleanup is UI-only.',
|
|
11959
|
+
"remedy": "provision via the API as proven: send actionType (picklist, e.g. 3 = Note: General), assignedResourceID (a resource id), startDateTime and endDateTime (UTC ISO) in the body and the company id as the parent; name and note are optional content fields. Clean up the residue record in the Autotask UI (the marker name is the lookup handle) \u2014 there is no API delete path."
|
|
11950
11960
|
},
|
|
11951
11961
|
"vendorEvidence": [
|
|
11952
|
-
|
|
11962
|
+
`{"error":true,"code":"SERVER_ERROR","category":"server","retryable":false,"httpStatus":500,"operation":"company_notes.create","message":"Field 'assignedResourceID': Value does not exist for the required field assignedResourceID. ; on record number [1].","suggestedAction":"Deterministic field rejection \u2014 fix the value, do not retry. Consult operations.fieldCatalog for the field catalog (types, required, maxLength)."}`,
|
|
11963
|
+
`{"error":true,"code":"SERVER_ERROR","category":"server","retryable":false,"httpStatus":500,"operation":"company_notes.create","message":"Field 'actionType': Missing Required Field: actionType. ; on record number [1].","suggestedAction":"Deterministic field rejection \u2014 fix the value, do not retry. Consult operations.fieldCatalog for the field catalog (types, required, maxLength)."}`,
|
|
11964
|
+
`{"error":true,"code":"SERVER_ERROR","category":"server","retryable":false,"httpStatus":500,"operation":"company_notes.create","message":"Field 'endDateTime': Missing Required Field: endDateTime. ; on record number [1].","suggestedAction":"Deterministic field rejection \u2014 fix the value, do not retry. Consult operations.fieldCatalog for the field catalog (types, required, maxLength)."}`,
|
|
11965
|
+
`{"error":true,"code":"SERVER_ERROR","category":"server","retryable":false,"httpStatus":500,"operation":"company_notes.create","message":"Field 'startDateTime': Missing Required Field: startDateTime. ; on record number [1].","suggestedAction":"Deterministic field rejection \u2014 fix the value, do not retry. Consult operations.fieldCatalog for the field catalog (types, required, maxLength)."}`
|
|
11953
11966
|
],
|
|
11954
11967
|
"deleteBoundary": {
|
|
11955
11968
|
"available": false,
|
|
@@ -13936,9 +13949,9 @@ var CREATE_GUIDANCE = {
|
|
|
13936
13949
|
"picklist-unexposed": 5,
|
|
13937
13950
|
"undocumented-ladder": 1,
|
|
13938
13951
|
"resource-role-pair": 2,
|
|
13939
|
-
"delete-absent":
|
|
13952
|
+
"delete-absent": 8,
|
|
13940
13953
|
"non-mutable": 0,
|
|
13941
|
-
"unknown":
|
|
13954
|
+
"unknown": 12
|
|
13942
13955
|
}
|
|
13943
13956
|
}
|
|
13944
13957
|
};
|
|
@@ -15916,7 +15929,7 @@ function capabilitySets() {
|
|
|
15916
15929
|
const fieldOps = /* @__PURE__ */ new Map();
|
|
15917
15930
|
const udfOps = /* @__PURE__ */ new Map();
|
|
15918
15931
|
const resources = /* @__PURE__ */ new Set();
|
|
15919
|
-
for (const rec of
|
|
15932
|
+
for (const rec of _chunkWTVD2JZNcjs.CAPABILITIES) {
|
|
15920
15933
|
if (rec.resource === "operations") continue;
|
|
15921
15934
|
resources.add(rec.resource);
|
|
15922
15935
|
if (rec.operation === "getFieldInfo") fieldOps.set(rec.resource, rec);
|
|
@@ -16126,6 +16139,182 @@ async function fieldCatalog(client, opts) {
|
|
|
16126
16139
|
};
|
|
16127
16140
|
}
|
|
16128
16141
|
|
|
16142
|
+
// src/operations/compositeNames.ts
|
|
16143
|
+
var PICKLIST_VALUE_NOT_SERVED_NOTE = "The picklist is served to this API user, but this record's value is not in it (an inactive or unexposed value) \u2014 the label cannot be resolved and is null; refreshing the field catalog will not surface it. (A picklist the vendor does not expose at all is reported with the field-catalog honesty note instead.)";
|
|
16144
|
+
var DEFAULT_MAX_NAME_READS = 20;
|
|
16145
|
+
var TICKET_LABEL_FIELDS = ["status", "priority", "ticketType", "issueType", "subIssueType", "source", "queueID"];
|
|
16146
|
+
function isVendorId(value) {
|
|
16147
|
+
if (typeof value === "number") return Number.isSafeInteger(value) && value >= 0;
|
|
16148
|
+
if (typeof value === "string") return /^\d+$/.test(value);
|
|
16149
|
+
return false;
|
|
16150
|
+
}
|
|
16151
|
+
function createNamePlan(labelFields = []) {
|
|
16152
|
+
const resourceIds = [];
|
|
16153
|
+
const resSeen = /* @__PURE__ */ new Set();
|
|
16154
|
+
const recordFks = [];
|
|
16155
|
+
const fkSeen = /* @__PURE__ */ new Set();
|
|
16156
|
+
return {
|
|
16157
|
+
plan: () => ({ resourceIds, recordFks, labelFields }),
|
|
16158
|
+
addResource: (value) => {
|
|
16159
|
+
if (!isVendorId(value)) return;
|
|
16160
|
+
const k = String(value);
|
|
16161
|
+
if (!resSeen.has(k)) {
|
|
16162
|
+
resSeen.add(k);
|
|
16163
|
+
resourceIds.push(value);
|
|
16164
|
+
}
|
|
16165
|
+
},
|
|
16166
|
+
addFk: (table, value) => {
|
|
16167
|
+
if (!isVendorId(value)) return;
|
|
16168
|
+
const k = `${table}:${String(value)}`;
|
|
16169
|
+
if (!fkSeen.has(k)) {
|
|
16170
|
+
fkSeen.add(k);
|
|
16171
|
+
recordFks.push({ table, id: value });
|
|
16172
|
+
}
|
|
16173
|
+
}
|
|
16174
|
+
};
|
|
16175
|
+
}
|
|
16176
|
+
function addNameSibling(row, field, resolve) {
|
|
16177
|
+
const value = row[field];
|
|
16178
|
+
if (value === void 0) return;
|
|
16179
|
+
row[`${field}Name`] = isVendorId(value) ? resolve(value) : null;
|
|
16180
|
+
}
|
|
16181
|
+
function addLabelSibling(row, field, names) {
|
|
16182
|
+
const value = row[field];
|
|
16183
|
+
if (value === void 0) return;
|
|
16184
|
+
row[`${field}Label`] = names.labelFor(field, value);
|
|
16185
|
+
}
|
|
16186
|
+
var FK_TABLE_PATH = {
|
|
16187
|
+
role: "/V1.0/Roles",
|
|
16188
|
+
billingCode: "/V1.0/BillingCodes",
|
|
16189
|
+
contract: "/V1.0/Contracts"
|
|
16190
|
+
};
|
|
16191
|
+
var FK_NAME_FIELD = {
|
|
16192
|
+
role: "name",
|
|
16193
|
+
billingCode: "name",
|
|
16194
|
+
contract: "contractName"
|
|
16195
|
+
};
|
|
16196
|
+
function fkName(record, table) {
|
|
16197
|
+
const value = record[FK_NAME_FIELD[table]];
|
|
16198
|
+
return typeof value === "string" && value.trim() !== "" ? value : null;
|
|
16199
|
+
}
|
|
16200
|
+
function faultRow(err) {
|
|
16201
|
+
const e = err;
|
|
16202
|
+
return e.httpStatus !== void 0 ? { code: e.code, message: e.message, httpStatus: e.httpStatus } : { code: e.code, message: e.message };
|
|
16203
|
+
}
|
|
16204
|
+
async function resolveCompositeNames(http, plan, opts = {}) {
|
|
16205
|
+
if (opts.maxNameReads !== void 0 && (!Number.isInteger(opts.maxNameReads) || opts.maxNameReads < 1)) {
|
|
16206
|
+
throw new AutotaskConfigError(`composite names: maxNameReads must be an integer >= 1 (got ${String(opts.maxNameReads)})`);
|
|
16207
|
+
}
|
|
16208
|
+
const budget = Math.min(DEFAULT_MAX_NAME_READS, _nullishCoalesce(opts.maxNameReads, () => ( DEFAULT_MAX_NAME_READS)));
|
|
16209
|
+
const client = http.client;
|
|
16210
|
+
if (client === void 0) {
|
|
16211
|
+
throw new AutotaskConfigError("composite names: the transport is not wired to an AutotaskClient (the composite must run through the client)");
|
|
16212
|
+
}
|
|
16213
|
+
const readCache = http.readCache;
|
|
16214
|
+
const nameCache = http.resourceNameCache;
|
|
16215
|
+
const section = { truncated: false, rows: {}, reasons: {} };
|
|
16216
|
+
let remaining = budget;
|
|
16217
|
+
const coldResource = [];
|
|
16218
|
+
for (const id of plan.resourceIds) {
|
|
16219
|
+
if (nameCache !== void 0 && nameCache.get(id) !== void 0) continue;
|
|
16220
|
+
if (readCache !== void 0 && readCache.get(`/V1.0/Resources/${id}`) !== void 0) continue;
|
|
16221
|
+
coldResource.push(id);
|
|
16222
|
+
}
|
|
16223
|
+
const withinBudget = coldResource.slice(0, remaining);
|
|
16224
|
+
const overBudgetResource = coldResource.slice(remaining);
|
|
16225
|
+
remaining -= withinBudget.length;
|
|
16226
|
+
for (const id of overBudgetResource) {
|
|
16227
|
+
section.rows[`resource:${id}`] = { name: null, blind: false, capped: true };
|
|
16228
|
+
section.truncated = true;
|
|
16229
|
+
}
|
|
16230
|
+
const overSet = new Set(overBudgetResource.map((id) => String(id)));
|
|
16231
|
+
const opIds = plan.resourceIds.filter((id) => !overSet.has(String(id)));
|
|
16232
|
+
if (opIds.length > 0) {
|
|
16233
|
+
let pass = opIds;
|
|
16234
|
+
if (pass.length > 500) {
|
|
16235
|
+
for (const id of pass.slice(500)) {
|
|
16236
|
+
section.rows[`resource:${id}`] = { name: null, blind: false, capped: true };
|
|
16237
|
+
section.truncated = true;
|
|
16238
|
+
}
|
|
16239
|
+
pass = pass.slice(0, 500);
|
|
16240
|
+
}
|
|
16241
|
+
const res = await expandResourceNames(client, pass);
|
|
16242
|
+
for (const r of res.results) {
|
|
16243
|
+
const row = { name: r.name, blind: r.blind, capped: false };
|
|
16244
|
+
if (r.error !== void 0) row.error = faultRow(r.error);
|
|
16245
|
+
section.rows[`resource:${r.id}`] = row;
|
|
16246
|
+
}
|
|
16247
|
+
}
|
|
16248
|
+
const holders = {
|
|
16249
|
+
role: client.roles,
|
|
16250
|
+
billingCode: client.billingCodes,
|
|
16251
|
+
contract: client.contracts
|
|
16252
|
+
};
|
|
16253
|
+
for (const fk of plan.recordFks) {
|
|
16254
|
+
const key = `${fk.table}:${fk.id}`;
|
|
16255
|
+
const cold = readCache === void 0 || readCache.get(`${FK_TABLE_PATH[fk.table]}/${fk.id}`) === void 0;
|
|
16256
|
+
if (cold) {
|
|
16257
|
+
if (remaining < 1) {
|
|
16258
|
+
section.rows[key] = { name: null, blind: false, capped: true };
|
|
16259
|
+
section.truncated = true;
|
|
16260
|
+
continue;
|
|
16261
|
+
}
|
|
16262
|
+
remaining -= 1;
|
|
16263
|
+
}
|
|
16264
|
+
try {
|
|
16265
|
+
const record = await holders[fk.table].get(fk.id);
|
|
16266
|
+
section.rows[key] = { name: fkName(record, fk.table), blind: false, capped: false };
|
|
16267
|
+
} catch (err) {
|
|
16268
|
+
if (err instanceof NotFoundError) {
|
|
16269
|
+
section.rows[key] = { name: null, blind: true, capped: false };
|
|
16270
|
+
} else if (isAutotaskError(err) && err.code !== "ABORTED") {
|
|
16271
|
+
section.rows[key] = { name: null, blind: false, capped: false, error: faultRow(err) };
|
|
16272
|
+
} else {
|
|
16273
|
+
throw err;
|
|
16274
|
+
}
|
|
16275
|
+
}
|
|
16276
|
+
}
|
|
16277
|
+
const picklists = {};
|
|
16278
|
+
if (plan.labelFields.length > 0) {
|
|
16279
|
+
let usable = true;
|
|
16280
|
+
try {
|
|
16281
|
+
const catalog = await fieldCatalog(client, { resources: ["tickets"], labels: true, fields: [...plan.labelFields] });
|
|
16282
|
+
const row = catalog.rows.find((r) => r.resource === "tickets");
|
|
16283
|
+
if (row === void 0 || row.error !== null || row.fields === void 0) {
|
|
16284
|
+
usable = false;
|
|
16285
|
+
} else {
|
|
16286
|
+
for (const f of plan.labelFields) {
|
|
16287
|
+
const frow = row.fields.find((x) => x.name === f);
|
|
16288
|
+
picklists[f] = _optionalChain([frow, 'optionalAccess', _128 => _128.picklistValues]);
|
|
16289
|
+
}
|
|
16290
|
+
}
|
|
16291
|
+
} catch (err) {
|
|
16292
|
+
if (isAutotaskError(err) && err.code !== "ABORTED") usable = false;
|
|
16293
|
+
else throw err;
|
|
16294
|
+
}
|
|
16295
|
+
if (!usable) for (const f of plan.labelFields) section.reasons[f] = FIELD_CATALOG_HONESTY_NOTE;
|
|
16296
|
+
}
|
|
16297
|
+
return {
|
|
16298
|
+
section,
|
|
16299
|
+
resourceName: (id) => _nullishCoalesce(_optionalChain([section, 'access', _129 => _129.rows, 'access', _130 => _130[`resource:${id}`], 'optionalAccess', _131 => _131.name]), () => ( null)),
|
|
16300
|
+
recordName: (table, id) => _nullishCoalesce(_optionalChain([section, 'access', _132 => _132.rows, 'access', _133 => _133[`${table}:${id}`], 'optionalAccess', _134 => _134.name]), () => ( null)),
|
|
16301
|
+
labelFor: (field, value) => {
|
|
16302
|
+
if (value === null || value === void 0) return null;
|
|
16303
|
+
const values = picklists[field];
|
|
16304
|
+
if (values === void 0) {
|
|
16305
|
+
section.reasons[field] = FIELD_CATALOG_HONESTY_NOTE;
|
|
16306
|
+
return null;
|
|
16307
|
+
}
|
|
16308
|
+
const hit = values.find((v) => String(v.value) === String(value));
|
|
16309
|
+
if (hit === void 0) {
|
|
16310
|
+
section.reasons[field] = PICKLIST_VALUE_NOT_SERVED_NOTE;
|
|
16311
|
+
return null;
|
|
16312
|
+
}
|
|
16313
|
+
return typeof hit.label === "string" ? hit.label : null;
|
|
16314
|
+
}
|
|
16315
|
+
};
|
|
16316
|
+
}
|
|
16317
|
+
|
|
16129
16318
|
// src/resources/base.ts
|
|
16130
16319
|
var BOUNDED_QUERY_DEFAULT_LIMIT = 500;
|
|
16131
16320
|
var BOUNDED_QUERY_MAX_LIMIT = 2500;
|
|
@@ -16185,7 +16374,7 @@ function blindEmptyReason(stamp) {
|
|
|
16185
16374
|
};
|
|
16186
16375
|
}
|
|
16187
16376
|
function attachUpdateTargetMissReason(err, key) {
|
|
16188
|
-
const pinned = _optionalChain([EMPTY_REASON_STAMPS, 'access',
|
|
16377
|
+
const pinned = _optionalChain([EMPTY_REASON_STAMPS, 'access', _135 => _135[key], 'optionalAccess', _136 => _136.update]);
|
|
16189
16378
|
if (pinned === void 0) return;
|
|
16190
16379
|
err.details = { ..._nullishCoalesce(err.details, () => ( {})), emptyReason: pinned };
|
|
16191
16380
|
}
|
|
@@ -16350,7 +16539,7 @@ var BaseResource = class {
|
|
|
16350
16539
|
return (page, pageSize) => this.fetchPage(p, page, pageSize, state);
|
|
16351
16540
|
}
|
|
16352
16541
|
walkPageSize(params) {
|
|
16353
|
-
return clampPageSize(_nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
16542
|
+
return clampPageSize(_nullishCoalesce(_optionalChain([params, 'optionalAccess', _137 => _137.maxRecords]), () => ( this.defaultPageSize)));
|
|
16354
16543
|
}
|
|
16355
16544
|
/** Stream items across pages (the resource `query` surface). */
|
|
16356
16545
|
queryItems(params) {
|
|
@@ -16362,7 +16551,7 @@ var BaseResource = class {
|
|
|
16362
16551
|
}
|
|
16363
16552
|
/** Collect every item across all pages (the resource `queryAll` surface; 1000-page guarded). */
|
|
16364
16553
|
async queryAllItems(params) {
|
|
16365
|
-
return collectAll(this.pageFetcher(params), { pageSize: this.walkPageSize(params), maxRecords: _optionalChain([params, 'optionalAccess',
|
|
16554
|
+
return collectAll(this.pageFetcher(params), { pageSize: this.walkPageSize(params), maxRecords: _optionalChain([params, 'optionalAccess', _138 => _138.maxTotalRecords]) });
|
|
16366
16555
|
}
|
|
16367
16556
|
/**
|
|
16368
16557
|
* `queryBounded` — server-side pagination (the MCP query surface): ONE call
|
|
@@ -16397,19 +16586,19 @@ var BaseResource = class {
|
|
|
16397
16586
|
"queryBounded: params must be an object { filter?, limit?, latest?, includeFields? } \u2014 a bare conditions array is not accepted (wrap it: { filter: [...] })"
|
|
16398
16587
|
);
|
|
16399
16588
|
}
|
|
16400
|
-
const limit = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
16589
|
+
const limit = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _139 => _139.limit]), () => ( BOUNDED_QUERY_DEFAULT_LIMIT));
|
|
16401
16590
|
if (!Number.isInteger(limit) || limit < 1 || limit > BOUNDED_QUERY_MAX_LIMIT) {
|
|
16402
16591
|
throw new AutotaskConfigError(
|
|
16403
16592
|
`queryBounded: limit must be an integer 1..${BOUNDED_QUERY_MAX_LIMIT} (got ${String(limit)}) \u2014 it is the TOTAL record cap, not a page size`
|
|
16404
16593
|
);
|
|
16405
16594
|
}
|
|
16406
|
-
const noteChars = _optionalChain([params, 'optionalAccess',
|
|
16595
|
+
const noteChars = _optionalChain([params, 'optionalAccess', _140 => _140.noteChars]);
|
|
16407
16596
|
if (noteChars !== void 0 && (!Number.isInteger(noteChars) || noteChars < 1)) {
|
|
16408
16597
|
throw new AutotaskConfigError(
|
|
16409
16598
|
`queryBounded: noteChars must be an integer >= 1 (got ${String(noteChars)}) \u2014 it is the per-field char cap on the untrusted-class free-text fields (absent = the raw, untruncated result)`
|
|
16410
16599
|
);
|
|
16411
16600
|
}
|
|
16412
|
-
const walkParams = _optionalChain([params, 'optionalAccess',
|
|
16601
|
+
const walkParams = _optionalChain([params, 'optionalAccess', _141 => _141.fieldsPreset]) !== void 0 ? { ...params, includeFields: resolveFieldsPreset(params.fieldsPreset, this.config.key, params.includeFields) } : _nullishCoalesce(params, () => ( {}));
|
|
16413
16602
|
const latest = walkParams.latest;
|
|
16414
16603
|
if (latest !== void 0) {
|
|
16415
16604
|
if (!Number.isInteger(latest) || latest < 1 || latest > BOUNDED_QUERY_MAX_LIMIT) {
|
|
@@ -16417,7 +16606,7 @@ var BaseResource = class {
|
|
|
16417
16606
|
`queryBounded: latest must be an integer 1..${BOUNDED_QUERY_MAX_LIMIT} (got ${String(latest)}) \u2014 it is the count of the highest-id rows to return`
|
|
16418
16607
|
);
|
|
16419
16608
|
}
|
|
16420
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
16609
|
+
if (_optionalChain([params, 'optionalAccess', _142 => _142.limit]) !== void 0 && limit < latest) {
|
|
16421
16610
|
throw new AutotaskConfigError(
|
|
16422
16611
|
`queryBounded: limit (${String(limit)}) must be >= latest (${String(latest)}) \u2014 latest governs the returned count and limit is the walk window`
|
|
16423
16612
|
);
|
|
@@ -16499,8 +16688,8 @@ var BaseResource = class {
|
|
|
16499
16688
|
* speculation). */
|
|
16500
16689
|
stampEmptyQueryResult(result, params) {
|
|
16501
16690
|
if (result.items.length !== 0) return;
|
|
16502
|
-
result.blindSurface = blindStampFor(_optionalChain([BLIND_SURFACE_STAMPS, 'access',
|
|
16503
|
-
const pinnedReason = normalizedConditions(_optionalChain([params, 'optionalAccess',
|
|
16691
|
+
result.blindSurface = blindStampFor(_optionalChain([BLIND_SURFACE_STAMPS, 'access', _143 => _143[this.config.key], 'optionalAccess', _144 => _144.query]), _optionalChain([params, 'optionalAccess', _145 => _145.filter]));
|
|
16692
|
+
const pinnedReason = normalizedConditions(_optionalChain([params, 'optionalAccess', _146 => _146.filter])) === void 0 ? _optionalChain([EMPTY_REASON_STAMPS, 'access', _147 => _147[this.config.key], 'optionalAccess', _148 => _148.query]) : void 0;
|
|
16504
16693
|
if (result.blindSurface !== void 0 || pinnedReason !== void 0) {
|
|
16505
16694
|
result.emptyReason = result.blindSurface !== void 0 ? blindEmptyReason(result.blindSurface) : pinnedReason;
|
|
16506
16695
|
}
|
|
@@ -16651,7 +16840,7 @@ var BaseResource = class {
|
|
|
16651
16840
|
if (result.items.length === 0) {
|
|
16652
16841
|
this.stampEmptyQueryResult(result, params);
|
|
16653
16842
|
} else {
|
|
16654
|
-
result.blindSurface = blindStampFor(_optionalChain([BLIND_SURFACE_STAMPS, 'access',
|
|
16843
|
+
result.blindSurface = blindStampFor(_optionalChain([BLIND_SURFACE_STAMPS, 'access', _149 => _149[this.config.key], 'optionalAccess', _150 => _150.query]), params.filter);
|
|
16655
16844
|
}
|
|
16656
16845
|
return result;
|
|
16657
16846
|
}
|
|
@@ -16690,7 +16879,7 @@ var BaseResource = class {
|
|
|
16690
16879
|
* or, on a plan-pinned blind surface, the `{ count: 0, blindSurface }`
|
|
16691
16880
|
* typed sentinel (S12-C T10; see `BlindCountResult`). */
|
|
16692
16881
|
async countGlobal(params) {
|
|
16693
|
-
const conditions = normalizedConditions(_optionalChain([params, 'optionalAccess',
|
|
16882
|
+
const conditions = normalizedConditions(_optionalChain([params, 'optionalAccess', _151 => _151.filter]));
|
|
16694
16883
|
const body = {};
|
|
16695
16884
|
body.filter = conditions === void 0 ? [] : buildFilter(conditions).filter;
|
|
16696
16885
|
const res = await this.http.request({
|
|
@@ -16701,9 +16890,9 @@ var BaseResource = class {
|
|
|
16701
16890
|
idempotent: true
|
|
16702
16891
|
});
|
|
16703
16892
|
const count = unwrapQueryCount(res, `${this.config.key}.count`);
|
|
16704
|
-
const stamp = blindStampFor(_optionalChain([BLIND_SURFACE_STAMPS, 'access',
|
|
16893
|
+
const stamp = blindStampFor(_optionalChain([BLIND_SURFACE_STAMPS, 'access', _152 => _152[this.config.key], 'optionalAccess', _153 => _153.count]), _optionalChain([params, 'optionalAccess', _154 => _154.filter]));
|
|
16705
16894
|
if (count === 0) {
|
|
16706
|
-
const pinnedReason = conditions === void 0 ? _optionalChain([EMPTY_REASON_STAMPS, 'access',
|
|
16895
|
+
const pinnedReason = conditions === void 0 ? _optionalChain([EMPTY_REASON_STAMPS, 'access', _155 => _155[this.config.key], 'optionalAccess', _156 => _156.count]) : void 0;
|
|
16707
16896
|
if (stamp !== void 0 || pinnedReason !== void 0) {
|
|
16708
16897
|
return {
|
|
16709
16898
|
count,
|
|
@@ -16734,9 +16923,9 @@ var BaseResource = class {
|
|
|
16734
16923
|
const hit = cache.get(path);
|
|
16735
16924
|
if (hit !== void 0) return hit;
|
|
16736
16925
|
}
|
|
16737
|
-
const epoch = _optionalChain([cache, 'optionalAccess',
|
|
16926
|
+
const epoch = _optionalChain([cache, 'optionalAccess', _157 => _157.epoch]);
|
|
16738
16927
|
const res = await this.http.request({ method: "GET", path, operation });
|
|
16739
|
-
_optionalChain([cache, 'optionalAccess',
|
|
16928
|
+
_optionalChain([cache, 'optionalAccess', _158 => _158.set, 'call', _159 => _159(path, res, resource, epoch)]);
|
|
16740
16929
|
return res;
|
|
16741
16930
|
}
|
|
16742
16931
|
/**
|
|
@@ -16775,7 +16964,7 @@ var BaseResource = class {
|
|
|
16775
16964
|
return value;
|
|
16776
16965
|
});
|
|
16777
16966
|
work.catch((err) => {
|
|
16778
|
-
if (err instanceof AutotaskError && (err.code === "INVALID_RESPONSE" || _optionalChain([err, 'access',
|
|
16967
|
+
if (err instanceof AutotaskError && (err.code === "INVALID_RESPONSE" || _optionalChain([err, 'access', _160 => _160.details, 'optionalAccess', _161 => _161.deterministic]) === true)) {
|
|
16779
16968
|
cache.invalidate(key);
|
|
16780
16969
|
}
|
|
16781
16970
|
});
|
|
@@ -17472,7 +17661,7 @@ var BaseResource = class {
|
|
|
17472
17661
|
current = parentId === void 0 ? await this.getGlobal(id, true) : this.config.attachmentGet ? await this.getScopedModel(parentId, id, true) : await this.getScopedRaw(parentId, id, true);
|
|
17473
17662
|
} catch (err) {
|
|
17474
17663
|
if (err instanceof NotFoundError) {
|
|
17475
|
-
const updateReason = _optionalChain([EMPTY_REASON_STAMPS, 'access',
|
|
17664
|
+
const updateReason = _optionalChain([EMPTY_REASON_STAMPS, 'access', _162 => _162[this.config.key], 'optionalAccess', _163 => _163.update]);
|
|
17476
17665
|
checks.push({
|
|
17477
17666
|
name: "current-record-exists",
|
|
17478
17667
|
ok: false,
|
|
@@ -17630,12 +17819,12 @@ var BaseResource = class {
|
|
|
17630
17819
|
return null;
|
|
17631
17820
|
}
|
|
17632
17821
|
}
|
|
17633
|
-
const epoch = _optionalChain([cache, 'optionalAccess',
|
|
17822
|
+
const epoch = _optionalChain([cache, 'optionalAccess', _164 => _164.epoch]);
|
|
17634
17823
|
try {
|
|
17635
17824
|
return await this.fetchRecordRaw(entityPath, referenceId);
|
|
17636
17825
|
} catch (err) {
|
|
17637
17826
|
if (err instanceof NotFoundError) {
|
|
17638
|
-
_optionalChain([cache, 'optionalAccess',
|
|
17827
|
+
_optionalChain([cache, 'optionalAccess', _165 => _165.set, 'call', _166 => _166(absentKey, CONTEXT_ABSENT_MARKER, RESOURCE_KEY_BY_PATH[entityPath], epoch)]);
|
|
17639
17828
|
return null;
|
|
17640
17829
|
}
|
|
17641
17830
|
throw err;
|
|
@@ -17751,7 +17940,7 @@ var BaseResource = class {
|
|
|
17751
17940
|
missDetail(operator, fields) {
|
|
17752
17941
|
const key = this.config.key;
|
|
17753
17942
|
const probe = fields.map((field) => ({ field, op: operator, value: "" }));
|
|
17754
|
-
const blind = blindStampFor(_optionalChain([BLIND_SURFACE_STAMPS, 'access',
|
|
17943
|
+
const blind = blindStampFor(_optionalChain([BLIND_SURFACE_STAMPS, 'access', _167 => _167[key], 'optionalAccess', _168 => _168.query]), probe);
|
|
17755
17944
|
const next = [];
|
|
17756
17945
|
if (blind !== void 0) {
|
|
17757
17946
|
next.push(`This surface is blind to records the API user does not own, so a miss is not proof of absence: ${blind.authority} returns the record when the id is known.`);
|
|
@@ -18009,5 +18198,10 @@ var BaseResource = class {
|
|
|
18009
18198
|
|
|
18010
18199
|
|
|
18011
18200
|
|
|
18012
|
-
|
|
18013
|
-
|
|
18201
|
+
|
|
18202
|
+
|
|
18203
|
+
|
|
18204
|
+
|
|
18205
|
+
|
|
18206
|
+
|
|
18207
|
+
exports.AUTH_HEADERS = AUTH_HEADERS; exports.buildAuthHeaders = buildAuthHeaders; exports.withAuthHeaders = withAuthHeaders; exports.NoopLogger = NoopLogger; exports.REDACTED = REDACTED; exports.CREDENTIAL_HEADER_NAMES = CREDENTIAL_HEADER_NAMES; exports.isCredentialHeaderName = isCredentialHeaderName; exports.redactRecord = redactRecord; exports.SECRET_RESPONSE_FIELDS = SECRET_RESPONSE_FIELDS; exports.PERSONAL_RESPONSE_FIELDS = PERSONAL_RESPONSE_FIELDS; exports.CONFIDENTIAL_RESPONSE_FIELDS = CONFIDENTIAL_RESPONSE_FIELDS; exports.isRedactedFieldName = isRedactedFieldName; exports.redactResponseBody = redactResponseBody; exports.AutotaskError = AutotaskError; exports.AutotaskConfigError = AutotaskConfigError; exports.AutotaskNetworkError = AutotaskNetworkError; exports.AutotaskTimeoutError = AutotaskTimeoutError; exports.AutotaskAbortError = AutotaskAbortError; exports.ResponseRejectedError = ResponseRejectedError; exports.BadRequestError = BadRequestError; exports.UnauthorizedError = UnauthorizedError; exports.ForbiddenError = ForbiddenError; exports.NotFoundError = NotFoundError; exports.ConflictError = ConflictError; exports.UnprocessableEntityError = UnprocessableEntityError; exports.RateLimitError = RateLimitError; exports.ServerError = ServerError; exports.UnexpectedContentTypeError = UnexpectedContentTypeError; exports.EmptyResponseError = EmptyResponseError; exports.CircuitBreakerError = CircuitBreakerError; exports.HostPolicyDeniedError = HostPolicyDeniedError; exports.ResolutionError = ResolutionError; exports.PaginationLimitError = PaginationLimitError; exports.QueryTooLongError = QueryTooLongError; exports.parseVendorErrors = parseVendorErrors; exports.isDeterministicVendor500 = isDeterministicVendor500; exports.formatVendorDetail = formatVendorDetail; exports.CREDENTIAL_SHAPE_POINTER = CREDENTIAL_SHAPE_POINTER; exports.mergeDetails = mergeDetails; exports.errorFromStatus = errorFromStatus; exports.StaleObjectError = StaleObjectError; exports.ConfirmationRequiredError = ConfirmationRequiredError; exports.DeleteBoundaryError = DeleteBoundaryError; exports.MarkerUnsafeIdError = MarkerUnsafeIdError; exports.RecoveryTruncatedError = RecoveryTruncatedError; exports.isAutotaskError = isAutotaskError; exports.hasSurroundingQuotes = hasSurroundingQuotes; exports.credentialShapeProblem = credentialShapeProblem; exports.CREDENTIAL_ENV_LOAD_ACTION = CREDENTIAL_ENV_LOAD_ACTION; exports.MIN_PREFIX_SUMMARY_LENGTH = MIN_PREFIX_SUMMARY_LENGTH; exports.credentialValueSummary = credentialValueSummary; exports.FIELD_CACHE_KINDS = FIELD_CACHE_KINDS; exports.DEFAULT_CIRCUIT_BREAKER_WINDOW_MS = DEFAULT_CIRCUIT_BREAKER_WINDOW_MS; exports.DEFAULT_CIRCUIT_BREAKER_FAILURE_THRESHOLD = DEFAULT_CIRCUIT_BREAKER_FAILURE_THRESHOLD; exports.DEFAULT_CIRCUIT_BREAKER_OPEN_TIMEOUT_MS = DEFAULT_CIRCUIT_BREAKER_OPEN_TIMEOUT_MS; exports.DEFAULT_CIRCUIT_BREAKER_SUCCESSES_TO_CLOSE = DEFAULT_CIRCUIT_BREAKER_SUCCESSES_TO_CLOSE; exports.DEFAULT_CIRCUIT_BREAKER_MAX_ENTRIES = DEFAULT_CIRCUIT_BREAKER_MAX_ENTRIES; exports.InMemoryCircuitBreakerStore = InMemoryCircuitBreakerStore; exports.defaultCircuitBreakerStore = defaultCircuitBreakerStore; exports.resetDefaultCircuitBreakerStore = resetDefaultCircuitBreakerStore; exports.buildBreakerKey = buildBreakerKey; exports.isBreakerFailure = isBreakerFailure; exports.DEFAULT_COOLDOWN_MAX_MS = DEFAULT_COOLDOWN_MAX_MS; exports.DEFAULT_COOLDOWN_DEFAULT_MS = DEFAULT_COOLDOWN_DEFAULT_MS; exports.DEFAULT_COOLDOWN_MAX_ENTRIES = DEFAULT_COOLDOWN_MAX_ENTRIES; exports.InMemoryCooldownStore = InMemoryCooldownStore; exports.defaultCooldownStore = defaultCooldownStore; exports.resetDefaultCooldownStore = resetDefaultCooldownStore; exports.buildTenantKey = buildTenantKey; exports.cooldownDurationMs = cooldownDurationMs; exports.ZONE_CATALOG = ZONE_CATALOG; exports.ZONES = ZONES; exports.DEFAULT_ZONE = DEFAULT_ZONE; exports.AGENT_PROFILE = AGENT_PROFILE; exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE; exports.MAX_PAGE_SIZE = MAX_PAGE_SIZE; exports.DEFAULT_TIMEOUT_MS = DEFAULT_TIMEOUT_MS; exports.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES; exports.DEFAULT_MAX_CONCURRENT = DEFAULT_MAX_CONCURRENT; exports.DEFAULT_MAX_RESPONSE_BYTES = DEFAULT_MAX_RESPONSE_BYTES; exports.DEFAULT_MAX_SCAN_RECORDS = DEFAULT_MAX_SCAN_RECORDS; exports.DEFAULT_MAX_SCAN_PAGES = DEFAULT_MAX_SCAN_PAGES; exports.DEFAULT_READ_CACHE_TTL_MS = DEFAULT_READ_CACHE_TTL_MS; exports.DEFAULT_FIELD_CACHE_TTL_MS = DEFAULT_FIELD_CACHE_TTL_MS; exports.DEFAULT_RESOURCE_NAME_CACHE_TTL_MS = DEFAULT_RESOURCE_NAME_CACHE_TTL_MS; exports.zoneUrl = zoneUrl; exports.resolveBaseUrl = resolveBaseUrl; exports.resolveCredentials = resolveCredentials; exports.resolveConfig = resolveConfig; exports.isRecord = isRecord2; exports.assertRecord = assertRecord; exports.deepMergeParams = deepMergeParams; exports.isIdentifierCandidate = isIdentifierCandidate; exports.parseIdentifier = parseIdentifier; exports.flattenUdfs = flattenUdfs; exports.newCorrelationId = newCorrelationId; exports.redactAuditBody = redactAuditBody; exports.camelKey = camelKey; exports.FILTER_OPERATORS = FILTER_OPERATORS; exports.GROUPING_OPERATORS = GROUPING_OPERATORS; exports.MAX_OR_CONDITIONS = MAX_OR_CONDITIONS; exports.MAX_UDF_PER_QUERY = MAX_UDF_PER_QUERY; exports.MAX_QUERY_LENGTH = MAX_QUERY_LENGTH; exports.MAX_GET_LENGTH = MAX_GET_LENGTH; exports.MAX_FIELD_LENGTH = MAX_FIELD_LENGTH; exports.isFilterOperator = isFilterOperator; exports.serializeFilter = serializeFilter; exports.validateFilter = validateFilter; exports.buildFilter = buildFilter; exports.normalizedConditions = normalizedConditions; exports.RELATIONSHIP_ZONE = RELATIONSHIP_ZONE; exports.RELATIONSHIP_MAP = RELATIONSHIP_MAP; exports.BLIND_SURFACE_STAMPS = BLIND_SURFACE_STAMPS; exports.DELETE_BOUNDARY_NOTES = DELETE_BOUNDARY_NOTES; exports.MARKER_FIELDS = MARKER_FIELDS; exports.BLIND_SURFACE_INVENTORY = BLIND_SURFACE_INVENTORY; exports.REACHABILITY_PROBE_DEFAULTS = REACHABILITY_PROBE_DEFAULTS; exports.CREATE_GUIDANCE = CREATE_GUIDANCE; exports.UNTRUSTED_FIELDS_BY_RESOURCE = UNTRUSTED_FIELDS_BY_RESOURCE; exports.IDEMPOTENT_METHODS = IDEMPOTENT_METHODS; exports.buildUrl = buildUrl; exports.cursorToPath = cursorToPath; exports.buildQueryRequest = buildQueryRequest; exports.runWithSignal = runWithSignal; exports.HttpClient = HttpClient; exports.unwrapItems = unwrapItems; exports.unwrapItem = unwrapItem; exports.unwrapQueryCount = unwrapQueryCount; exports.unwrapOperation = unwrapOperation; exports.passthrough = passthrough; exports.MAX_PAGES = MAX_PAGES; exports.clampPageSize = clampPageSize; exports.totalPagesFor = totalPagesFor; exports.paginate = paginate; exports.paginateItems = paginateItems; exports.collectAll = collectAll; exports.toArray = toArray; exports.FIELD_PRESETS = FIELD_PRESETS; exports.FIELD_PRESET_NAMES = FIELD_PRESET_NAMES; exports.resolveFieldsPreset = resolveFieldsPreset; exports.BOUNDED_QUERY_MAX_LIMIT = BOUNDED_QUERY_MAX_LIMIT; exports.truncateNoteChars = truncateNoteChars; exports.buildDryRunResult = buildDryRunResult; exports.mergePartialBody = mergePartialBody; exports.blindStampFor = blindStampFor; exports.decodeFileData = decodeFileData; exports.BaseResource = BaseResource; exports.EXPAND_RESOURCE_NAMES_MAX_IDS = EXPAND_RESOURCE_NAMES_MAX_IDS; exports.expandResourceNames = expandResourceNames; exports.WORKFLOW_RESOURCES = WORKFLOW_RESOURCES; exports.MAX_FIELD_CATALOG_WIRE = MAX_FIELD_CATALOG_WIRE; exports.FIELD_CATALOG_HONESTY_NOTE = FIELD_CATALOG_HONESTY_NOTE; exports.fieldCatalog = fieldCatalog; exports.PICKLIST_VALUE_NOT_SERVED_NOTE = PICKLIST_VALUE_NOT_SERVED_NOTE; exports.TICKET_LABEL_FIELDS = TICKET_LABEL_FIELDS; exports.createNamePlan = createNamePlan; exports.addNameSibling = addNameSibling; exports.addLabelSibling = addLabelSibling; exports.resolveCompositeNames = resolveCompositeNames;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as Identifier, g as AuditEvent, ez as ResolutionCaps, Q as QueryParams, dD as PagingModel, dn as OperationResult, dC as Page, cE as EmptyReasonInfo, cG as EntityInformationModel, cW as FieldInformationModel, cU as Field, a as FilterCondition, cD as DryRunResult, ey as Resolution, c as Appointment, d as AppointmentCreate, f as AppointmentUpdate, e as AppointmentSummary, h as AuthTokenResultModel, B as BillingCode, j as BillingCodeCreate, l as BillingCodeUpdate, k as BillingCodeSummary, m as BillingItems, n as BillingItemsCreate, p as BillingItemsUpdate, o as BillingItemsSummary, C as ChangeRequestLink, q as ChangeRequestLinkCreate, s as ChangeRequestLinkUpdate, r as ChangeRequestLinkSummary, t as ChecklistLibrary, y as ChecklistLibraryCreate, D as ChecklistLibraryUpdate, z as ChecklistLibrarySummary, u as ChecklistLibraryChecklistItem, v as ChecklistLibraryChecklistItemCreate, x as ChecklistLibraryChecklistItemUpdate, w as ChecklistLibraryChecklistItemSummary, E as ClassificationIcon, G as ClassificationIconCreate, J as ClassificationIconUpdate, H as ClassificationIconSummary, K as Company, S as CompanyLocation, aN as Contact, W as CompanyNote, g9 as Ticket, dR as Project, hp as CompositeNamesSection, ha as TimeEntry, R as CompanyCreate, a3 as CompanyUpdate, a2 as CompanySummary, P as CompanyContext, L as CompanyAlert, M as CompanyAlertCreate, O as CompanyAlertUpdate, N as CompanyAlertSummary, T as CompanyLocationCreate, V as CompanyLocationUpdate, U as CompanyLocationSummary, X as CompanyNoteCreate, Z as CompanyNoteUpdate, Y as CompanyNoteSummary, _ as CompanySiteConfigurations, $ as CompanySiteConfigurationsCreate, a1 as CompanySiteConfigurationsUpdate, a0 as CompanySiteConfigurationsSummary, a4 as CompanyWebhook, a5 as CompanyWebhookCreate, a7 as CompanyWebhookUpdate, a6 as CompanyWebhookSummary, a9 as ConfigurationItemBillingProductAssociations, aa as ConfigurationItemBillingProductAssociationsCreate, ac as ConfigurationItemBillingProductAssociationsUpdate, ab as ConfigurationItemBillingProductAssociationsSummary, ad as ConfigurationItemCategory, ae as ConfigurationItemCategoryCreate, ak as ConfigurationItemCategoryUpdate, af as ConfigurationItemCategorySummary, ag as ConfigurationItemCategoryUdfAssociation, ah as ConfigurationItemCategoryUdfAssociationCreate, aj as ConfigurationItemCategoryUdfAssociationUpdate, ai as ConfigurationItemCategoryUdfAssociationSummary, an as ConfigurationItemDnsRecord, ao as ConfigurationItemDnsRecordCreate, aq as ConfigurationItemDnsRecordUpdate, ap as ConfigurationItemDnsRecordSummary, ar as ConfigurationItemNote, as as ConfigurationItemNoteCreate, au as ConfigurationItemNoteUpdate, at as ConfigurationItemNoteSummary, av as ConfigurationItemRelatedItem, aw as ConfigurationItemRelatedItemCreate, ay as ConfigurationItemRelatedItemUpdate, ax as ConfigurationItemRelatedItemSummary, a8 as ConfigurationItem, aE as ConfigurationItemType, am as ConfigurationItemCreate, aI as ConfigurationItemUpdate, aD as ConfigurationItemSummary, al as ConfigurationItemContext, az as ConfigurationItemSslSubjectAlternativeName, aA as ConfigurationItemSslSubjectAlternativeNameCreate, aC as ConfigurationItemSslSubjectAlternativeNameUpdate, aB as ConfigurationItemSslSubjectAlternativeNameSummary, aF as ConfigurationItemTypeCreate, aH as ConfigurationItemTypeUpdate, aG as ConfigurationItemTypeSummary, aJ as ConfigurationItemWebhook, aK as ConfigurationItemWebhookCreate, aM as ConfigurationItemWebhookUpdate, aL as ConfigurationItemWebhookSummary, aQ as ContactGroupContacts, aR as ContactGroupContactsCreate, aT as ContactGroupContactsUpdate, aS as ContactGroupContactsSummary, aU as ContactGroups, aV as ContactGroupsCreate, aX as ContactGroupsUpdate, aW as ContactGroupsSummary, aY as ContactSummary, aP as ContactCreate, aZ as ContactUpdate, aO as ContactContext, a_ as ContactWebhook, a$ as ContactWebhookCreate, b1 as ContactWebhookUpdate, b0 as ContactWebhookSummary, b3 as ContractBillingRule, b4 as ContractBillingRuleCreate, b6 as ContractBillingRuleUpdate, b5 as ContractBillingRuleSummary, b9 as ContractBlockHourFactor, ba as ContractBlockHourFactorCreate, bc as ContractBlockHourFactorUpdate, bb as ContractBlockHourFactorSummary, b7 as ContractBlock, b8 as ContractBlockCreate, be as ContractBlockUpdate, bd as ContractBlockSummary, bf as ContractCharge, bg as ContractChargeCreate, bi as ContractChargeUpdate, bh as ContractChargeSummary, bk as ContractExclusionBillingCode, bl as ContractExclusionBillingCodeCreate, bn as ContractExclusionBillingCodeUpdate, bm as ContractExclusionBillingCodeSummary, bo as ContractExclusionRoles, bp as ContractExclusionRolesCreate, br as ContractExclusionRolesUpdate, bq as ContractExclusionRolesSummary, bs as ContractExclusionSetExcludedRoles, bt as ContractExclusionSetExcludedRolesCreate, bv as ContractExclusionSetExcludedRolesUpdate, bu as ContractExclusionSetExcludedRolesSummary, bw as ContractExclusionSetExcludedWorkTypes, bx as ContractExclusionSetExcludedWorkTypesCreate, bz as ContractExclusionSetExcludedWorkTypesUpdate, by as ContractExclusionSetExcludedWorkTypesSummary, bA as ContractExclusionSets, bB as ContractExclusionSetsCreate, bD as ContractExclusionSetsUpdate, bC as ContractExclusionSetsSummary, bE as ContractMilestone, bF as ContractMilestoneCreate, bH as ContractMilestoneUpdate, bG as ContractMilestoneSummary, bI as ContractNote, bJ as ContractNoteCreate, bL as ContractNoteUpdate, bK as ContractNoteSummary, bM as ContractRate, bN as ContractRateCreate, bP as ContractRateUpdate, bO as ContractRateSummary, bQ as ContractRetainers, bR as ContractRetainersCreate, bT as ContractRetainersUpdate, bS as ContractRetainersSummary, bU as ContractRoleCosts, bV as ContractRoleCostsCreate, bX as ContractRoleCostsUpdate, bW as ContractRoleCostsSummary, bZ as ContractServiceAdjustment, b_ as ContractServiceAdjustmentCreate, c0 as ContractServiceAdjustmentUpdate, b$ as ContractServiceAdjustmentSummary, c2 as ContractServiceBundleAdjustment, c3 as ContractServiceBundleAdjustmentCreate, c5 as ContractServiceBundleAdjustmentUpdate, c4 as ContractServiceBundleAdjustmentSummary, c1 as ContractServiceBundle, c6 as ContractServiceBundleCreate, cc as ContractServiceBundleUpdate, c7 as ContractServiceBundleSummary, c8 as ContractServiceBundleUnit, c9 as ContractServiceBundleUnitCreate, cb as ContractServiceBundleUnitUpdate, ca as ContractServiceBundleUnitSummary, bY as ContractService, cd as ContractServiceCreate, cj as ContractServiceUpdate, ce as ContractServiceSummary, cf as ContractServiceUnit, cg as ContractServiceUnitCreate, ci as ContractServiceUnitUpdate, ch as ContractServiceUnitSummary, b2 as Contract, bj as ContractCreate, cp as ContractUpdate, ck as ContractSummary, cl as ContractTicketPurchases, cm as ContractTicketPurchasesCreate, co as ContractTicketPurchasesUpdate, cn as ContractTicketPurchasesSummary, cq as Country, cr as CountryCreate, ct as CountryUpdate, cs as CountrySummary, cu as Department, cv as DepartmentCreate, cx as DepartmentUpdate, cw as DepartmentSummary, cz as DomainRegistrar, cA as DomainRegistrarCreate, cC as DomainRegistrarUpdate, cB as DomainRegistrarSummary, cY as GlobalEntityInformationResultModel, cJ as ExpenseItemAttachment, cK as ExpenseItemAttachmentCreate, cM as ExpenseItemAttachmentUpdate, cL as ExpenseItemAttachmentSummary, cI as ExpenseItem, cN as ExpenseItemCreate, cP as ExpenseItemUpdate, cO as ExpenseItemSummary, cQ as ExpenseReport, cR as ExpenseReportCreate, cT as ExpenseReportUpdate, cS as ExpenseReportSummary, c$ as HolidaySet, d0 as HolidaySetCreate, d2 as HolidaySetUpdate, d1 as HolidaySetSummary, cZ as Holiday, c_ as HolidayCreate, d4 as HolidayUpdate, d3 as HolidaySummary, d5 as InventoryProduct, d6 as InventoryProductCreate, d8 as InventoryProductUpdate, d7 as InventoryProductSummary, d9 as InventoryStockedItemAdd, da as InventoryStockedItemRemove, db as InventoryStockedItemTransfer, dc as Invoice, dd as InvoiceCreate, df as InvoiceUpdate, de as InvoiceSummary, dh as ModuleAccessResultModel, di as NotificationHistory, dj as NotificationHistoryCreate, dl as NotificationHistoryUpdate, dk as NotificationHistorySummary, dq as Opportunity, dz as OpportunityCreate, dB as OpportunityUpdate, dA as OpportunitySummary, dr as OpportunityAttachment, ds as OpportunityAttachmentCreate, du as OpportunityAttachmentUpdate, dt as OpportunityAttachmentSummary, dv as OpportunityCategory, dw as OpportunityCategoryCreate, dy as OpportunityCategoryUpdate, dx as OpportunityCategorySummary, dE as Phase, dF as PhaseCreate, dH as PhaseUpdate, dG as PhaseSummary, dJ as Product, dK as ProductCreate, dM as ProductUpdate, dL as ProductSummary, dN as ProductVendors, dO as ProductVendorsCreate, dQ as ProductVendorsUpdate, dP as ProductVendorsSummary, dS as ProjectCharge, dT as ProjectChargeCreate, dV as ProjectChargeUpdate, dU as ProjectChargeSummary, dY as ProjectNote, dZ as ProjectNoteCreate, d$ as ProjectNoteUpdate, d_ as ProjectNoteSummary, dX as ProjectCreate, e1 as ProjectUpdate, e0 as ProjectSummary, hq as CompositeContextOptions, dW as ProjectContext, e2 as PurchaseApprovals, e3 as PurchaseApprovalsCreate, e5 as PurchaseApprovalsUpdate, e4 as PurchaseApprovalsSummary, e6 as PurchaseOrderItemReceiving, e7 as PurchaseOrderItemReceivingCreate, e9 as PurchaseOrderItemReceivingUpdate, e8 as PurchaseOrderItemReceivingSummary, ea as PurchaseOrderItems, eb as PurchaseOrderItemsCreate, ed as PurchaseOrderItemsUpdate, ec as PurchaseOrderItemsSummary, ee as PurchaseOrders, ef as PurchaseOrdersCreate, eh as PurchaseOrdersUpdate, eg as PurchaseOrdersSummary, ek as QuoteItem, el as QuoteItemCreate, en as QuoteItemUpdate, em as QuoteItemSummary, eo as QuoteLocation, ep as QuoteLocationCreate, er as QuoteLocationUpdate, eq as QuoteLocationSummary, ei as Quote, ej as QuoteCreate, ex as QuoteUpdate, es as QuoteSummary, et as QuoteTemplate, eu as QuoteTemplateCreate, ew as QuoteTemplateUpdate, ev as QuoteTemplateSummary, eE as ResourceRoleQueue, eF as ResourceRoleQueueCreate, eH as ResourceRoleQueueUpdate, eG as ResourceRoleQueueSummary, eC as ResourceRole, eD as ResourceRoleCreate, eJ as ResourceRoleUpdate, eI as ResourceRoleSummary, eK as ResourceSkill, eL as ResourceSkillCreate, eN as ResourceSkillUpdate, eM as ResourceSkillSummary, eA as Resource, eB as ResourceCreate, e$ as ResourceUpdate, eO as ResourceSummary, eP as ResourceTimeOffAdditional, eQ as ResourceTimeOffAdditionalCreate, eS as ResourceTimeOffAdditionalUpdate, eR as ResourceTimeOffAdditionalSummary, eT as ResourceTimeOffApprover, eU as ResourceTimeOffApproverCreate, eW as ResourceTimeOffApproverUpdate, eV as ResourceTimeOffApproverSummary, eX as ResourceTimeOffBalance, eY as ResourceTimeOffBalanceCreate, e_ as ResourceTimeOffBalanceUpdate, eZ as ResourceTimeOffBalanceSummary, f0 as Role, f1 as RoleCreate, f3 as RoleUpdate, f2 as RoleSummary, f5 as ServiceCall, f6 as ServiceCallCreate, fo as ServiceCallUpdate, f7 as ServiceCallSummary, fa as ServiceCallTaskResource, fb as ServiceCallTaskResourceCreate, fd as ServiceCallTaskResourceUpdate, fc as ServiceCallTaskResourceSummary, f8 as ServiceCallTask, f9 as ServiceCallTaskCreate, ff as ServiceCallTaskUpdate, fe as ServiceCallTaskSummary, fi as ServiceCallTicketResource, fj as ServiceCallTicketResourceCreate, fl as ServiceCallTicketResourceUpdate, fk as ServiceCallTicketResourceSummary, fg as ServiceCallTicket, fh as ServiceCallTicketCreate, fn as ServiceCallTicketUpdate, fm as ServiceCallTicketSummary, fq as ServiceLevelAgreementResults, fr as ServiceLevelAgreementResultsCreate, ft as ServiceLevelAgreementResultsUpdate, fs as ServiceLevelAgreementResultsSummary, f4 as Service, fp as ServiceCreate, fv as ServiceUpdate, fu as ServiceSummary, fw as Skill, fx as SkillCreate, fz as SkillUpdate, fy as SkillSummary, fC as SubscriptionPeriod, fD as SubscriptionPeriodCreate, fF as SubscriptionPeriodUpdate, fE as SubscriptionPeriodSummary, fA as Subscription, fB as SubscriptionCreate, fH as SubscriptionUpdate, fG as SubscriptionSummary, fK as SurveyResults, fL as SurveyResultsCreate, fN as SurveyResultsUpdate, fM as SurveyResultsSummary, fI as Survey, fJ as SurveyCreate, fP as SurveyUpdate, fO as SurveySummary, fR as TagAlias, fS as TagAliasCreate, fU as TagAliasUpdate, fT as TagAliasSummary, fW as TagGroup, fX as TagGroupCreate, fZ as TagGroupUpdate, fY as TagGroupSummary, fQ as Tag, fV as TagCreate, f$ as TagUpdate, f_ as TagSummary, g2 as TaskSecondaryResource, g3 as TaskSecondaryResourceCreate, g5 as TaskSecondaryResourceUpdate, g4 as TaskSecondaryResourceSummary, g0 as Task, g1 as TaskCreate, g7 as TaskUpdate, g6 as TaskSummary, g8 as ThresholdStatusResultModel, ga as TicketAdditionalConfigurationItem, gb as TicketAdditionalConfigurationItemCreate, gd as TicketAdditionalConfigurationItemUpdate, gc as TicketAdditionalConfigurationItemSummary, ge as TicketAdditionalContact, gf as TicketAdditionalContactCreate, gh as TicketAdditionalContactUpdate, gg as TicketAdditionalContactSummary, gi as TicketAttachment, gj as TicketAttachmentCreate, gl as TicketAttachmentUpdate, gk as TicketAttachmentSummary, gm as TicketCategory, gn as TicketCategoryCreate, gt as TicketCategoryUpdate, gs as TicketCategorySummary, go as TicketCategoryFieldDefault, gp as TicketCategoryFieldDefaultCreate, gr as TicketCategoryFieldDefaultUpdate, gq as TicketCategoryFieldDefaultSummary, gu as TicketChangeRequestApproval, gv as TicketChangeRequestApprovalCreate, gx as TicketChangeRequestApprovalUpdate, gw as TicketChangeRequestApprovalSummary, gy as TicketCharge, gz as TicketChargeCreate, gB as TicketChargeUpdate, gA as TicketChargeSummary, gC as TicketChecklistItem, gD as TicketChecklistItemCreate, gF as TicketChecklistItemUpdate, gE as TicketChecklistItemSummary, gG as TicketChecklistLibrary, gH as TicketChecklistLibraryCreate, gJ as TicketChecklistLibraryUpdate, gI as TicketChecklistLibrarySummary, gM as TicketHistory, gN as TicketHistoryCreate, gP as TicketHistoryUpdate, gO as TicketHistorySummary, gR as TicketNoteAttachment, gS as TicketNoteAttachmentCreate, gU as TicketNoteAttachmentUpdate, gT as TicketNoteAttachmentSummary, gQ as TicketNote, gV as TicketNoteCreate, gX as TicketNoteUpdate, gW as TicketNoteSummary, gY as TicketNoteWebhook, gZ as TicketNoteWebhookCreate, g$ as TicketNoteWebhookUpdate, g_ as TicketNoteWebhookSummary, h0 as TicketSecondaryResource, h1 as TicketSecondaryResourceCreate, h3 as TicketSecondaryResourceUpdate, h2 as TicketSecondaryResourceSummary, gL as TicketCreate, h5 as TicketUpdate, h4 as TicketSummary, gK as TicketContext, h6 as TicketWebhook, h7 as TicketWebhookCreate, h9 as TicketWebhookUpdate, h8 as TicketWebhookSummary, hf as TimeEntryCreate, hh as TimeEntryUpdate, hg as TimeEntrySummary, hb as TimeEntryAttachment, hc as TimeEntryAttachmentCreate, he as TimeEntryAttachmentUpdate, hd as TimeEntryAttachmentSummary, hi as TimeOffRequest, hj as TimeOffRequestCreate, hm as TimeOffRequestUpdate, hl as TimeOffRequestSummary, A as ApiVersionResultModel, i as AutotaskVersionResultModel, ho as ZoneInformationResultModel } from './index-O2zzIMcQ.js';
|
|
1
|
+
import { I as Identifier, g as AuditEvent, ez as ResolutionCaps, Q as QueryParams, dD as PagingModel, dn as OperationResult, dC as Page, cE as EmptyReasonInfo, cG as EntityInformationModel, cW as FieldInformationModel, cU as Field, a as FilterCondition, cD as DryRunResult, ey as Resolution, c as Appointment, d as AppointmentCreate, f as AppointmentUpdate, e as AppointmentSummary, h as AuthTokenResultModel, B as BillingCode, j as BillingCodeCreate, l as BillingCodeUpdate, k as BillingCodeSummary, m as BillingItems, n as BillingItemsCreate, p as BillingItemsUpdate, o as BillingItemsSummary, C as ChangeRequestLink, q as ChangeRequestLinkCreate, s as ChangeRequestLinkUpdate, r as ChangeRequestLinkSummary, t as ChecklistLibrary, y as ChecklistLibraryCreate, D as ChecklistLibraryUpdate, z as ChecklistLibrarySummary, u as ChecklistLibraryChecklistItem, v as ChecklistLibraryChecklistItemCreate, x as ChecklistLibraryChecklistItemUpdate, w as ChecklistLibraryChecklistItemSummary, E as ClassificationIcon, G as ClassificationIconCreate, J as ClassificationIconUpdate, H as ClassificationIconSummary, K as Company, S as CompanyLocation, aN as Contact, W as CompanyNote, g9 as Ticket, dR as Project, hq as CompositeNamesSection, ha as TimeEntry, R as CompanyCreate, a3 as CompanyUpdate, a2 as CompanySummary, P as CompanyContext, L as CompanyAlert, M as CompanyAlertCreate, O as CompanyAlertUpdate, N as CompanyAlertSummary, T as CompanyLocationCreate, V as CompanyLocationUpdate, U as CompanyLocationSummary, X as CompanyNoteCreate, Z as CompanyNoteUpdate, Y as CompanyNoteSummary, _ as CompanySiteConfigurations, $ as CompanySiteConfigurationsCreate, a1 as CompanySiteConfigurationsUpdate, a0 as CompanySiteConfigurationsSummary, a4 as CompanyWebhook, a5 as CompanyWebhookCreate, a7 as CompanyWebhookUpdate, a6 as CompanyWebhookSummary, a9 as ConfigurationItemBillingProductAssociations, aa as ConfigurationItemBillingProductAssociationsCreate, ac as ConfigurationItemBillingProductAssociationsUpdate, ab as ConfigurationItemBillingProductAssociationsSummary, ad as ConfigurationItemCategory, ae as ConfigurationItemCategoryCreate, ak as ConfigurationItemCategoryUpdate, af as ConfigurationItemCategorySummary, ag as ConfigurationItemCategoryUdfAssociation, ah as ConfigurationItemCategoryUdfAssociationCreate, aj as ConfigurationItemCategoryUdfAssociationUpdate, ai as ConfigurationItemCategoryUdfAssociationSummary, an as ConfigurationItemDnsRecord, ao as ConfigurationItemDnsRecordCreate, aq as ConfigurationItemDnsRecordUpdate, ap as ConfigurationItemDnsRecordSummary, ar as ConfigurationItemNote, as as ConfigurationItemNoteCreate, au as ConfigurationItemNoteUpdate, at as ConfigurationItemNoteSummary, av as ConfigurationItemRelatedItem, aw as ConfigurationItemRelatedItemCreate, ay as ConfigurationItemRelatedItemUpdate, ax as ConfigurationItemRelatedItemSummary, a8 as ConfigurationItem, aE as ConfigurationItemType, am as ConfigurationItemCreate, aI as ConfigurationItemUpdate, aD as ConfigurationItemSummary, al as ConfigurationItemContext, az as ConfigurationItemSslSubjectAlternativeName, aA as ConfigurationItemSslSubjectAlternativeNameCreate, aC as ConfigurationItemSslSubjectAlternativeNameUpdate, aB as ConfigurationItemSslSubjectAlternativeNameSummary, aF as ConfigurationItemTypeCreate, aH as ConfigurationItemTypeUpdate, aG as ConfigurationItemTypeSummary, aJ as ConfigurationItemWebhook, aK as ConfigurationItemWebhookCreate, aM as ConfigurationItemWebhookUpdate, aL as ConfigurationItemWebhookSummary, aQ as ContactGroupContacts, aR as ContactGroupContactsCreate, aT as ContactGroupContactsUpdate, aS as ContactGroupContactsSummary, aU as ContactGroups, aV as ContactGroupsCreate, aX as ContactGroupsUpdate, aW as ContactGroupsSummary, aY as ContactSummary, aP as ContactCreate, aZ as ContactUpdate, aO as ContactContext, a_ as ContactWebhook, a$ as ContactWebhookCreate, b1 as ContactWebhookUpdate, b0 as ContactWebhookSummary, b3 as ContractBillingRule, b4 as ContractBillingRuleCreate, b6 as ContractBillingRuleUpdate, b5 as ContractBillingRuleSummary, b9 as ContractBlockHourFactor, ba as ContractBlockHourFactorCreate, bc as ContractBlockHourFactorUpdate, bb as ContractBlockHourFactorSummary, b7 as ContractBlock, b8 as ContractBlockCreate, be as ContractBlockUpdate, bd as ContractBlockSummary, bf as ContractCharge, bg as ContractChargeCreate, bi as ContractChargeUpdate, bh as ContractChargeSummary, bk as ContractExclusionBillingCode, bl as ContractExclusionBillingCodeCreate, bn as ContractExclusionBillingCodeUpdate, bm as ContractExclusionBillingCodeSummary, bo as ContractExclusionRoles, bp as ContractExclusionRolesCreate, br as ContractExclusionRolesUpdate, bq as ContractExclusionRolesSummary, bs as ContractExclusionSetExcludedRoles, bt as ContractExclusionSetExcludedRolesCreate, bv as ContractExclusionSetExcludedRolesUpdate, bu as ContractExclusionSetExcludedRolesSummary, bw as ContractExclusionSetExcludedWorkTypes, bx as ContractExclusionSetExcludedWorkTypesCreate, bz as ContractExclusionSetExcludedWorkTypesUpdate, by as ContractExclusionSetExcludedWorkTypesSummary, bA as ContractExclusionSets, bB as ContractExclusionSetsCreate, bD as ContractExclusionSetsUpdate, bC as ContractExclusionSetsSummary, bE as ContractMilestone, bF as ContractMilestoneCreate, bH as ContractMilestoneUpdate, bG as ContractMilestoneSummary, bI as ContractNote, bJ as ContractNoteCreate, bL as ContractNoteUpdate, bK as ContractNoteSummary, bM as ContractRate, bN as ContractRateCreate, bP as ContractRateUpdate, bO as ContractRateSummary, bQ as ContractRetainers, bR as ContractRetainersCreate, bT as ContractRetainersUpdate, bS as ContractRetainersSummary, bU as ContractRoleCosts, bV as ContractRoleCostsCreate, bX as ContractRoleCostsUpdate, bW as ContractRoleCostsSummary, bZ as ContractServiceAdjustment, b_ as ContractServiceAdjustmentCreate, c0 as ContractServiceAdjustmentUpdate, b$ as ContractServiceAdjustmentSummary, c2 as ContractServiceBundleAdjustment, c3 as ContractServiceBundleAdjustmentCreate, c5 as ContractServiceBundleAdjustmentUpdate, c4 as ContractServiceBundleAdjustmentSummary, c1 as ContractServiceBundle, c6 as ContractServiceBundleCreate, cc as ContractServiceBundleUpdate, c7 as ContractServiceBundleSummary, c8 as ContractServiceBundleUnit, c9 as ContractServiceBundleUnitCreate, cb as ContractServiceBundleUnitUpdate, ca as ContractServiceBundleUnitSummary, bY as ContractService, cd as ContractServiceCreate, cj as ContractServiceUpdate, ce as ContractServiceSummary, cf as ContractServiceUnit, cg as ContractServiceUnitCreate, ci as ContractServiceUnitUpdate, ch as ContractServiceUnitSummary, b2 as Contract, bj as ContractCreate, cp as ContractUpdate, ck as ContractSummary, cl as ContractTicketPurchases, cm as ContractTicketPurchasesCreate, co as ContractTicketPurchasesUpdate, cn as ContractTicketPurchasesSummary, cq as Country, cr as CountryCreate, ct as CountryUpdate, cs as CountrySummary, cu as Department, cv as DepartmentCreate, cx as DepartmentUpdate, cw as DepartmentSummary, cz as DomainRegistrar, cA as DomainRegistrarCreate, cC as DomainRegistrarUpdate, cB as DomainRegistrarSummary, cY as GlobalEntityInformationResultModel, cJ as ExpenseItemAttachment, cK as ExpenseItemAttachmentCreate, cM as ExpenseItemAttachmentUpdate, cL as ExpenseItemAttachmentSummary, cI as ExpenseItem, cN as ExpenseItemCreate, cP as ExpenseItemUpdate, cO as ExpenseItemSummary, cQ as ExpenseReport, cR as ExpenseReportCreate, cT as ExpenseReportUpdate, cS as ExpenseReportSummary, c$ as HolidaySet, d0 as HolidaySetCreate, d2 as HolidaySetUpdate, d1 as HolidaySetSummary, cZ as Holiday, c_ as HolidayCreate, d4 as HolidayUpdate, d3 as HolidaySummary, d5 as InventoryProduct, d6 as InventoryProductCreate, d8 as InventoryProductUpdate, d7 as InventoryProductSummary, d9 as InventoryStockedItemAdd, da as InventoryStockedItemRemove, db as InventoryStockedItemTransfer, dc as Invoice, dd as InvoiceCreate, df as InvoiceUpdate, de as InvoiceSummary, dh as ModuleAccessResultModel, di as NotificationHistory, dj as NotificationHistoryCreate, dl as NotificationHistoryUpdate, dk as NotificationHistorySummary, dq as Opportunity, dz as OpportunityCreate, dB as OpportunityUpdate, dA as OpportunitySummary, dr as OpportunityAttachment, ds as OpportunityAttachmentCreate, du as OpportunityAttachmentUpdate, dt as OpportunityAttachmentSummary, dv as OpportunityCategory, dw as OpportunityCategoryCreate, dy as OpportunityCategoryUpdate, dx as OpportunityCategorySummary, dE as Phase, dF as PhaseCreate, dH as PhaseUpdate, dG as PhaseSummary, dJ as Product, dK as ProductCreate, dM as ProductUpdate, dL as ProductSummary, dN as ProductVendors, dO as ProductVendorsCreate, dQ as ProductVendorsUpdate, dP as ProductVendorsSummary, dS as ProjectCharge, dT as ProjectChargeCreate, dV as ProjectChargeUpdate, dU as ProjectChargeSummary, dY as ProjectNote, dZ as ProjectNoteCreate, d$ as ProjectNoteUpdate, d_ as ProjectNoteSummary, dX as ProjectCreate, e1 as ProjectUpdate, e0 as ProjectSummary, hr as CompositeContextOptions, dW as ProjectContext, e2 as PurchaseApprovals, e3 as PurchaseApprovalsCreate, e5 as PurchaseApprovalsUpdate, e4 as PurchaseApprovalsSummary, e6 as PurchaseOrderItemReceiving, e7 as PurchaseOrderItemReceivingCreate, e9 as PurchaseOrderItemReceivingUpdate, e8 as PurchaseOrderItemReceivingSummary, ea as PurchaseOrderItems, eb as PurchaseOrderItemsCreate, ed as PurchaseOrderItemsUpdate, ec as PurchaseOrderItemsSummary, ee as PurchaseOrders, ef as PurchaseOrdersCreate, eh as PurchaseOrdersUpdate, eg as PurchaseOrdersSummary, ek as QuoteItem, el as QuoteItemCreate, en as QuoteItemUpdate, em as QuoteItemSummary, eo as QuoteLocation, ep as QuoteLocationCreate, er as QuoteLocationUpdate, eq as QuoteLocationSummary, ei as Quote, ej as QuoteCreate, ex as QuoteUpdate, es as QuoteSummary, et as QuoteTemplate, eu as QuoteTemplateCreate, ew as QuoteTemplateUpdate, ev as QuoteTemplateSummary, eE as ResourceRoleQueue, eF as ResourceRoleQueueCreate, eH as ResourceRoleQueueUpdate, eG as ResourceRoleQueueSummary, eC as ResourceRole, eD as ResourceRoleCreate, eJ as ResourceRoleUpdate, eI as ResourceRoleSummary, eK as ResourceSkill, eL as ResourceSkillCreate, eN as ResourceSkillUpdate, eM as ResourceSkillSummary, eA as Resource, eB as ResourceCreate, e$ as ResourceUpdate, eO as ResourceSummary, eP as ResourceTimeOffAdditional, eQ as ResourceTimeOffAdditionalCreate, eS as ResourceTimeOffAdditionalUpdate, eR as ResourceTimeOffAdditionalSummary, eT as ResourceTimeOffApprover, eU as ResourceTimeOffApproverCreate, eW as ResourceTimeOffApproverUpdate, eV as ResourceTimeOffApproverSummary, eX as ResourceTimeOffBalance, eY as ResourceTimeOffBalanceCreate, e_ as ResourceTimeOffBalanceUpdate, eZ as ResourceTimeOffBalanceSummary, f0 as Role, f1 as RoleCreate, f3 as RoleUpdate, f2 as RoleSummary, f5 as ServiceCall, f6 as ServiceCallCreate, fo as ServiceCallUpdate, f7 as ServiceCallSummary, fa as ServiceCallTaskResource, fb as ServiceCallTaskResourceCreate, fd as ServiceCallTaskResourceUpdate, fc as ServiceCallTaskResourceSummary, f8 as ServiceCallTask, f9 as ServiceCallTaskCreate, ff as ServiceCallTaskUpdate, fe as ServiceCallTaskSummary, fi as ServiceCallTicketResource, fj as ServiceCallTicketResourceCreate, fl as ServiceCallTicketResourceUpdate, fk as ServiceCallTicketResourceSummary, fg as ServiceCallTicket, fh as ServiceCallTicketCreate, fn as ServiceCallTicketUpdate, fm as ServiceCallTicketSummary, fq as ServiceLevelAgreementResults, fr as ServiceLevelAgreementResultsCreate, ft as ServiceLevelAgreementResultsUpdate, fs as ServiceLevelAgreementResultsSummary, f4 as Service, fp as ServiceCreate, fv as ServiceUpdate, fu as ServiceSummary, fw as Skill, fx as SkillCreate, fz as SkillUpdate, fy as SkillSummary, fC as SubscriptionPeriod, fD as SubscriptionPeriodCreate, fF as SubscriptionPeriodUpdate, fE as SubscriptionPeriodSummary, fA as Subscription, fB as SubscriptionCreate, fH as SubscriptionUpdate, fG as SubscriptionSummary, fK as SurveyResults, fL as SurveyResultsCreate, fN as SurveyResultsUpdate, fM as SurveyResultsSummary, fI as Survey, fJ as SurveyCreate, fP as SurveyUpdate, fO as SurveySummary, fR as TagAlias, fS as TagAliasCreate, fU as TagAliasUpdate, fT as TagAliasSummary, fW as TagGroup, fX as TagGroupCreate, fZ as TagGroupUpdate, fY as TagGroupSummary, fQ as Tag, fV as TagCreate, f$ as TagUpdate, f_ as TagSummary, g2 as TaskSecondaryResource, g3 as TaskSecondaryResourceCreate, g5 as TaskSecondaryResourceUpdate, g4 as TaskSecondaryResourceSummary, g0 as Task, g1 as TaskCreate, g7 as TaskUpdate, g6 as TaskSummary, g8 as ThresholdStatusResultModel, ga as TicketAdditionalConfigurationItem, gb as TicketAdditionalConfigurationItemCreate, gd as TicketAdditionalConfigurationItemUpdate, gc as TicketAdditionalConfigurationItemSummary, ge as TicketAdditionalContact, gf as TicketAdditionalContactCreate, gh as TicketAdditionalContactUpdate, gg as TicketAdditionalContactSummary, gi as TicketAttachment, gj as TicketAttachmentCreate, gl as TicketAttachmentUpdate, gk as TicketAttachmentSummary, gm as TicketCategory, gn as TicketCategoryCreate, gt as TicketCategoryUpdate, gs as TicketCategorySummary, go as TicketCategoryFieldDefault, gp as TicketCategoryFieldDefaultCreate, gr as TicketCategoryFieldDefaultUpdate, gq as TicketCategoryFieldDefaultSummary, gu as TicketChangeRequestApproval, gv as TicketChangeRequestApprovalCreate, gx as TicketChangeRequestApprovalUpdate, gw as TicketChangeRequestApprovalSummary, gy as TicketCharge, gz as TicketChargeCreate, gB as TicketChargeUpdate, gA as TicketChargeSummary, gC as TicketChecklistItem, gD as TicketChecklistItemCreate, gF as TicketChecklistItemUpdate, gE as TicketChecklistItemSummary, gG as TicketChecklistLibrary, gH as TicketChecklistLibraryCreate, gJ as TicketChecklistLibraryUpdate, gI as TicketChecklistLibrarySummary, gM as TicketHistory, gN as TicketHistoryCreate, gP as TicketHistoryUpdate, gO as TicketHistorySummary, gR as TicketNoteAttachment, gS as TicketNoteAttachmentCreate, gU as TicketNoteAttachmentUpdate, gT as TicketNoteAttachmentSummary, gQ as TicketNote, gV as TicketNoteCreate, gX as TicketNoteUpdate, gW as TicketNoteSummary, gY as TicketNoteWebhook, gZ as TicketNoteWebhookCreate, g$ as TicketNoteWebhookUpdate, g_ as TicketNoteWebhookSummary, h0 as TicketSecondaryResource, h1 as TicketSecondaryResourceCreate, h3 as TicketSecondaryResourceUpdate, h2 as TicketSecondaryResourceSummary, gL as TicketCreate, h5 as TicketUpdate, h4 as TicketSummary, gK as TicketContext, h6 as TicketWebhook, h7 as TicketWebhookCreate, h9 as TicketWebhookUpdate, h8 as TicketWebhookSummary, hf as TimeEntryCreate, hh as TimeEntryUpdate, hg as TimeEntrySummary, hb as TimeEntryAttachment, hc as TimeEntryAttachmentCreate, he as TimeEntryAttachmentUpdate, hd as TimeEntryAttachmentSummary, hi as TimeOffRequest, hj as TimeOffRequestCreate, hm as TimeOffRequestUpdate, hl as TimeOffRequestSummary, A as ApiVersionResultModel, i as AutotaskVersionResultModel, ho as ZoneInformationResultModel } from './index-cQ6CRexR.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A read-through TTL cache (lazy purge on read; expiry is `Date.now()`
|
|
@@ -1532,7 +1532,7 @@ declare function toArray<T>(iter: AsyncIterable<T>): Promise<T[]>;
|
|
|
1532
1532
|
* queryBounded noteChars free-text cap (issue #61 — response-side only);
|
|
1533
1533
|
* - docs/API.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
|
|
1534
1534
|
*
|
|
1535
|
-
* planHash:
|
|
1535
|
+
* planHash: 4c8d9f800e97c350acc681ade183f67474c044b674494eb78cd0f14a933dc1fc
|
|
1536
1536
|
*/
|
|
1537
1537
|
|
|
1538
1538
|
/** One pinned blind-surface stamp (the result-time sentinel object). */
|
|
@@ -3086,12 +3086,6 @@ interface UnbilledWorkResult {
|
|
|
3086
3086
|
};
|
|
3087
3087
|
}
|
|
3088
3088
|
|
|
3089
|
-
/**
|
|
3090
|
-
* CompaniesResource — Company resource (G4 batch A, plan key 'companies').
|
|
3091
|
-
* GENERATED by scripts/generate-batch.mjs from capabilities.plan.json + api-docs.json.
|
|
3092
|
-
* Do not hand-edit; re-run the generator (the plan is the source of truth).
|
|
3093
|
-
*/
|
|
3094
|
-
|
|
3095
3089
|
/** Query params for CompaniesResource (the G3 filter surface; no per-resource invention). */
|
|
3096
3090
|
type CompaniesResourceQueryParams = QueryParams;
|
|
3097
3091
|
declare class CompaniesResource extends BaseResource<Company, CompanyCreate, CompanyUpdate> {
|
|
@@ -3135,6 +3129,12 @@ declare class CompaniesResource extends BaseResource<Company, CompanyCreate, Com
|
|
|
3135
3129
|
* capped at 50 with the childIDsTruncated flag; the blind-surface blindNote — the
|
|
3136
3130
|
* family is reported as SEEN BY THIS API USER, never as complete). */
|
|
3137
3131
|
search(query: string, opts?: CompanySearchOptions): Promise<CompanyFamilyRow[]>;
|
|
3132
|
+
/** `search` with an empty result explained. Same closed opts discipline as `search`: only `limit` is
|
|
3133
|
+
* accepted here (an unknown key is refused pre-request, zero wire — never silently dropped); the
|
|
3134
|
+
* family block is a `search`-only option. */
|
|
3135
|
+
searchWithDetail(query: string, opts?: {
|
|
3136
|
+
limit?: number;
|
|
3137
|
+
}): Promise<SearchWithDetail<Company>>;
|
|
3138
3138
|
/** Get the Company with its primary context records in one call (each part a single-record
|
|
3139
3139
|
* fetch; no sub-lists; absent/dangling references come back null). */
|
|
3140
3140
|
getContext(id: Identifier): Promise<CompanyContext>;
|