node-autotask 0.82.0 → 0.83.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 +6 -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-XJQYDJKB.cjs → chunk-5AHEJCSP.cjs} +32 -30
  9. package/dist/{chunk-EFINBMXE.cjs → chunk-C2AFRW5M.cjs} +297 -9
  10. package/dist/{chunk-HZGCJ2CQ.js → chunk-CV56RIGS.js} +292 -4
  11. package/dist/{chunk-EQ6LOII6.js → chunk-DBEAS3IR.js} +3 -3
  12. package/dist/{chunk-FYDLVUSN.js → chunk-HQJLIRXW.js} +4 -2
  13. package/dist/{chunk-5UR4L7SB.cjs → chunk-QCA5R7QF.cjs} +3 -3
  14. package/dist/{chunk-TZL45TYE.cjs → chunk-QEMBBAF5.cjs} +199 -199
  15. package/dist/{chunk-7PQKFGTI.js → chunk-ZKAJVHHZ.js} +2 -2
  16. package/dist/{index-inEhFJaU.d.cts → index-8Hg6dytT.d.cts} +88 -1
  17. package/dist/{index-inEhFJaU.d.ts → index-8Hg6dytT.d.ts} +88 -1
  18. package/dist/{index-Dt1KqDEQ.d.cts → index-DxESlIIg.d.cts} +4 -2
  19. package/dist/{index-CW3PJPqH.d.ts → index-nXhYAQOf.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-EQ6LOII6.js';
1
+ import { loadCapabilityRecords } from './chunk-DBEAS3IR.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';
@@ -5459,6 +5459,22 @@ var RELATIONSHIP_MAP = {
5459
5459
  "update": true,
5460
5460
  "delete": false
5461
5461
  }
5462
+ },
5463
+ {
5464
+ "resource": "expense_report_attachments",
5465
+ "apiEntity": "ExpenseReportAttachment",
5466
+ "parentField": "expenseReportID",
5467
+ "parentSegment": "Attachments",
5468
+ "tier": "extended",
5469
+ "workflowResource": false,
5470
+ "specialOps": [],
5471
+ "searchCovers": null,
5472
+ "scopedOps": {
5473
+ "create": true,
5474
+ "query": true,
5475
+ "update": false,
5476
+ "delete": true
5477
+ }
5462
5478
  }
5463
5479
  ],
