node-autotask 0.78.0 → 0.80.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/MCP_TOOL_CATALOG.json +265 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +959 -7
  5. package/dist/capabilities-data.js +958 -6
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-S7JH6K2Z.cjs → chunk-3VW75XKV.cjs} +310 -11
  9. package/dist/{chunk-3SYNF5QD.js → chunk-GRJE3IUU.js} +2 -2
  10. package/dist/{chunk-XBT332X7.js → chunk-JITS5NKE.js} +305 -6
  11. package/dist/{chunk-U7LVWEO4.cjs → chunk-OVP7IH6K.cjs} +199 -199
  12. package/dist/{chunk-YH5UCY2X.js → chunk-R4MKUN4N.js} +3 -3
  13. package/dist/{chunk-S7BJNQ2X.js → chunk-R6N7S6LC.js} +4 -2
  14. package/dist/{chunk-MVKI2AZX.cjs → chunk-TMJX6NTZ.cjs} +3 -3
  15. package/dist/{chunk-YONRIG6F.cjs → chunk-Z5QCH7JA.cjs} +32 -30
  16. package/dist/{index-BHqdOo_5.d.cts → index-BBc96jwe.d.cts} +91 -1
  17. package/dist/{index-BHqdOo_5.d.ts → index-BBc96jwe.d.ts} +91 -1
  18. package/dist/{index-DfcdtQO0.d.cts → index-CZaFISYn.d.cts} +4 -2
  19. package/dist/{index-ci3TSJrT.d.ts → index-mFUX-x9D.d.ts} +4 -2
  20. package/dist/index.cjs +84 -84
  21. package/dist/index.d.cts +3 -3
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.js +5 -5
  24. package/dist/operations/index.cjs +51 -51
  25. package/dist/operations/index.d.cts +4 -4
  26. package/dist/operations/index.d.ts +4 -4
  27. package/dist/operations/index.js +2 -2
  28. package/dist/pool.cjs +12 -12
  29. package/dist/pool.d.cts +1 -1
  30. package/dist/pool.d.ts +1 -1
  31. package/dist/pool.js +4 -4
  32. package/dist/resources/index.cjs +27 -27
  33. package/dist/resources/index.d.cts +2 -2
  34. package/dist/resources/index.d.ts +2 -2
  35. package/dist/resources/index.js +3 -3
  36. package/dist/types/index.d.cts +1 -1
  37. package/dist/types/index.d.ts +1 -1
  38. package/docs/API.md +4 -2
  39. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { loadCapabilityRecords } from './chunk-YH5UCY2X.js';
1
+ import { loadCapabilityRecords } from './chunk-R4MKUN4N.js';
2
2
  import { NoopLogger, REDACTED, deepMarkUntrusted, wrapUntrusted } from './chunk-7NKB4UXV.js';
3
3
  import { randomUUID, createHash } from 'crypto';
4
4
  import { AsyncLocalStorage } from 'async_hooks';
@@ -6123,7 +6123,24 @@ var RELATIONSHIP_MAP = {
6123
6123
  "segment": "Notes",
6124
6124
  "field": "projectID"
6125
6125
  },
6126
- "children": [],
6126
+ "children": [
6127
+ {
6128
+ "resource": "project_note_attachments",
6129
+ "apiEntity": "ProjectNoteAttachment",
6130
+ "parentField": "projectNoteID",
6131
+ "parentSegment": "Attachments",
6132
+ "tier": "extended",
6133
+ "workflowResource": false,
6134
+ "specialOps": [],
6135
+ "searchCovers": null,
6136
+ "scopedOps": {
6137
+ "create": true,
6138
+ "query": true,
6139
+ "update": false,
6140
+ "delete": true
6141
+ }
6142
+ }
6143
+ ],
6127
6144
  "naturalKeys": {
6128
6145
  "hasSearch": false,
6129
6146
  "searchCovers": null,
@@ -6400,6 +6417,22 @@ var RELATIONSHIP_MAP = {
6400
6417
  "delete": false
6401
6418
  }
6402
6419
  },
