node-autotask 0.81.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 +12 -0
  2. package/MCP_TOOL_CATALOG.json +393 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +1663 -235
  5. package/dist/capabilities-data.js +1662 -234
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-6HMGV3MY.cjs → chunk-5AHEJCSP.cjs} +33 -30
  9. package/dist/{chunk-MR5TGVHR.cjs → chunk-C2AFRW5M.cjs} +453 -10
  10. package/dist/{chunk-ACF32I5D.js → chunk-CV56RIGS.js} +448 -5
  11. package/dist/{chunk-5MJZ554M.js → chunk-DBEAS3IR.js} +3 -3
  12. package/dist/{chunk-X7G4W5DF.js → chunk-HQJLIRXW.js} +5 -2
  13. package/dist/{chunk-PLERXELA.cjs → chunk-QCA5R7QF.cjs} +3 -3
  14. package/dist/{chunk-KKUBJRO3.cjs → chunk-QEMBBAF5.cjs} +199 -199
  15. package/dist/{chunk-LCUUFTYD.js → chunk-ZKAJVHHZ.js} +2 -2
  16. package/dist/{index-lj8ocwxy.d.cts → index-8Hg6dytT.d.cts} +131 -1
  17. package/dist/{index-lj8ocwxy.d.ts → index-8Hg6dytT.d.ts} +131 -1
  18. package/dist/{index-BxPqypDD.d.cts → index-DxESlIIg.d.cts} +5 -2
  19. package/dist/{index-DswDMDNH.d.ts → index-nXhYAQOf.d.ts} +5 -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 +5 -2
  39. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { loadCapabilityRecords } from './chunk-5MJZ554M.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",
@@ -7354,7 +7386,24 @@ var RELATIONSHIP_MAP = {
7354
7386
  "workflowResource": false,
7355
7387
  "group": "B",
7356
7388
  "parent": null,
7357
- "children": [],
7389
+ "children": [
7390
+ {
7391
+ "resource": "sales_order_attachments",
7392
+ "apiEntity": "SalesOrderAttachment",
7393
+ "parentField": "salesOrderID",
7394
+ "parentSegment": "Attachments",
7395
+ "tier": "extended",
7396
+ "workflowResource": false,
7397
+ "specialOps": [],
7398
+ "searchCovers": null,
7399
+ "scopedOps": {
7400
+ "create": true,
7401
+ "query": true,
7402
+ "update": false,
7403
+ "delete": true
7404
+ }
7405
+ }
7406
+ ],
7358
7407
  "naturalKeys": {
7359
7408
  "hasSearch": false,
7360
7409
  "searchCovers": null,
@@ -10404,6 +10453,209 @@ var RELATIONSHIP_MAP = {
10404
10453
  },
10405
10454
  "deleteBoundary": null,
10406
10455
  "markerField": null
10456
+ },
10457
+ "sales_order_attachments": {
10458
+ "resource": "sales_order_attachments",
10459
+ "apiEntity": "SalesOrderAttachment",
10460
+ "kind": "entity",
10461
+ "path": "SalesOrderAttachments",
10462
+ "parentScoped": true,
10463
+ "tier": "extended",
10464
+ "workflowResource": false,
10465
+ "group": "B",
10466
+ "parent": {
10467
+ "resource": "sales_orders",
10468
+ "segment": "Attachments",
10469
+ "field": "salesOrderID"
10470
+ },
10471
+ "children": [],
10472
+ "naturalKeys": {
10473
+ "hasSearch": false,
10474
+ "searchCovers": null,
10475
+ "findBy": []
10476
+ },
10477
+ "blindSurfaces": null,
10478
+ "zoneFacts": {
10479
+ "createGuidance": {
10480
+ "createOp": "sales_order_attachments.create",
10481
+ "parentScoped": true,
10482
+ "liveProvenPrefix": [],
10483
+ "unproven": true,
10484
+ "blocker": {
10485
+ "kind": "unknown",
10486
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
10487
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
10488
+ "requires": {
10489
+ "allOf": [
10490
+ "attachmentType",
10491
+ "fullPath",
10492
+ "title",
10493
+ "publish",
10494
+ "data"
10495
+ ]
10496
+ }
10497
+ },
10498
+ "requiresByValue": [
10499
+ {
10500
+ "field": "attachmentType",
10501
+ "value": "FILE_ATTACHMENT",
10502
+ "requires": {
10503
+ "allOf": [
10504
+ "data"
10505
+ ]
10506
+ }
10507
+ }
10508
+ ],
10509
+ "vendorEvidence": [
10510
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/SalesOrderAttachmentsEntity.htm",
10511
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
10512
+ "Official SalesOrderAttachments entity documentation and vendored controllers define scoped SalesOrders attachment routes. Sales orders cannot have nested attachments, and the documented contact-author exception does not include sales orders. The help URL table repeats parent SalesOrders actions; attachment routing follows the vendored attachment controllers. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
10513
+ ],
10514
+ "deleteBoundary": {
10515
+ "available": true,
10516
+ "note": null
10517
+ },
10518
+ "parentCompany": {
10519
+ "via": "salesOrderID",
10520
+ "resource": "sales_orders",
10521
+ "field": "companyID"
10522
+ }
10523
+ }
10524
+ },
10525
+ "deleteBoundary": null,
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
10407
10659
  }
10408
10660
  };