5464
5480
  "naturalKeys": {
@@ -7145,6 +7161,22 @@ var RELATIONSHIP_MAP = {
7145
7161
  "group": "B",
7146
7162
  "parent": null,
7147
7163
  "children": [
7164
+ {
7165
+ "resource": "resource_attachments",
7166
+ "apiEntity": "ResourceAttachment",
7167
+ "parentField": "resourceID",
7168
+ "parentSegment": "Attachments",
7169
+ "tier": "extended",
7170
+ "workflowResource": false,
7171
+ "specialOps": [],
7172
+ "searchCovers": null,
7173
+ "scopedOps": {
7174
+ "create": true,
7175
+ "query": true,
7176
+ "update": false,
7177
+ "delete": true
7178
+ }
7179
+ },
7148
7180
  {
7149
7181
  "resource": "resource_role_queues",
7150
7182
  "apiEntity": "ResourceRoleQueue",
@@ -10492,6 +10524,138 @@ var RELATIONSHIP_MAP = {
10492
10524
  },
10493
10525
  "deleteBoundary": null,
10494
10526
  "markerField": null
10527
+ },
10528
+ "expense_report_attachments": {
10529
+ "resource": "expense_report_attachments",
10530
+ "apiEntity": "ExpenseReportAttachment",
10531
+ "kind": "entity",
10532
+ "path": "ExpenseReportAttachments",
10533
+ "parentScoped": true,
10534
+ "tier": "extended",
10535
+ "workflowResource": false,
10536
+ "group": "B",
10537
+ "parent": {
10538
+ "resource": "expense_reports",
10539
+ "segment": "Attachments",
10540
+ "field": "expenseReportID"
10541
+ },
10542
+ "children": [],
10543
+ "naturalKeys": {
10544
+ "hasSearch": false,
10545
+ "searchCovers": null,
10546
+ "findBy": []
10547
+ },
10548
+ "blindSurfaces": null,
10549
+ "zoneFacts": {
10550
+ "createGuidance": {
10551
+ "createOp": "expense_report_attachments.create",
10552
+ "parentScoped": true,
10553
+ "liveProvenPrefix": [],
10554
+ "unproven": true,
10555
+ "blocker": {
10556
+ "kind": "unknown",
10557
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
10558
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
10559
+ "requires": {
10560
+ "allOf": [
10561
+ "attachmentType",
10562
+ "fullPath",
10563
+ "title",
10564
+ "publish",
10565
+ "data"
10566
+ ]
10567
+ }
10568
+ },
10569
+ "requiresByValue": [
10570
+ {
10571
+ "field": "attachmentType",
10572
+ "value": "FILE_ATTACHMENT",
10573
+ "requires": {
10574
+ "allOf": [
10575
+ "data"
10576
+ ]
10577
+ }
10578
+ }
10579
+ ],
10580
+ "vendorEvidence": [
10581
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ExpenseReportAttachmentsEntity.htm",
10582
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
10583
+ "Official ExpenseReportAttachments entity documentation and vendored controllers define scoped ExpenseReports attachment routes. This parent does not support nesting or the documented contact-author override. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
10584
+ ],
10585
+ "deleteBoundary": {
10586
+ "available": true,
10587
+ "note": null
10588
+ }
10589
+ }
10590
+ },
10591
+ "deleteBoundary": null,
10592
+ "markerField": null
10593
+ },
10594
+ "resource_attachments": {
10595
+ "resource": "resource_attachments",
10596
+ "apiEntity": "ResourceAttachment",
10597
+ "kind": "entity",
10598
+ "path": "ResourceAttachments",
10599
+ "parentScoped": true,
10600
+ "tier": "extended",
10601
+ "workflowResource": false,
10602
+ "group": "B",
10603
+ "parent": {
10604
+ "resource": "resources",
10605
+ "segment": "Attachments",
10606
+ "field": "resourceID"
10607
+ },
10608
+ "children": [],
10609
+ "naturalKeys": {
10610
+ "hasSearch": false,
10611
+ "searchCovers": null,
10612
+ "findBy": []
10613
+ },
10614
+ "blindSurfaces": null,
10615
+ "zoneFacts": {
10616
+ "createGuidance": {
10617
+ "createOp": "resource_attachments.create",
10618
+ "parentScoped": true,
10619
+ "liveProvenPrefix": [],
10620
+ "unproven": true,
10621
+ "blocker": {
10622
+ "kind": "unknown",
10623
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
10624
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
10625
+ "requires": {
10626
+ "allOf": [
10627
+ "attachmentType",
10628
+ "fullPath",
10629
+ "title",
10630
+ "publish",
10631
+ "data"
10632
+ ]
10633
+ }
10634
+ },
10635
+ "requiresByValue": [
10636
+ {
10637
+ "field": "attachmentType",
10638
+ "value": "FILE_ATTACHMENT",
10639
+ "requires": {
10640
+ "allOf": [
10641
+ "data"
10642
+ ]
10643
+ }
10644
+ }
10645
+ ],
10646
+ "vendorEvidence": [
10647
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ResourceAttachmentsEntity.htm",
10648
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
10649
+ "Official ResourceAttachments entity documentation and vendored controllers define scoped Resources attachment routes. This parent does not support nesting or the documented contact-author override. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
10650
+ ],
10651
+ "deleteBoundary": {
10652
+ "available": true,
10653
+ "note": null
10654
+ }
10655
+ }
10656
+ },
10657
+ "deleteBoundary": null,
10658
+ "markerField": null
10495
10659
  }
10496
10660
  };
10497
10661
  var BLIND_SURFACE_STAMPS = {
@@ -13416,6 +13580,47 @@ var CREATE_GUIDANCE = {
13416
13580
  "note": "the vendor defines no DELETE for expense_items (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."
13417
13581
  }
13418
13582
  },
13583
+ {
13584
+ "resource": "expense_report_attachments",
13585
+ "createOp": "expense_report_attachments.create",
13586
+ "parentScoped": true,
13587
+ "liveProvenPrefix": [],
13588
+ "unproven": true,
13589
+ "blocker": {
13590
+ "kind": "unknown",
13591
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
13592
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
13593
+ "requires": {
13594
+ "allOf": [
13595
+ "attachmentType",
13596
+ "fullPath",
13597
+ "title",
13598
+ "publish",
13599
+ "data"
13600
+ ]
13601
+ }
13602
+ },
13603
+ "vendorEvidence": [
13604
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ExpenseReportAttachmentsEntity.htm",
13605
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
13606
+ "Official ExpenseReportAttachments entity documentation and vendored controllers define scoped ExpenseReports attachment routes. This parent does not support nesting or the documented contact-author override. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
13607
+ ],
13608
+ "deleteBoundary": {
13609
+ "available": true,
13610
+ "note": null
13611
+ },
13612
+ "requiresByValue": [
13613
+ {
13614
+ "field": "attachmentType",
13615
+ "value": "FILE_ATTACHMENT",
13616
+ "requires": {
13617
+ "allOf": [
13618
+ "data"
13619
+ ]
13620
+ }
13621
+ }
13622
+ ]
13623
+ },
13419
13624
  {
13420
13625
  "resource": "expense_reports",
13421
13626
  "createOp": "expense_reports.create",
@@ -14001,6 +14206,47 @@ var CREATE_GUIDANCE = {
14001
14206
  "note": "the vendor defines no DELETE for quotes (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."
14002
14207
  }
14003
14208
  },
14209
+ {
14210
+ "resource": "resource_attachments",
14211
+ "createOp": "resource_attachments.create",
14212
+ "parentScoped": true,
14213
+ "liveProvenPrefix": [],
14214
+ "unproven": true,
14215
+ "blocker": {
14216
+ "kind": "unknown",
14217
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
14218
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
14219
+ "requires": {
14220
+ "allOf": [
14221
+ "attachmentType",
14222
+ "fullPath",
14223
+ "title",
14224
+ "publish",
14225
+ "data"
14226
+ ]
14227
+ }
14228
+ },
14229
+ "vendorEvidence": [
14230
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ResourceAttachmentsEntity.htm",
14231
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
14232
+ "Official ResourceAttachments entity documentation and vendored controllers define scoped Resources attachment routes. This parent does not support nesting or the documented contact-author override. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
14233
+ ],
14234
+ "deleteBoundary": {
14235
+ "available": true,
14236
+ "note": null
14237
+ },
14238
+ "requiresByValue": [
14239
+ {
14240
+ "field": "attachmentType",
14241
+ "value": "FILE_ATTACHMENT",
14242
+ "requires": {
14243
+ "allOf": [
14244
+ "data"
14245
+ ]
14246
+ }
14247
+ }
14248
+ ]
14249
+ },
14004
14250
  {
14005
14251
  "resource": "resource_role_queues",
14006
14252
  "createOp": "resource_role_queues.create",
@@ -14968,7 +15214,7 @@ var CREATE_GUIDANCE = {
14968
15214
  }
14969
15215
  ],
14970
15216
  "counts": {
14971
- "total": 112,
15217
+ "total": 114,
14972
15218
  "byKind": {
14973
15219
  "ok": 41,
14974
15220
  "blind-reference": 16,
@@ -14978,7 +15224,7 @@ var CREATE_GUIDANCE = {
14978
15224
  "resource-role-pair": 2,
14979
15225
  "delete-absent": 0,
14980
15226
  "non-mutable": 0,
14981
- "unknown": 36
15227
+ "unknown": 38
14982
15228
  }
14983
15229
  }
14984
15230
  };
@@ -15732,6 +15978,12 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
15732
15978
  ],
15733
15979
  "sales_order_attachments": [
15734
15980
  "title"
15981
+ ],
15982
+ "expense_report_attachments": [
15983
+ "title"
15984
+ ],
15985
+ "resource_attachments": [
15986
+ "title"
15735
15987
  ]
15736
15988
  };