6420
+ {
6421
+ "resource": "project_attachments",
6422
+ "apiEntity": "ProjectAttachment",
6423
+ "parentField": "projectID",
6424
+ "parentSegment": "Attachments",
6425
+ "tier": "extended",
6426
+ "workflowResource": false,
6427
+ "specialOps": [],
6428
+ "searchCovers": null,
6429
+ "scopedOps": {
6430
+ "create": true,
6431
+ "query": true,
6432
+ "update": false,
6433
+ "delete": true
6434
+ }
6435
+ },
6403
6436
  {
6404
6437
  "resource": "project_charges",
6405
6438
  "apiEntity": "ProjectCharge",
@@ -10153,6 +10186,141 @@ var RELATIONSHIP_MAP = {
10153
10186
  },
10154
10187
  "deleteBoundary": null,
10155
10188
  "markerField": null
10189
+ },
10190
+ "project_attachments": {
10191
+ "resource": "project_attachments",
10192
+ "apiEntity": "ProjectAttachment",
10193
+ "kind": "entity",
10194
+ "path": "ProjectAttachments",
10195
+ "parentScoped": true,
10196
+ "tier": "extended",
10197
+ "workflowResource": false,
10198
+ "group": "A",
10199
+ "parent": {
10200
+ "resource": "projects",
10201
+ "segment": "Attachments",
10202
+ "field": "projectID"
10203
+ },
10204
+ "children": [],
10205
+ "naturalKeys": {
10206
+ "hasSearch": false,
10207
+ "searchCovers": null,
10208
+ "findBy": []
10209
+ },
10210
+ "blindSurfaces": null,
10211
+ "zoneFacts": {
10212
+ "createGuidance": {
10213
+ "createOp": "project_attachments.create",
10214
+ "parentScoped": true,
10215
+ "liveProvenPrefix": [],
10216
+ "unproven": true,
10217
+ "blocker": {
10218
+ "kind": "unknown",
10219
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
10220
+ "remedy": "Read current field and picklist metadata, supply the project id, and preview the attachment before applying.",
10221
+ "requires": {
10222
+ "allOf": [
10223
+ "attachmentType",
10224
+ "fullPath",
10225
+ "title",
10226
+ "publish",
10227
+ "data"
10228
+ ]
10229
+ }
10230
+ },
10231
+ "requiresByValue": [
10232
+ {
10233
+ "field": "attachmentType",
10234
+ "value": "FILE_ATTACHMENT",
10235
+ "requires": {
10236
+ "allOf": [
10237
+ "data"
10238
+ ]
10239
+ }
10240
+ }
10241
+ ],
10242
+ "vendorEvidence": [
10243
+ "Official ProjectAttachmentsEntity.htm and REST_Attachments.htm: Projects is the parent; file creation requires attachmentType, title, fullPath, publish and base64 data. Project queries include child project-note attachments; no nesting. Static contract, with live create unproven."
10244
+ ],
10245
+ "deleteBoundary": {
10246
+ "available": true,
10247
+ "note": null
10248
+ },
10249
+ "parentCompany": {
10250
+ "via": "projectID",
10251
+ "resource": "projects",
10252
+ "field": "companyID"
10253
+ }
10254
+ }
10255
+ },
10256
+ "deleteBoundary": null,
10257
+ "markerField": null
10258
+ },
10259
+ "project_note_attachments": {
10260
+ "resource": "project_note_attachments",
10261
+ "apiEntity": "ProjectNoteAttachment",
10262
+ "kind": "entity",
10263
+ "path": "ProjectNoteAttachments",
10264
+ "parentScoped": true,
10265
+ "tier": "extended",
10266
+ "workflowResource": false,
10267
+ "group": "A",
10268
+ "parent": {
10269
+ "resource": "project_notes",
10270
+ "segment": "Attachments",
10271
+ "field": "projectNoteID"
10272
+ },
10273
+ "children": [],
10274
+ "naturalKeys": {
10275
+ "hasSearch": false,
10276
+ "searchCovers": null,
10277
+ "findBy": []
10278
+ },
10279
+ "blindSurfaces": null,
10280
+ "zoneFacts": {
10281
+ "createGuidance": {
10282
+ "createOp": "project_note_attachments.create",
10283
+ "parentScoped": true,
10284
+ "liveProvenPrefix": [],
10285
+ "unproven": true,
10286
+ "blocker": {
10287
+ "kind": "unknown",
10288
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
10289
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
10290
+ "requires": {
10291
+ "allOf": [
10292
+ "attachmentType",
10293
+ "fullPath",
10294
+ "title",
10295
+ "publish",
10296
+ "data"
10297
+ ]
10298
+ }
10299
+ },
10300
+ "requiresByValue": [
10301
+ {
10302
+ "field": "attachmentType",
10303
+ "value": "FILE_ATTACHMENT",
10304
+ "requires": {
10305
+ "allOf": [
10306
+ "data"
10307
+ ]
10308
+ }
10309
+ }
10310
+ ],
10311
+ "vendorEvidence": [
10312
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ProjectNoteAttachmentsEntity.htm",
10313
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
10314
+ "Official ProjectNoteAttachments entity documentation and vendored ProjectNoteAttachments controllers define scoped ProjectNotes attachment routes. parentAttachmentID is read-only; project notes cannot have nested attachments. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
10315
+ ],
10316
+ "deleteBoundary": {
10317
+ "available": true,
10318
+ "note": null
10319
+ }
10320
+ }
10321
+ },
10322
+ "deleteBoundary": null,
10323
+ "markerField": null
10156
10324
  }
