node-autotask 0.64.0 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/MCP_TOOL_CATALOG.json +4 -4
- package/capabilities.json +42 -42
- package/dist/capabilities-data.js +41 -41
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-NWQVMOP5.js → chunk-C73NILBZ.js} +2 -2
- package/dist/{chunk-MIKVE6VJ.cjs → chunk-M63TK4ZH.cjs} +174 -174
- package/dist/{chunk-SVCTQVTV.js → chunk-MXLE2F5G.js} +2 -2
- package/dist/{chunk-C3OLJGY5.js → chunk-N4EO3KAY.js} +3 -3
- package/dist/{chunk-AGGOZD2J.cjs → chunk-NTHEFYA7.cjs} +34 -15
- package/dist/{chunk-7DC524X3.cjs → chunk-UHV7SAX6.cjs} +31 -31
- package/dist/{chunk-BQNC4RYG.js → chunk-ULI4UUB3.js} +29 -10
- package/dist/{chunk-ENRW25IT.cjs → chunk-WKR5IJEC.cjs} +3 -3
- package/dist/{index-B7bZQ34O.d.cts → index-CRVQBajX.d.cts} +1 -1
- package/dist/{index-RkTNsoOz.d.ts → index-vcFKvZqm.d.ts} +1 -1
- package/dist/index.cjs +84 -84
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +50 -50
- package/dist/operations/index.d.cts +2 -2
- package/dist/operations/index.d.ts +2 -2
- package/dist/operations/index.js +2 -2
- package/dist/pool.cjs +8 -8
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +27 -27
- package/dist/resources/index.d.cts +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.js +3 -3
- package/docs/VENDOR-QUIRKS.md +14 -3
- package/package.json +4 -4
|
@@ -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-ULI4UUB3.js';
|
|
2
|
+
import { loadCapabilityRecords } from './chunk-N4EO3KAY.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": "546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb",
|
|
4
|
+
"A": "546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb",
|
|
5
|
+
"operations": "546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb"
|
|
6
6
|
};
|
|
7
7
|
var cached = null;
|
|
8
8
|
function loadCapabilities() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWKR5IJEC_cjs = require('./chunk-WKR5IJEC.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 chunkWKR5IJEC_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 = chunkWKR5IJEC_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;
|
|
@@ -8437,7 +8437,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8437
8437
|
"createRequiredSet": [
|
|
8438
8438
|
"description",
|
|
8439
8439
|
"noteType",
|
|
8440
|
-
"publish"
|
|
8440
|
+
"publish",
|
|
8441
|
+
"title"
|
|
8441
8442
|
],
|
|
8442
8443
|
"quirks": [
|
|
8443
8444
|
{
|
|
@@ -8473,8 +8474,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8473
8474
|
"fields": [
|
|
8474
8475
|
"ticketID"
|
|
8475
8476
|
],
|
|
8476
|
-
"statement": "ticketID is NOT in the create body \u2014 the scoped parent path supplies it
|
|
8477
|
-
"evidence":
|
|
8477
|
+
"statement": "ticketID is NOT in the create body \u2014 the scoped parent path supplies it.",
|
|
8478
|
+
"evidence": 'ticketID is NOT in the body (the scoped parent path supplies it); title is live-required on create (a title-less create was refused, body verbatim: "Missing Required Field: title.")'
|
|
8478
8479
|
}
|
|
8479
8480
|
],
|
|
8480
8481
|
"createGuidance": {
|
|
@@ -8483,7 +8484,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8483
8484
|
"liveProvenPrefix": [
|
|
8484
8485
|
"description",
|
|
8485
8486
|
"noteType",
|
|
8486
|
-
"publish"
|
|
8487
|
+
"publish",
|
|
8488
|
+
"title"
|
|
8487
8489
|
],
|
|
8488
8490
|
"unproven": false,
|
|
8489
8491
|
"blocker": {
|
|
@@ -8492,7 +8494,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8492
8494
|
"remedy": "None: create with the live-proven field set."
|
|
8493
8495
|
},
|
|
8494
8496
|
"vendorEvidence": [
|
|
8495
|
-
'Executed "ticket_notes.create".'
|
|
8497
|
+
'Executed "ticket_notes.create".',
|
|
8498
|
+
'A title-less create was refused by the vendor (body verbatim: "Missing Required Field: title."); a create with title succeeded \u2014 title is live-required on create.'
|
|
8496
8499
|
],
|
|
8497
8500
|
"deleteBoundary": {
|
|
8498
8501
|
"available": false,
|
|
@@ -8967,6 +8970,18 @@ var RELATIONSHIP_MAP = {
|
|
|
8967
8970
|
],
|
|
8968
8971
|
"statement": "createDateTime is NOT honoured on create (the vendor stores the create time) and creatorUserID is the API user: a moved entry gets a fresh create date.",
|
|
8969
8972
|
"evidence": "createDateTime is NOT honoured on create (stored as the create time) and creatorUserID is the API user - a moved entry gets a fresh create date"
|
|
8973
|
+
},
|
|
8974
|
+
{
|
|
8975
|
+
"kind": "field-constraint",
|
|
8976
|
+
"ops": [
|
|
8977
|
+
"create"
|
|
8978
|
+
],
|
|
8979
|
+
"fields": [
|
|
8980
|
+
"showOnInvoice",
|
|
8981
|
+
"isNonBillable"
|
|
8982
|
+
],
|
|
8983
|
+
"statement": 'On internal-organisation tickets (companyID 0) showOnInvoice must be false \u2014 true is refused by the vendor (500 "This time entry cannot be shown on an Invoice because it is for your internal organization.") \u2014 and the vendor stores isNonBillable true on internal-organisation entries (a create that sent false read back true)',
|
|
8984
|
+
"evidence": 'A time_entries.create with showOnInvoice true on an internal-organisation ticket (companyID 0) was refused at apply (HTTP 500 verbatim: "This time entry cannot be shown on an Invoice because it is for your internal organization."); the same create with showOnInvoice false succeeded and the read-back stored isNonBillable true although the payload sent false.'
|
|
8970
8985
|
}
|
|
8971
8986
|
],
|
|
8972
8987
|
"createGuidance": {
|
|
@@ -8982,7 +8997,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8982
8997
|
"vendorEvidence": [
|
|
8983
8998
|
"The specified AssignedResourceID and AssignedRoleID combination is not currently defined.",
|
|
8984
8999
|
'{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"time_entries.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"c5ff4e59-bc8f-4f88-ad05-6445d8fddfa6","message":"API-only user cannot be selected for th',
|
|
8985
|
-
'{"live": "2026-10-06 ", "message": "API-only user cannot be selected for this field."}'
|
|
9000
|
+
'{"live": "2026-10-06 ", "message": "API-only user cannot be selected for this field."}',
|
|
9001
|
+
'On an internal-organisation ticket (companyID 0), showOnInvoice true was refused at apply (HTTP 500 verbatim: "This time entry cannot be shown on an Invoice because it is for your internal organization."); the same create with showOnInvoice false succeeded, and the vendor stored isNonBillable true on the read-back although the payload sent false.'
|
|
8986
9002
|
],
|
|
8987
9003
|
"deleteBoundary": {
|
|
8988
9004
|
"available": true,
|
|
@@ -13224,7 +13240,8 @@ var CREATE_GUIDANCE = {
|
|
|
13224
13240
|
"liveProvenPrefix": [
|
|
13225
13241
|
"description",
|
|
13226
13242
|
"noteType",
|
|
13227
|
-
"publish"
|
|
13243
|
+
"publish",
|
|
13244
|
+
"title"
|
|
13228
13245
|
],
|
|
13229
13246
|
"unproven": false,
|
|
13230
13247
|
"blocker": {
|
|
@@ -13233,7 +13250,8 @@ var CREATE_GUIDANCE = {
|
|
|
13233
13250
|
"remedy": "None: create with the live-proven field set."
|
|
13234
13251
|
},
|
|
13235
13252
|
"vendorEvidence": [
|
|
13236
|
-
'Executed "ticket_notes.create".'
|
|
13253
|
+
'Executed "ticket_notes.create".',
|
|
13254
|
+
'A title-less create was refused by the vendor (body verbatim: "Missing Required Field: title."); a create with title succeeded \u2014 title is live-required on create.'
|
|
13237
13255
|
],
|
|
13238
13256
|
"deleteBoundary": {
|
|
13239
13257
|
"available": false,
|
|
@@ -13333,7 +13351,8 @@ var CREATE_GUIDANCE = {
|
|
|
13333
13351
|
"vendorEvidence": [
|
|
13334
13352
|
"The specified AssignedResourceID and AssignedRoleID combination is not currently defined.",
|
|
13335
13353
|
'{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"time_entries.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"c5ff4e59-bc8f-4f88-ad05-6445d8fddfa6","message":"API-only user cannot be selected for th',
|
|
13336
|
-
'{"live": "2026-10-06 ", "message": "API-only user cannot be selected for this field."}'
|
|
13354
|
+
'{"live": "2026-10-06 ", "message": "API-only user cannot be selected for this field."}',
|
|
13355
|
+
'On an internal-organisation ticket (companyID 0), showOnInvoice true was refused at apply (HTTP 500 verbatim: "This time entry cannot be shown on an Invoice because it is for your internal organization."); the same create with showOnInvoice false succeeded, and the vendor stored isNonBillable true on the read-back although the payload sent false.'
|
|
13337
13356
|
],
|
|
13338
13357
|
"deleteBoundary": {
|
|
13339
13358
|
"available": true,
|
|
@@ -21608,7 +21627,7 @@ function dateBucketLabel(value, bucket) {
|
|
|
21608
21627
|
var queryResourceKeysPromise = null;
|
|
21609
21628
|
function queryResourceKeys() {
|
|
21610
21629
|
if (queryResourceKeysPromise === null) {
|
|
21611
|
-
queryResourceKeysPromise =
|
|
21630
|
+
queryResourceKeysPromise = chunkWKR5IJEC_cjs.loadCapabilityRecords().then((records) => {
|
|
21612
21631
|
const s = /* @__PURE__ */ new Set();
|
|
21613
21632
|
for (const rec of records) if (rec.operation === "query") s.add(rec.resource);
|
|
21614
21633
|
return s;
|
|
@@ -21730,7 +21749,7 @@ function parseTopAndLimit(opts, problems) {
|
|
|
21730
21749
|
return { top, limit };
|
|
21731
21750
|
}
|
|
21732
21751
|
async function checkFieldNames(resourceKey, conditions, opts, problems) {
|
|
21733
|
-
const records = resourceKey === void 0 ? [] : await
|
|
21752
|
+
const records = resourceKey === void 0 ? [] : await chunkWKR5IJEC_cjs.loadCapabilityRecords();
|
|
21734
21753
|
const record = resourceKey === void 0 ? void 0 : records.find((r) => r.resource === resourceKey && r.operation === "query");
|
|
21735
21754
|
if (record === void 0) return void 0;
|
|
21736
21755
|
const strings = (v) => Array.isArray(v) ? v.filter((f) => typeof f === "string" && f.trim() !== "") : [];
|
|
@@ -22370,7 +22389,7 @@ async function uiLink(client, input) {
|
|
|
22370
22389
|
var indexPromise = null;
|
|
22371
22390
|
function operationIndex() {
|
|
22372
22391
|
if (indexPromise === null) {
|
|
22373
|
-
indexPromise =
|
|
22392
|
+
indexPromise = chunkWKR5IJEC_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
|
|
22374
22393
|
}
|
|
22375
22394
|
return indexPromise;
|
|
22376
22395
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkM63TK4ZH_cjs = require('./chunk-M63TK4ZH.cjs');
|
|
4
|
+
var chunkNTHEFYA7_cjs = require('./chunk-NTHEFYA7.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 = chunkNTHEFYA7_cjs.resolveConfig(options);
|
|
158
|
+
this.http = new chunkNTHEFYA7_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 chunkNTHEFYA7_cjs.SIMPLE_RESOURCES) {
|
|
161
|
+
this[entry.accessor] = new chunkNTHEFYA7_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 chunkNTHEFYA7_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
164
|
+
this.configurationItems = new chunkM63TK4ZH_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
165
|
+
this.contacts = new chunkM63TK4ZH_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
166
|
+
this.contracts = new chunkNTHEFYA7_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
167
|
+
this.inventoryProducts = new chunkM63TK4ZH_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
168
|
+
this.invoices = new chunkNTHEFYA7_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
169
|
+
this.quotes = new chunkM63TK4ZH_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
170
|
+
this.resourceTimeOffAdditional = new chunkM63TK4ZH_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
171
|
+
this.resourceTimeOffBalances = new chunkM63TK4ZH_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
172
|
+
this.resources = new chunkM63TK4ZH_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
173
|
+
this.serviceCalls = new chunkM63TK4ZH_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
174
|
+
this.ticketCharges = new chunkM63TK4ZH_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
175
|
+
this.tickets = new chunkM63TK4ZH_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
176
|
+
this.timeEntries = new chunkNTHEFYA7_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.timeOffRequests = new chunkM63TK4ZH_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.authenticateResource = new chunkM63TK4ZH_cjs.AuthenticateResource(this.http);
|
|
179
|
+
this.entityInformation = new chunkM63TK4ZH_cjs.EntityInformationResource(this.http);
|
|
180
|
+
this.modules = new chunkM63TK4ZH_cjs.ModulesResource(this.http);
|
|
181
|
+
this.thresholdInformation = new chunkM63TK4ZH_cjs.ThresholdInformationResource(this.http);
|
|
182
|
+
this.version = new chunkM63TK4ZH_cjs.VersionResource(this.http);
|
|
183
|
+
this.versionInformation = new chunkM63TK4ZH_cjs.VersionInformationResource(this.http);
|
|
184
|
+
this.zoneInformation = new chunkM63TK4ZH_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 chunkNTHEFYA7_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 chunkNTHEFYA7_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) : chunkNTHEFYA7_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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { loadCapabilityRecords } from './chunk-N4EO3KAY.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';
|
|
@@ -8435,7 +8435,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8435
8435
|
"createRequiredSet": [
|
|
8436
8436
|
"description",
|
|
8437
8437
|
"noteType",
|
|
8438
|
-
"publish"
|
|
8438
|
+
"publish",
|
|
8439
|
+
"title"
|
|
8439
8440
|
],
|
|
8440
8441
|
"quirks": [
|
|
8441
8442
|
{
|
|
@@ -8471,8 +8472,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8471
8472
|
"fields": [
|
|
8472
8473
|
"ticketID"
|
|
8473
8474
|
],
|
|
8474
|
-
"statement": "ticketID is NOT in the create body \u2014 the scoped parent path supplies it
|
|
8475
|
-
"evidence":
|
|
8475
|
+
"statement": "ticketID is NOT in the create body \u2014 the scoped parent path supplies it.",
|
|
8476
|
+
"evidence": 'ticketID is NOT in the body (the scoped parent path supplies it); title is live-required on create (a title-less create was refused, body verbatim: "Missing Required Field: title.")'
|
|
8476
8477
|
}
|
|
8477
8478
|
],
|
|
8478
8479
|
"createGuidance": {
|
|
@@ -8481,7 +8482,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8481
8482
|
"liveProvenPrefix": [
|
|
8482
8483
|
"description",
|
|
8483
8484
|
"noteType",
|
|
8484
|
-
"publish"
|
|
8485
|
+
"publish",
|
|
8486
|
+
"title"
|
|
8485
8487
|
],
|
|
8486
8488
|
"unproven": false,
|
|
8487
8489
|
"blocker": {
|
|
@@ -8490,7 +8492,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8490
8492
|
"remedy": "None: create with the live-proven field set."
|
|
8491
8493
|
},
|
|
8492
8494
|
"vendorEvidence": [
|
|
8493
|
-
'Executed "ticket_notes.create".'
|
|
8495
|
+
'Executed "ticket_notes.create".',
|
|
8496
|
+
'A title-less create was refused by the vendor (body verbatim: "Missing Required Field: title."); a create with title succeeded \u2014 title is live-required on create.'
|
|
8494
8497
|
],
|
|
8495
8498
|
"deleteBoundary": {
|
|
8496
8499
|
"available": false,
|
|
@@ -8965,6 +8968,18 @@ var RELATIONSHIP_MAP = {
|
|
|
8965
8968
|
],
|
|
8966
8969
|
"statement": "createDateTime is NOT honoured on create (the vendor stores the create time) and creatorUserID is the API user: a moved entry gets a fresh create date.",
|
|
8967
8970
|
"evidence": "createDateTime is NOT honoured on create (stored as the create time) and creatorUserID is the API user - a moved entry gets a fresh create date"
|
|
8971
|
+
},
|
|
8972
|
+
{
|
|
8973
|
+
"kind": "field-constraint",
|
|
8974
|
+
"ops": [
|
|
8975
|
+
"create"
|
|
8976
|
+
],
|
|
8977
|
+
"fields": [
|
|
8978
|
+
"showOnInvoice",
|
|
8979
|
+
"isNonBillable"
|
|
8980
|
+
],
|
|
8981
|
+
"statement": 'On internal-organisation tickets (companyID 0) showOnInvoice must be false \u2014 true is refused by the vendor (500 "This time entry cannot be shown on an Invoice because it is for your internal organization.") \u2014 and the vendor stores isNonBillable true on internal-organisation entries (a create that sent false read back true)',
|
|
8982
|
+
"evidence": 'A time_entries.create with showOnInvoice true on an internal-organisation ticket (companyID 0) was refused at apply (HTTP 500 verbatim: "This time entry cannot be shown on an Invoice because it is for your internal organization."); the same create with showOnInvoice false succeeded and the read-back stored isNonBillable true although the payload sent false.'
|
|
8968
8983
|
}
|
|
8969
8984
|
],
|
|
8970
8985
|
"createGuidance": {
|
|
@@ -8980,7 +8995,8 @@ var RELATIONSHIP_MAP = {
|
|
|
8980
8995
|
"vendorEvidence": [
|
|
8981
8996
|
"The specified AssignedResourceID and AssignedRoleID combination is not currently defined.",
|
|
8982
8997
|
'{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"time_entries.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"c5ff4e59-bc8f-4f88-ad05-6445d8fddfa6","message":"API-only user cannot be selected for th',
|
|
8983
|
-
'{"live": "2026-10-06 ", "message": "API-only user cannot be selected for this field."}'
|
|
8998
|
+
'{"live": "2026-10-06 ", "message": "API-only user cannot be selected for this field."}',
|
|
8999
|
+
'On an internal-organisation ticket (companyID 0), showOnInvoice true was refused at apply (HTTP 500 verbatim: "This time entry cannot be shown on an Invoice because it is for your internal organization."); the same create with showOnInvoice false succeeded, and the vendor stored isNonBillable true on the read-back although the payload sent false.'
|
|
8984
9000
|
],
|
|
8985
9001
|
"deleteBoundary": {
|
|
8986
9002
|
"available": true,
|
|
@@ -13222,7 +13238,8 @@ var CREATE_GUIDANCE = {
|
|
|
13222
13238
|
"liveProvenPrefix": [
|
|
13223
13239
|
"description",
|
|
13224
13240
|
"noteType",
|
|
13225
|
-
"publish"
|
|
13241
|
+
"publish",
|
|
13242
|
+
"title"
|
|
13226
13243
|
],
|
|
13227
13244
|
"unproven": false,
|
|
13228
13245
|
"blocker": {
|
|
@@ -13231,7 +13248,8 @@ var CREATE_GUIDANCE = {
|
|
|
13231
13248
|
"remedy": "None: create with the live-proven field set."
|
|
13232
13249
|
},
|
|
13233
13250
|
"vendorEvidence": [
|
|
13234
|
-
'Executed "ticket_notes.create".'
|
|
13251
|
+
'Executed "ticket_notes.create".',
|
|
13252
|
+
'A title-less create was refused by the vendor (body verbatim: "Missing Required Field: title."); a create with title succeeded \u2014 title is live-required on create.'
|
|
13235
13253
|
],
|
|
13236
13254
|
"deleteBoundary": {
|
|
13237
13255
|
"available": false,
|
|
@@ -13331,7 +13349,8 @@ var CREATE_GUIDANCE = {
|
|
|
13331
13349
|
"vendorEvidence": [
|
|
13332
13350
|
"The specified AssignedResourceID and AssignedRoleID combination is not currently defined.",
|
|
13333
13351
|
'{"error":true,"code":"SERVER_ERROR","category":"server","retryable":true,"httpStatus":500,"operation":"time_entries.create","suggestedAction":"Retry with backoff; the server error is transient.","correlationId":"c5ff4e59-bc8f-4f88-ad05-6445d8fddfa6","message":"API-only user cannot be selected for th',
|
|
13334
|
-
'{"live": "2026-10-06 ", "message": "API-only user cannot be selected for this field."}'
|
|
13352
|
+
'{"live": "2026-10-06 ", "message": "API-only user cannot be selected for this field."}',
|
|
13353
|
+
'On an internal-organisation ticket (companyID 0), showOnInvoice true was refused at apply (HTTP 500 verbatim: "This time entry cannot be shown on an Invoice because it is for your internal organization."); the same create with showOnInvoice false succeeded, and the vendor stored isNonBillable true on the read-back although the payload sent false.'
|
|
13335
13354
|
],
|
|
13336
13355
|
"deleteBoundary": {
|
|
13337
13356
|
"available": true,
|
|
@@ -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": "546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb",
|
|
6
|
+
"A": "546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb",
|
|
7
|
+
"operations": "546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|
|
@@ -32,7 +32,7 @@ import { L as Logger } from './logger-B1gYmFre.cjs';
|
|
|
32
32
|
* queryBounded noteChars free-text cap (issue #61 — response-side only);
|
|
33
33
|
* - docs/VENDOR-QUIRKS.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
|
|
34
34
|
*
|
|
35
|
-
* planHash:
|
|
35
|
+
* planHash: 546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/** One pinned blind-surface stamp (the result-time sentinel object). */
|
|
@@ -32,7 +32,7 @@ import { L as Logger } from './logger-B1gYmFre.js';
|
|
|
32
32
|
* queryBounded noteChars free-text cap (issue #61 — response-side only);
|
|
33
33
|
* - docs/VENDOR-QUIRKS.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
|
|
34
34
|
*
|
|
35
|
-
* planHash:
|
|
35
|
+
* planHash: 546e9de78d62f2c30190c1bb82f89be73f9cc0a75d633d771956566c78f4efeb
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/** One pinned blind-surface stamp (the result-time sentinel object). */
|