node-autotask 0.70.0 → 0.72.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 +29 -0
- package/MCP_TOOL_CATALOG.json +515 -9
- package/README.md +1 -1
- package/capabilities.json +2108 -293
- package/dist/capabilities-data.js +2107 -292
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-TYUTIZWB.js → chunk-A4IRIYZ5.js} +6 -2
- package/dist/{chunk-3RANR2RY.js → chunk-EGG2RGL5.js} +433 -8
- package/dist/{chunk-MN5VLBCI.js → chunk-F2TYZKJS.js} +2 -2
- package/dist/{chunk-YQX45JBG.cjs → chunk-HJVTA7SI.cjs} +34 -30
- package/dist/{chunk-SCFB5MF3.js → chunk-K33DPJFK.js} +3 -3
- package/dist/{chunk-YRRTE2NF.cjs → chunk-KVC5DZAP.cjs} +438 -13
- package/dist/{chunk-KAZE4WC7.cjs → chunk-SPME362B.cjs} +3 -3
- package/dist/{chunk-GVP2WW47.cjs → chunk-V5UGW6KZ.cjs} +177 -177
- package/dist/{index-COQEG55Q.d.cts → index-BXnhBnhN.d.cts} +248 -1
- package/dist/{index-COQEG55Q.d.ts → index-BXnhBnhN.d.ts} +248 -1
- package/dist/{index-CGW80Uzc.d.cts → index-CqsY5YHt.d.cts} +7 -2
- package/dist/{index-By9Zw2Oc.d.ts → index-DxfspQR1.d.ts} +7 -2
- package/dist/index.cjs +84 -84
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +51 -51
- package/dist/operations/index.d.cts +5 -5
- package/dist/operations/index.d.ts +5 -5
- package/dist/operations/index.js +2 -2
- package/dist/pool.cjs +12 -12
- package/dist/pool.d.cts +1 -1
- package/dist/pool.d.ts +1 -1
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +27 -27
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/docs/API.md +86 -6
- package/docs/RELEASING.md +11 -3
- package/package.json +1 -1
|
@@ -348,8 +348,8 @@ const CAPABILITY_DATA = {
|
|
|
348
348
|
],
|
|
349
349
|
"groups": {
|
|
350
350
|
"B": {
|
|
351
|
-
"planHash": "
|
|
352
|
-
"builtAt": "2026-11-
|
|
351
|
+
"planHash": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
|
|
352
|
+
"builtAt": "2026-11-18T13:26:09.223Z",
|
|
353
353
|
"records": [
|
|
354
354
|
{
|
|
355
355
|
"id": "appointments.count",
|
|
@@ -43132,9 +43132,386 @@ const CAPABILITY_DATA = {
|
|
|
43132
43132
|
]
|
|
43133
43133
|
},
|
|
43134
43134
|
"A": {
|
|
43135
|
-
"planHash": "
|
|
43136
|
-
"builtAt": "2026-11-
|
|
43135
|
+
"planHash": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
|
|
43136
|
+
"builtAt": "2026-11-18T13:26:09.224Z",
|
|
43137
43137
|
"records": [
|
|
43138
|
+
{
|
|
43139
|
+
"id": "attachment_info.count",
|
|
43140
|
+
"resource": "attachment_info",
|
|
43141
|
+
"udfCapable": false,
|
|
43142
|
+
"operation": "count",
|
|
43143
|
+
"kind": "primitive",
|
|
43144
|
+
"endpoint": "GET|POST /V1.0/AttachmentInfo/query/count",
|
|
43145
|
+
"effect": "read",
|
|
43146
|
+
"flags": [],
|
|
43147
|
+
"dryRun": false,
|
|
43148
|
+
"envelope": "QueryCountResultModel",
|
|
43149
|
+
"inputSchema": {
|
|
43150
|
+
"params": {
|
|
43151
|
+
"type": "object",
|
|
43152
|
+
"required": false,
|
|
43153
|
+
"description": "The query params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only wire parameter (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too.",
|
|
43154
|
+
"properties": [
|
|
43155
|
+
{
|
|
43156
|
+
"name": "filter",
|
|
43157
|
+
"type": "FilterCondition[]",
|
|
43158
|
+
"optional": true
|
|
43159
|
+
},
|
|
43160
|
+
{
|
|
43161
|
+
"name": "fieldCheck",
|
|
43162
|
+
"type": "boolean",
|
|
43163
|
+
"optional": true
|
|
43164
|
+
}
|
|
43165
|
+
]
|
|
43166
|
+
}
|
|
43167
|
+
},
|
|
43168
|
+
"inputSchemaStrict": true,
|
|
43169
|
+
"outputSchema": {
|
|
43170
|
+
"type": "QueryCountResultModel",
|
|
43171
|
+
"drops": []
|
|
43172
|
+
},
|
|
43173
|
+
"examples": [
|
|
43174
|
+
"await client.attachmentInfo.count({ filter: [{ field: 'companyID', op: 'eq', value: 1 }] })"
|
|
43175
|
+
],
|
|
43176
|
+
"permissions": "unknown",
|
|
43177
|
+
"pagination": {
|
|
43178
|
+
"mode": "none"
|
|
43179
|
+
},
|
|
43180
|
+
"resolution": null,
|
|
43181
|
+
"retry": {
|
|
43182
|
+
"preset": "retry-ffb3a9cb"
|
|
43183
|
+
},
|
|
43184
|
+
"errors": {
|
|
43185
|
+
"set": 0
|
|
43186
|
+
},
|
|
43187
|
+
"metadata": {
|
|
43188
|
+
"purpose": "Count attachment information records matching a JSON filter.",
|
|
43189
|
+
"usage": "Unwraps queryCount; returns a plain number. Filter by companyID for company scope. fileSize is not queryable. Object-specific filters can include child attachments; an empty result is conditional on API-user permissions and visibility.",
|
|
43190
|
+
"preferredWhen": null,
|
|
43191
|
+
"related": [
|
|
43192
|
+
"attachment_info.query"
|
|
43193
|
+
],
|
|
43194
|
+
"args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
43195
|
+
"untrustedFields": [
|
|
43196
|
+
"title"
|
|
43197
|
+
]
|
|
43198
|
+
},
|
|
43199
|
+
"compact": null,
|
|
43200
|
+
"status": "tested"
|
|
43201
|
+
},
|
|
43202
|
+
{
|
|
43203
|
+
"id": "attachment_info.get",
|
|
43204
|
+
"resource": "attachment_info",
|
|
43205
|
+
"udfCapable": false,
|
|
43206
|
+
"operation": "get",
|
|
43207
|
+
"kind": "primitive",
|
|
43208
|
+
"endpoint": "GET /V1.0/AttachmentInfo/{id}",
|
|
43209
|
+
"effect": "read",
|
|
43210
|
+
"flags": [],
|
|
43211
|
+
"dryRun": false,
|
|
43212
|
+
"envelope": "ItemQueryResultModel[AttachmentInfoModel,AttachmentInfo]",
|
|
43213
|
+
"inputSchema": {
|
|
43214
|
+
"id": {
|
|
43215
|
+
"type": "string | number",
|
|
43216
|
+
"required": true,
|
|
43217
|
+
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
43218
|
+
},
|
|
43219
|
+
"opts": {
|
|
43220
|
+
"type": "object",
|
|
43221
|
+
"required": false,
|
|
43222
|
+
"description": "The read options bag (CLOSED): { fresh?: boolean } — fresh: true bypasses the read-cache lookup and refreshes the entry with the live response. Omitted: the cached read (default unchanged). A positional fresh via invoke is REFUSED (typed error, zero wire — the fresh invoke option is the only spelling); the typed method get(id, { fresh: true }) is unchanged.",
|
|
43223
|
+
"properties": [
|
|
43224
|
+
{
|
|
43225
|
+
"name": "fresh",
|
|
43226
|
+
"type": "boolean",
|
|
43227
|
+
"optional": true
|
|
43228
|
+
}
|
|
43229
|
+
]
|
|
43230
|
+
}
|
|
43231
|
+
},
|
|
43232
|
+
"inputSchemaStrict": true,
|
|
43233
|
+
"outputSchema": {
|
|
43234
|
+
"type": "ItemQueryResultModel[AttachmentInfoModel,AttachmentInfo]",
|
|
43235
|
+
"drops": []
|
|
43236
|
+
},
|
|
43237
|
+
"examples": [
|
|
43238
|
+
"await client.attachmentInfo.get('example-value')"
|
|
43239
|
+
],
|
|
43240
|
+
"permissions": "unknown",
|
|
43241
|
+
"pagination": {
|
|
43242
|
+
"mode": "none"
|
|
43243
|
+
},
|
|
43244
|
+
"resolution": null,
|
|
43245
|
+
"retry": {
|
|
43246
|
+
"preset": "retry-ffb3a9cb"
|
|
43247
|
+
},
|
|
43248
|
+
"errors": {
|
|
43249
|
+
"set": 3
|
|
43250
|
+
},
|
|
43251
|
+
"metadata": {
|
|
43252
|
+
"purpose": "Get one AttachmentInfo by id.",
|
|
43253
|
+
"usage": "Returns item from the standard item envelope; item: null is a typed not-found.",
|
|
43254
|
+
"preferredWhen": "Use a known attachment id; query attachment_info with an object-specific filter to discover ids.",
|
|
43255
|
+
"related": [
|
|
43256
|
+
"attachment_info.query"
|
|
43257
|
+
],
|
|
43258
|
+
"args": "args[0] is the record id (number) Item GET returns the FULL vendor model — the vendor documents no field selection on single-record reads. For a slim record use an attachment_info.query with includeFields.",
|
|
43259
|
+
"untrustedFields": [
|
|
43260
|
+
"title"
|
|
43261
|
+
]
|
|
43262
|
+
},
|
|
43263
|
+
"compact": null,
|
|
43264
|
+
"status": "tested"
|
|
43265
|
+
},
|
|
43266
|
+
{
|
|
43267
|
+
"id": "attachment_info.getEntityInfo",
|
|
43268
|
+
"resource": "attachment_info",
|
|
43269
|
+
"udfCapable": false,
|
|
43270
|
+
"operation": "getEntityInfo",
|
|
43271
|
+
"kind": "primitive",
|
|
43272
|
+
"endpoint": "GET /V1.0/AttachmentInfo/entityInformation",
|
|
43273
|
+
"effect": "read",
|
|
43274
|
+
"flags": [],
|
|
43275
|
+
"dryRun": false,
|
|
43276
|
+
"envelope": "EntityInformationResultModel",
|
|
43277
|
+
"inputSchema": {},
|
|
43278
|
+
"inputSchemaStrict": true,
|
|
43279
|
+
"outputSchema": {
|
|
43280
|
+
"type": "EntityInformationResultModel",
|
|
43281
|
+
"drops": []
|
|
43282
|
+
},
|
|
43283
|
+
"examples": [
|
|
43284
|
+
"await client.attachmentInfo.getEntityInfo()"
|
|
43285
|
+
],
|
|
43286
|
+
"permissions": "unknown",
|
|
43287
|
+
"pagination": {
|
|
43288
|
+
"mode": "none"
|
|
43289
|
+
},
|
|
43290
|
+
"resolution": null,
|
|
43291
|
+
"retry": {
|
|
43292
|
+
"preset": "retry-ffb3a9cb"
|
|
43293
|
+
},
|
|
43294
|
+
"errors": {
|
|
43295
|
+
"set": 0
|
|
43296
|
+
},
|
|
43297
|
+
"metadata": {
|
|
43298
|
+
"purpose": "Get the AttachmentInfo capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
|
|
43299
|
+
"usage": "Unwraps info{}; drives client-side capability checks.",
|
|
43300
|
+
"preferredWhen": null,
|
|
43301
|
+
"related": [
|
|
43302
|
+
"attachment_info.getFieldInfo"
|
|
43303
|
+
],
|
|
43304
|
+
"untrustedFields": [
|
|
43305
|
+
"title"
|
|
43306
|
+
]
|
|
43307
|
+
},
|
|
43308
|
+
"compact": null,
|
|
43309
|
+
"status": "tested"
|
|
43310
|
+
},
|
|
43311
|
+
{
|
|
43312
|
+
"id": "attachment_info.getFieldInfo",
|
|
43313
|
+
"resource": "attachment_info",
|
|
43314
|
+
"udfCapable": false,
|
|
43315
|
+
"operation": "getFieldInfo",
|
|
43316
|
+
"kind": "primitive",
|
|
43317
|
+
"endpoint": "GET /V1.0/AttachmentInfo/entityInformation/fields",
|
|
43318
|
+
"effect": "read",
|
|
43319
|
+
"flags": [],
|
|
43320
|
+
"dryRun": false,
|
|
43321
|
+
"envelope": "FieldInformationResultModel",
|
|
43322
|
+
"inputSchema": {},
|
|
43323
|
+
"inputSchemaStrict": true,
|
|
43324
|
+
"outputSchema": {
|
|
43325
|
+
"type": "FieldInformationResultModel",
|
|
43326
|
+
"drops": []
|
|
43327
|
+
},
|
|
43328
|
+
"examples": [
|
|
43329
|
+
"await client.attachmentInfo.getFieldInfo()"
|
|
43330
|
+
],
|
|
43331
|
+
"permissions": "unknown",
|
|
43332
|
+
"pagination": {
|
|
43333
|
+
"mode": "none"
|
|
43334
|
+
},
|
|
43335
|
+
"resolution": null,
|
|
43336
|
+
"retry": {
|
|
43337
|
+
"preset": "retry-ffb3a9cb"
|
|
43338
|
+
},
|
|
43339
|
+
"errors": {
|
|
43340
|
+
"set": 0
|
|
43341
|
+
},
|
|
43342
|
+
"metadata": {
|
|
43343
|
+
"purpose": "Get the AttachmentInfo field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
|
|
43344
|
+
"usage": "Unwraps fields[]; full raw field dump — the largest read of the info trio (compact discovery: operations.fieldCatalog); the raw dump is also the basis for UDF handling.",
|
|
43345
|
+
"preferredWhen": null,
|
|
43346
|
+
"related": [
|
|
43347
|
+
"attachment_info.getEntityInfo",
|
|
43348
|
+
"attachment_info.getUdfInfo"
|
|
43349
|
+
],
|
|
43350
|
+
"untrustedFields": [
|
|
43351
|
+
"title"
|
|
43352
|
+
]
|
|
43353
|
+
},
|
|
43354
|
+
"compact": null,
|
|
43355
|
+
"status": "tested"
|
|
43356
|
+
},
|
|
43357
|
+
{
|
|
43358
|
+
"id": "attachment_info.getUdfInfo",
|
|
43359
|
+
"resource": "attachment_info",
|
|
43360
|
+
"udfCapable": false,
|
|
43361
|
+
"operation": "getUdfInfo",
|
|
43362
|
+
"kind": "primitive",
|
|
43363
|
+
"endpoint": "GET /V1.0/AttachmentInfo/entityInformation/userDefinedFields",
|
|
43364
|
+
"effect": "read",
|
|
43365
|
+
"flags": [],
|
|
43366
|
+
"dryRun": false,
|
|
43367
|
+
"envelope": "UserDefinedFieldInformationResultModel",
|
|
43368
|
+
"inputSchema": {},
|
|
43369
|
+
"inputSchemaStrict": true,
|
|
43370
|
+
"outputSchema": {
|
|
43371
|
+
"type": "UserDefinedFieldInformationResultModel",
|
|
43372
|
+
"drops": []
|
|
43373
|
+
},
|
|
43374
|
+
"examples": [
|
|
43375
|
+
"await client.attachmentInfo.getUdfInfo()"
|
|
43376
|
+
],
|
|
43377
|
+
"permissions": "unknown",
|
|
43378
|
+
"pagination": {
|
|
43379
|
+
"mode": "none"
|
|
43380
|
+
},
|
|
43381
|
+
"resolution": null,
|
|
43382
|
+
"retry": {
|
|
43383
|
+
"preset": "retry-ffb3a9cb"
|
|
43384
|
+
},
|
|
43385
|
+
"errors": {
|
|
43386
|
+
"set": 0
|
|
43387
|
+
},
|
|
43388
|
+
"metadata": {
|
|
43389
|
+
"purpose": "Get the AttachmentInfo user-defined-field catalog.",
|
|
43390
|
+
"usage": "Unwraps fields[]; only meaningful where the entity is UDF-capable. (entity is not UDF-capable; catalog is expected empty).",
|
|
43391
|
+
"preferredWhen": null,
|
|
43392
|
+
"related": [
|
|
43393
|
+
"attachment_info.getFieldInfo"
|
|
43394
|
+
],
|
|
43395
|
+
"untrustedFields": [
|
|
43396
|
+
"title"
|
|
43397
|
+
]
|
|
43398
|
+
},
|
|
43399
|
+
"compact": null,
|
|
43400
|
+
"status": "tested"
|
|
43401
|
+
},
|
|
43402
|
+
{
|
|
43403
|
+
"id": "attachment_info.query",
|
|
43404
|
+
"resource": "attachment_info",
|
|
43405
|
+
"udfCapable": false,
|
|
43406
|
+
"operation": "query",
|
|
43407
|
+
"kind": "primitive",
|
|
43408
|
+
"endpoint": "GET|POST /V1.0/AttachmentInfo/query",
|
|
43409
|
+
"effect": "read",
|
|
43410
|
+
"flags": [],
|
|
43411
|
+
"dryRun": false,
|
|
43412
|
+
"envelope": "QueryActionResult[<Model>,<Entity>]",
|
|
43413
|
+
"inputSchema": {
|
|
43414
|
+
"params": {
|
|
43415
|
+
"type": "object",
|
|
43416
|
+
"required": false,
|
|
43417
|
+
"description": "The query params object (CLOSED — unknown keys are refused pre-request with a typed error naming the key + the valid keys): { filter?: FilterCondition[], limit?: number (total cap, default 500, max 2500 — NOT a page size), latest?: number (1-2500; the N highest-id rows — the vendor has no sort; count-probe + id-threshold semantics, see docs/API.md §4; the same-process latest-walk count probes are briefly cached per client — a 30 s TTL, cleared on a write through this client (a probe in flight across the write is discarded by the cache's invalidation epoch); the plain count op and aggregate stay fresh; limit and latest may coexist only when limit >= latest), noteChars?: number (integer >= 1; opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result), includeFields?: string[], fieldCheck?: boolean (default true: every includeFields NAME and every filter condition FIELD NAME is checked pre-request against the live field set (the vendored spec when that read faults — the resource's plan-pinned live-only fields, metadata.liveOnlyFields, are exempt from the vendored refusal: the live entity carries them and the vendor model omits them (e.g. time_entries postedDate/postedOnTime) — a truly unknown name is still refused); a refusal costs zero QUERY wire — the query POST and the count probe that anchors latest are never issued, a COLD fieldCache performs one authority metadata GET first (zero on a warm one); the one udf:true condition per query is exempt (a tenant UDF name is absent from the vendored spec by definition); false disables both name checks, never the shape/grammar checks; the count verb's bag is name-checked the same way and carries the same fieldCheck opt-out; a direct queryBounded/queryAll call is not checked (no bag contract there)), names?: boolean (absent = the client's labels option — OFF by default (the label pass costs a field-catalog read + up to 20 cold name reads per call; the MCP server (iit-mcp-autotask) enables the client labels option when it re-pins to this version (downstream)); true adds the row label siblings: picklist <field>Label (statusLabel), <fk>Name for companyID/contractID/ticketID/roleID/billingCodeID/*ResourceID (contractIDName, assignedResourceIDName) — null, never missing, when the field is keyed with a null value, a 0 id or an unresolved value (a picklist 0 is labelled when the picklist defines it); a names summary appears only when something was left unlabelled (the 20 uncached name-read cap or an unresolved picklist value); false = raw ids, ~30% smaller on a full tickets row), via?: \"post\" | \"get\" (vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected to read over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result's scopeNote says so), walk?: object (walk.maxRows: positive integer — (D6): the walk's TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result's truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) }. Filter grammar: 13 operators (eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn; in/notIn: array or \"1,2,3\") + and/or grouping (no not-group); field names in vendor API casing (via operations.fieldCatalog); caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
43418
|
+
"properties": [
|
|
43419
|
+
{
|
|
43420
|
+
"name": "filter",
|
|
43421
|
+
"type": "FilterCondition[]",
|
|
43422
|
+
"optional": true
|
|
43423
|
+
},
|
|
43424
|
+
{
|
|
43425
|
+
"name": "limit",
|
|
43426
|
+
"type": "number",
|
|
43427
|
+
"optional": true,
|
|
43428
|
+
"default": 500
|
|
43429
|
+
},
|
|
43430
|
+
{
|
|
43431
|
+
"name": "latest",
|
|
43432
|
+
"type": "number",
|
|
43433
|
+
"optional": true
|
|
43434
|
+
},
|
|
43435
|
+
{
|
|
43436
|
+
"name": "noteChars",
|
|
43437
|
+
"type": "number",
|
|
43438
|
+
"optional": true
|
|
43439
|
+
},
|
|
43440
|
+
{
|
|
43441
|
+
"name": "includeFields",
|
|
43442
|
+
"type": "string[]",
|
|
43443
|
+
"optional": true
|
|
43444
|
+
},
|
|
43445
|
+
{
|
|
43446
|
+
"name": "fieldCheck",
|
|
43447
|
+
"type": "boolean",
|
|
43448
|
+
"optional": true,
|
|
43449
|
+
"default": true
|
|
43450
|
+
},
|
|
43451
|
+
{
|
|
43452
|
+
"name": "names",
|
|
43453
|
+
"type": "boolean",
|
|
43454
|
+
"optional": true
|
|
43455
|
+
},
|
|
43456
|
+
{
|
|
43457
|
+
"name": "via",
|
|
43458
|
+
"type": "\"post\" | \"get\"",
|
|
43459
|
+
"optional": true
|
|
43460
|
+
},
|
|
43461
|
+
{
|
|
43462
|
+
"name": "acknowledgeUnscoped",
|
|
43463
|
+
"type": "boolean",
|
|
43464
|
+
"optional": true
|
|
43465
|
+
},
|
|
43466
|
+
{
|
|
43467
|
+
"name": "walk",
|
|
43468
|
+
"type": "object",
|
|
43469
|
+
"optional": true
|
|
43470
|
+
}
|
|
43471
|
+
]
|
|
43472
|
+
}
|
|
43473
|
+
},
|
|
43474
|
+
"inputSchemaStrict": true,
|
|
43475
|
+
"outputSchema": {
|
|
43476
|
+
"type": "QueryActionResult[<Model>,<Entity>]",
|
|
43477
|
+
"drops": []
|
|
43478
|
+
},
|
|
43479
|
+
"examples": [
|
|
43480
|
+
"await client.attachmentInfo.query({ filter: [{ field: 'companyID', op: 'eq', value: 1 }], limit: 25 })"
|
|
43481
|
+
],
|
|
43482
|
+
"permissions": "unknown",
|
|
43483
|
+
"pagination": {
|
|
43484
|
+
"mode": "cursor",
|
|
43485
|
+
"vendorDefault": 10,
|
|
43486
|
+
"vendorMax": 500,
|
|
43487
|
+
"pageGuard": 1000,
|
|
43488
|
+
"queryBounded": {
|
|
43489
|
+
"default": 500,
|
|
43490
|
+
"max": 2500
|
|
43491
|
+
}
|
|
43492
|
+
},
|
|
43493
|
+
"resolution": null,
|
|
43494
|
+
"retry": {
|
|
43495
|
+
"preset": "retry-ffb3a9cb"
|
|
43496
|
+
},
|
|
43497
|
+
"errors": {
|
|
43498
|
+
"set": 4
|
|
43499
|
+
},
|
|
43500
|
+
"metadata": {
|
|
43501
|
+
"purpose": "Query AttachmentInfo records with a JSON filter.",
|
|
43502
|
+
"usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Explicit walk.maxRows independently sets the TOTAL returned-row cap (including export-sized walks); the ordinary limit is still validated in 1..2500 and only bounds the internal page size for this form. hasMore and truncated remain true at the page guard or while a cursor or unserved fetched rows remain. Self-resource prefixes are accepted in filter fields and includeFields; dotted UDF names are always refused before metadata or vendor requests, never rewritten to another tenant UDF. Filter by companyID for company scope. fileSize is not queryable. Object-specific filters can include child attachments; an empty result is conditional on API-user permissions and visibility.",
|
|
43503
|
+
"preferredWhen": "Default for filtered reads (the bounded query op). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. Prefer an includeFields subset over the full model (field names via operations.fieldCatalog). latest: N is the latest-N rows (id-descending) when the newest rows are the goal (the vendor has no sort — count-anchored, docs/API.md §4). Prefer a hand-listed includeFields for common narrow reads (removed the closed fieldsPreset presets — the v1 billing_join field list for billing_items.query, if you need it, is: companyID, ticketID, projectID, timeEntryID, contractServiceID, contractID, billingCodeID, expenseItemID, itemDate, quantity, rate, extendedPrice, totalAmount, nonBillable); noteChars: N caps the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose) to N chars each with the explicit … [+N chars truncated] marker (opt-in; the raw result when absent).",
|
|
43504
|
+
"related": [
|
|
43505
|
+
"attachment_info.get"
|
|
43506
|
+
],
|
|
43507
|
+
"args": "args[0] is a params object: { filter?: FilterCondition[], limit?: total cap (default 500, max 2500; server-side pagination), latest?: number (1-2500 — the N highest-id rows; the vendor has no sort parameter, so this is a count-anchored mechanism — see docs/API.md §4; coexists with limit only when limit >= latest), noteChars?: number (integer >= 1 — opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result) maxRecords?: page size — raw SDK `queryAll`/`query` walks only (this bounded query ignores it; the invoke bag refuses it — pass limit), includeFields?: string[], fieldCheck?: boolean (default true — the pre-request field-name check on includeFields names and filter condition fields; false disables it — consumed by the invoke router, never sent to the vendor), via?: \"post\" | \"get\" (the wire method; the vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result’s scopeNote says so), walk?: { maxRows: positive integer (D6: the walk’s TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result’s truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) } }. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars. By default the FULL vendor model is returned (all fields). To slim the payload for context savings pass includeFields with the exact vendor field names you need (discover them via operations.fieldCatalog); only those fields + id come back. The subset persists across the internal page walk.",
|
|
43508
|
+
"untrustedFields": [
|
|
43509
|
+
"title"
|
|
43510
|
+
]
|
|
43511
|
+
},
|
|
43512
|
+
"compact": null,
|
|
43513
|
+
"status": "tested"
|
|
43514
|
+
},
|
|
43138
43515
|
{
|
|
43139
43516
|
"id": "companies.count",
|
|
43140
43517
|
"resource": "companies",
|
|
@@ -45408,6 +45785,470 @@ const CAPABILITY_DATA = {
|
|
|
45408
45785
|
"compact": null,
|
|
45409
45786
|
"status": "tested"
|
|
45410
45787
|
},
|
|
45788
|
+
{
|
|
45789
|
+
"id": "company_attachments.count",
|
|
45790
|
+
"resource": "company_attachments",
|
|
45791
|
+
"udfCapable": false,
|
|
45792
|
+
"operation": "count",
|
|
45793
|
+
"kind": "primitive",
|
|
45794
|
+
"endpoint": "GET|POST /V1.0/CompanyAttachments/query/count",
|
|
45795
|
+
"effect": "read",
|
|
45796
|
+
"flags": [],
|
|
45797
|
+
"dryRun": false,
|
|
45798
|
+
"envelope": "QueryCountResultModel",
|
|
45799
|
+
"inputSchema": {
|
|
45800
|
+
"params": {
|
|
45801
|
+
"type": "object",
|
|
45802
|
+
"required": false,
|
|
45803
|
+
"description": "The query params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only wire parameter (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too.",
|
|
45804
|
+
"properties": [
|
|
45805
|
+
{
|
|
45806
|
+
"name": "filter",
|
|
45807
|
+
"type": "FilterCondition[]",
|
|
45808
|
+
"optional": true
|
|
45809
|
+
},
|
|
45810
|
+
{
|
|
45811
|
+
"name": "fieldCheck",
|
|
45812
|
+
"type": "boolean",
|
|
45813
|
+
"optional": true
|
|
45814
|
+
}
|
|
45815
|
+
]
|
|
45816
|
+
}
|
|
45817
|
+
},
|
|
45818
|
+
"inputSchemaStrict": true,
|
|
45819
|
+
"outputSchema": {
|
|
45820
|
+
"type": "QueryCountResultModel",
|
|
45821
|
+
"drops": []
|
|
45822
|
+
},
|
|
45823
|
+
"examples": [
|
|
45824
|
+
"await client.companyAttachments.count({ filter: [{ field: 'companyID', op: 'eq', value: 1 }] })"
|
|
45825
|
+
],
|
|
45826
|
+
"permissions": "unknown",
|
|
45827
|
+
"pagination": {
|
|
45828
|
+
"mode": "none"
|
|
45829
|
+
},
|
|
45830
|
+
"resolution": null,
|
|
45831
|
+
"retry": {
|
|
45832
|
+
"preset": "retry-ffb3a9cb"
|
|
45833
|
+
},
|
|
45834
|
+
"errors": {
|
|
45835
|
+
"set": 0
|
|
45836
|
+
},
|
|
45837
|
+
"metadata": {
|
|
45838
|
+
"purpose": "Count attachment records matching a JSON filter. (under a company)",
|
|
45839
|
+
"usage": "Unwraps queryCount; returns a plain number. Filter by companyID for company scope. creatorType, data and fileSize are not queryable. Object-specific filters can include child attachments; an empty result is conditional on API-user permissions and visibility.",
|
|
45840
|
+
"preferredWhen": null,
|
|
45841
|
+
"related": [
|
|
45842
|
+
"company_attachments.query"
|
|
45843
|
+
],
|
|
45844
|
+
"args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
45845
|
+
"untrustedFields": [
|
|
45846
|
+
"title"
|
|
45847
|
+
]
|
|
45848
|
+
},
|
|
45849
|
+
"compact": null,
|
|
45850
|
+
"status": "tested"
|
|
45851
|
+
},
|
|
45852
|
+
{
|
|
45853
|
+
"id": "company_attachments.create",
|
|
45854
|
+
"resource": "company_attachments",
|
|
45855
|
+
"udfCapable": false,
|
|
45856
|
+
"operation": "create",
|
|
45857
|
+
"kind": "primitive",
|
|
45858
|
+
"endpoint": "POST /V1.0/Companies/{parentId}/Attachments",
|
|
45859
|
+
"effect": "write",
|
|
45860
|
+
"flags": [],
|
|
45861
|
+
"dryRun": true,
|
|
45862
|
+
"envelope": "OperationResultModel",
|
|
45863
|
+
"inputSchema": {
|
|
45864
|
+
"parentId": {
|
|
45865
|
+
"type": "string | number",
|
|
45866
|
+
"required": true,
|
|
45867
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
45868
|
+
},
|
|
45869
|
+
"data": {
|
|
45870
|
+
"type": "object",
|
|
45871
|
+
"required": true,
|
|
45872
|
+
"description": "The record payload (vendor model fields)."
|
|
45873
|
+
}
|
|
45874
|
+
},
|
|
45875
|
+
"inputSchemaStrict": true,
|
|
45876
|
+
"outputSchema": {
|
|
45877
|
+
"type": "OperationResultModel",
|
|
45878
|
+
"drops": []
|
|
45879
|
+
},
|
|
45880
|
+
"examples": [
|
|
45881
|
+
"await client.companyAttachments.create(1, { attachmentType: 'FILE_ATTACHMENT', fullPath: 'note.txt', title: 'Supporting note', publish: 1, data: 'bm90ZQ==' }, { dryRun: true })"
|
|
45882
|
+
],
|
|
45883
|
+
"permissions": "unknown",
|
|
45884
|
+
"pagination": {
|
|
45885
|
+
"mode": "none"
|
|
45886
|
+
},
|
|
45887
|
+
"resolution": null,
|
|
45888
|
+
"retry": {
|
|
45889
|
+
"preset": "retry-c5657094"
|
|
45890
|
+
},
|
|
45891
|
+
"errors": {
|
|
45892
|
+
"set": 1
|
|
45893
|
+
},
|
|
45894
|
+
"metadata": {
|
|
45895
|
+
"purpose": "Create an attachment. (under a company)",
|
|
45896
|
+
"usage": "Returns OperationResultModel.itemId (the new id); the full record is not returned — follow up with get where needed. Parent-scoped: parentId is a path parameter. FILE_ATTACHMENT requires base64 data; use current attachmentType/publish metadata and vendor file limits. ParentId addresses the Companies record. Permission and impersonation restrictions apply.",
|
|
45897
|
+
"preferredWhen": "Add a new attachment; existing attachments cannot be updated. Replace through separately governed delete and create actions.",
|
|
45898
|
+
"related": [
|
|
45899
|
+
"company_attachments.get"
|
|
45900
|
+
],
|
|
45901
|
+
"untrustedFields": [
|
|
45902
|
+
"title"
|
|
45903
|
+
],
|
|
45904
|
+
"createRequirements": {
|
|
45905
|
+
"requiresByValue": [
|
|
45906
|
+
{
|
|
45907
|
+
"field": "attachmentType",
|
|
45908
|
+
"value": "FILE_ATTACHMENT",
|
|
45909
|
+
"requires": {
|
|
45910
|
+
"allOf": [
|
|
45911
|
+
"data"
|
|
45912
|
+
]
|
|
45913
|
+
}
|
|
45914
|
+
}
|
|
45915
|
+
]
|
|
45916
|
+
}
|
|
45917
|
+
},
|
|
45918
|
+
"compact": null,
|
|
45919
|
+
"status": "tested"
|
|
45920
|
+
},
|
|
45921
|
+
{
|
|
45922
|
+
"id": "company_attachments.delete",
|
|
45923
|
+
"resource": "company_attachments",
|
|
45924
|
+
"udfCapable": false,
|
|
45925
|
+
"operation": "delete",
|
|
45926
|
+
"kind": "primitive",
|
|
45927
|
+
"endpoint": "DELETE /V1.0/Companies/{parentId}/Attachments/{id}",
|
|
45928
|
+
"effect": "destructive",
|
|
45929
|
+
"flags": [
|
|
45930
|
+
"idempotent",
|
|
45931
|
+
"requiresApproval"
|
|
45932
|
+
],
|
|
45933
|
+
"dryRun": true,
|
|
45934
|
+
"envelope": "OperationResultModel (attachment entities: the deleted attachment model is returned, not OperationResultModel)",
|
|
45935
|
+
"inputSchema": {
|
|
45936
|
+
"parentId": {
|
|
45937
|
+
"type": "string | number",
|
|
45938
|
+
"required": true,
|
|
45939
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
45940
|
+
},
|
|
45941
|
+
"id": {
|
|
45942
|
+
"type": "string | number",
|
|
45943
|
+
"required": true,
|
|
45944
|
+
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
45945
|
+
}
|
|
45946
|
+
},
|
|
45947
|
+
"inputSchemaStrict": true,
|
|
45948
|
+
"outputSchema": {
|
|
45949
|
+
"type": "OperationResultModel (attachment entities: the deleted attachment model is returned, not OperationResultModel)",
|
|
45950
|
+
"drops": []
|
|
45951
|
+
},
|
|
45952
|
+
"examples": [
|
|
45953
|
+
"await invoke(client, 'company_attachments.delete', ['example-value', 'example-value'], { dryRun: false, confirm: 'company_attachments.delete' })"
|
|
45954
|
+
],
|
|
45955
|
+
"permissions": "unknown",
|
|
45956
|
+
"pagination": {
|
|
45957
|
+
"mode": "none"
|
|
45958
|
+
},
|
|
45959
|
+
"resolution": null,
|
|
45960
|
+
"retry": {
|
|
45961
|
+
"preset": "retry-1849870d"
|
|
45962
|
+
},
|
|
45963
|
+
"errors": {
|
|
45964
|
+
"set": 2
|
|
45965
|
+
},
|
|
45966
|
+
"metadata": {
|
|
45967
|
+
"purpose": "Delete an attachment. (under a company)",
|
|
45968
|
+
"usage": "Irreversible; dry-run validates the target id first. Parent-scoped: parentId + id.",
|
|
45969
|
+
"preferredWhen": null,
|
|
45970
|
+
"related": [
|
|
45971
|
+
"company_attachments.get"
|
|
45972
|
+
],
|
|
45973
|
+
"untrustedFields": [
|
|
45974
|
+
"title"
|
|
45975
|
+
]
|
|
45976
|
+
},
|
|
45977
|
+
"compact": null,
|
|
45978
|
+
"status": "tested"
|
|
45979
|
+
},
|
|
45980
|
+
{
|
|
45981
|
+
"id": "company_attachments.get",
|
|
45982
|
+
"resource": "company_attachments",
|
|
45983
|
+
"udfCapable": false,
|
|
45984
|
+
"operation": "get",
|
|
45985
|
+
"kind": "primitive",
|
|
45986
|
+
"endpoint": "GET /V1.0/Companies/{parentId}/Attachments/{id}",
|
|
45987
|
+
"effect": "read",
|
|
45988
|
+
"flags": [],
|
|
45989
|
+
"dryRun": false,
|
|
45990
|
+
"envelope": "CompanyAttachmentModel",
|
|
45991
|
+
"inputSchema": {
|
|
45992
|
+
"parentId": {
|
|
45993
|
+
"type": "string | number",
|
|
45994
|
+
"required": true,
|
|
45995
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
45996
|
+
},
|
|
45997
|
+
"id": {
|
|
45998
|
+
"type": "string | number",
|
|
45999
|
+
"required": true,
|
|
46000
|
+
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
46001
|
+
},
|
|
46002
|
+
"opts": {
|
|
46003
|
+
"type": "object",
|
|
46004
|
+
"required": false,
|
|
46005
|
+
"description": "The read options bag (CLOSED): { fresh?: boolean } — fresh: true bypasses the read-cache lookup and refreshes the entry with the live response. Omitted: the cached read (default unchanged). A positional fresh via invoke is REFUSED (typed error, zero wire — the fresh invoke option is the only spelling); the typed method get(id, { fresh: true }) is unchanged.",
|
|
46006
|
+
"properties": [
|
|
46007
|
+
{
|
|
46008
|
+
"name": "fresh",
|
|
46009
|
+
"type": "boolean",
|
|
46010
|
+
"optional": true
|
|
46011
|
+
}
|
|
46012
|
+
]
|
|
46013
|
+
}
|
|
46014
|
+
},
|
|
46015
|
+
"inputSchemaStrict": true,
|
|
46016
|
+
"outputSchema": {
|
|
46017
|
+
"type": "CompanyAttachmentModel",
|
|
46018
|
+
"drops": []
|
|
46019
|
+
},
|
|
46020
|
+
"examples": [
|
|
46021
|
+
"await client.companyAttachments.get('example-value', 'example-value')"
|
|
46022
|
+
],
|
|
46023
|
+
"permissions": "unknown",
|
|
46024
|
+
"pagination": {
|
|
46025
|
+
"mode": "none"
|
|
46026
|
+
},
|
|
46027
|
+
"resolution": null,
|
|
46028
|
+
"retry": {
|
|
46029
|
+
"preset": "retry-ffb3a9cb"
|
|
46030
|
+
},
|
|
46031
|
+
"errors": {
|
|
46032
|
+
"set": 3
|
|
46033
|
+
},
|
|
46034
|
+
"metadata": {
|
|
46035
|
+
"purpose": "Get one CompanyAttachment by id.",
|
|
46036
|
+
"usage": "Returns the attachment model directly; item: null or an empty model is a typed not-found. Parent-scoped: parentId is the company id, followed by the attachment id.",
|
|
46037
|
+
"preferredWhen": "Use a known attachment id; query the scoped collection to discover ids.",
|
|
46038
|
+
"related": [
|
|
46039
|
+
"company_attachments.query"
|
|
46040
|
+
],
|
|
46041
|
+
"args": "args are (parentId: number, id: number) Item GET returns the FULL vendor model — the vendor documents no field selection on single-record reads. For a slim record use a company_attachments.query with includeFields.",
|
|
46042
|
+
"untrustedFields": [
|
|
46043
|
+
"title"
|
|
46044
|
+
]
|
|
46045
|
+
},
|
|
46046
|
+
"compact": null,
|
|
46047
|
+
"status": "tested"
|
|
46048
|
+
},
|
|
46049
|
+
{
|
|
46050
|
+
"id": "company_attachments.getEntityInfo",
|
|
46051
|
+
"resource": "company_attachments",
|
|
46052
|
+
"udfCapable": false,
|
|
46053
|
+
"operation": "getEntityInfo",
|
|
46054
|
+
"kind": "primitive",
|
|
46055
|
+
"endpoint": "GET /V1.0/CompanyAttachments/entityInformation",
|
|
46056
|
+
"effect": "read",
|
|
46057
|
+
"flags": [],
|
|
46058
|
+
"dryRun": false,
|
|
46059
|
+
"envelope": "EntityInformationResultModel",
|
|
46060
|
+
"inputSchema": {},
|
|
46061
|
+
"inputSchemaStrict": true,
|
|
46062
|
+
"outputSchema": {
|
|
46063
|
+
"type": "EntityInformationResultModel",
|
|
46064
|
+
"drops": []
|
|
46065
|
+
},
|
|
46066
|
+
"examples": [
|
|
46067
|
+
"await client.companyAttachments.getEntityInfo()"
|
|
46068
|
+
],
|
|
46069
|
+
"permissions": "unknown",
|
|
46070
|
+
"pagination": {
|
|
46071
|
+
"mode": "none"
|
|
46072
|
+
},
|
|
46073
|
+
"resolution": null,
|
|
46074
|
+
"retry": {
|
|
46075
|
+
"preset": "retry-ffb3a9cb"
|
|
46076
|
+
},
|
|
46077
|
+
"errors": {
|
|
46078
|
+
"set": 0
|
|
46079
|
+
},
|
|
46080
|
+
"metadata": {
|
|
46081
|
+
"purpose": "Get the CompanyAttachment capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
|
|
46082
|
+
"usage": "Unwraps info{}; drives client-side capability checks.",
|
|
46083
|
+
"preferredWhen": null,
|
|
46084
|
+
"related": [
|
|
46085
|
+
"company_attachments.getFieldInfo"
|
|
46086
|
+
],
|
|
46087
|
+
"untrustedFields": [
|
|
46088
|
+
"title"
|
|
46089
|
+
]
|
|
46090
|
+
},
|
|
46091
|
+
"compact": null,
|
|
46092
|
+
"status": "tested"
|
|
46093
|
+
},
|
|
46094
|
+
{
|
|
46095
|
+
"id": "company_attachments.getFieldInfo",
|
|
46096
|
+
"resource": "company_attachments",
|
|
46097
|
+
"udfCapable": false,
|
|
46098
|
+
"operation": "getFieldInfo",
|
|
46099
|
+
"kind": "primitive",
|
|
46100
|
+
"endpoint": "GET /V1.0/CompanyAttachments/entityInformation/fields",
|
|
46101
|
+
"effect": "read",
|
|
46102
|
+
"flags": [],
|
|
46103
|
+
"dryRun": false,
|
|
46104
|
+
"envelope": "FieldInformationResultModel",
|
|
46105
|
+
"inputSchema": {},
|
|
46106
|
+
"inputSchemaStrict": true,
|
|
46107
|
+
"outputSchema": {
|
|
46108
|
+
"type": "FieldInformationResultModel",
|
|
46109
|
+
"drops": []
|
|
46110
|
+
},
|
|
46111
|
+
"examples": [
|
|
46112
|
+
"await client.companyAttachments.getFieldInfo()"
|
|
46113
|
+
],
|
|
46114
|
+
"permissions": "unknown",
|
|
46115
|
+
"pagination": {
|
|
46116
|
+
"mode": "none"
|
|
46117
|
+
},
|
|
46118
|
+
"resolution": null,
|
|
46119
|
+
"retry": {
|
|
46120
|
+
"preset": "retry-ffb3a9cb"
|
|
46121
|
+
},
|
|
46122
|
+
"errors": {
|
|
46123
|
+
"set": 0
|
|
46124
|
+
},
|
|
46125
|
+
"metadata": {
|
|
46126
|
+
"purpose": "Get the CompanyAttachment field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
|
|
46127
|
+
"usage": "Unwraps fields[]; full raw field dump — the largest read of the info trio (compact discovery: operations.fieldCatalog); the raw dump is also the basis for UDF handling.",
|
|
46128
|
+
"preferredWhen": null,
|
|
46129
|
+
"related": [
|
|
46130
|
+
"company_attachments.getEntityInfo"
|
|
46131
|
+
],
|
|
46132
|
+
"untrustedFields": [
|
|
46133
|
+
"title"
|
|
46134
|
+
]
|
|
46135
|
+
},
|
|
46136
|
+
"compact": null,
|
|
46137
|
+
"status": "tested"
|
|
46138
|
+
},
|
|
46139
|
+
{
|
|
46140
|
+
"id": "company_attachments.query",
|
|
46141
|
+
"resource": "company_attachments",
|
|
46142
|
+
"udfCapable": false,
|
|
46143
|
+
"operation": "query",
|
|
46144
|
+
"kind": "primitive",
|
|
46145
|
+
"endpoint": "GET|POST /V1.0/CompanyAttachments/query",
|
|
46146
|
+
"effect": "read",
|
|
46147
|
+
"flags": [],
|
|
46148
|
+
"dryRun": false,
|
|
46149
|
+
"envelope": "QueryActionResult[<Model>,<Entity>]",
|
|
46150
|
+
"inputSchema": {
|
|
46151
|
+
"params": {
|
|
46152
|
+
"type": "object",
|
|
46153
|
+
"required": false,
|
|
46154
|
+
"description": "The query params object (CLOSED — unknown keys are refused pre-request with a typed error naming the key + the valid keys): { filter?: FilterCondition[], limit?: number (total cap, default 500, max 2500 — NOT a page size), latest?: number (1-2500; the N highest-id rows — the vendor has no sort; count-probe + id-threshold semantics, see docs/API.md §4; the same-process latest-walk count probes are briefly cached per client — a 30 s TTL, cleared on a write through this client (a probe in flight across the write is discarded by the cache's invalidation epoch); the plain count op and aggregate stay fresh; limit and latest may coexist only when limit >= latest), noteChars?: number (integer >= 1; opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result), includeFields?: string[], fieldCheck?: boolean (default true: every includeFields NAME and every filter condition FIELD NAME is checked pre-request against the live field set (the vendored spec when that read faults — the resource's plan-pinned live-only fields, metadata.liveOnlyFields, are exempt from the vendored refusal: the live entity carries them and the vendor model omits them (e.g. time_entries postedDate/postedOnTime) — a truly unknown name is still refused); a refusal costs zero QUERY wire — the query POST and the count probe that anchors latest are never issued, a COLD fieldCache performs one authority metadata GET first (zero on a warm one); the one udf:true condition per query is exempt (a tenant UDF name is absent from the vendored spec by definition); false disables both name checks, never the shape/grammar checks; the count verb's bag is name-checked the same way and carries the same fieldCheck opt-out; a direct queryBounded/queryAll call is not checked (no bag contract there)), names?: boolean (absent = the client's labels option — OFF by default (the label pass costs a field-catalog read + up to 20 cold name reads per call; the MCP server (iit-mcp-autotask) enables the client labels option when it re-pins to this version (downstream)); true adds the row label siblings: picklist <field>Label (statusLabel), <fk>Name for companyID/contractID/ticketID/roleID/billingCodeID/*ResourceID (contractIDName, assignedResourceIDName) — null, never missing, when the field is keyed with a null value, a 0 id or an unresolved value (a picklist 0 is labelled when the picklist defines it); a names summary appears only when something was left unlabelled (the 20 uncached name-read cap or an unresolved picklist value); false = raw ids, ~30% smaller on a full tickets row), via?: \"post\" | \"get\" (vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected to read over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result's scopeNote says so), walk?: object (walk.maxRows: positive integer — (D6): the walk's TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result's truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) }. Filter grammar: 13 operators (eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn; in/notIn: array or \"1,2,3\") + and/or grouping (no not-group); field names in vendor API casing (via operations.fieldCatalog); caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
46155
|
+
"properties": [
|
|
46156
|
+
{
|
|
46157
|
+
"name": "filter",
|
|
46158
|
+
"type": "FilterCondition[]",
|
|
46159
|
+
"optional": true
|
|
46160
|
+
},
|
|
46161
|
+
{
|
|
46162
|
+
"name": "limit",
|
|
46163
|
+
"type": "number",
|
|
46164
|
+
"optional": true,
|
|
46165
|
+
"default": 500
|
|
46166
|
+
},
|
|
46167
|
+
{
|
|
46168
|
+
"name": "latest",
|
|
46169
|
+
"type": "number",
|
|
46170
|
+
"optional": true
|
|
46171
|
+
},
|
|
46172
|
+
{
|
|
46173
|
+
"name": "noteChars",
|
|
46174
|
+
"type": "number",
|
|
46175
|
+
"optional": true
|
|
46176
|
+
},
|
|
46177
|
+
{
|
|
46178
|
+
"name": "includeFields",
|
|
46179
|
+
"type": "string[]",
|
|
46180
|
+
"optional": true
|
|
46181
|
+
},
|
|
46182
|
+
{
|
|
46183
|
+
"name": "fieldCheck",
|
|
46184
|
+
"type": "boolean",
|
|
46185
|
+
"optional": true,
|
|
46186
|
+
"default": true
|
|
46187
|
+
},
|
|
46188
|
+
{
|
|
46189
|
+
"name": "names",
|
|
46190
|
+
"type": "boolean",
|
|
46191
|
+
"optional": true
|
|
46192
|
+
},
|
|
46193
|
+
{
|
|
46194
|
+
"name": "via",
|
|
46195
|
+
"type": "\"post\" | \"get\"",
|
|
46196
|
+
"optional": true
|
|
46197
|
+
},
|
|
46198
|
+
{
|
|
46199
|
+
"name": "acknowledgeUnscoped",
|
|
46200
|
+
"type": "boolean",
|
|
46201
|
+
"optional": true
|
|
46202
|
+
},
|
|
46203
|
+
{
|
|
46204
|
+
"name": "walk",
|
|
46205
|
+
"type": "object",
|
|
46206
|
+
"optional": true
|
|
46207
|
+
}
|
|
46208
|
+
]
|
|
46209
|
+
}
|
|
46210
|
+
},
|
|
46211
|
+
"inputSchemaStrict": true,
|
|
46212
|
+
"outputSchema": {
|
|
46213
|
+
"type": "QueryActionResult[<Model>,<Entity>]",
|
|
46214
|
+
"drops": []
|
|
46215
|
+
},
|
|
46216
|
+
"examples": [
|
|
46217
|
+
"await client.companyAttachments.query({ filter: [{ field: 'companyID', op: 'eq', value: 1 }], limit: 25 })"
|
|
46218
|
+
],
|
|
46219
|
+
"permissions": "unknown",
|
|
46220
|
+
"pagination": {
|
|
46221
|
+
"mode": "cursor",
|
|
46222
|
+
"vendorDefault": 10,
|
|
46223
|
+
"vendorMax": 500,
|
|
46224
|
+
"pageGuard": 1000,
|
|
46225
|
+
"queryBounded": {
|
|
46226
|
+
"default": 500,
|
|
46227
|
+
"max": 2500
|
|
46228
|
+
}
|
|
46229
|
+
},
|
|
46230
|
+
"resolution": null,
|
|
46231
|
+
"retry": {
|
|
46232
|
+
"preset": "retry-ffb3a9cb"
|
|
46233
|
+
},
|
|
46234
|
+
"errors": {
|
|
46235
|
+
"set": 4
|
|
46236
|
+
},
|
|
46237
|
+
"metadata": {
|
|
46238
|
+
"purpose": "Query CompanyAttachment records with a JSON filter.",
|
|
46239
|
+
"usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Parent-scoped entity: the query stays global (filter with companyID eq <parentId> where the parent is known). Explicit walk.maxRows independently sets the TOTAL returned-row cap (including export-sized walks); the ordinary limit is still validated in 1..2500 and only bounds the internal page size for this form. hasMore and truncated remain true at the page guard or while a cursor or unserved fetched rows remain. Self-resource prefixes are accepted in filter fields and includeFields; dotted UDF names are always refused before metadata or vendor requests, never rewritten to another tenant UDF. Filter by companyID for company scope. creatorType, data and fileSize are not queryable. Object-specific filters can include child attachments; an empty result is conditional on API-user permissions and visibility. The Swagger query response names an attachment model, while this collection uses the existing SDK attachment query contract { items, pageDetails }; a bare-model response is rejected as INVALID_RESPONSE rather than guessed into a collection.",
|
|
46240
|
+
"preferredWhen": "Default for filtered reads (the bounded query op). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. Prefer an includeFields subset over the full model (field names via operations.fieldCatalog). latest: N is the latest-N rows (id-descending) when the newest rows are the goal (the vendor has no sort — count-anchored, docs/API.md §4). Prefer a hand-listed includeFields for common narrow reads (removed the closed fieldsPreset presets — the v1 billing_join field list for billing_items.query, if you need it, is: companyID, ticketID, projectID, timeEntryID, contractServiceID, contractID, billingCodeID, expenseItemID, itemDate, quantity, rate, extendedPrice, totalAmount, nonBillable); noteChars: N caps the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose) to N chars each with the explicit … [+N chars truncated] marker (opt-in; the raw result when absent).",
|
|
46241
|
+
"related": [
|
|
46242
|
+
"company_attachments.get"
|
|
46243
|
+
],
|
|
46244
|
+
"args": "args[0] is a params object: { filter?: FilterCondition[], limit?: total cap (default 500, max 2500; server-side pagination), latest?: number (1-2500 — the N highest-id rows; the vendor has no sort parameter, so this is a count-anchored mechanism — see docs/API.md §4; coexists with limit only when limit >= latest), noteChars?: number (integer >= 1 — opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result) maxRecords?: page size — raw SDK `queryAll`/`query` walks only (this bounded query ignores it; the invoke bag refuses it — pass limit), includeFields?: string[], fieldCheck?: boolean (default true — the pre-request field-name check on includeFields names and filter condition fields; false disables it — consumed by the invoke router, never sent to the vendor), via?: \"post\" | \"get\" (the wire method; the vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result’s scopeNote says so), walk?: { maxRows: positive integer (D6: the walk’s TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result’s truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) } }. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars. By default the FULL vendor model is returned (all fields). To slim the payload for context savings pass includeFields with the exact vendor field names you need (discover them via operations.fieldCatalog); only those fields + id come back. The subset persists across the internal page walk.",
|
|
46245
|
+
"untrustedFields": [
|
|
46246
|
+
"title"
|
|
46247
|
+
]
|
|
46248
|
+
},
|
|
46249
|
+
"compact": null,
|
|
46250
|
+
"status": "tested"
|
|
46251
|
+
},
|
|
45411
46252
|
{
|
|
45412
46253
|
"id": "company_locations.count",
|
|
45413
46254
|
"resource": "company_locations",
|
|
@@ -45627,11 +46468,727 @@ const CAPABILITY_DATA = {
|
|
|
45627
46468
|
},
|
|
45628
46469
|
"inputSchemaStrict": true,
|
|
45629
46470
|
"outputSchema": {
|
|
45630
|
-
"type": "ItemQueryResultModel[CompanyLocationModel,AccountPhysicalLocation]",
|
|
46471
|
+
"type": "ItemQueryResultModel[CompanyLocationModel,AccountPhysicalLocation]",
|
|
46472
|
+
"drops": []
|
|
46473
|
+
},
|
|
46474
|
+
"examples": [
|
|
46475
|
+
"await client.companyLocations.get('example-value', 'example-value')"
|
|
46476
|
+
],
|
|
46477
|
+
"permissions": "unknown",
|
|
46478
|
+
"pagination": {
|
|
46479
|
+
"mode": "none"
|
|
46480
|
+
},
|
|
46481
|
+
"resolution": null,
|
|
46482
|
+
"retry": {
|
|
46483
|
+
"preset": "retry-ffb3a9cb"
|
|
46484
|
+
},
|
|
46485
|
+
"errors": {
|
|
46486
|
+
"set": 3
|
|
46487
|
+
},
|
|
46488
|
+
"metadata": {
|
|
46489
|
+
"purpose": "Get one CompanyLocation by id.",
|
|
46490
|
+
"usage": "item: null on the 200 body maps to NotFoundError (vendor not-found signal). Parent-scoped: parentId + id.",
|
|
46491
|
+
"preferredWhen": "Preferred when the numeric id is already known; company_locations.resolve is for a field value.",
|
|
46492
|
+
"related": [
|
|
46493
|
+
"company_locations.resolve"
|
|
46494
|
+
],
|
|
46495
|
+
"args": "args are (parentId: number, id: number) Item GET returns the FULL vendor model — the vendor documents no field selection on single-record reads. For a slim record use company_locations.search (compact summary) or a company_locations.query with includeFields.",
|
|
46496
|
+
"untrustedFields": [
|
|
46497
|
+
"description",
|
|
46498
|
+
"name"
|
|
46499
|
+
]
|
|
46500
|
+
},
|
|
46501
|
+
"compact": null,
|
|
46502
|
+
"status": "tested"
|
|
46503
|
+
},
|
|
46504
|
+
{
|
|
46505
|
+
"id": "company_locations.getEntityInfo",
|
|
46506
|
+
"resource": "company_locations",
|
|
46507
|
+
"udfCapable": false,
|
|
46508
|
+
"operation": "getEntityInfo",
|
|
46509
|
+
"kind": "primitive",
|
|
46510
|
+
"endpoint": "GET /V1.0/CompanyLocations/entityInformation",
|
|
46511
|
+
"effect": "read",
|
|
46512
|
+
"flags": [],
|
|
46513
|
+
"dryRun": false,
|
|
46514
|
+
"envelope": "EntityInformationResultModel",
|
|
46515
|
+
"inputSchema": {},
|
|
46516
|
+
"inputSchemaStrict": true,
|
|
46517
|
+
"outputSchema": {
|
|
46518
|
+
"type": "EntityInformationResultModel",
|
|
46519
|
+
"drops": []
|
|
46520
|
+
},
|
|
46521
|
+
"examples": [
|
|
46522
|
+
"await client.companyLocations.getEntityInfo()"
|
|
46523
|
+
],
|
|
46524
|
+
"permissions": "unknown",
|
|
46525
|
+
"pagination": {
|
|
46526
|
+
"mode": "none"
|
|
46527
|
+
},
|
|
46528
|
+
"resolution": null,
|
|
46529
|
+
"retry": {
|
|
46530
|
+
"preset": "retry-ffb3a9cb"
|
|
46531
|
+
},
|
|
46532
|
+
"errors": {
|
|
46533
|
+
"set": 0
|
|
46534
|
+
},
|
|
46535
|
+
"metadata": {
|
|
46536
|
+
"purpose": "Get the CompanyLocation capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
|
|
46537
|
+
"usage": "Unwraps info{}; drives client-side capability checks.",
|
|
46538
|
+
"preferredWhen": null,
|
|
46539
|
+
"related": [
|
|
46540
|
+
"company_locations.getFieldInfo"
|
|
46541
|
+
],
|
|
46542
|
+
"untrustedFields": [
|
|
46543
|
+
"description",
|
|
46544
|
+
"name"
|
|
46545
|
+
]
|
|
46546
|
+
},
|
|
46547
|
+
"compact": null,
|
|
46548
|
+
"status": "tested"
|
|
46549
|
+
},
|
|
46550
|
+
{
|
|
46551
|
+
"id": "company_locations.getFieldInfo",
|
|
46552
|
+
"resource": "company_locations",
|
|
46553
|
+
"udfCapable": false,
|
|
46554
|
+
"operation": "getFieldInfo",
|
|
46555
|
+
"kind": "primitive",
|
|
46556
|
+
"endpoint": "GET /V1.0/CompanyLocations/entityInformation/fields",
|
|
46557
|
+
"effect": "read",
|
|
46558
|
+
"flags": [],
|
|
46559
|
+
"dryRun": false,
|
|
46560
|
+
"envelope": "FieldInformationResultModel",
|
|
46561
|
+
"inputSchema": {},
|
|
46562
|
+
"inputSchemaStrict": true,
|
|
46563
|
+
"outputSchema": {
|
|
46564
|
+
"type": "FieldInformationResultModel",
|
|
46565
|
+
"drops": []
|
|
46566
|
+
},
|
|
46567
|
+
"examples": [
|
|
46568
|
+
"await client.companyLocations.getFieldInfo()"
|
|
46569
|
+
],
|
|
46570
|
+
"permissions": "unknown",
|
|
46571
|
+
"pagination": {
|
|
46572
|
+
"mode": "none"
|
|
46573
|
+
},
|
|
46574
|
+
"resolution": null,
|
|
46575
|
+
"retry": {
|
|
46576
|
+
"preset": "retry-ffb3a9cb"
|
|
46577
|
+
},
|
|
46578
|
+
"errors": {
|
|
46579
|
+
"set": 0
|
|
46580
|
+
},
|
|
46581
|
+
"metadata": {
|
|
46582
|
+
"purpose": "Get the CompanyLocation field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
|
|
46583
|
+
"usage": "Unwraps fields[]; full raw field dump — the largest read of the info trio (compact discovery: operations.fieldCatalog); the raw dump is also the basis for UDF handling.",
|
|
46584
|
+
"preferredWhen": null,
|
|
46585
|
+
"related": [
|
|
46586
|
+
"company_locations.getEntityInfo",
|
|
46587
|
+
"company_locations.getUdfInfo"
|
|
46588
|
+
],
|
|
46589
|
+
"untrustedFields": [
|
|
46590
|
+
"description",
|
|
46591
|
+
"name"
|
|
46592
|
+
]
|
|
46593
|
+
},
|
|
46594
|
+
"compact": null,
|
|
46595
|
+
"status": "tested"
|
|
46596
|
+
},
|
|
46597
|
+
{
|
|
46598
|
+
"id": "company_locations.getUdfInfo",
|
|
46599
|
+
"resource": "company_locations",
|
|
46600
|
+
"udfCapable": false,
|
|
46601
|
+
"operation": "getUdfInfo",
|
|
46602
|
+
"kind": "primitive",
|
|
46603
|
+
"endpoint": "GET /V1.0/CompanyLocations/entityInformation/userDefinedFields",
|
|
46604
|
+
"effect": "read",
|
|
46605
|
+
"flags": [],
|
|
46606
|
+
"dryRun": false,
|
|
46607
|
+
"envelope": "UserDefinedFieldInformationResultModel",
|
|
46608
|
+
"inputSchema": {},
|
|
46609
|
+
"inputSchemaStrict": true,
|
|
46610
|
+
"outputSchema": {
|
|
46611
|
+
"type": "UserDefinedFieldInformationResultModel",
|
|
46612
|
+
"drops": []
|
|
46613
|
+
},
|
|
46614
|
+
"examples": [
|
|
46615
|
+
"await client.companyLocations.getUdfInfo()"
|
|
46616
|
+
],
|
|
46617
|
+
"permissions": "unknown",
|
|
46618
|
+
"pagination": {
|
|
46619
|
+
"mode": "none"
|
|
46620
|
+
},
|
|
46621
|
+
"resolution": null,
|
|
46622
|
+
"retry": {
|
|
46623
|
+
"preset": "retry-ffb3a9cb"
|
|
46624
|
+
},
|
|
46625
|
+
"errors": {
|
|
46626
|
+
"set": 0
|
|
46627
|
+
},
|
|
46628
|
+
"metadata": {
|
|
46629
|
+
"purpose": "Get the CompanyLocation user-defined-field catalog.",
|
|
46630
|
+
"usage": "Unwraps fields[]; only meaningful where the entity is UDF-capable. (entity is not UDF-capable; catalog is expected empty).",
|
|
46631
|
+
"preferredWhen": null,
|
|
46632
|
+
"related": [
|
|
46633
|
+
"company_locations.getFieldInfo"
|
|
46634
|
+
],
|
|
46635
|
+
"untrustedFields": [
|
|
46636
|
+
"description",
|
|
46637
|
+
"name"
|
|
46638
|
+
]
|
|
46639
|
+
},
|
|
46640
|
+
"compact": null,
|
|
46641
|
+
"status": "tested"
|
|
46642
|
+
},
|
|
46643
|
+
{
|
|
46644
|
+
"id": "company_locations.query",
|
|
46645
|
+
"resource": "company_locations",
|
|
46646
|
+
"udfCapable": false,
|
|
46647
|
+
"operation": "query",
|
|
46648
|
+
"kind": "primitive",
|
|
46649
|
+
"endpoint": "GET|POST /V1.0/CompanyLocations/query",
|
|
46650
|
+
"effect": "read",
|
|
46651
|
+
"flags": [],
|
|
46652
|
+
"dryRun": false,
|
|
46653
|
+
"envelope": "QueryActionResult[<Model>,<Entity>]",
|
|
46654
|
+
"inputSchema": {
|
|
46655
|
+
"params": {
|
|
46656
|
+
"type": "object",
|
|
46657
|
+
"required": false,
|
|
46658
|
+
"description": "The query params object (CLOSED — unknown keys are refused pre-request with a typed error naming the key + the valid keys): { filter?: FilterCondition[], limit?: number (total cap, default 500, max 2500 — NOT a page size), latest?: number (1-2500; the N highest-id rows — the vendor has no sort; count-probe + id-threshold semantics, see docs/API.md §4; the same-process latest-walk count probes are briefly cached per client — a 30 s TTL, cleared on a write through this client (a probe in flight across the write is discarded by the cache's invalidation epoch); the plain count op and aggregate stay fresh; limit and latest may coexist only when limit >= latest), noteChars?: number (integer >= 1; opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result), includeFields?: string[], fieldCheck?: boolean (default true: every includeFields NAME and every filter condition FIELD NAME is checked pre-request against the live field set (the vendored spec when that read faults — the resource's plan-pinned live-only fields, metadata.liveOnlyFields, are exempt from the vendored refusal: the live entity carries them and the vendor model omits them (e.g. time_entries postedDate/postedOnTime) — a truly unknown name is still refused); a refusal costs zero QUERY wire — the query POST and the count probe that anchors latest are never issued, a COLD fieldCache performs one authority metadata GET first (zero on a warm one); the one udf:true condition per query is exempt (a tenant UDF name is absent from the vendored spec by definition); false disables both name checks, never the shape/grammar checks; the count verb's bag is name-checked the same way and carries the same fieldCheck opt-out; a direct queryBounded/queryAll call is not checked (no bag contract there)), names?: boolean (absent = the client's labels option — OFF by default (the label pass costs a field-catalog read + up to 20 cold name reads per call; the MCP server (iit-mcp-autotask) enables the client labels option when it re-pins to this version (downstream)); true adds the row label siblings: picklist <field>Label (statusLabel), <fk>Name for companyID/contractID/ticketID/roleID/billingCodeID/*ResourceID (contractIDName, assignedResourceIDName) — null, never missing, when the field is keyed with a null value, a 0 id or an unresolved value (a picklist 0 is labelled when the picklist defines it); a names summary appears only when something was left unlabelled (the 20 uncached name-read cap or an unresolved picklist value); false = raw ids, ~30% smaller on a full tickets row), via?: \"post\" | \"get\" (vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected to read over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result's scopeNote says so), walk?: object (walk.maxRows: positive integer — (D6): the walk's TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result's truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) }. Filter grammar: 13 operators (eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn; in/notIn: array or \"1,2,3\") + and/or grouping (no not-group); field names in vendor API casing (via operations.fieldCatalog); caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
46659
|
+
"properties": [
|
|
46660
|
+
{
|
|
46661
|
+
"name": "filter",
|
|
46662
|
+
"type": "FilterCondition[]",
|
|
46663
|
+
"optional": true
|
|
46664
|
+
},
|
|
46665
|
+
{
|
|
46666
|
+
"name": "limit",
|
|
46667
|
+
"type": "number",
|
|
46668
|
+
"optional": true,
|
|
46669
|
+
"default": 500
|
|
46670
|
+
},
|
|
46671
|
+
{
|
|
46672
|
+
"name": "latest",
|
|
46673
|
+
"type": "number",
|
|
46674
|
+
"optional": true
|
|
46675
|
+
},
|
|
46676
|
+
{
|
|
46677
|
+
"name": "noteChars",
|
|
46678
|
+
"type": "number",
|
|
46679
|
+
"optional": true
|
|
46680
|
+
},
|
|
46681
|
+
{
|
|
46682
|
+
"name": "includeFields",
|
|
46683
|
+
"type": "string[]",
|
|
46684
|
+
"optional": true
|
|
46685
|
+
},
|
|
46686
|
+
{
|
|
46687
|
+
"name": "fieldCheck",
|
|
46688
|
+
"type": "boolean",
|
|
46689
|
+
"optional": true,
|
|
46690
|
+
"default": true
|
|
46691
|
+
},
|
|
46692
|
+
{
|
|
46693
|
+
"name": "names",
|
|
46694
|
+
"type": "boolean",
|
|
46695
|
+
"optional": true
|
|
46696
|
+
},
|
|
46697
|
+
{
|
|
46698
|
+
"name": "via",
|
|
46699
|
+
"type": "\"post\" | \"get\"",
|
|
46700
|
+
"optional": true
|
|
46701
|
+
},
|
|
46702
|
+
{
|
|
46703
|
+
"name": "acknowledgeUnscoped",
|
|
46704
|
+
"type": "boolean",
|
|
46705
|
+
"optional": true
|
|
46706
|
+
},
|
|
46707
|
+
{
|
|
46708
|
+
"name": "walk",
|
|
46709
|
+
"type": "object",
|
|
46710
|
+
"optional": true
|
|
46711
|
+
}
|
|
46712
|
+
]
|
|
46713
|
+
}
|
|
46714
|
+
},
|
|
46715
|
+
"inputSchemaStrict": true,
|
|
46716
|
+
"outputSchema": {
|
|
46717
|
+
"type": "QueryActionResult[<Model>,<Entity>]",
|
|
46718
|
+
"drops": []
|
|
46719
|
+
},
|
|
46720
|
+
"examples": [
|
|
46721
|
+
"await client.companyLocations.query({ filter: [{ field: 'name', op: 'eq', value: 'example' }], limit: 500 })"
|
|
46722
|
+
],
|
|
46723
|
+
"permissions": "unknown",
|
|
46724
|
+
"pagination": {
|
|
46725
|
+
"mode": "cursor",
|
|
46726
|
+
"vendorDefault": 10,
|
|
46727
|
+
"vendorMax": 500,
|
|
46728
|
+
"pageGuard": 1000,
|
|
46729
|
+
"queryBounded": {
|
|
46730
|
+
"default": 500,
|
|
46731
|
+
"max": 2500
|
|
46732
|
+
}
|
|
46733
|
+
},
|
|
46734
|
+
"resolution": null,
|
|
46735
|
+
"retry": {
|
|
46736
|
+
"preset": "retry-ffb3a9cb"
|
|
46737
|
+
},
|
|
46738
|
+
"errors": {
|
|
46739
|
+
"set": 4
|
|
46740
|
+
},
|
|
46741
|
+
"metadata": {
|
|
46742
|
+
"purpose": "Query CompanyLocation records with a JSON filter.",
|
|
46743
|
+
"usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Parent-scoped entity: the query stays global (filter with companyID eq <parentId> where the parent is known). Explicit walk.maxRows independently sets the TOTAL returned-row cap (including export-sized walks); the ordinary limit is still validated in 1..2500 and only bounds the internal page size for this form. hasMore and truncated remain true at the page guard or while a cursor or unserved fetched rows remain. Self-resource prefixes are accepted in filter fields and includeFields; dotted UDF names are always refused before metadata or vendor requests, never rewritten to another tenant UDF.",
|
|
46744
|
+
"preferredWhen": "Default for filtered reads (the bounded query op). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. Prefer an includeFields subset over the full model (field names via operations.fieldCatalog). latest: N is the latest-N rows (id-descending) when the newest rows are the goal (the vendor has no sort — count-anchored, docs/API.md §4). Prefer a hand-listed includeFields for common narrow reads (removed the closed fieldsPreset presets — the v1 billing_join field list for billing_items.query, if you need it, is: companyID, ticketID, projectID, timeEntryID, contractServiceID, contractID, billingCodeID, expenseItemID, itemDate, quantity, rate, extendedPrice, totalAmount, nonBillable); noteChars: N caps the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose) to N chars each with the explicit … [+N chars truncated] marker (opt-in; the raw result when absent).",
|
|
46745
|
+
"related": [
|
|
46746
|
+
"company_locations.resolve"
|
|
46747
|
+
],
|
|
46748
|
+
"args": "args[0] is a params object: { filter?: FilterCondition[], limit?: total cap (default 500, max 2500; server-side pagination), latest?: number (1-2500 — the N highest-id rows; the vendor has no sort parameter, so this is a count-anchored mechanism — see docs/API.md §4; coexists with limit only when limit >= latest), noteChars?: number (integer >= 1 — opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result) maxRecords?: page size — raw SDK `queryAll`/`query` walks only (this bounded query ignores it; the invoke bag refuses it — pass limit), includeFields?: string[], fieldCheck?: boolean (default true — the pre-request field-name check on includeFields names and filter condition fields; false disables it — consumed by the invoke router, never sent to the vendor), via?: \"post\" | \"get\" (the wire method; the vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result’s scopeNote says so), walk?: { maxRows: positive integer (D6: the walk’s TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result’s truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) } }. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars. For a simple text lookup prefer company_locations.search. By default the FULL vendor model is returned (all fields). To slim the payload for context savings pass includeFields with the exact vendor field names you need (discover them via operations.fieldCatalog); only those fields + id come back. The subset persists across the internal page walk.",
|
|
46749
|
+
"untrustedFields": [
|
|
46750
|
+
"description",
|
|
46751
|
+
"name"
|
|
46752
|
+
]
|
|
46753
|
+
},
|
|
46754
|
+
"compact": null,
|
|
46755
|
+
"status": "tested"
|
|
46756
|
+
},
|
|
46757
|
+
{
|
|
46758
|
+
"id": "company_locations.resolve",
|
|
46759
|
+
"resource": "company_locations",
|
|
46760
|
+
"udfCapable": false,
|
|
46761
|
+
"operation": "resolve",
|
|
46762
|
+
"kind": "helper",
|
|
46763
|
+
"endpoint": null,
|
|
46764
|
+
"effect": "read",
|
|
46765
|
+
"flags": [],
|
|
46766
|
+
"dryRun": false,
|
|
46767
|
+
"envelope": null,
|
|
46768
|
+
"inputSchema": {
|
|
46769
|
+
"identifier": {
|
|
46770
|
+
"type": "string | number",
|
|
46771
|
+
"required": true,
|
|
46772
|
+
"description": "A numeric id (the direct fetch, tried first) or an exact value of the primary text field(s) of this resource (exact match only — a complete non-match returns null (resolve never widens to contains; the resource's search op is the contains-candidates channel) — other identifier forms, e.g. an email address, are NOT tried; use the dedicated lookup op for the resource where one exists)."
|
|
46773
|
+
},
|
|
46774
|
+
"opts": {
|
|
46775
|
+
"type": "object",
|
|
46776
|
+
"required": false,
|
|
46777
|
+
"description": "ResolutionOpts — { expand?: boolean } (return the full record; a no-op where the Summary is a structural alias).",
|
|
46778
|
+
"properties": [
|
|
46779
|
+
{
|
|
46780
|
+
"name": "expand",
|
|
46781
|
+
"type": "boolean",
|
|
46782
|
+
"optional": true
|
|
46783
|
+
}
|
|
46784
|
+
]
|
|
46785
|
+
}
|
|
46786
|
+
},
|
|
46787
|
+
"inputSchemaStrict": true,
|
|
46788
|
+
"outputSchema": {
|
|
46789
|
+
"type": "CompanyLocationSummary",
|
|
46790
|
+
"drops": []
|
|
46791
|
+
},
|
|
46792
|
+
"examples": [
|
|
46793
|
+
"await client.companyLocations.resolve('example-value')"
|
|
46794
|
+
],
|
|
46795
|
+
"permissions": "unknown",
|
|
46796
|
+
"pagination": {
|
|
46797
|
+
"mode": "none"
|
|
46798
|
+
},
|
|
46799
|
+
"resolution": {
|
|
46800
|
+
"basis": "server-filter",
|
|
46801
|
+
"maxScanRecords": 500,
|
|
46802
|
+
"maxScanPages": 4
|
|
46803
|
+
},
|
|
46804
|
+
"retry": {
|
|
46805
|
+
"preset": "retry-ffb3a9cb"
|
|
46806
|
+
},
|
|
46807
|
+
"errors": {
|
|
46808
|
+
"set": 5
|
|
46809
|
+
},
|
|
46810
|
+
"metadata": {
|
|
46811
|
+
"purpose": "Resolve a company location from a numeric id (the direct fetch, tried first) or an exact value of its primary text field(s) (name — exact match only). Returns the Company location record with the numeric id for get/update/delete. Other identifier forms (e.g. an email address) are NOT tried by resolve — use the resource's dedicated lookup op where one exists (see autotask_catalog).",
|
|
46812
|
+
"usage": "Bare values are read in the order: numeric id, then the resource primary text field (see searchCovers), exact match only. { id } miss throws NOT_FOUND.",
|
|
46813
|
+
"preferredWhen": null,
|
|
46814
|
+
"related": [
|
|
46815
|
+
"company_locations.get"
|
|
46816
|
+
],
|
|
46817
|
+
"untrustedFields": [
|
|
46818
|
+
"description",
|
|
46819
|
+
"name"
|
|
46820
|
+
]
|
|
46821
|
+
},
|
|
46822
|
+
"compact": "CompanyLocationSummary",
|
|
46823
|
+
"status": "tested"
|
|
46824
|
+
},
|
|
46825
|
+
{
|
|
46826
|
+
"id": "company_locations.search",
|
|
46827
|
+
"resource": "company_locations",
|
|
46828
|
+
"udfCapable": false,
|
|
46829
|
+
"operation": "search",
|
|
46830
|
+
"kind": "helper",
|
|
46831
|
+
"endpoint": null,
|
|
46832
|
+
"effect": "read",
|
|
46833
|
+
"flags": [],
|
|
46834
|
+
"dryRun": false,
|
|
46835
|
+
"envelope": null,
|
|
46836
|
+
"inputSchema": {
|
|
46837
|
+
"query": {
|
|
46838
|
+
"type": "string",
|
|
46839
|
+
"required": true,
|
|
46840
|
+
"description": "The free text to match (contains) on the resource searchable fields."
|
|
46841
|
+
},
|
|
46842
|
+
"opts": {
|
|
46843
|
+
"type": "object",
|
|
46844
|
+
"required": false,
|
|
46845
|
+
"description": "SearchOpts — { limit?: number } (1-500, default 25).",
|
|
46846
|
+
"properties": [
|
|
46847
|
+
{
|
|
46848
|
+
"name": "limit",
|
|
46849
|
+
"type": "number",
|
|
46850
|
+
"optional": true
|
|
46851
|
+
}
|
|
46852
|
+
]
|
|
46853
|
+
}
|
|
46854
|
+
},
|
|
46855
|
+
"inputSchemaStrict": true,
|
|
46856
|
+
"outputSchema": {
|
|
46857
|
+
"type": "CompanyLocationSummary",
|
|
46858
|
+
"drops": []
|
|
46859
|
+
},
|
|
46860
|
+
"examples": [
|
|
46861
|
+
"await client.companyLocations.search('example')"
|
|
46862
|
+
],
|
|
46863
|
+
"permissions": "unknown",
|
|
46864
|
+
"pagination": {
|
|
46865
|
+
"mode": "none"
|
|
46866
|
+
},
|
|
46867
|
+
"resolution": {
|
|
46868
|
+
"basis": "server-filter",
|
|
46869
|
+
"maxScanRecords": 500,
|
|
46870
|
+
"maxScanPages": 4
|
|
46871
|
+
},
|
|
46872
|
+
"retry": {
|
|
46873
|
+
"preset": "retry-ffb3a9cb"
|
|
46874
|
+
},
|
|
46875
|
+
"errors": {
|
|
46876
|
+
"set": 5
|
|
46877
|
+
},
|
|
46878
|
+
"metadata": {
|
|
46879
|
+
"purpose": "Search company location records by text (contains on the searchable fields).",
|
|
46880
|
+
"usage": "Vendor exposes no free-text search; this is a bounded contains filter: name only (contains). limit defaults to 25, max 500.",
|
|
46881
|
+
"preferredWhen": null,
|
|
46882
|
+
"related": [
|
|
46883
|
+
"company_locations.resolve",
|
|
46884
|
+
"company_locations.query"
|
|
46885
|
+
],
|
|
46886
|
+
"untrustedFields": [
|
|
46887
|
+
"description",
|
|
46888
|
+
"name"
|
|
46889
|
+
]
|
|
46890
|
+
},
|
|
46891
|
+
"compact": "CompanyLocationSummary",
|
|
46892
|
+
"status": "tested"
|
|
46893
|
+
},
|
|
46894
|
+
{
|
|
46895
|
+
"id": "company_locations.update",
|
|
46896
|
+
"resource": "company_locations",
|
|
46897
|
+
"udfCapable": false,
|
|
46898
|
+
"operation": "update",
|
|
46899
|
+
"kind": "primitive",
|
|
46900
|
+
"endpoint": "PUT|PATCH /V1.0/Companies/{parentId}/Locations",
|
|
46901
|
+
"effect": "write",
|
|
46902
|
+
"flags": [
|
|
46903
|
+
"idempotent"
|
|
46904
|
+
],
|
|
46905
|
+
"dryRun": true,
|
|
46906
|
+
"envelope": "OperationResultModel",
|
|
46907
|
+
"inputSchema": {
|
|
46908
|
+
"parentId": {
|
|
46909
|
+
"type": "string | number",
|
|
46910
|
+
"required": true,
|
|
46911
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
46912
|
+
},
|
|
46913
|
+
"id": {
|
|
46914
|
+
"type": "string | number",
|
|
46915
|
+
"required": true,
|
|
46916
|
+
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
46917
|
+
},
|
|
46918
|
+
"data": {
|
|
46919
|
+
"type": "object",
|
|
46920
|
+
"required": true,
|
|
46921
|
+
"description": "The record payload (vendor model fields)."
|
|
46922
|
+
}
|
|
46923
|
+
},
|
|
46924
|
+
"inputSchemaStrict": true,
|
|
46925
|
+
"outputSchema": {
|
|
46926
|
+
"type": "OperationResultModel",
|
|
46927
|
+
"drops": []
|
|
46928
|
+
},
|
|
46929
|
+
"examples": [
|
|
46930
|
+
"await client.companyLocations.update('example-value', 'example-value', { name: 'example' }, { dryRun: true })"
|
|
46931
|
+
],
|
|
46932
|
+
"permissions": "unknown",
|
|
46933
|
+
"pagination": {
|
|
46934
|
+
"mode": "none"
|
|
46935
|
+
},
|
|
46936
|
+
"resolution": null,
|
|
46937
|
+
"retry": {
|
|
46938
|
+
"preset": "retry-85897a3a"
|
|
46939
|
+
},
|
|
46940
|
+
"errors": {
|
|
46941
|
+
"set": 1
|
|
46942
|
+
},
|
|
46943
|
+
"metadata": {
|
|
46944
|
+
"purpose": "Update a company location.",
|
|
46945
|
+
"usage": "Issues PATCH on the collection (swagger documents put+patch there; the node strips the id from the path and the vendor keys the record by the id in the body). Stale check via lastModifiedDate where present. Parent-scoped: parentId + id.",
|
|
46946
|
+
"preferredWhen": "Preferred over create or delete when the record exists and only some fields change.",
|
|
46947
|
+
"related": [
|
|
46948
|
+
"company_locations.get"
|
|
46949
|
+
],
|
|
46950
|
+
"untrustedFields": [
|
|
46951
|
+
"description",
|
|
46952
|
+
"name"
|
|
46953
|
+
]
|
|
46954
|
+
},
|
|
46955
|
+
"compact": null,
|
|
46956
|
+
"status": "tested"
|
|
46957
|
+
},
|
|
46958
|
+
{
|
|
46959
|
+
"id": "company_note_attachments.count",
|
|
46960
|
+
"resource": "company_note_attachments",
|
|
46961
|
+
"udfCapable": false,
|
|
46962
|
+
"operation": "count",
|
|
46963
|
+
"kind": "primitive",
|
|
46964
|
+
"endpoint": "GET|POST /V1.0/CompanyNoteAttachments/query/count",
|
|
46965
|
+
"effect": "read",
|
|
46966
|
+
"flags": [],
|
|
46967
|
+
"dryRun": false,
|
|
46968
|
+
"envelope": "QueryCountResultModel",
|
|
46969
|
+
"inputSchema": {
|
|
46970
|
+
"params": {
|
|
46971
|
+
"type": "object",
|
|
46972
|
+
"required": false,
|
|
46973
|
+
"description": "The query params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only wire parameter (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too.",
|
|
46974
|
+
"properties": [
|
|
46975
|
+
{
|
|
46976
|
+
"name": "filter",
|
|
46977
|
+
"type": "FilterCondition[]",
|
|
46978
|
+
"optional": true
|
|
46979
|
+
},
|
|
46980
|
+
{
|
|
46981
|
+
"name": "fieldCheck",
|
|
46982
|
+
"type": "boolean",
|
|
46983
|
+
"optional": true
|
|
46984
|
+
}
|
|
46985
|
+
]
|
|
46986
|
+
}
|
|
46987
|
+
},
|
|
46988
|
+
"inputSchemaStrict": true,
|
|
46989
|
+
"outputSchema": {
|
|
46990
|
+
"type": "QueryCountResultModel",
|
|
46991
|
+
"drops": []
|
|
46992
|
+
},
|
|
46993
|
+
"examples": [
|
|
46994
|
+
"await client.companyNoteAttachments.count({ filter: [{ field: 'companyNoteID', op: 'eq', value: 1 }] })"
|
|
46995
|
+
],
|
|
46996
|
+
"permissions": "unknown",
|
|
46997
|
+
"pagination": {
|
|
46998
|
+
"mode": "none"
|
|
46999
|
+
},
|
|
47000
|
+
"resolution": null,
|
|
47001
|
+
"retry": {
|
|
47002
|
+
"preset": "retry-ffb3a9cb"
|
|
47003
|
+
},
|
|
47004
|
+
"errors": {
|
|
47005
|
+
"set": 0
|
|
47006
|
+
},
|
|
47007
|
+
"metadata": {
|
|
47008
|
+
"purpose": "Count attachment records matching a JSON filter. (under a company note)",
|
|
47009
|
+
"usage": "Unwraps queryCount; returns a plain number. Filter by companyNoteID for the note parent; companyID is a separate company reference. creatorType, data and fileSize are not queryable. Object-specific filters can include child attachments; an empty result is conditional on API-user permissions and visibility.",
|
|
47010
|
+
"preferredWhen": null,
|
|
47011
|
+
"related": [
|
|
47012
|
+
"company_note_attachments.query"
|
|
47013
|
+
],
|
|
47014
|
+
"args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
47015
|
+
"untrustedFields": [
|
|
47016
|
+
"title"
|
|
47017
|
+
]
|
|
47018
|
+
},
|
|
47019
|
+
"compact": null,
|
|
47020
|
+
"status": "tested"
|
|
47021
|
+
},
|
|
47022
|
+
{
|
|
47023
|
+
"id": "company_note_attachments.create",
|
|
47024
|
+
"resource": "company_note_attachments",
|
|
47025
|
+
"udfCapable": false,
|
|
47026
|
+
"operation": "create",
|
|
47027
|
+
"kind": "primitive",
|
|
47028
|
+
"endpoint": "POST /V1.0/CompanyNotes/{parentId}/Attachments",
|
|
47029
|
+
"effect": "write",
|
|
47030
|
+
"flags": [],
|
|
47031
|
+
"dryRun": true,
|
|
47032
|
+
"envelope": "OperationResultModel",
|
|
47033
|
+
"inputSchema": {
|
|
47034
|
+
"parentId": {
|
|
47035
|
+
"type": "string | number",
|
|
47036
|
+
"required": true,
|
|
47037
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
47038
|
+
},
|
|
47039
|
+
"data": {
|
|
47040
|
+
"type": "object",
|
|
47041
|
+
"required": true,
|
|
47042
|
+
"description": "The record payload (vendor model fields)."
|
|
47043
|
+
}
|
|
47044
|
+
},
|
|
47045
|
+
"inputSchemaStrict": true,
|
|
47046
|
+
"outputSchema": {
|
|
47047
|
+
"type": "OperationResultModel",
|
|
47048
|
+
"drops": []
|
|
47049
|
+
},
|
|
47050
|
+
"examples": [
|
|
47051
|
+
"await client.companyNoteAttachments.create(1, { attachmentType: 'FILE_ATTACHMENT', fullPath: 'note.txt', title: 'Supporting note', publish: 1, data: 'bm90ZQ==' }, { dryRun: true })"
|
|
47052
|
+
],
|
|
47053
|
+
"permissions": "unknown",
|
|
47054
|
+
"pagination": {
|
|
47055
|
+
"mode": "none"
|
|
47056
|
+
},
|
|
47057
|
+
"resolution": null,
|
|
47058
|
+
"retry": {
|
|
47059
|
+
"preset": "retry-c5657094"
|
|
47060
|
+
},
|
|
47061
|
+
"errors": {
|
|
47062
|
+
"set": 1
|
|
47063
|
+
},
|
|
47064
|
+
"metadata": {
|
|
47065
|
+
"purpose": "Create an attachment. (under a company note)",
|
|
47066
|
+
"usage": "Returns OperationResultModel.itemId (the new id); the full record is not returned — follow up with get where needed. Parent-scoped: parentId is a path parameter. FILE_ATTACHMENT requires base64 data; use current attachmentType/publish metadata and vendor file limits. ParentId addresses the CompanyNotes record. Permission and impersonation restrictions apply.",
|
|
47067
|
+
"preferredWhen": "Add a new attachment; existing attachments cannot be updated. Replace through separately governed delete and create actions.",
|
|
47068
|
+
"related": [
|
|
47069
|
+
"company_note_attachments.get"
|
|
47070
|
+
],
|
|
47071
|
+
"untrustedFields": [
|
|
47072
|
+
"title"
|
|
47073
|
+
],
|
|
47074
|
+
"createRequirements": {
|
|
47075
|
+
"requiresByValue": [
|
|
47076
|
+
{
|
|
47077
|
+
"field": "attachmentType",
|
|
47078
|
+
"value": "FILE_ATTACHMENT",
|
|
47079
|
+
"requires": {
|
|
47080
|
+
"allOf": [
|
|
47081
|
+
"data"
|
|
47082
|
+
]
|
|
47083
|
+
}
|
|
47084
|
+
}
|
|
47085
|
+
]
|
|
47086
|
+
}
|
|
47087
|
+
},
|
|
47088
|
+
"compact": null,
|
|
47089
|
+
"status": "tested"
|
|
47090
|
+
},
|
|
47091
|
+
{
|
|
47092
|
+
"id": "company_note_attachments.delete",
|
|
47093
|
+
"resource": "company_note_attachments",
|
|
47094
|
+
"udfCapable": false,
|
|
47095
|
+
"operation": "delete",
|
|
47096
|
+
"kind": "primitive",
|
|
47097
|
+
"endpoint": "DELETE /V1.0/CompanyNotes/{parentId}/Attachments/{id}",
|
|
47098
|
+
"effect": "destructive",
|
|
47099
|
+
"flags": [
|
|
47100
|
+
"idempotent",
|
|
47101
|
+
"requiresApproval"
|
|
47102
|
+
],
|
|
47103
|
+
"dryRun": true,
|
|
47104
|
+
"envelope": "OperationResultModel (attachment entities: the deleted attachment model is returned, not OperationResultModel)",
|
|
47105
|
+
"inputSchema": {
|
|
47106
|
+
"parentId": {
|
|
47107
|
+
"type": "string | number",
|
|
47108
|
+
"required": true,
|
|
47109
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
47110
|
+
},
|
|
47111
|
+
"id": {
|
|
47112
|
+
"type": "string | number",
|
|
47113
|
+
"required": true,
|
|
47114
|
+
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
47115
|
+
}
|
|
47116
|
+
},
|
|
47117
|
+
"inputSchemaStrict": true,
|
|
47118
|
+
"outputSchema": {
|
|
47119
|
+
"type": "OperationResultModel (attachment entities: the deleted attachment model is returned, not OperationResultModel)",
|
|
47120
|
+
"drops": []
|
|
47121
|
+
},
|
|
47122
|
+
"examples": [
|
|
47123
|
+
"await invoke(client, 'company_note_attachments.delete', ['example-value', 'example-value'], { dryRun: false, confirm: 'company_note_attachments.delete' })"
|
|
47124
|
+
],
|
|
47125
|
+
"permissions": "unknown",
|
|
47126
|
+
"pagination": {
|
|
47127
|
+
"mode": "none"
|
|
47128
|
+
},
|
|
47129
|
+
"resolution": null,
|
|
47130
|
+
"retry": {
|
|
47131
|
+
"preset": "retry-1849870d"
|
|
47132
|
+
},
|
|
47133
|
+
"errors": {
|
|
47134
|
+
"set": 2
|
|
47135
|
+
},
|
|
47136
|
+
"metadata": {
|
|
47137
|
+
"purpose": "Delete an attachment. (under a company note)",
|
|
47138
|
+
"usage": "Irreversible; dry-run validates the target id first. Parent-scoped: parentId + id.",
|
|
47139
|
+
"preferredWhen": null,
|
|
47140
|
+
"related": [
|
|
47141
|
+
"company_note_attachments.get"
|
|
47142
|
+
],
|
|
47143
|
+
"untrustedFields": [
|
|
47144
|
+
"title"
|
|
47145
|
+
]
|
|
47146
|
+
},
|
|
47147
|
+
"compact": null,
|
|
47148
|
+
"status": "tested"
|
|
47149
|
+
},
|
|
47150
|
+
{
|
|
47151
|
+
"id": "company_note_attachments.get",
|
|
47152
|
+
"resource": "company_note_attachments",
|
|
47153
|
+
"udfCapable": false,
|
|
47154
|
+
"operation": "get",
|
|
47155
|
+
"kind": "primitive",
|
|
47156
|
+
"endpoint": "GET /V1.0/CompanyNotes/{parentId}/Attachments/{id}",
|
|
47157
|
+
"effect": "read",
|
|
47158
|
+
"flags": [],
|
|
47159
|
+
"dryRun": false,
|
|
47160
|
+
"envelope": "CompanyNoteAttachmentModel",
|
|
47161
|
+
"inputSchema": {
|
|
47162
|
+
"parentId": {
|
|
47163
|
+
"type": "string | number",
|
|
47164
|
+
"required": true,
|
|
47165
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
47166
|
+
},
|
|
47167
|
+
"id": {
|
|
47168
|
+
"type": "string | number",
|
|
47169
|
+
"required": true,
|
|
47170
|
+
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
47171
|
+
},
|
|
47172
|
+
"opts": {
|
|
47173
|
+
"type": "object",
|
|
47174
|
+
"required": false,
|
|
47175
|
+
"description": "The read options bag (CLOSED): { fresh?: boolean } — fresh: true bypasses the read-cache lookup and refreshes the entry with the live response. Omitted: the cached read (default unchanged). A positional fresh via invoke is REFUSED (typed error, zero wire — the fresh invoke option is the only spelling); the typed method get(id, { fresh: true }) is unchanged.",
|
|
47176
|
+
"properties": [
|
|
47177
|
+
{
|
|
47178
|
+
"name": "fresh",
|
|
47179
|
+
"type": "boolean",
|
|
47180
|
+
"optional": true
|
|
47181
|
+
}
|
|
47182
|
+
]
|
|
47183
|
+
}
|
|
47184
|
+
},
|
|
47185
|
+
"inputSchemaStrict": true,
|
|
47186
|
+
"outputSchema": {
|
|
47187
|
+
"type": "CompanyNoteAttachmentModel",
|
|
45631
47188
|
"drops": []
|
|
45632
47189
|
},
|
|
45633
47190
|
"examples": [
|
|
45634
|
-
"await client.
|
|
47191
|
+
"await client.companyNoteAttachments.get('example-value', 'example-value')"
|
|
45635
47192
|
],
|
|
45636
47193
|
"permissions": "unknown",
|
|
45637
47194
|
"pagination": {
|
|
@@ -45645,28 +47202,27 @@ const CAPABILITY_DATA = {
|
|
|
45645
47202
|
"set": 3
|
|
45646
47203
|
},
|
|
45647
47204
|
"metadata": {
|
|
45648
|
-
"purpose": "Get one
|
|
45649
|
-
"usage": "item: null
|
|
45650
|
-
"preferredWhen": "
|
|
47205
|
+
"purpose": "Get one CompanyNoteAttachment by id.",
|
|
47206
|
+
"usage": "Returns the attachment model directly; item: null or an empty model is a typed not-found. Parent-scoped: parentId is the company note id, followed by the attachment id.",
|
|
47207
|
+
"preferredWhen": "Use a known attachment id; query the scoped collection to discover ids.",
|
|
45651
47208
|
"related": [
|
|
45652
|
-
"
|
|
47209
|
+
"company_note_attachments.query"
|
|
45653
47210
|
],
|
|
45654
|
-
"args": "args are (parentId: number, id: number) Item GET returns the FULL vendor model — the vendor documents no field selection on single-record reads. For a slim record use
|
|
47211
|
+
"args": "args are (parentId: number, id: number) Item GET returns the FULL vendor model — the vendor documents no field selection on single-record reads. For a slim record use a company_note_attachments.query with includeFields.",
|
|
45655
47212
|
"untrustedFields": [
|
|
45656
|
-
"
|
|
45657
|
-
"name"
|
|
47213
|
+
"title"
|
|
45658
47214
|
]
|
|
45659
47215
|
},
|
|
45660
47216
|
"compact": null,
|
|
45661
47217
|
"status": "tested"
|
|
45662
47218
|
},
|
|
45663
47219
|
{
|
|
45664
|
-
"id": "
|
|
45665
|
-
"resource": "
|
|
47220
|
+
"id": "company_note_attachments.getEntityInfo",
|
|
47221
|
+
"resource": "company_note_attachments",
|
|
45666
47222
|
"udfCapable": false,
|
|
45667
47223
|
"operation": "getEntityInfo",
|
|
45668
47224
|
"kind": "primitive",
|
|
45669
|
-
"endpoint": "GET /V1.0/
|
|
47225
|
+
"endpoint": "GET /V1.0/CompanyNoteAttachments/entityInformation",
|
|
45670
47226
|
"effect": "read",
|
|
45671
47227
|
"flags": [],
|
|
45672
47228
|
"dryRun": false,
|
|
@@ -45678,7 +47234,7 @@ const CAPABILITY_DATA = {
|
|
|
45678
47234
|
"drops": []
|
|
45679
47235
|
},
|
|
45680
47236
|
"examples": [
|
|
45681
|
-
"await client.
|
|
47237
|
+
"await client.companyNoteAttachments.getEntityInfo()"
|
|
45682
47238
|
],
|
|
45683
47239
|
"permissions": "unknown",
|
|
45684
47240
|
"pagination": {
|
|
@@ -45692,27 +47248,26 @@ const CAPABILITY_DATA = {
|
|
|
45692
47248
|
"set": 0
|
|
45693
47249
|
},
|
|
45694
47250
|
"metadata": {
|
|
45695
|
-
"purpose": "Get the
|
|
47251
|
+
"purpose": "Get the CompanyNoteAttachment capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
|
|
45696
47252
|
"usage": "Unwraps info{}; drives client-side capability checks.",
|
|
45697
47253
|
"preferredWhen": null,
|
|
45698
47254
|
"related": [
|
|
45699
|
-
"
|
|
47255
|
+
"company_note_attachments.getFieldInfo"
|
|
45700
47256
|
],
|
|
45701
47257
|
"untrustedFields": [
|
|
45702
|
-
"
|
|
45703
|
-
"name"
|
|
47258
|
+
"title"
|
|
45704
47259
|
]
|
|
45705
47260
|
},
|
|
45706
47261
|
"compact": null,
|
|
45707
47262
|
"status": "tested"
|
|
45708
47263
|
},
|
|
45709
47264
|
{
|
|
45710
|
-
"id": "
|
|
45711
|
-
"resource": "
|
|
47265
|
+
"id": "company_note_attachments.getFieldInfo",
|
|
47266
|
+
"resource": "company_note_attachments",
|
|
45712
47267
|
"udfCapable": false,
|
|
45713
47268
|
"operation": "getFieldInfo",
|
|
45714
47269
|
"kind": "primitive",
|
|
45715
|
-
"endpoint": "GET /V1.0/
|
|
47270
|
+
"endpoint": "GET /V1.0/CompanyNoteAttachments/entityInformation/fields",
|
|
45716
47271
|
"effect": "read",
|
|
45717
47272
|
"flags": [],
|
|
45718
47273
|
"dryRun": false,
|
|
@@ -45724,7 +47279,7 @@ const CAPABILITY_DATA = {
|
|
|
45724
47279
|
"drops": []
|
|
45725
47280
|
},
|
|
45726
47281
|
"examples": [
|
|
45727
|
-
"await client.
|
|
47282
|
+
"await client.companyNoteAttachments.getFieldInfo()"
|
|
45728
47283
|
],
|
|
45729
47284
|
"permissions": "unknown",
|
|
45730
47285
|
"pagination": {
|
|
@@ -45738,74 +47293,26 @@ const CAPABILITY_DATA = {
|
|
|
45738
47293
|
"set": 0
|
|
45739
47294
|
},
|
|
45740
47295
|
"metadata": {
|
|
45741
|
-
"purpose": "Get the
|
|
47296
|
+
"purpose": "Get the CompanyNoteAttachment field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
|
|
45742
47297
|
"usage": "Unwraps fields[]; full raw field dump — the largest read of the info trio (compact discovery: operations.fieldCatalog); the raw dump is also the basis for UDF handling.",
|
|
45743
47298
|
"preferredWhen": null,
|
|
45744
47299
|
"related": [
|
|
45745
|
-
"
|
|
45746
|
-
"company_locations.getUdfInfo"
|
|
47300
|
+
"company_note_attachments.getEntityInfo"
|
|
45747
47301
|
],
|
|
45748
47302
|
"untrustedFields": [
|
|
45749
|
-
"
|
|
45750
|
-
"name"
|
|
45751
|
-
]
|
|
45752
|
-
},
|
|
45753
|
-
"compact": null,
|
|
45754
|
-
"status": "tested"
|
|
45755
|
-
},
|
|
45756
|
-
{
|
|
45757
|
-
"id": "company_locations.getUdfInfo",
|
|
45758
|
-
"resource": "company_locations",
|
|
45759
|
-
"udfCapable": false,
|
|
45760
|
-
"operation": "getUdfInfo",
|
|
45761
|
-
"kind": "primitive",
|
|
45762
|
-
"endpoint": "GET /V1.0/CompanyLocations/entityInformation/userDefinedFields",
|
|
45763
|
-
"effect": "read",
|
|
45764
|
-
"flags": [],
|
|
45765
|
-
"dryRun": false,
|
|
45766
|
-
"envelope": "UserDefinedFieldInformationResultModel",
|
|
45767
|
-
"inputSchema": {},
|
|
45768
|
-
"inputSchemaStrict": true,
|
|
45769
|
-
"outputSchema": {
|
|
45770
|
-
"type": "UserDefinedFieldInformationResultModel",
|
|
45771
|
-
"drops": []
|
|
45772
|
-
},
|
|
45773
|
-
"examples": [
|
|
45774
|
-
"await client.companyLocations.getUdfInfo()"
|
|
45775
|
-
],
|
|
45776
|
-
"permissions": "unknown",
|
|
45777
|
-
"pagination": {
|
|
45778
|
-
"mode": "none"
|
|
45779
|
-
},
|
|
45780
|
-
"resolution": null,
|
|
45781
|
-
"retry": {
|
|
45782
|
-
"preset": "retry-ffb3a9cb"
|
|
45783
|
-
},
|
|
45784
|
-
"errors": {
|
|
45785
|
-
"set": 0
|
|
45786
|
-
},
|
|
45787
|
-
"metadata": {
|
|
45788
|
-
"purpose": "Get the CompanyLocation user-defined-field catalog.",
|
|
45789
|
-
"usage": "Unwraps fields[]; only meaningful where the entity is UDF-capable. (entity is not UDF-capable; catalog is expected empty).",
|
|
45790
|
-
"preferredWhen": null,
|
|
45791
|
-
"related": [
|
|
45792
|
-
"company_locations.getFieldInfo"
|
|
45793
|
-
],
|
|
45794
|
-
"untrustedFields": [
|
|
45795
|
-
"description",
|
|
45796
|
-
"name"
|
|
47303
|
+
"title"
|
|
45797
47304
|
]
|
|
45798
47305
|
},
|
|
45799
47306
|
"compact": null,
|
|
45800
47307
|
"status": "tested"
|
|
45801
47308
|
},
|
|
45802
47309
|
{
|
|
45803
|
-
"id": "
|
|
45804
|
-
"resource": "
|
|
47310
|
+
"id": "company_note_attachments.query",
|
|
47311
|
+
"resource": "company_note_attachments",
|
|
45805
47312
|
"udfCapable": false,
|
|
45806
47313
|
"operation": "query",
|
|
45807
47314
|
"kind": "primitive",
|
|
45808
|
-
"endpoint": "GET|POST /V1.0/
|
|
47315
|
+
"endpoint": "GET|POST /V1.0/CompanyNoteAttachments/query",
|
|
45809
47316
|
"effect": "read",
|
|
45810
47317
|
"flags": [],
|
|
45811
47318
|
"dryRun": false,
|
|
@@ -45877,7 +47384,7 @@ const CAPABILITY_DATA = {
|
|
|
45877
47384
|
"drops": []
|
|
45878
47385
|
},
|
|
45879
47386
|
"examples": [
|
|
45880
|
-
"await client.
|
|
47387
|
+
"await client.companyNoteAttachments.query({ filter: [{ field: 'companyNoteID', op: 'eq', value: 1 }], limit: 25 })"
|
|
45881
47388
|
],
|
|
45882
47389
|
"permissions": "unknown",
|
|
45883
47390
|
"pagination": {
|
|
@@ -45898,217 +47405,15 @@ const CAPABILITY_DATA = {
|
|
|
45898
47405
|
"set": 4
|
|
45899
47406
|
},
|
|
45900
47407
|
"metadata": {
|
|
45901
|
-
"purpose": "Query
|
|
45902
|
-
"usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Parent-scoped entity: the query stays global (filter with
|
|
47408
|
+
"purpose": "Query CompanyNoteAttachment records with a JSON filter.",
|
|
47409
|
+
"usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Parent-scoped entity: the query stays global (filter with companyNoteID eq <parentId> where the parent is known). Explicit walk.maxRows independently sets the TOTAL returned-row cap (including export-sized walks); the ordinary limit is still validated in 1..2500 and only bounds the internal page size for this form. hasMore and truncated remain true at the page guard or while a cursor or unserved fetched rows remain. Self-resource prefixes are accepted in filter fields and includeFields; dotted UDF names are always refused before metadata or vendor requests, never rewritten to another tenant UDF. Filter by companyNoteID for the note parent; companyID is a separate company reference. creatorType, data and fileSize are not queryable. Object-specific filters can include child attachments; an empty result is conditional on API-user permissions and visibility. The Swagger query response names an attachment model, while this collection uses the existing SDK attachment query contract { items, pageDetails }; a bare-model response is rejected as INVALID_RESPONSE rather than guessed into a collection.",
|
|
45903
47410
|
"preferredWhen": "Default for filtered reads (the bounded query op). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. Prefer an includeFields subset over the full model (field names via operations.fieldCatalog). latest: N is the latest-N rows (id-descending) when the newest rows are the goal (the vendor has no sort — count-anchored, docs/API.md §4). Prefer a hand-listed includeFields for common narrow reads (removed the closed fieldsPreset presets — the v1 billing_join field list for billing_items.query, if you need it, is: companyID, ticketID, projectID, timeEntryID, contractServiceID, contractID, billingCodeID, expenseItemID, itemDate, quantity, rate, extendedPrice, totalAmount, nonBillable); noteChars: N caps the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose) to N chars each with the explicit … [+N chars truncated] marker (opt-in; the raw result when absent).",
|
|
45904
47411
|
"related": [
|
|
45905
|
-
"
|
|
45906
|
-
],
|
|
45907
|
-
"args": "args[0] is a params object: { filter?: FilterCondition[], limit?: total cap (default 500, max 2500; server-side pagination), latest?: number (1-2500 — the N highest-id rows; the vendor has no sort parameter, so this is a count-anchored mechanism — see docs/API.md §4; coexists with limit only when limit >= latest), noteChars?: number (integer >= 1 — opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result) maxRecords?: page size — raw SDK `queryAll`/`query` walks only (this bounded query ignores it; the invoke bag refuses it — pass limit), includeFields?: string[], fieldCheck?: boolean (default true — the pre-request field-name check on includeFields names and filter condition fields; false disables it — consumed by the invoke router, never sent to the vendor), via?: \"post\" | \"get\" (the wire method; the vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result’s scopeNote says so), walk?: { maxRows: positive integer (D6: the walk’s TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result’s truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) } }. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars. For a simple text lookup prefer company_locations.search. By default the FULL vendor model is returned (all fields). To slim the payload for context savings pass includeFields with the exact vendor field names you need (discover them via operations.fieldCatalog); only those fields + id come back. The subset persists across the internal page walk.",
|
|
45908
|
-
"untrustedFields": [
|
|
45909
|
-
"description",
|
|
45910
|
-
"name"
|
|
45911
|
-
]
|
|
45912
|
-
},
|
|
45913
|
-
"compact": null,
|
|
45914
|
-
"status": "tested"
|
|
45915
|
-
},
|
|
45916
|
-
{
|
|
45917
|
-
"id": "company_locations.resolve",
|
|
45918
|
-
"resource": "company_locations",
|
|
45919
|
-
"udfCapable": false,
|
|
45920
|
-
"operation": "resolve",
|
|
45921
|
-
"kind": "helper",
|
|
45922
|
-
"endpoint": null,
|
|
45923
|
-
"effect": "read",
|
|
45924
|
-
"flags": [],
|
|
45925
|
-
"dryRun": false,
|
|
45926
|
-
"envelope": null,
|
|
45927
|
-
"inputSchema": {
|
|
45928
|
-
"identifier": {
|
|
45929
|
-
"type": "string | number",
|
|
45930
|
-
"required": true,
|
|
45931
|
-
"description": "A numeric id (the direct fetch, tried first) or an exact value of the primary text field(s) of this resource (exact match only — a complete non-match returns null (resolve never widens to contains; the resource's search op is the contains-candidates channel) — other identifier forms, e.g. an email address, are NOT tried; use the dedicated lookup op for the resource where one exists)."
|
|
45932
|
-
},
|
|
45933
|
-
"opts": {
|
|
45934
|
-
"type": "object",
|
|
45935
|
-
"required": false,
|
|
45936
|
-
"description": "ResolutionOpts — { expand?: boolean } (return the full record; a no-op where the Summary is a structural alias).",
|
|
45937
|
-
"properties": [
|
|
45938
|
-
{
|
|
45939
|
-
"name": "expand",
|
|
45940
|
-
"type": "boolean",
|
|
45941
|
-
"optional": true
|
|
45942
|
-
}
|
|
45943
|
-
]
|
|
45944
|
-
}
|
|
45945
|
-
},
|
|
45946
|
-
"inputSchemaStrict": true,
|
|
45947
|
-
"outputSchema": {
|
|
45948
|
-
"type": "CompanyLocationSummary",
|
|
45949
|
-
"drops": []
|
|
45950
|
-
},
|
|
45951
|
-
"examples": [
|
|
45952
|
-
"await client.companyLocations.resolve('example-value')"
|
|
45953
|
-
],
|
|
45954
|
-
"permissions": "unknown",
|
|
45955
|
-
"pagination": {
|
|
45956
|
-
"mode": "none"
|
|
45957
|
-
},
|
|
45958
|
-
"resolution": {
|
|
45959
|
-
"basis": "server-filter",
|
|
45960
|
-
"maxScanRecords": 500,
|
|
45961
|
-
"maxScanPages": 4
|
|
45962
|
-
},
|
|
45963
|
-
"retry": {
|
|
45964
|
-
"preset": "retry-ffb3a9cb"
|
|
45965
|
-
},
|
|
45966
|
-
"errors": {
|
|
45967
|
-
"set": 5
|
|
45968
|
-
},
|
|
45969
|
-
"metadata": {
|
|
45970
|
-
"purpose": "Resolve a company location from a numeric id (the direct fetch, tried first) or an exact value of its primary text field(s) (name — exact match only). Returns the Company location record with the numeric id for get/update/delete. Other identifier forms (e.g. an email address) are NOT tried by resolve — use the resource's dedicated lookup op where one exists (see autotask_catalog).",
|
|
45971
|
-
"usage": "Bare values are read in the order: numeric id, then the resource primary text field (see searchCovers), exact match only. { id } miss throws NOT_FOUND.",
|
|
45972
|
-
"preferredWhen": null,
|
|
45973
|
-
"related": [
|
|
45974
|
-
"company_locations.get"
|
|
45975
|
-
],
|
|
45976
|
-
"untrustedFields": [
|
|
45977
|
-
"description",
|
|
45978
|
-
"name"
|
|
45979
|
-
]
|
|
45980
|
-
},
|
|
45981
|
-
"compact": "CompanyLocationSummary",
|
|
45982
|
-
"status": "tested"
|
|
45983
|
-
},
|
|
45984
|
-
{
|
|
45985
|
-
"id": "company_locations.search",
|
|
45986
|
-
"resource": "company_locations",
|
|
45987
|
-
"udfCapable": false,
|
|
45988
|
-
"operation": "search",
|
|
45989
|
-
"kind": "helper",
|
|
45990
|
-
"endpoint": null,
|
|
45991
|
-
"effect": "read",
|
|
45992
|
-
"flags": [],
|
|
45993
|
-
"dryRun": false,
|
|
45994
|
-
"envelope": null,
|
|
45995
|
-
"inputSchema": {
|
|
45996
|
-
"query": {
|
|
45997
|
-
"type": "string",
|
|
45998
|
-
"required": true,
|
|
45999
|
-
"description": "The free text to match (contains) on the resource searchable fields."
|
|
46000
|
-
},
|
|
46001
|
-
"opts": {
|
|
46002
|
-
"type": "object",
|
|
46003
|
-
"required": false,
|
|
46004
|
-
"description": "SearchOpts — { limit?: number } (1-500, default 25).",
|
|
46005
|
-
"properties": [
|
|
46006
|
-
{
|
|
46007
|
-
"name": "limit",
|
|
46008
|
-
"type": "number",
|
|
46009
|
-
"optional": true
|
|
46010
|
-
}
|
|
46011
|
-
]
|
|
46012
|
-
}
|
|
46013
|
-
},
|
|
46014
|
-
"inputSchemaStrict": true,
|
|
46015
|
-
"outputSchema": {
|
|
46016
|
-
"type": "CompanyLocationSummary",
|
|
46017
|
-
"drops": []
|
|
46018
|
-
},
|
|
46019
|
-
"examples": [
|
|
46020
|
-
"await client.companyLocations.search('example')"
|
|
46021
|
-
],
|
|
46022
|
-
"permissions": "unknown",
|
|
46023
|
-
"pagination": {
|
|
46024
|
-
"mode": "none"
|
|
46025
|
-
},
|
|
46026
|
-
"resolution": {
|
|
46027
|
-
"basis": "server-filter",
|
|
46028
|
-
"maxScanRecords": 500,
|
|
46029
|
-
"maxScanPages": 4
|
|
46030
|
-
},
|
|
46031
|
-
"retry": {
|
|
46032
|
-
"preset": "retry-ffb3a9cb"
|
|
46033
|
-
},
|
|
46034
|
-
"errors": {
|
|
46035
|
-
"set": 5
|
|
46036
|
-
},
|
|
46037
|
-
"metadata": {
|
|
46038
|
-
"purpose": "Search company location records by text (contains on the searchable fields).",
|
|
46039
|
-
"usage": "Vendor exposes no free-text search; this is a bounded contains filter: name only (contains). limit defaults to 25, max 500.",
|
|
46040
|
-
"preferredWhen": null,
|
|
46041
|
-
"related": [
|
|
46042
|
-
"company_locations.resolve",
|
|
46043
|
-
"company_locations.query"
|
|
46044
|
-
],
|
|
46045
|
-
"untrustedFields": [
|
|
46046
|
-
"description",
|
|
46047
|
-
"name"
|
|
46048
|
-
]
|
|
46049
|
-
},
|
|
46050
|
-
"compact": "CompanyLocationSummary",
|
|
46051
|
-
"status": "tested"
|
|
46052
|
-
},
|
|
46053
|
-
{
|
|
46054
|
-
"id": "company_locations.update",
|
|
46055
|
-
"resource": "company_locations",
|
|
46056
|
-
"udfCapable": false,
|
|
46057
|
-
"operation": "update",
|
|
46058
|
-
"kind": "primitive",
|
|
46059
|
-
"endpoint": "PUT|PATCH /V1.0/Companies/{parentId}/Locations",
|
|
46060
|
-
"effect": "write",
|
|
46061
|
-
"flags": [
|
|
46062
|
-
"idempotent"
|
|
46063
|
-
],
|
|
46064
|
-
"dryRun": true,
|
|
46065
|
-
"envelope": "OperationResultModel",
|
|
46066
|
-
"inputSchema": {
|
|
46067
|
-
"parentId": {
|
|
46068
|
-
"type": "string | number",
|
|
46069
|
-
"required": true,
|
|
46070
|
-
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
46071
|
-
},
|
|
46072
|
-
"id": {
|
|
46073
|
-
"type": "string | number",
|
|
46074
|
-
"required": true,
|
|
46075
|
-
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
46076
|
-
},
|
|
46077
|
-
"data": {
|
|
46078
|
-
"type": "object",
|
|
46079
|
-
"required": true,
|
|
46080
|
-
"description": "The record payload (vendor model fields)."
|
|
46081
|
-
}
|
|
46082
|
-
},
|
|
46083
|
-
"inputSchemaStrict": true,
|
|
46084
|
-
"outputSchema": {
|
|
46085
|
-
"type": "OperationResultModel",
|
|
46086
|
-
"drops": []
|
|
46087
|
-
},
|
|
46088
|
-
"examples": [
|
|
46089
|
-
"await client.companyLocations.update('example-value', 'example-value', { name: 'example' }, { dryRun: true })"
|
|
46090
|
-
],
|
|
46091
|
-
"permissions": "unknown",
|
|
46092
|
-
"pagination": {
|
|
46093
|
-
"mode": "none"
|
|
46094
|
-
},
|
|
46095
|
-
"resolution": null,
|
|
46096
|
-
"retry": {
|
|
46097
|
-
"preset": "retry-85897a3a"
|
|
46098
|
-
},
|
|
46099
|
-
"errors": {
|
|
46100
|
-
"set": 1
|
|
46101
|
-
},
|
|
46102
|
-
"metadata": {
|
|
46103
|
-
"purpose": "Update a company location.",
|
|
46104
|
-
"usage": "Issues PATCH on the collection (swagger documents put+patch there; the node strips the id from the path and the vendor keys the record by the id in the body). Stale check via lastModifiedDate where present. Parent-scoped: parentId + id.",
|
|
46105
|
-
"preferredWhen": "Preferred over create or delete when the record exists and only some fields change.",
|
|
46106
|
-
"related": [
|
|
46107
|
-
"company_locations.get"
|
|
47412
|
+
"company_note_attachments.get"
|
|
46108
47413
|
],
|
|
47414
|
+
"args": "args[0] is a params object: { filter?: FilterCondition[], limit?: total cap (default 500, max 2500; server-side pagination), latest?: number (1-2500 — the N highest-id rows; the vendor has no sort parameter, so this is a count-anchored mechanism — see docs/API.md §4; coexists with limit only when limit >= latest), noteChars?: number (integer >= 1 — opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result) maxRecords?: page size — raw SDK `queryAll`/`query` walks only (this bounded query ignores it; the invoke bag refuses it — pass limit), includeFields?: string[], fieldCheck?: boolean (default true — the pre-request field-name check on includeFields names and filter condition fields; false disables it — consumed by the invoke router, never sent to the vendor), via?: \"post\" | \"get\" (the wire method; the vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result’s scopeNote says so), walk?: { maxRows: positive integer (D6: the walk’s TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result’s truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) } }. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars. By default the FULL vendor model is returned (all fields). To slim the payload for context savings pass includeFields with the exact vendor field names you need (discover them via operations.fieldCatalog); only those fields + id come back. The subset persists across the internal page walk.",
|
|
46109
47415
|
"untrustedFields": [
|
|
46110
|
-
"
|
|
46111
|
-
"name"
|
|
47416
|
+
"title"
|
|
46112
47417
|
]
|
|
46113
47418
|
},
|
|
46114
47419
|
"compact": null,
|
|
@@ -48766,7 +50071,7 @@ const CAPABILITY_DATA = {
|
|
|
48766
50071
|
"drops": []
|
|
48767
50072
|
},
|
|
48768
50073
|
"examples": [
|
|
48769
|
-
"await client.
|
|
50074
|
+
"await invoke(client, 'configuration_item_dns_records.count', [{ filter: [{ field: 'installedProductID', op: 'eq', value: 7 }] }])"
|
|
48770
50075
|
],
|
|
48771
50076
|
"permissions": "unknown",
|
|
48772
50077
|
"pagination": {
|
|
@@ -49142,7 +50447,7 @@ const CAPABILITY_DATA = {
|
|
|
49142
50447
|
"drops": []
|
|
49143
50448
|
},
|
|
49144
50449
|
"examples": [
|
|
49145
|
-
"await client.
|
|
50450
|
+
"await invoke(client, 'configuration_item_dns_records.query', [{ filter: [{ field: 'installedProductID', op: 'eq', value: 7 }], limit: 500 }])"
|
|
49146
50451
|
],
|
|
49147
50452
|
"permissions": "unknown",
|
|
49148
50453
|
"pagination": {
|
|
@@ -49164,7 +50469,7 @@ const CAPABILITY_DATA = {
|
|
|
49164
50469
|
},
|
|
49165
50470
|
"metadata": {
|
|
49166
50471
|
"purpose": "Query ConfigurationItemDnsRecord records with a JSON filter.",
|
|
49167
|
-
"usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Parent-scoped entity: the query stays global (filter with
|
|
50472
|
+
"usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Parent-scoped entity: the query stays global (filter with installedProductID eq <parentId> where the parent is known). Explicit walk.maxRows independently sets the TOTAL returned-row cap (including export-sized walks); the ordinary limit is still validated in 1..2500 and only bounds the internal page size for this form. hasMore and truncated remain true at the page guard or while a cursor or unserved fetched rows remain. Self-resource prefixes are accepted in filter fields and includeFields; dotted UDF names are always refused before metadata or vendor requests, never rewritten to another tenant UDF.",
|
|
49168
50473
|
"preferredWhen": "Default for filtered reads (the bounded query op). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. Prefer an includeFields subset over the full model (field names via operations.fieldCatalog). latest: N is the latest-N rows (id-descending) when the newest rows are the goal (the vendor has no sort — count-anchored, docs/API.md §4). Prefer a hand-listed includeFields for common narrow reads (removed the closed fieldsPreset presets — the v1 billing_join field list for billing_items.query, if you need it, is: companyID, ticketID, projectID, timeEntryID, contractServiceID, contractID, billingCodeID, expenseItemID, itemDate, quantity, rate, extendedPrice, totalAmount, nonBillable); noteChars: N caps the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose) to N chars each with the explicit … [+N chars truncated] marker (opt-in; the raw result when absent).",
|
|
49169
50474
|
"related": [
|
|
49170
50475
|
"configuration_item_dns_records.resolve"
|
|
@@ -73446,6 +74751,516 @@ const CAPABILITY_DATA = {
|
|
|
73446
74751
|
"compact": null,
|
|
73447
74752
|
"status": "tested"
|
|
73448
74753
|
},
|
|
74754
|
+
{
|
|
74755
|
+
"id": "task_notes.count",
|
|
74756
|
+
"resource": "task_notes",
|
|
74757
|
+
"udfCapable": false,
|
|
74758
|
+
"operation": "count",
|
|
74759
|
+
"kind": "primitive",
|
|
74760
|
+
"endpoint": "GET|POST /V1.0/TaskNotes/query/count",
|
|
74761
|
+
"effect": "read",
|
|
74762
|
+
"flags": [],
|
|
74763
|
+
"dryRun": false,
|
|
74764
|
+
"envelope": "QueryCountResultModel",
|
|
74765
|
+
"inputSchema": {
|
|
74766
|
+
"params": {
|
|
74767
|
+
"type": "object",
|
|
74768
|
+
"required": false,
|
|
74769
|
+
"description": "The query params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only wire parameter (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too.",
|
|
74770
|
+
"properties": [
|
|
74771
|
+
{
|
|
74772
|
+
"name": "filter",
|
|
74773
|
+
"type": "FilterCondition[]",
|
|
74774
|
+
"optional": true
|
|
74775
|
+
},
|
|
74776
|
+
{
|
|
74777
|
+
"name": "fieldCheck",
|
|
74778
|
+
"type": "boolean",
|
|
74779
|
+
"optional": true
|
|
74780
|
+
}
|
|
74781
|
+
]
|
|
74782
|
+
}
|
|
74783
|
+
},
|
|
74784
|
+
"inputSchemaStrict": true,
|
|
74785
|
+
"outputSchema": {
|
|
74786
|
+
"type": "QueryCountResultModel",
|
|
74787
|
+
"drops": []
|
|
74788
|
+
},
|
|
74789
|
+
"examples": [
|
|
74790
|
+
"await invoke(client, 'task_notes.count', [{ filter: [{ field: 'taskID', op: 'eq', value: 7 }] }])"
|
|
74791
|
+
],
|
|
74792
|
+
"permissions": "unknown",
|
|
74793
|
+
"pagination": {
|
|
74794
|
+
"mode": "none"
|
|
74795
|
+
},
|
|
74796
|
+
"resolution": null,
|
|
74797
|
+
"retry": {
|
|
74798
|
+
"preset": "retry-ffb3a9cb"
|
|
74799
|
+
},
|
|
74800
|
+
"errors": {
|
|
74801
|
+
"set": 0
|
|
74802
|
+
},
|
|
74803
|
+
"metadata": {
|
|
74804
|
+
"purpose": "Count task note records matching a JSON filter.",
|
|
74805
|
+
"usage": "Unwraps queryCount; returns a plain number.",
|
|
74806
|
+
"preferredWhen": null,
|
|
74807
|
+
"related": [
|
|
74808
|
+
"task_notes.query"
|
|
74809
|
+
],
|
|
74810
|
+
"args": "args[0] is a params object (CLOSED — unknown keys are refused pre-request): { filter?: FilterCondition[], fieldCheck?: boolean } — filter is the only parameter sent to the vendor (the count endpoint takes no MaxRecords/IncludeFields; fieldCheck is consumed by the invoke router — never sent to the vendor). Filter condition field names are name-checked pre-request the same way as the query bag: a refusal costs zero /query/count wire (the cold fieldCache may cost the one authority metadata GET first). fieldCheck: false disables the name check (a non-boolean is refused pre-request; the shape/grammar checks always run) — the opt-out works on the count verb too. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
74811
|
+
"untrustedFields": [
|
|
74812
|
+
"description",
|
|
74813
|
+
"title"
|
|
74814
|
+
]
|
|
74815
|
+
},
|
|
74816
|
+
"compact": null,
|
|
74817
|
+
"status": "tested"
|
|
74818
|
+
},
|
|
74819
|
+
{
|
|
74820
|
+
"id": "task_notes.create",
|
|
74821
|
+
"resource": "task_notes",
|
|
74822
|
+
"udfCapable": false,
|
|
74823
|
+
"operation": "create",
|
|
74824
|
+
"kind": "primitive",
|
|
74825
|
+
"endpoint": "POST /V1.0/Tasks/{parentId}/Notes",
|
|
74826
|
+
"effect": "write",
|
|
74827
|
+
"flags": [],
|
|
74828
|
+
"dryRun": true,
|
|
74829
|
+
"envelope": "OperationResultModel",
|
|
74830
|
+
"inputSchema": {
|
|
74831
|
+
"parentId": {
|
|
74832
|
+
"type": "string | number",
|
|
74833
|
+
"required": true,
|
|
74834
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
74835
|
+
},
|
|
74836
|
+
"data": {
|
|
74837
|
+
"type": "object",
|
|
74838
|
+
"required": true,
|
|
74839
|
+
"description": "The record payload (vendor model fields)."
|
|
74840
|
+
}
|
|
74841
|
+
},
|
|
74842
|
+
"inputSchemaStrict": true,
|
|
74843
|
+
"outputSchema": {
|
|
74844
|
+
"type": "OperationResultModel",
|
|
74845
|
+
"drops": []
|
|
74846
|
+
},
|
|
74847
|
+
"examples": [
|
|
74848
|
+
"const fields = await client.taskNotes.getFieldInfo();\nconst activeValue = (name) => {\n const field = fields.find(field => field.name === name && field.isPickList === true);\n const choice = field?.picklistValues?.find(choice => choice.isActive === true && typeof choice.value === 'string' && /^-?\\d+$/.test(choice.value) && Number.isSafeInteger(Number(choice.value)));\n if (!choice) throw new Error(`No active integer picklist choice is available for ${name}; check TaskNotes field metadata.`);\n return Number(choice.value);\n};\nconst noteType = activeValue('noteType');\nconst publish = activeValue('publish');\nawait client.taskNotes.create(7, { description: 'Work completed', title: 'Progress', noteType, publish, taskID: 7 }, { dryRun: true });"
|
|
74849
|
+
],
|
|
74850
|
+
"permissions": "unknown",
|
|
74851
|
+
"pagination": {
|
|
74852
|
+
"mode": "none"
|
|
74853
|
+
},
|
|
74854
|
+
"resolution": null,
|
|
74855
|
+
"retry": {
|
|
74856
|
+
"preset": "retry-c5657094"
|
|
74857
|
+
},
|
|
74858
|
+
"errors": {
|
|
74859
|
+
"set": 1
|
|
74860
|
+
},
|
|
74861
|
+
"metadata": {
|
|
74862
|
+
"purpose": "Create a task note.",
|
|
74863
|
+
"usage": "Returns OperationResultModel.itemId (the new id); the full record is not returned — follow up with get where needed. Parent-scoped: parentId is a path parameter. Description writes use plain text and can lose existing rich text/images. The create body must include taskID equal to the parentId path argument; official documentation does not establish that the URL fills this required field. Current field metadata supplies picklist values; no numeric value is presumed valid. Baseline-project notes are read-only. Task Category settings may require title. Contact impersonation requires permission, publish ALL (resolve its value from current metadata), an active contact and account, and a task belonging to the contact's account or a child account. Writable fields: description (max 3200), title (max 250), noteType, publish, createdByContactID and matching taskID; creator/date fields and UDF writes are refused. Create requires description, noteType, publish and taskID.",
|
|
74864
|
+
"preferredWhen": "Only for a record that does not exist yet; prefer update for an id you already have.",
|
|
74865
|
+
"related": [
|
|
74866
|
+
"task_notes.update"
|
|
74867
|
+
],
|
|
74868
|
+
"deleteBoundary": {
|
|
74869
|
+
"resource": "task_notes",
|
|
74870
|
+
"note": "The vendor defines no DELETE for task_notes (spec-derived); a created task note cannot be removed through the public API.",
|
|
74871
|
+
"proof": "spec-derived"
|
|
74872
|
+
},
|
|
74873
|
+
"untrustedFields": [
|
|
74874
|
+
"description",
|
|
74875
|
+
"title"
|
|
74876
|
+
]
|
|
74877
|
+
},
|
|
74878
|
+
"compact": null,
|
|
74879
|
+
"status": "tested"
|
|
74880
|
+
},
|
|
74881
|
+
{
|
|
74882
|
+
"id": "task_notes.get",
|
|
74883
|
+
"resource": "task_notes",
|
|
74884
|
+
"udfCapable": false,
|
|
74885
|
+
"operation": "get",
|
|
74886
|
+
"kind": "primitive",
|
|
74887
|
+
"endpoint": "GET /V1.0/Tasks/{parentId}/Notes/{id}",
|
|
74888
|
+
"effect": "read",
|
|
74889
|
+
"flags": [],
|
|
74890
|
+
"dryRun": false,
|
|
74891
|
+
"envelope": "ItemQueryResultModel[TaskNoteModel,TaskNote]",
|
|
74892
|
+
"inputSchema": {
|
|
74893
|
+
"parentId": {
|
|
74894
|
+
"type": "string | number",
|
|
74895
|
+
"required": true,
|
|
74896
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
74897
|
+
},
|
|
74898
|
+
"id": {
|
|
74899
|
+
"type": "string | number",
|
|
74900
|
+
"required": true,
|
|
74901
|
+
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
74902
|
+
},
|
|
74903
|
+
"opts": {
|
|
74904
|
+
"type": "object",
|
|
74905
|
+
"required": false,
|
|
74906
|
+
"description": "The read options bag (CLOSED): { fresh?: boolean } — fresh: true bypasses the read-cache lookup and refreshes the entry with the live response. Omitted: the cached read (default unchanged). A positional fresh via invoke is REFUSED (typed error, zero wire — the fresh invoke option is the only spelling); the typed method get(id, { fresh: true }) is unchanged.",
|
|
74907
|
+
"properties": [
|
|
74908
|
+
{
|
|
74909
|
+
"name": "fresh",
|
|
74910
|
+
"type": "boolean",
|
|
74911
|
+
"optional": true
|
|
74912
|
+
}
|
|
74913
|
+
]
|
|
74914
|
+
}
|
|
74915
|
+
},
|
|
74916
|
+
"inputSchemaStrict": true,
|
|
74917
|
+
"outputSchema": {
|
|
74918
|
+
"type": "ItemQueryResultModel[TaskNoteModel,TaskNote]",
|
|
74919
|
+
"drops": []
|
|
74920
|
+
},
|
|
74921
|
+
"examples": [
|
|
74922
|
+
"await client.taskNotes.get(7, 3)"
|
|
74923
|
+
],
|
|
74924
|
+
"permissions": "unknown",
|
|
74925
|
+
"pagination": {
|
|
74926
|
+
"mode": "none"
|
|
74927
|
+
},
|
|
74928
|
+
"resolution": null,
|
|
74929
|
+
"retry": {
|
|
74930
|
+
"preset": "retry-ffb3a9cb"
|
|
74931
|
+
},
|
|
74932
|
+
"errors": {
|
|
74933
|
+
"set": 3
|
|
74934
|
+
},
|
|
74935
|
+
"metadata": {
|
|
74936
|
+
"purpose": "Get one TaskNote by id.",
|
|
74937
|
+
"usage": "item: null on the 200 body maps to NotFoundError (vendor not-found signal). Parent-scoped: parentId + id.",
|
|
74938
|
+
"preferredWhen": "Preferred when the parent task ID and note ID are known; use a bounded taskID-filtered query to discover notes.",
|
|
74939
|
+
"related": [],
|
|
74940
|
+
"args": "args are (parentId: number, id: number) Item GET returns the FULL vendor model — the vendor documents no field selection on single-record reads. For a slim record use a task_notes.query with includeFields.",
|
|
74941
|
+
"untrustedFields": [
|
|
74942
|
+
"description",
|
|
74943
|
+
"title"
|
|
74944
|
+
]
|
|
74945
|
+
},
|
|
74946
|
+
"compact": null,
|
|
74947
|
+
"status": "tested"
|
|
74948
|
+
},
|
|
74949
|
+
{
|
|
74950
|
+
"id": "task_notes.getEntityInfo",
|
|
74951
|
+
"resource": "task_notes",
|
|
74952
|
+
"udfCapable": false,
|
|
74953
|
+
"operation": "getEntityInfo",
|
|
74954
|
+
"kind": "primitive",
|
|
74955
|
+
"endpoint": "GET /V1.0/TaskNotes/entityInformation",
|
|
74956
|
+
"effect": "read",
|
|
74957
|
+
"flags": [],
|
|
74958
|
+
"dryRun": false,
|
|
74959
|
+
"envelope": "EntityInformationResultModel",
|
|
74960
|
+
"inputSchema": {},
|
|
74961
|
+
"inputSchemaStrict": true,
|
|
74962
|
+
"outputSchema": {
|
|
74963
|
+
"type": "EntityInformationResultModel",
|
|
74964
|
+
"drops": []
|
|
74965
|
+
},
|
|
74966
|
+
"examples": [
|
|
74967
|
+
"await client.taskNotes.getEntityInfo()"
|
|
74968
|
+
],
|
|
74969
|
+
"permissions": "unknown",
|
|
74970
|
+
"pagination": {
|
|
74971
|
+
"mode": "none"
|
|
74972
|
+
},
|
|
74973
|
+
"resolution": null,
|
|
74974
|
+
"retry": {
|
|
74975
|
+
"preset": "retry-ffb3a9cb"
|
|
74976
|
+
},
|
|
74977
|
+
"errors": {
|
|
74978
|
+
"set": 0
|
|
74979
|
+
},
|
|
74980
|
+
"metadata": {
|
|
74981
|
+
"purpose": "Get the TaskNote capability metadata (canCreate/canUpdate/hasUserDefinedFields/...).",
|
|
74982
|
+
"usage": "Unwraps info{}; drives client-side capability checks.",
|
|
74983
|
+
"preferredWhen": null,
|
|
74984
|
+
"related": [
|
|
74985
|
+
"task_notes.getFieldInfo"
|
|
74986
|
+
],
|
|
74987
|
+
"untrustedFields": [
|
|
74988
|
+
"description",
|
|
74989
|
+
"title"
|
|
74990
|
+
]
|
|
74991
|
+
},
|
|
74992
|
+
"compact": null,
|
|
74993
|
+
"status": "tested"
|
|
74994
|
+
},
|
|
74995
|
+
{
|
|
74996
|
+
"id": "task_notes.getFieldInfo",
|
|
74997
|
+
"resource": "task_notes",
|
|
74998
|
+
"udfCapable": false,
|
|
74999
|
+
"operation": "getFieldInfo",
|
|
75000
|
+
"kind": "primitive",
|
|
75001
|
+
"endpoint": "GET /V1.0/TaskNotes/entityInformation/fields",
|
|
75002
|
+
"effect": "read",
|
|
75003
|
+
"flags": [],
|
|
75004
|
+
"dryRun": false,
|
|
75005
|
+
"envelope": "FieldInformationResultModel",
|
|
75006
|
+
"inputSchema": {},
|
|
75007
|
+
"inputSchemaStrict": true,
|
|
75008
|
+
"outputSchema": {
|
|
75009
|
+
"type": "FieldInformationResultModel",
|
|
75010
|
+
"drops": []
|
|
75011
|
+
},
|
|
75012
|
+
"examples": [
|
|
75013
|
+
"await client.taskNotes.getFieldInfo()"
|
|
75014
|
+
],
|
|
75015
|
+
"permissions": "unknown",
|
|
75016
|
+
"pagination": {
|
|
75017
|
+
"mode": "none"
|
|
75018
|
+
},
|
|
75019
|
+
"resolution": null,
|
|
75020
|
+
"retry": {
|
|
75021
|
+
"preset": "retry-ffb3a9cb"
|
|
75022
|
+
},
|
|
75023
|
+
"errors": {
|
|
75024
|
+
"set": 0
|
|
75025
|
+
},
|
|
75026
|
+
"metadata": {
|
|
75027
|
+
"purpose": "Get the TaskNote field catalog (types, picklists, required, maxLength) — the full raw field dump (the largest read of the info trio; compact discovery: operations.fieldCatalog).",
|
|
75028
|
+
"usage": "Unwraps fields[]; full raw field dump — the largest read of the info trio (compact discovery: operations.fieldCatalog); the raw dump is also the basis for UDF handling.",
|
|
75029
|
+
"preferredWhen": null,
|
|
75030
|
+
"related": [
|
|
75031
|
+
"task_notes.getEntityInfo",
|
|
75032
|
+
"task_notes.getUdfInfo"
|
|
75033
|
+
],
|
|
75034
|
+
"untrustedFields": [
|
|
75035
|
+
"description",
|
|
75036
|
+
"title"
|
|
75037
|
+
]
|
|
75038
|
+
},
|
|
75039
|
+
"compact": null,
|
|
75040
|
+
"status": "tested"
|
|
75041
|
+
},
|
|
75042
|
+
{
|
|
75043
|
+
"id": "task_notes.getUdfInfo",
|
|
75044
|
+
"resource": "task_notes",
|
|
75045
|
+
"udfCapable": false,
|
|
75046
|
+
"operation": "getUdfInfo",
|
|
75047
|
+
"kind": "primitive",
|
|
75048
|
+
"endpoint": "GET /V1.0/TaskNotes/entityInformation/userDefinedFields",
|
|
75049
|
+
"effect": "read",
|
|
75050
|
+
"flags": [],
|
|
75051
|
+
"dryRun": false,
|
|
75052
|
+
"envelope": "UserDefinedFieldInformationResultModel",
|
|
75053
|
+
"inputSchema": {},
|
|
75054
|
+
"inputSchemaStrict": true,
|
|
75055
|
+
"outputSchema": {
|
|
75056
|
+
"type": "UserDefinedFieldInformationResultModel",
|
|
75057
|
+
"drops": []
|
|
75058
|
+
},
|
|
75059
|
+
"examples": [
|
|
75060
|
+
"await client.taskNotes.getUdfInfo()"
|
|
75061
|
+
],
|
|
75062
|
+
"permissions": "unknown",
|
|
75063
|
+
"pagination": {
|
|
75064
|
+
"mode": "none"
|
|
75065
|
+
},
|
|
75066
|
+
"resolution": null,
|
|
75067
|
+
"retry": {
|
|
75068
|
+
"preset": "retry-ffb3a9cb"
|
|
75069
|
+
},
|
|
75070
|
+
"errors": {
|
|
75071
|
+
"set": 0
|
|
75072
|
+
},
|
|
75073
|
+
"metadata": {
|
|
75074
|
+
"purpose": "Get the TaskNote user-defined-field catalog.",
|
|
75075
|
+
"usage": "Unwraps fields[]; only meaningful where the entity is UDF-capable. (entity is not UDF-capable; catalog is expected empty).",
|
|
75076
|
+
"preferredWhen": null,
|
|
75077
|
+
"related": [
|
|
75078
|
+
"task_notes.getFieldInfo"
|
|
75079
|
+
],
|
|
75080
|
+
"untrustedFields": [
|
|
75081
|
+
"description",
|
|
75082
|
+
"title"
|
|
75083
|
+
]
|
|
75084
|
+
},
|
|
75085
|
+
"compact": null,
|
|
75086
|
+
"status": "tested"
|
|
75087
|
+
},
|
|
75088
|
+
{
|
|
75089
|
+
"id": "task_notes.query",
|
|
75090
|
+
"resource": "task_notes",
|
|
75091
|
+
"udfCapable": false,
|
|
75092
|
+
"operation": "query",
|
|
75093
|
+
"kind": "primitive",
|
|
75094
|
+
"endpoint": "GET|POST /V1.0/TaskNotes/query",
|
|
75095
|
+
"effect": "read",
|
|
75096
|
+
"flags": [],
|
|
75097
|
+
"dryRun": false,
|
|
75098
|
+
"envelope": "QueryActionResult[<Model>,<Entity>]",
|
|
75099
|
+
"inputSchema": {
|
|
75100
|
+
"params": {
|
|
75101
|
+
"type": "object",
|
|
75102
|
+
"required": false,
|
|
75103
|
+
"description": "The query params object (CLOSED — unknown keys are refused pre-request with a typed error naming the key + the valid keys): { filter?: FilterCondition[], limit?: number (total cap, default 500, max 2500 — NOT a page size), latest?: number (1-2500; the N highest-id rows — the vendor has no sort; count-probe + id-threshold semantics, see docs/API.md §4; the same-process latest-walk count probes are briefly cached per client — a 30 s TTL, cleared on a write through this client (a probe in flight across the write is discarded by the cache's invalidation epoch); the plain count op and aggregate stay fresh; limit and latest may coexist only when limit >= latest), noteChars?: number (integer >= 1; opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result), includeFields?: string[], fieldCheck?: boolean (default true: every includeFields NAME and every filter condition FIELD NAME is checked pre-request against the live field set (the vendored spec when that read faults — the resource's plan-pinned live-only fields, metadata.liveOnlyFields, are exempt from the vendored refusal: the live entity carries them and the vendor model omits them (e.g. time_entries postedDate/postedOnTime) — a truly unknown name is still refused); a refusal costs zero QUERY wire — the query POST and the count probe that anchors latest are never issued, a COLD fieldCache performs one authority metadata GET first (zero on a warm one); the one udf:true condition per query is exempt (a tenant UDF name is absent from the vendored spec by definition); false disables both name checks, never the shape/grammar checks; the count verb's bag is name-checked the same way and carries the same fieldCheck opt-out; a direct queryBounded/queryAll call is not checked (no bag contract there)), names?: boolean (absent = the client's labels option — OFF by default (the label pass costs a field-catalog read + up to 20 cold name reads per call; the MCP server (iit-mcp-autotask) enables the client labels option when it re-pins to this version (downstream)); true adds the row label siblings: picklist <field>Label (statusLabel), <fk>Name for companyID/contractID/ticketID/roleID/billingCodeID/*ResourceID (contractIDName, assignedResourceIDName) — null, never missing, when the field is keyed with a null value, a 0 id or an unresolved value (a picklist 0 is labelled when the picklist defines it); a names summary appears only when something was left unlabelled (the 20 uncached name-read cap or an unresolved picklist value); false = raw ids, ~30% smaller on a full tickets row), via?: \"post\" | \"get\" (vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected to read over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result's scopeNote says so), walk?: object (walk.maxRows: positive integer — (D6): the walk's TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result's truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) }. Filter grammar: 13 operators (eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn; in/notIn: array or \"1,2,3\") + and/or grouping (no not-group); field names in vendor API casing (via operations.fieldCatalog); caps: 500 OR-conditions / 1 UDF / 8000 chars.",
|
|
75104
|
+
"properties": [
|
|
75105
|
+
{
|
|
75106
|
+
"name": "filter",
|
|
75107
|
+
"type": "FilterCondition[]",
|
|
75108
|
+
"optional": true
|
|
75109
|
+
},
|
|
75110
|
+
{
|
|
75111
|
+
"name": "limit",
|
|
75112
|
+
"type": "number",
|
|
75113
|
+
"optional": true,
|
|
75114
|
+
"default": 500
|
|
75115
|
+
},
|
|
75116
|
+
{
|
|
75117
|
+
"name": "latest",
|
|
75118
|
+
"type": "number",
|
|
75119
|
+
"optional": true
|
|
75120
|
+
},
|
|
75121
|
+
{
|
|
75122
|
+
"name": "noteChars",
|
|
75123
|
+
"type": "number",
|
|
75124
|
+
"optional": true
|
|
75125
|
+
},
|
|
75126
|
+
{
|
|
75127
|
+
"name": "includeFields",
|
|
75128
|
+
"type": "string[]",
|
|
75129
|
+
"optional": true
|
|
75130
|
+
},
|
|
75131
|
+
{
|
|
75132
|
+
"name": "fieldCheck",
|
|
75133
|
+
"type": "boolean",
|
|
75134
|
+
"optional": true,
|
|
75135
|
+
"default": true
|
|
75136
|
+
},
|
|
75137
|
+
{
|
|
75138
|
+
"name": "names",
|
|
75139
|
+
"type": "boolean",
|
|
75140
|
+
"optional": true
|
|
75141
|
+
},
|
|
75142
|
+
{
|
|
75143
|
+
"name": "via",
|
|
75144
|
+
"type": "\"post\" | \"get\"",
|
|
75145
|
+
"optional": true
|
|
75146
|
+
},
|
|
75147
|
+
{
|
|
75148
|
+
"name": "acknowledgeUnscoped",
|
|
75149
|
+
"type": "boolean",
|
|
75150
|
+
"optional": true
|
|
75151
|
+
},
|
|
75152
|
+
{
|
|
75153
|
+
"name": "walk",
|
|
75154
|
+
"type": "object",
|
|
75155
|
+
"optional": true
|
|
75156
|
+
}
|
|
75157
|
+
]
|
|
75158
|
+
}
|
|
75159
|
+
},
|
|
75160
|
+
"inputSchemaStrict": true,
|
|
75161
|
+
"outputSchema": {
|
|
75162
|
+
"type": "QueryActionResult[<Model>,<Entity>]",
|
|
75163
|
+
"drops": []
|
|
75164
|
+
},
|
|
75165
|
+
"examples": [
|
|
75166
|
+
"await invoke(client, 'task_notes.query', [{ filter: [{ field: 'taskID', op: 'eq', value: 7 }], limit: 25 }])"
|
|
75167
|
+
],
|
|
75168
|
+
"permissions": "unknown",
|
|
75169
|
+
"pagination": {
|
|
75170
|
+
"mode": "cursor",
|
|
75171
|
+
"vendorDefault": 10,
|
|
75172
|
+
"vendorMax": 500,
|
|
75173
|
+
"pageGuard": 1000,
|
|
75174
|
+
"queryBounded": {
|
|
75175
|
+
"default": 500,
|
|
75176
|
+
"max": 2500
|
|
75177
|
+
}
|
|
75178
|
+
},
|
|
75179
|
+
"resolution": null,
|
|
75180
|
+
"retry": {
|
|
75181
|
+
"preset": "retry-ffb3a9cb"
|
|
75182
|
+
},
|
|
75183
|
+
"errors": {
|
|
75184
|
+
"set": 4
|
|
75185
|
+
},
|
|
75186
|
+
"metadata": {
|
|
75187
|
+
"purpose": "Query TaskNote records with a JSON filter.",
|
|
75188
|
+
"usage": "Server-side pagination: one call walks the vendor cursor internally (page 1 POSTs the QueryModel body with MaxRecords = the walk's internal page size (at most 500; the default POST path — `via: 'get'` issues a GET on page 1); later pages POST the SAME body — IncludeFields, MaxRecords and the preserved filter — to the absolute vendor cursor, rebased to the client base URL; the vendor honours IncludeFields on a continuation and ignores MaxRecords there, so a later page carries the vendor's own page size) until the limit is met or the cursor is null; 1000-page guard (hasMore stays true at the guard). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. noteChars: N (integer >= 1) is an opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose — the same set the server wraps): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result (zero wire — response-side only). latest: N returns the N highest-id rows (id-descending): the vendor has no sort parameter — this is the only ordering channel, and a date window in `filter` narrows the cost; count-anchored — C ≤ 2500 → one count + a ≤6-page walk of the matching set, C > 2500 → count probes + an id-threshold window (≤64 probes; LATEST_THRESHOLD_UNRESOLVED on budget exhaustion), a blind count → a bounded walk with the blind-surface stamp (LATEST_WINDOW_INCOMPLETE on a truncated walk). Parent-scoped entity: the query stays global (filter with taskID eq <parentId> where the parent is known). Explicit walk.maxRows independently sets the TOTAL returned-row cap (including export-sized walks); the ordinary limit is still validated in 1..2500 and only bounds the internal page size for this form. hasMore and truncated remain true at the page guard or while a cursor or unserved fetched rows remain. Self-resource prefixes are accepted in filter fields and includeFields; dotted UDF names are always refused before metadata or vendor requests, never rewritten to another tenant UDF.",
|
|
75189
|
+
"preferredWhen": "Default for filtered reads (the bounded query op). queryAll is the unbounded raw walk — only when you need the ENTIRE set and accept a large payload; default to the bounded query op. Prefer an includeFields subset over the full model (field names via operations.fieldCatalog). latest: N is the latest-N rows (id-descending) when the newest rows are the goal (the vendor has no sort — count-anchored, docs/API.md §4). Prefer a hand-listed includeFields for common narrow reads (removed the closed fieldsPreset presets — the v1 billing_join field list for billing_items.query, if you need it, is: companyID, ticketID, projectID, timeEntryID, contractServiceID, contractID, billingCodeID, expenseItemID, itemDate, quantity, rate, extendedPrice, totalAmount, nonBillable); noteChars: N caps the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose) to N chars each with the explicit … [+N chars truncated] marker (opt-in; the raw result when absent).",
|
|
75190
|
+
"related": [],
|
|
75191
|
+
"args": "args[0] is a params object: { filter?: FilterCondition[], limit?: total cap (default 500, max 2500; server-side pagination), latest?: number (1-2500 — the N highest-id rows; the vendor has no sort parameter, so this is a count-anchored mechanism — see docs/API.md §4; coexists with limit only when limit >= latest), noteChars?: number (integer >= 1 — opt-in per-field char cap on the untrusted-class free-text fields of the resource (notes/descriptions/UDF prose): each capped value = the first N chars + the explicit marker … [+N chars truncated] (N = chars removed), applied at result-build BEFORE the server-side untrusted wrapper; absent = the raw, untruncated result) maxRecords?: page size — raw SDK `queryAll`/`query` walks only (this bounded query ignores it; the invoke bag refuses it — pass limit), includeFields?: string[], fieldCheck?: boolean (default true — the pre-request field-name check on includeFields names and filter condition fields; false disables it — consumed by the invoke router, never sent to the vendor), via?: \"post\" | \"get\" (the wire method; the vendor GET has a 2048-char cap), acknowledgeUnscoped?: boolean (query verb only; a walk expected over 500 rows with no id scope in the filter is guarded — one pre-flight <resource>.count, and a count over 500 refuses with the typed SCOPE_REQUIRED before the walk; true walks the unscoped set anyway; a count that fails or is blind lets the walk run and the result’s scopeNote says so), walk?: { maxRows: positive integer (D6: the walk’s TOTAL row cap — serves at most maxRows rows in total; the page size stays min(500, limit), so one vendor page may fetch more rows than maxRows and the surplus is sliced off (fetched, not served); the result’s truncated flag — false only when the cursor is exhausted, true iff more rows exist past the cap (so an exact-multiple count with a live next page reports true); not combinable with latest) } }. Filter grammar: 13 operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn (in/notIn: array or '1,2,3') + and/or grouping (no not-group). Field names in vendor API casing — get them via operations.fieldCatalog. Caps: 500 OR-conditions / 1 UDF / 8000 chars. By default the FULL vendor model is returned (all fields). To slim the payload for context savings pass includeFields with the exact vendor field names you need (discover them via operations.fieldCatalog); only those fields + id come back. The subset persists across the internal page walk.",
|
|
75192
|
+
"untrustedFields": [
|
|
75193
|
+
"description",
|
|
75194
|
+
"title"
|
|
75195
|
+
]
|
|
75196
|
+
},
|
|
75197
|
+
"compact": null,
|
|
75198
|
+
"status": "tested"
|
|
75199
|
+
},
|
|
75200
|
+
{
|
|
75201
|
+
"id": "task_notes.update",
|
|
75202
|
+
"resource": "task_notes",
|
|
75203
|
+
"udfCapable": false,
|
|
75204
|
+
"operation": "update",
|
|
75205
|
+
"kind": "primitive",
|
|
75206
|
+
"endpoint": "PUT|PATCH /V1.0/Tasks/{parentId}/Notes",
|
|
75207
|
+
"effect": "write",
|
|
75208
|
+
"flags": [
|
|
75209
|
+
"idempotent"
|
|
75210
|
+
],
|
|
75211
|
+
"dryRun": true,
|
|
75212
|
+
"envelope": "OperationResultModel",
|
|
75213
|
+
"inputSchema": {
|
|
75214
|
+
"parentId": {
|
|
75215
|
+
"type": "string | number",
|
|
75216
|
+
"required": true,
|
|
75217
|
+
"description": "The parent record id (parent-scoped collection; number, or a canonical integer string)."
|
|
75218
|
+
},
|
|
75219
|
+
"id": {
|
|
75220
|
+
"type": "string | number",
|
|
75221
|
+
"required": true,
|
|
75222
|
+
"description": "The record id (number, or a canonical integer string — ids beyond 2^53 are supported via the string form)."
|
|
75223
|
+
},
|
|
75224
|
+
"data": {
|
|
75225
|
+
"type": "object",
|
|
75226
|
+
"required": true,
|
|
75227
|
+
"description": "The record payload (vendor model fields)."
|
|
75228
|
+
}
|
|
75229
|
+
},
|
|
75230
|
+
"inputSchemaStrict": true,
|
|
75231
|
+
"outputSchema": {
|
|
75232
|
+
"type": "OperationResultModel",
|
|
75233
|
+
"drops": []
|
|
75234
|
+
},
|
|
75235
|
+
"examples": [
|
|
75236
|
+
"await client.taskNotes.update(7, 3, { description: 'Updated progress' }, { dryRun: true })"
|
|
75237
|
+
],
|
|
75238
|
+
"permissions": "unknown",
|
|
75239
|
+
"pagination": {
|
|
75240
|
+
"mode": "none"
|
|
75241
|
+
},
|
|
75242
|
+
"resolution": null,
|
|
75243
|
+
"retry": {
|
|
75244
|
+
"preset": "retry-85897a3a"
|
|
75245
|
+
},
|
|
75246
|
+
"errors": {
|
|
75247
|
+
"set": 1
|
|
75248
|
+
},
|
|
75249
|
+
"metadata": {
|
|
75250
|
+
"purpose": "Update a task note.",
|
|
75251
|
+
"usage": "Issues PATCH on the collection (swagger documents put+patch there; the node strips the id from the path and the vendor keys the record by the id in the body). TaskNoteModel has no supported lastModifiedDate stale token; preview reads a fresh record, without promising an atomic vendor precondition. Parent-scoped: parentId + id. Description writes use plain text and can lose existing rich text/images. Parent taskID is the path argument; a supplied taskID must match. Current field metadata supplies picklist values; no numeric value is presumed valid. Baseline-project notes are read-only. Task Category settings may require title. Writable fields: description (max 3200), title (max 250), noteType, publish, createdByContactID and matching taskID; creator/date fields and UDF writes are refused.",
|
|
75252
|
+
"preferredWhen": "Use when an existing task note needs a supported field change.",
|
|
75253
|
+
"related": [
|
|
75254
|
+
"task_notes.get"
|
|
75255
|
+
],
|
|
75256
|
+
"untrustedFields": [
|
|
75257
|
+
"description",
|
|
75258
|
+
"title"
|
|
75259
|
+
]
|
|
75260
|
+
},
|
|
75261
|
+
"compact": null,
|
|
75262
|
+
"status": "tested"
|
|
75263
|
+
},
|
|
73449
75264
|
{
|
|
73450
75265
|
"id": "task_secondary_resources.count",
|
|
73451
75266
|
"resource": "task_secondary_resources",
|
|
@@ -82640,8 +84455,8 @@ const CAPABILITY_DATA = {
|
|
|
82640
84455
|
]
|
|
82641
84456
|
},
|
|
82642
84457
|
"operations": {
|
|
82643
|
-
"planHash": "
|
|
82644
|
-
"builtAt": "2026-11-
|
|
84458
|
+
"planHash": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
|
|
84459
|
+
"builtAt": "2026-11-18T13:26:09.224Z",
|
|
82645
84460
|
"records": [
|
|
82646
84461
|
{
|
|
82647
84462
|
"id": "operations.aggregate",
|