10157
10325
  };
10158
10326
  var BLIND_SURFACE_STAMPS = {
@@ -13313,6 +13481,50 @@ var CREATE_GUIDANCE = {
13313
13481
  "note": "the vendor defines no DELETE for products (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only."
13314
13482
  }
13315
13483
  },
13484
+ {
13485
+ "resource": "project_attachments",
13486
+ "createOp": "project_attachments.create",
13487
+ "parentScoped": true,
13488
+ "liveProvenPrefix": [],
13489
+ "unproven": true,
13490
+ "blocker": {
13491
+ "kind": "unknown",
13492
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
13493
+ "remedy": "Read current field and picklist metadata, supply the project id, and preview the attachment before applying.",
13494
+ "requires": {
13495
+ "allOf": [
13496
+ "attachmentType",
13497
+ "fullPath",
13498
+ "title",
13499
+ "publish",
13500
+ "data"
13501
+ ]
13502
+ }
13503
+ },
13504
+ "vendorEvidence": [
13505
+ "Official ProjectAttachmentsEntity.htm and REST_Attachments.htm: Projects is the parent; file creation requires attachmentType, title, fullPath, publish and base64 data. Project queries include child project-note attachments; no nesting. Static contract, with live create unproven."
13506
+ ],
13507
+ "deleteBoundary": {
13508
+ "available": true,
13509
+ "note": null
13510
+ },
13511
+ "requiresByValue": [
13512
+ {
13513
+ "field": "attachmentType",
13514
+ "value": "FILE_ATTACHMENT",
13515
+ "requires": {
13516
+ "allOf": [
13517
+ "data"
13518
+ ]
13519
+ }
13520
+ }
13521
+ ],
13522
+ "parentCompany": {
13523
+ "via": "projectID",
13524
+ "resource": "projects",
13525
+ "field": "companyID"
13526
+ }
13527
+ },
13316
13528
  {
13317
13529
  "resource": "project_charges",
13318
13530
  "createOp": "project_charges.create",
@@ -13347,6 +13559,47 @@ var CREATE_GUIDANCE = {
13347
13559
  "field": "companyID"
13348
13560
  }
13349
13561
  },