15737
15989
 
@@ -18779,6 +19031,7 @@ var MODEL_FIELD_SETS = {
18779
19031
  "domain_registrars": ["id", "name", "url"],
18780
19032
  "expense_item_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18781
19033
  "expense_items": ["id", "companyID", "description", "destination", "entertainmentLocation", "expenseCategory", "expenseCurrencyExpenseAmount", "expenseCurrencyID", "expenseDate", "expenseReportID", "glCode", "haveReceipt", "internalCurrencyExpenseAmount", "internalCurrencyReimbursementAmount", "isBillableToCompany", "isReimbursable", "isRejected", "miles", "odometerEnd", "odometerStart", "origin", "paymentType", "projectID", "purchaseOrderNumber", "reimbursementCurrencyReimbursementAmount", "taskID", "ticketID", "workType", "soapParentPropertyId"],
19034
+ "expense_report_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18782
19035
  "expense_reports": ["id", "amountDue", "approvedDate", "approverID", "departmentNumber", "internalCurrencyCashAdvanceAmount", "internalCurrencyExpenseTotal", "name", "organizationalLevelAssociationID", "quickBooksReferenceNumber", "reimbursementCurrencyAmountDue", "reimbursementCurrencyCashAdvanceAmount", "reimbursementCurrencyID", "rejectionReason", "status", "submit", "submitDate", "submitterID", "weekEnding"],
18783
19036
  "holiday_sets": ["id", "holidaySetDescription", "holidaySetName"],
18784
19037
  "holidays": ["id", "holidayDate", "holidayName", "holidaySetID", "soapParentPropertyId"],
@@ -18808,6 +19061,7 @@ var MODEL_FIELD_SETS = {
18808
19061
  "quote_locations": ["id", "address1", "address2", "city", "postalCode", "state"],
18809
19062
  "quote_templates": ["id", "calculateTaxSeparately", "createDate", "createdBy", "currencyNegativeFormat", "currencyPositiveFormat", "dateFormat", "description", "displayTaxCategorySuperscripts", "isActive", "lastActivityBy", "lastActivityDate", "name", "numberFormat", "pageLayout", "pageNumberFormat", "showEachTaxInGroup", "showGridHeader", "showTaxCategory", "showVerticalGridLines"],
18810
19063
  "quotes": ["id", "approvalStatus", "approvalStatusChangedByResourceID", "approvalStatusChangedDate", "billToLocationID", "calculateTaxSeparately", "comment", "companyID", "contactID", "createDate", "creatorResourceID", "description", "effectiveDate", "expirationDate", "extApprovalContactResponse", "extApprovalResponseDate", "extApprovalResponseSignature", "externalQuoteNumber", "groupByID", "impersonatorCreatorResourceID", "isActive", "lastActivityDate", "lastModifiedBy", "lastPublishedByResourceID", "lastPublishedDateTime", "name", "opportunityID", "paymentTerm", "paymentType", "primaryQuote", "proposalProjectID", "purchaseOrderNumber", "quoteNumber", "quoteTemplateID", "shippingType", "shipToLocationID", "showEachTaxInGroup", "showTaxCategory", "soldToLocationID", "taxRegionID"],
19064
+ "resource_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "resourceID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18811
19065
  "resource_role_queues": ["id", "queueID", "resourceID", "soapParentPropertyId"],
18812
19066
  "resource_roles": ["id", "departmentID", "isActive", "queueID", "resourceID", "roleID", "soapParentPropertyId"],
18813
19067
  "resource_skills": ["id", "resourceID", "skillDescription", "skillID", "skillLevel", "soapParentPropertyId"],
@@ -18890,6 +19144,7 @@ var MODEL_DATE_FIELDS = {
18890
19144
  "currencies": ["lastModifiedDateTime"],
18891
19145
  "expense_item_attachments": ["attachDate"],
18892
19146
  "expense_items": ["expenseDate"],
19147
+ "expense_report_attachments": ["attachDate"],
18893
19148
  "expense_reports": ["approvedDate", "submitDate", "weekEnding"],
18894
19149
  "holidays": ["holidayDate"],
18895
19150
  "inventory_products": ["createDateTime"],
@@ -18909,6 +19164,7 @@ var MODEL_DATE_FIELDS = {
18909
19164
  "purchase_orders": ["cancelDateTime", "createDateTime", "latestEstimatedArrivalDate", "shippingDate", "submitDateTime"],
18910
19165
  "quote_templates": ["createDate", "lastActivityDate"],
18911
19166
  "quotes": ["approvalStatusChangedDate", "createDate", "effectiveDate", "expirationDate", "extApprovalResponseDate", "lastActivityDate", "lastPublishedDateTime"],
19167
+ "resource_attachments": ["attachDate"],
18912
19168
  "resources": ["hireDate"],
18913
19169
  "sales_order_attachments": ["attachDate"],
18914
19170
  "sales_orders": ["promisedFulfillmentDate", "salesOrderDate"],
@@ -21282,6 +21538,8 @@ var SCOPED_ATTACHMENT_PARENTS = {
21282
21538
  project_note_attachments: { field: "projectNoteID", name: "project note" },
21283
21539
  contract_note_attachments: { field: "contractNoteID", name: "contract note" },
21284
21540
  sales_order_attachments: { field: "salesOrderID", name: "sales order" },
21541
+ expense_report_attachments: { field: "expenseReportID", name: "expense report" },
21542
+ resource_attachments: { field: "resourceID", name: "resource" },
21285
21543
  task_attachments: { field: "taskID", name: "task" },
21286
21544
  task_note_attachments: { field: "taskNoteID", name: "task note" },
21287
21545
  configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
@@ -21332,6 +21590,8 @@ function admitFileAttachment(resource, data, parentId) {
21332
21590
  project_attachments: void 0,
21333
21591
  contract_note_attachments: void 0,
21334
21592
  sales_order_attachments: void 0,
21593
+ expense_report_attachments: void 0,
21594
+ resource_attachments: void 0,
21335
21595
  task_note_attachments: "attachedByContactID",
21336
21596
  project_note_attachments: "attachedByContactID",
21337
21597
  configuration_item_attachments: "parentAttachmentID",
@@ -22119,6 +22379,20 @@ var SIMPLE_RESOURCES = [
22119
22379
  helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22120
22380
  opForms: { get: "global", create: "scoped", update: "scoped" }
22121
22381
  },
22382
+ {
22383
+ key: "expense_report_attachments",
22384
+ accessor: "expenseReportAttachments",
22385
+ resourcePath: "/V1.0/ExpenseReportAttachments",
22386
+ parentScopedPath: "/V1.0/ExpenseReports/{parentId}/Attachments",
22387
+ parentPath: "/V1.0/ExpenseReports",
22388
+ parentField: "expenseReportID",
22389
+ deletable: true,
22390
+ udfCapable: false,
22391
+ attachmentGet: true,
22392
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
22393
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22394
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
22395
+ },
22122
22396
  {
22123
22397
  key: "expense_reports",
22124
22398
  accessor: "expenseReports",
@@ -22440,6 +22714,20 @@ var SIMPLE_RESOURCES = [
22440
22714
  helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22441
22715
  opForms: { get: "global" }
22442
22716
  },
22717
+ {
22718
+ key: "resource_attachments",
22719
+ accessor: "resourceAttachments",
22720
+ resourcePath: "/V1.0/ResourceAttachments",
22721
+ parentScopedPath: "/V1.0/Resources/{parentId}/Attachments",
22722
+ parentPath: "/V1.0/Resources",
22723
+ parentField: "resourceID",
22724
+ deletable: true,
22725
+ udfCapable: false,
22726
+ attachmentGet: true,
22727
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
22728
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22729
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
22730
+ },
22443
22731
  {
22444
22732
  key: "resource_role_queues",
22445
22733
  accessor: "resourceRoleQueues",
@@ -23008,7 +23296,7 @@ var SIMPLE_RESOURCES = [
23008
23296
  var GenericResource = class extends BaseResource {
23009
23297
  constructor(http, config, pageSize) {
23010
23298
  super(http, config, pageSize);
23011
- if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "contract_note_attachments", "project_attachments", "project_note_attachments", "sales_order_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
23299
+ if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "contract_note_attachments", "expense_report_attachments", "project_attachments", "project_note_attachments", "resource_attachments", "sales_order_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
23012
23300
  throw new OperationNotSupportedError(config.key, "getUdfInfo");
23013
23301
  };
23014
23302
  if (config.ops?.create === false || isScopedAttachmentResource(config.key) || ["company_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {
@@ -1,8 +1,8 @@
1
1
  // src/capabilities.ts
2
2
  var CAPABILITY_PLAN_HASHES = {
3
- "B": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308",
4
- "A": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308",
5
- "operations": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308"
3
+ "B": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede",
4
+ "A": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede",
5
+ "operations": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede"
6
6
  };
7
7
  var cached = null;
8
8
  function loadCapabilities() {
@@ -1,5 +1,5 @@
1
- import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-7PQKFGTI.js';
2
- import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-HZGCJ2CQ.js';
1
+ import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-ZKAJVHHZ.js';
2
+ import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-CV56RIGS.js';
3
3
 
4
4
  // src/client.ts
5
5
  var AutotaskClient = class {
@@ -72,6 +72,7 @@ var AutotaskClient = class {
72
72
  entityInformation;
73
73
  expenseItemAttachments;
74
74
  expenseItems;
75
+ expenseReportAttachments;
75
76
  expenseReports;
76
77
  holidays;
77
78
  holidaySets;
@@ -102,6 +103,7 @@ var AutotaskClient = class {
102
103
  quoteLocations;
103
104
  quotes;
104
105
  quoteTemplates;
106
+ resourceAttachments;
105
107
  resourceRoleQueues;
106
108
  resourceRoles;
107
109
  resources;
@@ -2,9 +2,9 @@
2
2
 
3
3
  // src/capabilities.ts
4
4
  var CAPABILITY_PLAN_HASHES = {
5
- "B": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308",
6
- "A": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308",
7
- "operations": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308"
5
+ "B": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede",
6
+ "A": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede",
7
+ "operations": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede"
8
8
  };
9
9
  var cached = null;
10
10
  function loadCapabilities() {