10409
10661
  var BLIND_SURFACE_STAMPS = {
@@ -13328,6 +13580,47 @@ var CREATE_GUIDANCE = {
13328
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."
13329
13581
  }
13330
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
+ },
13331
13624
  {
13332
13625
  "resource": "expense_reports",
13333
13626
  "createOp": "expense_reports.create",
@@ -13913,6 +14206,47 @@ var CREATE_GUIDANCE = {
13913
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."
13914
14207
  }
13915
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
+ },
13916
14250
  {
13917
14251
  "resource": "resource_role_queues",
13918
14252
  "createOp": "resource_role_queues.create",
@@ -13957,6 +14291,52 @@ var CREATE_GUIDANCE = {
13957
14291
  "note": "the vendor defines no DELETE for roles (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."
13958
14292
  }
13959
14293
  },
14294
+ {
14295
+ "resource": "sales_order_attachments",
14296
+ "createOp": "sales_order_attachments.create",
14297
+ "parentScoped": true,
14298
+ "liveProvenPrefix": [],
14299
+ "unproven": true,
14300
+ "blocker": {
14301
+ "kind": "unknown",
14302
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
14303
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
14304
+ "requires": {
14305
+ "allOf": [
14306
+ "attachmentType",
14307
+ "fullPath",
14308
+ "title",
14309
+ "publish",
14310
+ "data"
14311
+ ]
14312
+ }
14313
+ },
14314
+ "vendorEvidence": [
14315
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/SalesOrderAttachmentsEntity.htm",
14316
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
14317
+ "Official SalesOrderAttachments entity documentation and vendored controllers define scoped SalesOrders attachment routes. Sales orders cannot have nested attachments, and the documented contact-author exception does not include sales orders. The help URL table repeats parent SalesOrders actions; attachment routing follows the vendored attachment controllers. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
14318
+ ],
14319
+ "deleteBoundary": {
14320
+ "available": true,
14321
+ "note": null
14322
+ },
14323
+ "requiresByValue": [
14324
+ {
14325
+ "field": "attachmentType",
14326
+ "value": "FILE_ATTACHMENT",
14327
+ "requires": {
14328
+ "allOf": [
14329
+ "data"
14330
+ ]
14331
+ }
14332
+ }
14333
+ ],
14334
+ "parentCompany": {
14335
+ "via": "salesOrderID",
14336
+ "resource": "sales_orders",
14337
+ "field": "companyID"
14338
+ }
14339
+ },
13960
14340
  {
13961
14341
  "resource": "service_call_task_resources",
13962
14342
  "createOp": "service_call_task_resources.create",
@@ -14834,7 +15214,7 @@ var CREATE_GUIDANCE = {
14834
15214
  }
14835
15215
  ],