13562
+ {
13563
+ "resource": "project_note_attachments",
13564
+ "createOp": "project_note_attachments.create",
13565
+ "parentScoped": true,
13566
+ "liveProvenPrefix": [],
13567
+ "unproven": true,
13568
+ "blocker": {
13569
+ "kind": "unknown",
13570
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
13571
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
13572
+ "requires": {
13573
+ "allOf": [
13574
+ "attachmentType",
13575
+ "fullPath",
13576
+ "title",
13577
+ "publish",
13578
+ "data"
13579
+ ]
13580
+ }
13581
+ },
13582
+ "vendorEvidence": [
13583
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ProjectNoteAttachmentsEntity.htm",
13584
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
13585
+ "Official ProjectNoteAttachments entity documentation and vendored ProjectNoteAttachments controllers define scoped ProjectNotes attachment routes. parentAttachmentID is read-only; project notes cannot have nested attachments. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
13586
+ ],
13587
+ "deleteBoundary": {
13588
+ "available": true,
13589
+ "note": null
13590
+ },
13591
+ "requiresByValue": [
13592
+ {
13593
+ "field": "attachmentType",
13594
+ "value": "FILE_ATTACHMENT",
13595
+ "requires": {
13596
+ "allOf": [
13597
+ "data"
13598
+ ]
13599
+ }
13600
+ }
13601
+ ]
13602
+ },
13350
13603
  {
13351
13604
  "resource": "project_notes",
13352
13605
  "createOp": "project_notes.create",
@@ -14457,7 +14710,7 @@ var CREATE_GUIDANCE = {
14457
14710
  }
14458
14711
  ],
14459
14712
  "counts": {
14460
- "total": 108,
14713
+ "total": 110,
14461
14714
  "byKind": {
14462
14715
  "ok": 41,
14463
14716
  "blind-reference": 16,
@@ -14467,7 +14720,7 @@ var CREATE_GUIDANCE = {
14467
14720
  "resource-role-pair": 2,
14468
14721
  "delete-absent": 0,
14469
14722
  "non-mutable": 0,
14470
- "unknown": 32
14723
+ "unknown": 34
14471
14724
  }
14472
14725
  }
14473
14726
  };
@@ -15209,6 +15462,12 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
15209
15462
  ],
15210
15463
  "configuration_item_note_attachments": [
15211
15464
  "title"
15465
+ ],
15466
+ "project_attachments": [
15467
+ "title"
15468
+ ],
15469
+ "project_note_attachments": [
15470
+ "title"
15212
15471
  ]
15213
15472
  };
15214
15473
 
