node-autotask 0.61.0 → 0.63.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 +20 -0
- package/MCP_TOOL_CATALOG.json +2 -2
- package/README.md +2 -2
- package/capabilities.json +211 -199
- package/dist/capabilities-data.js +210 -198
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-JTRC7XEH.cjs → chunk-6WR7JMNK.cjs} +31 -31
- package/dist/{chunk-TE7RUKU2.cjs → chunk-CY6T5SPE.cjs} +3 -3
- package/dist/{chunk-NFTWRHUR.js → chunk-ISCT6TLA.js} +2 -2
- package/dist/{chunk-BSFJ5JYP.js → chunk-LCZJ3STD.js} +50 -5
- package/dist/{chunk-4SEIDMF6.cjs → chunk-TRRB42W4.cjs} +55 -10
- package/dist/{chunk-O63FO5XC.js → chunk-WL7VSHPI.js} +2 -2
- package/dist/{chunk-GUXVYGBK.js → chunk-X46S4BDG.js} +3 -3
- package/dist/{chunk-CWH2SLP2.cjs → chunk-XCNB4D6C.cjs} +174 -174
- package/dist/{index-Bc3yX2Nc.d.ts → index-Bu5JV7l_.d.ts} +1 -1
- package/dist/{index-D1dW10iM.d.cts → index-DlES80qS.d.cts} +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/N8N-ADAPTER.md +4 -4
- package/docs/VENDOR-QUIRKS.md +18 -3
- package/package.json +1 -1
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCY6T5SPE_cjs = require('./chunk-CY6T5SPE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkCY6T5SPE_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkCY6T5SPE_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCY6T5SPE_cjs.loadCapabilityRecords; }
|
|
18
18
|
});
|
package/dist/capabilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-
|
|
1
|
+
export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-X46S4BDG.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkXCNB4D6C_cjs = require('./chunk-XCNB4D6C.cjs');
|
|
4
|
+
var chunkTRRB42W4_cjs = require('./chunk-TRRB42W4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -154,34 +154,34 @@ var AutotaskClient = class {
|
|
|
154
154
|
* anything is wired. Construction issues NO request.
|
|
155
155
|
*/
|
|
156
156
|
constructor(options) {
|
|
157
|
-
this.config =
|
|
158
|
-
this.http = new
|
|
157
|
+
this.config = chunkTRRB42W4_cjs.resolveConfig(options);
|
|
158
|
+
this.http = new chunkTRRB42W4_cjs.HttpClient(this.config);
|
|
159
159
|
this.http.client = this;
|
|
160
|
-
for (const entry of
|
|
161
|
-
this[entry.accessor] = new
|
|
160
|
+
for (const entry of chunkTRRB42W4_cjs.SIMPLE_RESOURCES) {
|
|
161
|
+
this[entry.accessor] = new chunkTRRB42W4_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
162
162
|
}
|
|
163
|
-
this.companies = new
|
|
164
|
-
this.configurationItems = new
|
|
165
|
-
this.contacts = new
|
|
166
|
-
this.contracts = new
|
|
167
|
-
this.inventoryProducts = new
|
|
168
|
-
this.invoices = new
|
|
169
|
-
this.quotes = new
|
|
170
|
-
this.resourceTimeOffAdditional = new
|
|
171
|
-
this.resourceTimeOffBalances = new
|
|
172
|
-
this.resources = new
|
|
173
|
-
this.serviceCalls = new
|
|
174
|
-
this.ticketCharges = new
|
|
175
|
-
this.tickets = new
|
|
176
|
-
this.timeEntries = new
|
|
177
|
-
this.timeOffRequests = new
|
|
178
|
-
this.authenticateResource = new
|
|
179
|
-
this.entityInformation = new
|
|
180
|
-
this.modules = new
|
|
181
|
-
this.thresholdInformation = new
|
|
182
|
-
this.version = new
|
|
183
|
-
this.versionInformation = new
|
|
184
|
-
this.zoneInformation = new
|
|
163
|
+
this.companies = new chunkTRRB42W4_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
164
|
+
this.configurationItems = new chunkXCNB4D6C_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
165
|
+
this.contacts = new chunkXCNB4D6C_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
166
|
+
this.contracts = new chunkTRRB42W4_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
167
|
+
this.inventoryProducts = new chunkXCNB4D6C_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
168
|
+
this.invoices = new chunkTRRB42W4_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
169
|
+
this.quotes = new chunkXCNB4D6C_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
170
|
+
this.resourceTimeOffAdditional = new chunkXCNB4D6C_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
171
|
+
this.resourceTimeOffBalances = new chunkXCNB4D6C_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
172
|
+
this.resources = new chunkXCNB4D6C_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
173
|
+
this.serviceCalls = new chunkXCNB4D6C_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
174
|
+
this.ticketCharges = new chunkXCNB4D6C_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
175
|
+
this.tickets = new chunkXCNB4D6C_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
176
|
+
this.timeEntries = new chunkTRRB42W4_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.timeOffRequests = new chunkXCNB4D6C_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.authenticateResource = new chunkXCNB4D6C_cjs.AuthenticateResource(this.http);
|
|
179
|
+
this.entityInformation = new chunkXCNB4D6C_cjs.EntityInformationResource(this.http);
|
|
180
|
+
this.modules = new chunkXCNB4D6C_cjs.ModulesResource(this.http);
|
|
181
|
+
this.thresholdInformation = new chunkXCNB4D6C_cjs.ThresholdInformationResource(this.http);
|
|
182
|
+
this.version = new chunkXCNB4D6C_cjs.VersionResource(this.http);
|
|
183
|
+
this.versionInformation = new chunkXCNB4D6C_cjs.VersionInformationResource(this.http);
|
|
184
|
+
this.zoneInformation = new chunkXCNB4D6C_cjs.ZoneInformationResource(this.http);
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -215,12 +215,12 @@ var AutotaskClient = class {
|
|
|
215
215
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
216
216
|
*/
|
|
217
217
|
withSignal(signal, fn) {
|
|
218
|
-
return
|
|
218
|
+
return chunkTRRB42W4_cjs.runWithSignal(signal, fn);
|
|
219
219
|
}
|
|
220
220
|
async batch(fn, items, opts = {}) {
|
|
221
221
|
const concurrency = opts.concurrency ?? this.config.maxConcurrent;
|
|
222
222
|
if (!Number.isInteger(concurrency) || concurrency <= 0) {
|
|
223
|
-
throw new
|
|
223
|
+
throw new chunkTRRB42W4_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
|
|
224
224
|
}
|
|
225
225
|
const { signal, settle } = opts;
|
|
226
226
|
const results = new Array(items.length);
|
|
@@ -235,7 +235,7 @@ var AutotaskClient = class {
|
|
|
235
235
|
const i = next++;
|
|
236
236
|
try {
|
|
237
237
|
const item = items[i];
|
|
238
|
-
const value = await (signal === void 0 ? fn(item) :
|
|
238
|
+
const value = await (signal === void 0 ? fn(item) : chunkTRRB42W4_cjs.runWithSignal(signal, () => fn(item)));
|
|
239
239
|
results[i] = settle ? { status: "fulfilled", value } : value;
|
|
240
240
|
} catch (error) {
|
|
241
241
|
if (settle) results[i] = { status: "rejected", reason: error };
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// src/capabilities.ts
|
|
4
4
|
var CAPABILITY_PLAN_HASHES = {
|
|
5
|
-
"B": "
|
|
6
|
-
"A": "
|
|
7
|
-
"operations": "
|
|
5
|
+
"B": "e5f02696b643dc5075c6a0e70ebb4150f1f1ecd1eedf18c6f2df32629846ac8c",
|
|
6
|
+
"A": "e5f02696b643dc5075c6a0e70ebb4150f1f1ecd1eedf18c6f2df32629846ac8c",
|
|
7
|
+
"operations": "e5f02696b643dc5075c6a0e70ebb4150f1f1ecd1eedf18c6f2df32629846ac8c"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-
|
|
2
|
-
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-
|
|
1
|
+
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-WL7VSHPI.js';
|
|
2
|
+
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-LCZJ3STD.js';
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
var AutotaskClient = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { loadCapabilityRecords } from './chunk-X46S4BDG.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 chunkCY6T5SPE_cjs = require('./chunk-CY6T5SPE.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 chunkCY6T5SPE_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 = chunkCY6T5SPE_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 = chunkCY6T5SPE_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 chunkCY6T5SPE_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 = chunkCY6T5SPE_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
|
|
22303
22348
|
}
|
|
22304
22349
|
return indexPromise;
|
|
22305
22350
|
}
|
|
@@ -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-LCZJ3STD.js';
|
|
2
|
+
import { loadCapabilityRecords } from './chunk-X46S4BDG.js';
|
|
3
3
|
|
|
4
4
|
// src/resources/special/configuration_items.ts
|
|
5
5
|
async function fetchRecord(http, path, label, readOpts) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "e5f02696b643dc5075c6a0e70ebb4150f1f1ecd1eedf18c6f2df32629846ac8c",
|
|
4
|
+
"A": "e5f02696b643dc5075c6a0e70ebb4150f1f1ecd1eedf18c6f2df32629846ac8c",
|
|
5
|
+
"operations": "e5f02696b643dc5075c6a0e70ebb4150f1f1ecd1eedf18c6f2df32629846ac8c"
|
|
6
6
|
};
|
|
7
7
|
var cached = null;
|
|
8
8
|
function loadCapabilities() {
|