14836
15216
  "counts": {
14837
- "total": 111,
15217
+ "total": 114,
14838
15218
  "byKind": {
14839
15219
  "ok": 41,
14840
15220
  "blind-reference": 16,
@@ -14844,7 +15224,7 @@ var CREATE_GUIDANCE = {
14844
15224
  "resource-role-pair": 2,
14845
15225
  "delete-absent": 0,
14846
15226
  "non-mutable": 0,
14847
- "unknown": 35
15227
+ "unknown": 38
14848
15228
  }
14849
15229
  }
14850
15230
  };
@@ -15595,6 +15975,15 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
15595
15975
  ],
15596
15976
  "contract_note_attachments": [
15597
15977
  "title"
15978
+ ],
15979
+ "sales_order_attachments": [
15980
+ "title"
15981
+ ],
15982
+ "expense_report_attachments": [
15983
+ "title"
15984
+ ],
15985
+ "resource_attachments": [
15986
+ "title"
15598
15987
  ]
15599
15988
  };
15600
15989
 
@@ -18642,6 +19031,7 @@ var MODEL_FIELD_SETS = {
18642
19031
  "domain_registrars": ["id", "name", "url"],
18643
19032
  "expense_item_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18644
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"],
18645
19035
  "expense_reports": ["id", "amountDue", "approvedDate", "approverID", "departmentNumber", "internalCurrencyCashAdvanceAmount", "internalCurrencyExpenseTotal", "name", "organizationalLevelAssociationID", "quickBooksReferenceNumber", "reimbursementCurrencyAmountDue", "reimbursementCurrencyCashAdvanceAmount", "reimbursementCurrencyID", "rejectionReason", "status", "submit", "submitDate", "submitterID", "weekEnding"],
18646
19036
  "holiday_sets": ["id", "holidaySetDescription", "holidaySetName"],
18647
19037
  "holidays": ["id", "holidayDate", "holidayName", "holidaySetID", "soapParentPropertyId"],
@@ -18671,6 +19061,7 @@ var MODEL_FIELD_SETS = {
18671
19061
  "quote_locations": ["id", "address1", "address2", "city", "postalCode", "state"],
18672
19062
  "quote_templates": ["id", "calculateTaxSeparately", "createDate", "createdBy", "currencyNegativeFormat", "currencyPositiveFormat", "dateFormat", "description", "displayTaxCategorySuperscripts", "isActive", "lastActivityBy", "lastActivityDate", "name", "numberFormat", "pageLayout", "pageNumberFormat", "showEachTaxInGroup", "showGridHeader", "showTaxCategory", "showVerticalGridLines"],
18673
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"],
18674
19065
  "resource_role_queues": ["id", "queueID", "resourceID", "soapParentPropertyId"],
18675
19066
  "resource_roles": ["id", "departmentID", "isActive", "queueID", "resourceID", "roleID", "soapParentPropertyId"],
18676
19067
  "resource_skills": ["id", "resourceID", "skillDescription", "skillID", "skillLevel", "soapParentPropertyId"],
@@ -18678,6 +19069,7 @@ var MODEL_FIELD_SETS = {
18678
19069
  "resource_time_off_balances": ["id", "resourceID", "floatingHolidayAnnualAllowance", "floatingHolidayBalance", "floatingHolidayPlanned", "floatingHolidayUsed", "floatingHolidayWaitingApproval", "personalTimeAnnualAllowance", "personalTimeBalance", "personalTimePlanned", "personalTimeUsed", "personalTimeWaitingApproval", "sickTimeAnnualAllowance", "sickTimeBalance", "sickTimePlanned", "sickTimeUsed", "sickTimeWaitingApproval", "vacationTimeAnnualAllowance", "vacationTimeBalance", "vacationTimePlanned", "vacationTimeUsed", "vacationTimeWaitingApproval", "year", "soapParentPropertyId"],
18679
19070
  "resources": ["id", "accountingReferenceID", "dateFormat", "defaultServiceDeskRoleID", "email", "email2", "email3", "emailTypeCode", "emailTypeCode2", "emailTypeCode3", "firstName", "gender", "greeting", "hireDate", "homePhone", "initials", "internalCost", "isActive", "lastName", "licenseType", "locationID", "middleName", "mobilePhone", "numberFormat", "officeExtension", "officePhone", "payrollIdentifier", "payrollType", "resourceType", "suffix", "surveyResourceRating", "timeFormat", "title", "travelAvailabilityPct", "userName", "userType"],
18680
19071
  "roles": ["id", "description", "hourlyFactor", "hourlyRate", "isActive", "isExcludedFromNewContracts", "isSystemRole", "name", "quoteItemDefaultTaxCategoryId", "roleType"],
19072
+ "sales_order_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "salesOrderID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18681
19073
  "sales_orders": ["id", "additionalBillToAddressInformation", "additionalShipToAddressInformation", "billingAddress1", "billingAddress2", "billToCity", "billToCountryID", "billToPostalCode", "billToState", "companyID", "contactID", "impersonatorCreatorResourceID", "opportunityID", "organizationalLevelAssociationID", "ownerResourceID", "promisedFulfillmentDate", "salesOrderDate", "shipToAddress1", "shipToAddress2", "shipToCity", "shipToCountryID", "shipToPostalCode", "shipToState", "status", "title", "soapParentPropertyId", "userDefinedFields"],
18682
19074
  "service_call_task_resources": ["id", "resourceID", "serviceCallTaskID", "soapParentPropertyId"],
18683
19075
  "service_call_tasks": ["id", "serviceCallID", "taskID", "soapParentPropertyId"],
@@ -18752,6 +19144,7 @@ var MODEL_DATE_FIELDS = {
18752
19144
  "currencies": ["lastModifiedDateTime"],
18753
19145
  "expense_item_attachments": ["attachDate"],
18754
19146
  "expense_items": ["expenseDate"],
19147
+ "expense_report_attachments": ["attachDate"],
18755
19148
  "expense_reports": ["approvedDate", "submitDate", "weekEnding"],
18756
19149
  "holidays": ["holidayDate"],
18757
19150
  "inventory_products": ["createDateTime"],
@@ -18771,7 +19164,9 @@ var MODEL_DATE_FIELDS = {
18771
19164
  "purchase_orders": ["cancelDateTime", "createDateTime", "latestEstimatedArrivalDate", "shippingDate", "submitDateTime"],
18772
19165
  "quote_templates": ["createDate", "lastActivityDate"],
18773
19166
  "quotes": ["approvalStatusChangedDate", "createDate", "effectiveDate", "expirationDate", "extApprovalResponseDate", "lastActivityDate", "lastPublishedDateTime"],
19167
+ "resource_attachments": ["attachDate"],
18774
19168
  "resources": ["hireDate"],
19169
+ "sales_order_attachments": ["attachDate"],
18775
19170
  "sales_orders": ["promisedFulfillmentDate", "salesOrderDate"],
18776
19171
  "service_calls": ["canceledDateTime", "createDateTime", "endDateTime", "lastModifiedDateTime", "startDateTime"],
18777
19172
  "services": ["createDate", "lastModifiedDate"],
@@ -21142,6 +21537,9 @@ var SCOPED_ATTACHMENT_PARENTS = {
21142
21537
  project_attachments: { field: "projectID", name: "project" },
21143
21538
  project_note_attachments: { field: "projectNoteID", name: "project note" },
21144
21539
  contract_note_attachments: { field: "contractNoteID", name: "contract note" },
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" },
21145
21543
  task_attachments: { field: "taskID", name: "task" },
21146
21544
  task_note_attachments: { field: "taskNoteID", name: "task note" },
21147
21545
  configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
@@ -21191,6 +21589,9 @@ function admitFileAttachment(resource, data, parentId) {
21191
21589
  const reference = {
21192
21590
  project_attachments: void 0,
21193
21591
  contract_note_attachments: void 0,
21592
+ sales_order_attachments: void 0,
21593
+ expense_report_attachments: void 0,
21594
+ resource_attachments: void 0,
21194
21595
  task_note_attachments: "attachedByContactID",
21195
21596
  project_note_attachments: "attachedByContactID",
21196
21597
  configuration_item_attachments: "parentAttachmentID",
@@ -21978,6 +22379,20 @@ var SIMPLE_RESOURCES = [
21978
22379
  helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
21979
22380
  opForms: { get: "global", create: "scoped", update: "scoped" }
21980
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
+ },
21981
22396
  {
21982
22397
  key: "expense_reports",
21983
22398
  accessor: "expenseReports",
@@ -22299,6 +22714,20 @@ var SIMPLE_RESOURCES = [
22299
22714
  helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22300
22715
  opForms: { get: "global" }
22301
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
+ },
22302
22731
  {
22303
22732
  key: "resource_role_queues",
22304
22733
  accessor: "resourceRoleQueues",
@@ -22363,6 +22792,20 @@ var SIMPLE_RESOURCES = [
22363
22792
  helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22364
22793
  opForms: { get: "global", create: "global", update: "global" }
22365
22794
  },
22795
+ {
22796
+ key: "sales_order_attachments",
22797
+ accessor: "salesOrderAttachments",
22798
+ resourcePath: "/V1.0/SalesOrderAttachments",
22799
+ parentScopedPath: "/V1.0/SalesOrders/{parentId}/Attachments",
22800
+ parentPath: "/V1.0/SalesOrders",
22801
+ parentField: "salesOrderID",
22802
+ deletable: true,
22803
+ udfCapable: false,
22804
+ attachmentGet: true,
22805
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
22806
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22807
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
22808
+ },
22366
22809
  {
22367
22810
  key: "sales_orders",
22368
22811
  accessor: "salesOrders",
@@ -22853,7 +23296,7 @@ var SIMPLE_RESOURCES = [
22853
23296
  var GenericResource = class extends BaseResource {
22854
23297
  constructor(http, config, pageSize) {
22855
23298
  super(http, config, pageSize);
22856
- if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "contract_note_attachments", "project_attachments", "project_note_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 () => {
22857
23300
  throw new OperationNotSupportedError(config.key, "getUdfInfo");
22858
23301
  };
22859
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": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad",
4
- "A": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad",
5
- "operations": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad"
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-LCUUFTYD.js';
2
- import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-ACF32I5D.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;
@@ -110,6 +112,7 @@ var AutotaskClient = class {
110
112
  resourceTimeOffApprovers;
111
113
  resourceTimeOffBalances;
112
114
  roles;
115
+ salesOrderAttachments;
113
116
  salesOrders;
114
117
  serviceCalls;
115
118
  serviceCallTaskResources;
@@ -2,9 +2,9 @@
2
2
 
3
3
  // src/capabilities.ts
4
4
  var CAPABILITY_PLAN_HASHES = {
5
- "B": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad",
6
- "A": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad",
7
- "operations": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad"
5
+ "B": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede",
6
+ "A": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede",
7
+ "operations": "d758816a699191e3da784f70f8ebe1f37ea9458aaf528241770f7bac94ba6ede"
8
8
  };
9
9
  var cached = null;
10
10
  function loadCapabilities() {