@@ -18271,7 +18530,9 @@ var MODEL_FIELD_SETS = {
18271
18530
  "phases": ["id", "createDate", "creatorResourceID", "description", "dueDate", "estimatedHours", "externalID", "isScheduled", "lastActivityDateTime", "parentPhaseID", "phaseNumber", "projectID", "startDate", "title", "soapParentPropertyId"],
18272
18531
  "product_vendors": ["id", "isActive", "isDefault", "productID", "vendorCost", "vendorID", "vendorPartNumber", "soapParentPropertyId"],
18273
18532
  "products": ["id", "billingType", "chargeBillingCodeID", "createdByResourceID", "createdTime", "defaultVendorID", "description", "doesNotRequireProcurement", "externalProductID", "impersonatorCreatorResourceID", "internalProductID", "isActive", "isEligibleForRma", "isSerialized", "link", "manufacturerName", "manufacturerProductName", "markupRate", "msrp", "name", "periodType", "priceCostMethod", "productBillingCodeID", "productCategory", "sku", "unitCost", "unitPrice", "vendorProductNumber", "defaultInstalledProductCategoryID", "userDefinedFields"],
18533
+ "project_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "projectID", "projectNoteID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18274
18534
  "project_charges": ["id", "billableAmount", "billingCodeID", "chargeType", "contractServiceBundleID", "contractServiceID", "createDate", "creatorResourceID", "datePurchased", "description", "estimatedCost", "extendedCost", "internalCurrencyBillableAmount", "internalCurrencyUnitPrice", "internalPurchaseOrderNumber", "isBillableToCompany", "isBilled", "name", "notes", "organizationalLevelAssociationID", "productID", "projectID", "purchaseOrderNumber", "status", "statusLastModifiedBy", "statusLastModifiedDate", "unitCost", "unitPrice", "unitQuantity", "soapParentPropertyId"],
18535
+ "project_note_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentAttachmentID", "parentID", "projectID", "projectNoteID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18275
18536
  "project_notes": ["id", "createDateTime", "createdByContactID", "creatorResourceID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "isAnnouncement", "lastActivityDate", "noteType", "projectID", "publish", "title", "soapParentPropertyId"],
18276
18537
  "projects": ["id", "actualBilledHours", "actualHours", "changeOrdersBudget", "changeOrdersRevenue", "companyID", "companyOwnerResourceID", "completedDateTime", "completedPercentage", "contractID", "createDateTime", "creatorResourceID", "department", "description", "duration", "endDateTime", "estimatedSalesCost", "estimatedTime", "extProjectNumber", "extProjectType", "impersonatorCreatorResourceID", "laborEstimatedCosts", "laborEstimatedMarginPercentage", "laborEstimatedRevenue", "lastActivityDateTime", "lastActivityPersonType", "lastActivityResourceID", "opportunityID", "organizationalLevelAssociationID", "originalEstimatedRevenue", "projectCostEstimatedMarginPercentage", "projectCostsBudget", "projectCostsRevenue", "projectLeadResourceID", "projectName", "projectNumber", "projectType", "purchaseOrderNumber", "sgda", "startDateTime", "status", "statusDateTime", "statusDetail", "userDefinedFields"],
18277
18538
  "purchase_approvals": ["id", "costType", "isApproved", "rejectNote"],
@@ -18371,7 +18632,9 @@ var MODEL_DATE_FIELDS = {
18371
18632
  "opportunity_attachments": ["attachDate"],
18372
18633
  "phases": ["createDate", "dueDate", "lastActivityDateTime", "startDate"],
18373
18634
  "products": ["createdTime"],
18635
+ "project_attachments": ["attachDate"],
18374
18636
  "project_charges": ["createDate", "datePurchased", "statusLastModifiedDate"],
18637
+ "project_note_attachments": ["attachDate"],
18375
18638
  "project_notes": ["createDateTime", "lastActivityDate"],
18376
18639
  "projects": ["completedDateTime", "createDateTime", "endDateTime", "lastActivityDateTime", "startDateTime", "statusDateTime"],
18377
18640
  "purchase_order_item_receiving": ["receiveDate"],
@@ -20747,6 +21010,8 @@ var WRITABLE2 = /* @__PURE__ */ new Set(["attachmentType", "contentType", "data"
20747
21010
  var FILE_WRITABLE = /* @__PURE__ */ new Set(["attachmentType", "data", "fullPath", "publish", "title"]);
20748
21011
  var NON_QUERYABLE = /* @__PURE__ */ new Set(["creatortype", "data", "filesize"]);
20749
21012
  var SCOPED_ATTACHMENT_PARENTS = {
21013
+ project_attachments: { field: "projectID", name: "project" },
21014
+ project_note_attachments: { field: "projectNoteID", name: "project note" },
20750
21015
  task_attachments: { field: "taskID", name: "task" },
20751
21016
  task_note_attachments: { field: "taskNoteID", name: "task note" },
20752
21017
  configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
@@ -20794,14 +21059,20 @@ function admitFileAttachment(resource, data, parentId) {
20794
21059
  if (data === null || typeof data !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(data))) fail2("data must be a plain record");
20795
21060
  const body = data;
20796
21061
  const reference = {
21062
+ project_attachments: void 0,
20797
21063
  task_note_attachments: "attachedByContactID",
21064
+ project_note_attachments: "attachedByContactID",
20798
21065
  configuration_item_attachments: "parentAttachmentID",
20799
21066
  configuration_item_note_attachments: void 0
20800
21067
  }[resource];
20801
21068
  for (const field of Object.keys(body)) if (!FILE_WRITABLE.has(field) && field !== reference) fail2(`${field} is not a supported create field`);
20802
21069
  if (body.attachmentType !== "FILE_ATTACHMENT") fail2("attachmentType must explicitly be FILE_ATTACHMENT; other attachment types are unsupported");
21070
+ const maxLength = resource === "project_attachments" ? void 0 : 255;
20803
21071
  for (const field of ["fullPath", "title"]) {
20804
- if (typeof body[field] !== "string" || body[field].trim() === "" || body[field].length > 255) fail2(`${field} is required and must be a nonblank string of at most 255 characters`);
21072
+ const value = body[field];
21073
+ const requirement = `${field} is required and must be a nonblank string${maxLength === void 0 ? "" : ` of at most ${maxLength} characters`}`;
21074
+ if (typeof value !== "string" || value.trim() === "") return fail2(requirement);
21075
+ if (maxLength !== void 0 && value.length > maxLength) fail2(requirement);
20805
21076
  }
20806
21077
  if (typeof body.publish !== "number" || !Number.isSafeInteger(body.publish)) fail2("publish must be an integer from current field metadata");
20807
21078
  if (typeof body.data !== "string" || !isBase64(body.data)) fail2("FILE_ATTACHMENT requires nonempty base64 data");
@@ -21726,6 +21997,20 @@ var SIMPLE_RESOURCES = [
21726
21997
  helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
21727
21998
  opForms: { get: "global", create: "global", update: "global" }
21728
21999
  },
22000
+ {
22001
+ key: "project_attachments",
22002
+ accessor: "projectAttachments",
22003
+ resourcePath: "/V1.0/ProjectAttachments",
22004
+ parentScopedPath: "/V1.0/Projects/{parentId}/Attachments",
22005
+ parentPath: "/V1.0/Projects",
22006
+ parentField: "projectID",
22007
+ deletable: true,
22008
+ udfCapable: false,
22009
+ attachmentGet: true,
22010
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
22011
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22012
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
22013
+ },
21729
22014
  {
21730
22015
  key: "project_charges",
21731
22016
  accessor: "projectCharges",
@@ -21740,6 +22025,20 @@ var SIMPLE_RESOURCES = [
21740
22025
  helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
21741
22026
  opForms: { get: "scoped", create: "scoped", update: "scoped", delete: "scoped" }
21742
22027
  },
22028
+ {
22029
+ key: "project_note_attachments",
22030
+ accessor: "projectNoteAttachments",
22031
+ resourcePath: "/V1.0/ProjectNoteAttachments",
22032
+ parentScopedPath: "/V1.0/ProjectNotes/{parentId}/Attachments",
22033
+ parentPath: "/V1.0/ProjectNotes",
22034
+ parentField: "projectNoteID",
22035
+ deletable: true,
22036
+ udfCapable: false,
22037
+ attachmentGet: true,
22038
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
22039
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22040
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
22041
+ },
21743
22042
  {
21744
22043
  key: "project_notes",
21745
22044
  accessor: "projectNotes",
@@ -22409,7 +22708,7 @@ var SIMPLE_RESOURCES = [
22409
22708
  var GenericResource = class extends BaseResource {
22410
22709
  constructor(http, config, pageSize) {
22411
22710
  super(http, config, pageSize);
22412
- if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
22711
+ if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "project_attachments", "project_note_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
22413
22712
  throw new OperationNotSupportedError(config.key, "getUdfInfo");
22414
22713
  };
22415
22714
  if (config.ops?.create === false || isScopedAttachmentResource(config.key) || ["company_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {