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.
- package/CHANGELOG.md +12 -0
- package/MCP_TOOL_CATALOG.json +393 -9
- package/README.md +1 -1
- package/capabilities.json +1663 -235
- package/dist/capabilities-data.js +1662 -234
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-6HMGV3MY.cjs → chunk-5AHEJCSP.cjs} +33 -30
- package/dist/{chunk-MR5TGVHR.cjs → chunk-C2AFRW5M.cjs} +453 -10
- package/dist/{chunk-ACF32I5D.js → chunk-CV56RIGS.js} +448 -5
- package/dist/{chunk-5MJZ554M.js → chunk-DBEAS3IR.js} +3 -3
- package/dist/{chunk-X7G4W5DF.js → chunk-HQJLIRXW.js} +5 -2
- package/dist/{chunk-PLERXELA.cjs → chunk-QCA5R7QF.cjs} +3 -3
- package/dist/{chunk-KKUBJRO3.cjs → chunk-QEMBBAF5.cjs} +199 -199
- package/dist/{chunk-LCUUFTYD.js → chunk-ZKAJVHHZ.js} +2 -2
- package/dist/{index-lj8ocwxy.d.cts → index-8Hg6dytT.d.cts} +131 -1
- package/dist/{index-lj8ocwxy.d.ts → index-8Hg6dytT.d.ts} +131 -1
- package/dist/{index-BxPqypDD.d.cts → index-DxESlIIg.d.cts} +5 -2
- package/dist/{index-DswDMDNH.d.ts → index-nXhYAQOf.d.ts} +5 -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 +4 -4
- package/dist/operations/index.d.ts +4 -4
- 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 +5 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQCA5R7QF_cjs = require('./chunk-QCA5R7QF.cjs');
|
|
4
4
|
var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
|
|
5
5
|
var crypto = require('crypto');
|
|
6
6
|
var async_hooks = require('async_hooks');
|
|
@@ -5461,6 +5461,22 @@ var RELATIONSHIP_MAP = {
|
|
|
5461
5461
|
"update": true,
|
|
5462
5462
|
"delete": false
|
|
5463
5463
|
}
|
|
5464
|
+
},
|
|
5465
|
+
{
|
|
5466
|
+
"resource": "expense_report_attachments",
|
|
5467
|
+
"apiEntity": "ExpenseReportAttachment",
|
|
5468
|
+
"parentField": "expenseReportID",
|
|
5469
|
+
"parentSegment": "Attachments",
|
|
5470
|
+
"tier": "extended",
|
|
5471
|
+
"workflowResource": false,
|
|
5472
|
+
"specialOps": [],
|
|
5473
|
+
"searchCovers": null,
|
|
5474
|
+
"scopedOps": {
|
|
5475
|
+
"create": true,
|
|
5476
|
+
"query": true,
|
|
5477
|
+
"update": false,
|
|
5478
|
+
"delete": true
|
|
5479
|
+
}
|
|
5464
5480
|
}
|
|
5465
5481
|
],
|
|
5466
5482
|
"naturalKeys": {
|
|
@@ -7147,6 +7163,22 @@ var RELATIONSHIP_MAP = {
|
|
|
7147
7163
|
"group": "B",
|
|
7148
7164
|
"parent": null,
|
|
7149
7165
|
"children": [
|
|
7166
|
+
{
|
|
7167
|
+
"resource": "resource_attachments",
|
|
7168
|
+
"apiEntity": "ResourceAttachment",
|
|
7169
|
+
"parentField": "resourceID",
|
|
7170
|
+
"parentSegment": "Attachments",
|
|
7171
|
+
"tier": "extended",
|
|
7172
|
+
"workflowResource": false,
|
|
7173
|
+
"specialOps": [],
|
|
7174
|
+
"searchCovers": null,
|
|
7175
|
+
"scopedOps": {
|
|
7176
|
+
"create": true,
|
|
7177
|
+
"query": true,
|
|
7178
|
+
"update": false,
|
|
7179
|
+
"delete": true
|
|
7180
|
+
}
|
|
7181
|
+
},
|
|
7150
7182
|
{
|
|
7151
7183
|
"resource": "resource_role_queues",
|
|
7152
7184
|
"apiEntity": "ResourceRoleQueue",
|
|
@@ -7356,7 +7388,24 @@ var RELATIONSHIP_MAP = {
|
|
|
7356
7388
|
"workflowResource": false,
|
|
7357
7389
|
"group": "B",
|
|
7358
7390
|
"parent": null,
|
|
7359
|
-
"children": [
|
|
7391
|
+
"children": [
|
|
7392
|
+
{
|
|
7393
|
+
"resource": "sales_order_attachments",
|
|
7394
|
+
"apiEntity": "SalesOrderAttachment",
|
|
7395
|
+
"parentField": "salesOrderID",
|
|
7396
|
+
"parentSegment": "Attachments",
|
|
7397
|
+
"tier": "extended",
|
|
7398
|
+
"workflowResource": false,
|
|
7399
|
+
"specialOps": [],
|
|
7400
|
+
"searchCovers": null,
|
|
7401
|
+
"scopedOps": {
|
|
7402
|
+
"create": true,
|
|
7403
|
+
"query": true,
|
|
7404
|
+
"update": false,
|
|
7405
|
+
"delete": true
|
|
7406
|
+
}
|
|
7407
|
+
}
|
|
7408
|
+
],
|
|
7360
7409
|
"naturalKeys": {
|
|
7361
7410
|
"hasSearch": false,
|
|
7362
7411
|
"searchCovers": null,
|
|
@@ -10406,6 +10455,209 @@ var RELATIONSHIP_MAP = {
|
|
|
10406
10455
|
},
|
|
10407
10456
|
"deleteBoundary": null,
|
|
10408
10457
|
"markerField": null
|
|
10458
|
+
},
|
|
10459
|
+
"sales_order_attachments": {
|
|
10460
|
+
"resource": "sales_order_attachments",
|
|
10461
|
+
"apiEntity": "SalesOrderAttachment",
|
|
10462
|
+
"kind": "entity",
|
|
10463
|
+
"path": "SalesOrderAttachments",
|
|
10464
|
+
"parentScoped": true,
|
|
10465
|
+
"tier": "extended",
|
|
10466
|
+
"workflowResource": false,
|
|
10467
|
+
"group": "B",
|
|
10468
|
+
"parent": {
|
|
10469
|
+
"resource": "sales_orders",
|
|
10470
|
+
"segment": "Attachments",
|
|
10471
|
+
"field": "salesOrderID"
|
|
10472
|
+
},
|
|
10473
|
+
"children": [],
|
|
10474
|
+
"naturalKeys": {
|
|
10475
|
+
"hasSearch": false,
|
|
10476
|
+
"searchCovers": null,
|
|
10477
|
+
"findBy": []
|
|
10478
|
+
},
|
|
10479
|
+
"blindSurfaces": null,
|
|
10480
|
+
"zoneFacts": {
|
|
10481
|
+
"createGuidance": {
|
|
10482
|
+
"createOp": "sales_order_attachments.create",
|
|
10483
|
+
"parentScoped": true,
|
|
10484
|
+
"liveProvenPrefix": [],
|
|
10485
|
+
"unproven": true,
|
|
10486
|
+
"blocker": {
|
|
10487
|
+
"kind": "unknown",
|
|
10488
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10489
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
10490
|
+
"requires": {
|
|
10491
|
+
"allOf": [
|
|
10492
|
+
"attachmentType",
|
|
10493
|
+
"fullPath",
|
|
10494
|
+
"title",
|
|
10495
|
+
"publish",
|
|
10496
|
+
"data"
|
|
10497
|
+
]
|
|
10498
|
+
}
|
|
10499
|
+
},
|
|
10500
|
+
"requiresByValue": [
|
|
10501
|
+
{
|
|
10502
|
+
"field": "attachmentType",
|
|
10503
|
+
"value": "FILE_ATTACHMENT",
|
|
10504
|
+
"requires": {
|
|
10505
|
+
"allOf": [
|
|
10506
|
+
"data"
|
|
10507
|
+
]
|
|
10508
|
+
}
|
|
10509
|
+
}
|
|
10510
|
+
],
|
|
10511
|
+
"vendorEvidence": [
|
|
10512
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/SalesOrderAttachmentsEntity.htm",
|
|
10513
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
10514
|
+
"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."
|
|
10515
|
+
],
|
|
10516
|
+
"deleteBoundary": {
|
|
10517
|
+
"available": true,
|
|
10518
|
+
"note": null
|
|
10519
|
+
},
|
|
10520
|
+
"parentCompany": {
|
|
10521
|
+
"via": "salesOrderID",
|
|
10522
|
+
"resource": "sales_orders",
|
|
10523
|
+
"field": "companyID"
|
|
10524
|
+
}
|
|
10525
|
+
}
|
|
10526
|
+
},
|
|
10527
|
+
"deleteBoundary": null,
|
|
10528
|
+
"markerField": null
|
|
10529
|
+
},
|
|
10530
|
+
"expense_report_attachments": {
|
|
10531
|
+
"resource": "expense_report_attachments",
|
|
10532
|
+
"apiEntity": "ExpenseReportAttachment",
|
|
10533
|
+
"kind": "entity",
|
|
10534
|
+
"path": "ExpenseReportAttachments",
|
|
10535
|
+
"parentScoped": true,
|
|
10536
|
+
"tier": "extended",
|
|
10537
|
+
"workflowResource": false,
|
|
10538
|
+
"group": "B",
|
|
10539
|
+
"parent": {
|
|
10540
|
+
"resource": "expense_reports",
|
|
10541
|
+
"segment": "Attachments",
|
|
10542
|
+
"field": "expenseReportID"
|
|
10543
|
+
},
|
|
10544
|
+
"children": [],
|
|
10545
|
+
"naturalKeys": {
|
|
10546
|
+
"hasSearch": false,
|
|
10547
|
+
"searchCovers": null,
|
|
10548
|
+
"findBy": []
|
|
10549
|
+
},
|
|
10550
|
+
"blindSurfaces": null,
|
|
10551
|
+
"zoneFacts": {
|
|
10552
|
+
"createGuidance": {
|
|
10553
|
+
"createOp": "expense_report_attachments.create",
|
|
10554
|
+
"parentScoped": true,
|
|
10555
|
+
"liveProvenPrefix": [],
|
|
10556
|
+
"unproven": true,
|
|
10557
|
+
"blocker": {
|
|
10558
|
+
"kind": "unknown",
|
|
10559
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10560
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
10561
|
+
"requires": {
|
|
10562
|
+
"allOf": [
|
|
10563
|
+
"attachmentType",
|
|
10564
|
+
"fullPath",
|
|
10565
|
+
"title",
|
|
10566
|
+
"publish",
|
|
10567
|
+
"data"
|
|
10568
|
+
]
|
|
10569
|
+
}
|
|
10570
|
+
},
|
|
10571
|
+
"requiresByValue": [
|
|
10572
|
+
{
|
|
10573
|
+
"field": "attachmentType",
|
|
10574
|
+
"value": "FILE_ATTACHMENT",
|
|
10575
|
+
"requires": {
|
|
10576
|
+
"allOf": [
|
|
10577
|
+
"data"
|
|
10578
|
+
]
|
|
10579
|
+
}
|
|
10580
|
+
}
|
|
10581
|
+
],
|
|
10582
|
+
"vendorEvidence": [
|
|
10583
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ExpenseReportAttachmentsEntity.htm",
|
|
10584
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
10585
|
+
"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."
|
|
10586
|
+
],
|
|
10587
|
+
"deleteBoundary": {
|
|
10588
|
+
"available": true,
|
|
10589
|
+
"note": null
|
|
10590
|
+
}
|
|
10591
|
+
}
|
|
10592
|
+
},
|
|
10593
|
+
"deleteBoundary": null,
|
|
10594
|
+
"markerField": null
|
|
10595
|
+
},
|
|
10596
|
+
"resource_attachments": {
|
|
10597
|
+
"resource": "resource_attachments",
|
|
10598
|
+
"apiEntity": "ResourceAttachment",
|
|
10599
|
+
"kind": "entity",
|
|
10600
|
+
"path": "ResourceAttachments",
|
|
10601
|
+
"parentScoped": true,
|
|
10602
|
+
"tier": "extended",
|
|
10603
|
+
"workflowResource": false,
|
|
10604
|
+
"group": "B",
|
|
10605
|
+
"parent": {
|
|
10606
|
+
"resource": "resources",
|
|
10607
|
+
"segment": "Attachments",
|
|
10608
|
+
"field": "resourceID"
|
|
10609
|
+
},
|
|
10610
|
+
"children": [],
|
|
10611
|
+
"naturalKeys": {
|
|
10612
|
+
"hasSearch": false,
|
|
10613
|
+
"searchCovers": null,
|
|
10614
|
+
"findBy": []
|
|
10615
|
+
},
|
|
10616
|
+
"blindSurfaces": null,
|
|
10617
|
+
"zoneFacts": {
|
|
10618
|
+
"createGuidance": {
|
|
10619
|
+
"createOp": "resource_attachments.create",
|
|
10620
|
+
"parentScoped": true,
|
|
10621
|
+
"liveProvenPrefix": [],
|
|
10622
|
+
"unproven": true,
|
|
10623
|
+
"blocker": {
|
|
10624
|
+
"kind": "unknown",
|
|
10625
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10626
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
10627
|
+
"requires": {
|
|
10628
|
+
"allOf": [
|
|
10629
|
+
"attachmentType",
|
|
10630
|
+
"fullPath",
|
|
10631
|
+
"title",
|
|
10632
|
+
"publish",
|
|
10633
|
+
"data"
|
|
10634
|
+
]
|
|
10635
|
+
}
|
|
10636
|
+
},
|
|
10637
|
+
"requiresByValue": [
|
|
10638
|
+
{
|
|
10639
|
+
"field": "attachmentType",
|
|
10640
|
+
"value": "FILE_ATTACHMENT",
|
|
10641
|
+
"requires": {
|
|
10642
|
+
"allOf": [
|
|
10643
|
+
"data"
|
|
10644
|
+
]
|
|
10645
|
+
}
|
|
10646
|
+
}
|
|
10647
|
+
],
|
|
10648
|
+
"vendorEvidence": [
|
|
10649
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ResourceAttachmentsEntity.htm",
|
|
10650
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
10651
|
+
"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."
|
|
10652
|
+
],
|
|
10653
|
+
"deleteBoundary": {
|
|
10654
|
+
"available": true,
|
|
10655
|
+
"note": null
|
|
10656
|
+
}
|
|
10657
|
+
}
|
|
10658
|
+
},
|
|
10659
|
+
"deleteBoundary": null,
|
|
10660
|
+
"markerField": null
|
|
10409
10661
|
}
|
|
10410
10662
|
};
|
|
10411
10663
|
var BLIND_SURFACE_STAMPS = {
|
|
@@ -13330,6 +13582,47 @@ var CREATE_GUIDANCE = {
|
|
|
13330
13582
|
"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."
|
|
13331
13583
|
}
|
|
13332
13584
|
},
|
|
13585
|
+
{
|
|
13586
|
+
"resource": "expense_report_attachments",
|
|
13587
|
+
"createOp": "expense_report_attachments.create",
|
|
13588
|
+
"parentScoped": true,
|
|
13589
|
+
"liveProvenPrefix": [],
|
|
13590
|
+
"unproven": true,
|
|
13591
|
+
"blocker": {
|
|
13592
|
+
"kind": "unknown",
|
|
13593
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
13594
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
13595
|
+
"requires": {
|
|
13596
|
+
"allOf": [
|
|
13597
|
+
"attachmentType",
|
|
13598
|
+
"fullPath",
|
|
13599
|
+
"title",
|
|
13600
|
+
"publish",
|
|
13601
|
+
"data"
|
|
13602
|
+
]
|
|
13603
|
+
}
|
|
13604
|
+
},
|
|
13605
|
+
"vendorEvidence": [
|
|
13606
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ExpenseReportAttachmentsEntity.htm",
|
|
13607
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
13608
|
+
"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."
|
|
13609
|
+
],
|
|
13610
|
+
"deleteBoundary": {
|
|
13611
|
+
"available": true,
|
|
13612
|
+
"note": null
|
|
13613
|
+
},
|
|
13614
|
+
"requiresByValue": [
|
|
13615
|
+
{
|
|
13616
|
+
"field": "attachmentType",
|
|
13617
|
+
"value": "FILE_ATTACHMENT",
|
|
13618
|
+
"requires": {
|
|
13619
|
+
"allOf": [
|
|
13620
|
+
"data"
|
|
13621
|
+
]
|
|
13622
|
+
}
|
|
13623
|
+
}
|
|
13624
|
+
]
|
|
13625
|
+
},
|
|
13333
13626
|
{
|
|
13334
13627
|
"resource": "expense_reports",
|
|
13335
13628
|
"createOp": "expense_reports.create",
|
|
@@ -13915,6 +14208,47 @@ var CREATE_GUIDANCE = {
|
|
|
13915
14208
|
"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."
|
|
13916
14209
|
}
|
|
13917
14210
|
},
|
|
14211
|
+
{
|
|
14212
|
+
"resource": "resource_attachments",
|
|
14213
|
+
"createOp": "resource_attachments.create",
|
|
14214
|
+
"parentScoped": true,
|
|
14215
|
+
"liveProvenPrefix": [],
|
|
14216
|
+
"unproven": true,
|
|
14217
|
+
"blocker": {
|
|
14218
|
+
"kind": "unknown",
|
|
14219
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
14220
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
14221
|
+
"requires": {
|
|
14222
|
+
"allOf": [
|
|
14223
|
+
"attachmentType",
|
|
14224
|
+
"fullPath",
|
|
14225
|
+
"title",
|
|
14226
|
+
"publish",
|
|
14227
|
+
"data"
|
|
14228
|
+
]
|
|
14229
|
+
}
|
|
14230
|
+
},
|
|
14231
|
+
"vendorEvidence": [
|
|
14232
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ResourceAttachmentsEntity.htm",
|
|
14233
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
14234
|
+
"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."
|
|
14235
|
+
],
|
|
14236
|
+
"deleteBoundary": {
|
|
14237
|
+
"available": true,
|
|
14238
|
+
"note": null
|
|
14239
|
+
},
|
|
14240
|
+
"requiresByValue": [
|
|
14241
|
+
{
|
|
14242
|
+
"field": "attachmentType",
|
|
14243
|
+
"value": "FILE_ATTACHMENT",
|
|
14244
|
+
"requires": {
|
|
14245
|
+
"allOf": [
|
|
14246
|
+
"data"
|
|
14247
|
+
]
|
|
14248
|
+
}
|
|
14249
|
+
}
|
|
14250
|
+
]
|
|
14251
|
+
},
|
|
13918
14252
|
{
|
|
13919
14253
|
"resource": "resource_role_queues",
|
|
13920
14254
|
"createOp": "resource_role_queues.create",
|
|
@@ -13959,6 +14293,52 @@ var CREATE_GUIDANCE = {
|
|
|
13959
14293
|
"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."
|
|
13960
14294
|
}
|
|
13961
14295
|
},
|
|
14296
|
+
{
|
|
14297
|
+
"resource": "sales_order_attachments",
|
|
14298
|
+
"createOp": "sales_order_attachments.create",
|
|
14299
|
+
"parentScoped": true,
|
|
14300
|
+
"liveProvenPrefix": [],
|
|
14301
|
+
"unproven": true,
|
|
14302
|
+
"blocker": {
|
|
14303
|
+
"kind": "unknown",
|
|
14304
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
14305
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
14306
|
+
"requires": {
|
|
14307
|
+
"allOf": [
|
|
14308
|
+
"attachmentType",
|
|
14309
|
+
"fullPath",
|
|
14310
|
+
"title",
|
|
14311
|
+
"publish",
|
|
14312
|
+
"data"
|
|
14313
|
+
]
|
|
14314
|
+
}
|
|
14315
|
+
},
|
|
14316
|
+
"vendorEvidence": [
|
|
14317
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/SalesOrderAttachmentsEntity.htm",
|
|
14318
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
14319
|
+
"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."
|
|
14320
|
+
],
|
|
14321
|
+
"deleteBoundary": {
|
|
14322
|
+
"available": true,
|
|
14323
|
+
"note": null
|
|
14324
|
+
},
|
|
14325
|
+
"requiresByValue": [
|
|
14326
|
+
{
|
|
14327
|
+
"field": "attachmentType",
|
|
14328
|
+
"value": "FILE_ATTACHMENT",
|
|
14329
|
+
"requires": {
|
|
14330
|
+
"allOf": [
|
|
14331
|
+
"data"
|
|
14332
|
+
]
|
|
14333
|
+
}
|
|
14334
|
+
}
|
|
14335
|
+
],
|
|
14336
|
+
"parentCompany": {
|
|
14337
|
+
"via": "salesOrderID",
|
|
14338
|
+
"resource": "sales_orders",
|
|
14339
|
+
"field": "companyID"
|
|
14340
|
+
}
|
|
14341
|
+
},
|
|
13962
14342
|
{
|
|
13963
14343
|
"resource": "service_call_task_resources",
|
|
13964
14344
|
"createOp": "service_call_task_resources.create",
|
|
@@ -14836,7 +15216,7 @@ var CREATE_GUIDANCE = {
|
|
|
14836
15216
|
}
|
|
14837
15217
|
],
|
|
14838
15218
|
"counts": {
|
|
14839
|
-
"total":
|
|
15219
|
+
"total": 114,
|
|
14840
15220
|
"byKind": {
|
|
14841
15221
|
"ok": 41,
|
|
14842
15222
|
"blind-reference": 16,
|
|
@@ -14846,7 +15226,7 @@ var CREATE_GUIDANCE = {
|
|
|
14846
15226
|
"resource-role-pair": 2,
|
|
14847
15227
|
"delete-absent": 0,
|
|
14848
15228
|
"non-mutable": 0,
|
|
14849
|
-
"unknown":
|
|
15229
|
+
"unknown": 38
|
|
14850
15230
|
}
|
|
14851
15231
|
}
|
|
14852
15232
|
};
|
|
@@ -15597,6 +15977,15 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
|
|
|
15597
15977
|
],
|
|
15598
15978
|
"contract_note_attachments": [
|
|
15599
15979
|
"title"
|
|
15980
|
+
],
|
|
15981
|
+
"sales_order_attachments": [
|
|
15982
|
+
"title"
|
|
15983
|
+
],
|
|
15984
|
+
"expense_report_attachments": [
|
|
15985
|
+
"title"
|
|
15986
|
+
],
|
|
15987
|
+
"resource_attachments": [
|
|
15988
|
+
"title"
|
|
15600
15989
|
]
|
|
15601
15990
|
};
|
|
15602
15991
|
|
|
@@ -17471,7 +17860,7 @@ async function capabilitySets() {
|
|
|
17471
17860
|
const fieldOps = /* @__PURE__ */ new Map();
|
|
17472
17861
|
const udfCapable = /* @__PURE__ */ new Set();
|
|
17473
17862
|
const resources = /* @__PURE__ */ new Set();
|
|
17474
|
-
for (const rec of await
|
|
17863
|
+
for (const rec of await chunkQCA5R7QF_cjs.loadCapabilityRecords()) {
|
|
17475
17864
|
if (rec.resource === "operations") continue;
|
|
17476
17865
|
resources.add(rec.resource);
|
|
17477
17866
|
if (rec.operation === "getFieldInfo") fieldOps.set(rec.resource, rec);
|
|
@@ -17482,7 +17871,7 @@ async function capabilitySets() {
|
|
|
17482
17871
|
var derivedIndexPromise = null;
|
|
17483
17872
|
function derivedIndexLoad() {
|
|
17484
17873
|
if (derivedIndexPromise === null) {
|
|
17485
|
-
derivedIndexPromise =
|
|
17874
|
+
derivedIndexPromise = chunkQCA5R7QF_cjs.loadCapabilityRecords().then((records) => {
|
|
17486
17875
|
const index = /* @__PURE__ */ new Map();
|
|
17487
17876
|
for (const rec of records) {
|
|
17488
17877
|
const declared = rec.metadata?.derivedFields;
|
|
@@ -18644,6 +19033,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18644
19033
|
"domain_registrars": ["id", "name", "url"],
|
|
18645
19034
|
"expense_item_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18646
19035
|
"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"],
|
|
19036
|
+
"expense_report_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18647
19037
|
"expense_reports": ["id", "amountDue", "approvedDate", "approverID", "departmentNumber", "internalCurrencyCashAdvanceAmount", "internalCurrencyExpenseTotal", "name", "organizationalLevelAssociationID", "quickBooksReferenceNumber", "reimbursementCurrencyAmountDue", "reimbursementCurrencyCashAdvanceAmount", "reimbursementCurrencyID", "rejectionReason", "status", "submit", "submitDate", "submitterID", "weekEnding"],
|
|
18648
19038
|
"holiday_sets": ["id", "holidaySetDescription", "holidaySetName"],
|
|
18649
19039
|
"holidays": ["id", "holidayDate", "holidayName", "holidaySetID", "soapParentPropertyId"],
|
|
@@ -18673,6 +19063,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18673
19063
|
"quote_locations": ["id", "address1", "address2", "city", "postalCode", "state"],
|
|
18674
19064
|
"quote_templates": ["id", "calculateTaxSeparately", "createDate", "createdBy", "currencyNegativeFormat", "currencyPositiveFormat", "dateFormat", "description", "displayTaxCategorySuperscripts", "isActive", "lastActivityBy", "lastActivityDate", "name", "numberFormat", "pageLayout", "pageNumberFormat", "showEachTaxInGroup", "showGridHeader", "showTaxCategory", "showVerticalGridLines"],
|
|
18675
19065
|
"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"],
|
|
19066
|
+
"resource_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "resourceID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18676
19067
|
"resource_role_queues": ["id", "queueID", "resourceID", "soapParentPropertyId"],
|
|
18677
19068
|
"resource_roles": ["id", "departmentID", "isActive", "queueID", "resourceID", "roleID", "soapParentPropertyId"],
|
|
18678
19069
|
"resource_skills": ["id", "resourceID", "skillDescription", "skillID", "skillLevel", "soapParentPropertyId"],
|
|
@@ -18680,6 +19071,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18680
19071
|
"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"],
|
|
18681
19072
|
"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"],
|
|
18682
19073
|
"roles": ["id", "description", "hourlyFactor", "hourlyRate", "isActive", "isExcludedFromNewContracts", "isSystemRole", "name", "quoteItemDefaultTaxCategoryId", "roleType"],
|
|
19074
|
+
"sales_order_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "salesOrderID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18683
19075
|
"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"],
|
|
18684
19076
|
"service_call_task_resources": ["id", "resourceID", "serviceCallTaskID", "soapParentPropertyId"],
|
|
18685
19077
|
"service_call_tasks": ["id", "serviceCallID", "taskID", "soapParentPropertyId"],
|
|
@@ -18754,6 +19146,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18754
19146
|
"currencies": ["lastModifiedDateTime"],
|
|
18755
19147
|
"expense_item_attachments": ["attachDate"],
|
|
18756
19148
|
"expense_items": ["expenseDate"],
|
|
19149
|
+
"expense_report_attachments": ["attachDate"],
|
|
18757
19150
|
"expense_reports": ["approvedDate", "submitDate", "weekEnding"],
|
|
18758
19151
|
"holidays": ["holidayDate"],
|
|
18759
19152
|
"inventory_products": ["createDateTime"],
|
|
@@ -18773,7 +19166,9 @@ var MODEL_DATE_FIELDS = {
|
|
|
18773
19166
|
"purchase_orders": ["cancelDateTime", "createDateTime", "latestEstimatedArrivalDate", "shippingDate", "submitDateTime"],
|
|
18774
19167
|
"quote_templates": ["createDate", "lastActivityDate"],
|
|
18775
19168
|
"quotes": ["approvalStatusChangedDate", "createDate", "effectiveDate", "expirationDate", "extApprovalResponseDate", "lastActivityDate", "lastPublishedDateTime"],
|
|
19169
|
+
"resource_attachments": ["attachDate"],
|
|
18776
19170
|
"resources": ["hireDate"],
|
|
19171
|
+
"sales_order_attachments": ["attachDate"],
|
|
18777
19172
|
"sales_orders": ["promisedFulfillmentDate", "salesOrderDate"],
|
|
18778
19173
|
"service_calls": ["canceledDateTime", "createDateTime", "endDateTime", "lastModifiedDateTime", "startDateTime"],
|
|
18779
19174
|
"services": ["createDate", "lastModifiedDate"],
|
|
@@ -21144,6 +21539,9 @@ var SCOPED_ATTACHMENT_PARENTS = {
|
|
|
21144
21539
|
project_attachments: { field: "projectID", name: "project" },
|
|
21145
21540
|
project_note_attachments: { field: "projectNoteID", name: "project note" },
|
|
21146
21541
|
contract_note_attachments: { field: "contractNoteID", name: "contract note" },
|
|
21542
|
+
sales_order_attachments: { field: "salesOrderID", name: "sales order" },
|
|
21543
|
+
expense_report_attachments: { field: "expenseReportID", name: "expense report" },
|
|
21544
|
+
resource_attachments: { field: "resourceID", name: "resource" },
|
|
21147
21545
|
task_attachments: { field: "taskID", name: "task" },
|
|
21148
21546
|
task_note_attachments: { field: "taskNoteID", name: "task note" },
|
|
21149
21547
|
configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
|
|
@@ -21193,6 +21591,9 @@ function admitFileAttachment(resource, data, parentId) {
|
|
|
21193
21591
|
const reference = {
|
|
21194
21592
|
project_attachments: void 0,
|
|
21195
21593
|
contract_note_attachments: void 0,
|
|
21594
|
+
sales_order_attachments: void 0,
|
|
21595
|
+
expense_report_attachments: void 0,
|
|
21596
|
+
resource_attachments: void 0,
|
|
21196
21597
|
task_note_attachments: "attachedByContactID",
|
|
21197
21598
|
project_note_attachments: "attachedByContactID",
|
|
21198
21599
|
configuration_item_attachments: "parentAttachmentID",
|
|
@@ -21980,6 +22381,20 @@ var SIMPLE_RESOURCES = [
|
|
|
21980
22381
|
helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21981
22382
|
opForms: { get: "global", create: "scoped", update: "scoped" }
|
|
21982
22383
|
},
|
|
22384
|
+
{
|
|
22385
|
+
key: "expense_report_attachments",
|
|
22386
|
+
accessor: "expenseReportAttachments",
|
|
22387
|
+
resourcePath: "/V1.0/ExpenseReportAttachments",
|
|
22388
|
+
parentScopedPath: "/V1.0/ExpenseReports/{parentId}/Attachments",
|
|
22389
|
+
parentPath: "/V1.0/ExpenseReports",
|
|
22390
|
+
parentField: "expenseReportID",
|
|
22391
|
+
deletable: true,
|
|
22392
|
+
udfCapable: false,
|
|
22393
|
+
attachmentGet: true,
|
|
22394
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
22395
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22396
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
22397
|
+
},
|
|
21983
22398
|
{
|
|
21984
22399
|
key: "expense_reports",
|
|
21985
22400
|
accessor: "expenseReports",
|
|
@@ -22301,6 +22716,20 @@ var SIMPLE_RESOURCES = [
|
|
|
22301
22716
|
helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22302
22717
|
opForms: { get: "global" }
|
|
22303
22718
|
},
|
|
22719
|
+
{
|
|
22720
|
+
key: "resource_attachments",
|
|
22721
|
+
accessor: "resourceAttachments",
|
|
22722
|
+
resourcePath: "/V1.0/ResourceAttachments",
|
|
22723
|
+
parentScopedPath: "/V1.0/Resources/{parentId}/Attachments",
|
|
22724
|
+
parentPath: "/V1.0/Resources",
|
|
22725
|
+
parentField: "resourceID",
|
|
22726
|
+
deletable: true,
|
|
22727
|
+
udfCapable: false,
|
|
22728
|
+
attachmentGet: true,
|
|
22729
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
22730
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22731
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
22732
|
+
},
|
|
22304
22733
|
{
|
|
22305
22734
|
key: "resource_role_queues",
|
|
22306
22735
|
accessor: "resourceRoleQueues",
|
|
@@ -22365,6 +22794,20 @@ var SIMPLE_RESOURCES = [
|
|
|
22365
22794
|
helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22366
22795
|
opForms: { get: "global", create: "global", update: "global" }
|
|
22367
22796
|
},
|
|
22797
|
+
{
|
|
22798
|
+
key: "sales_order_attachments",
|
|
22799
|
+
accessor: "salesOrderAttachments",
|
|
22800
|
+
resourcePath: "/V1.0/SalesOrderAttachments",
|
|
22801
|
+
parentScopedPath: "/V1.0/SalesOrders/{parentId}/Attachments",
|
|
22802
|
+
parentPath: "/V1.0/SalesOrders",
|
|
22803
|
+
parentField: "salesOrderID",
|
|
22804
|
+
deletable: true,
|
|
22805
|
+
udfCapable: false,
|
|
22806
|
+
attachmentGet: true,
|
|
22807
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
22808
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22809
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
22810
|
+
},
|
|
22368
22811
|
{
|
|
22369
22812
|
key: "sales_orders",
|
|
22370
22813
|
accessor: "salesOrders",
|
|
@@ -22855,7 +23298,7 @@ var SIMPLE_RESOURCES = [
|
|
|
22855
23298
|
var GenericResource = class extends BaseResource {
|
|
22856
23299
|
constructor(http, config, pageSize) {
|
|
22857
23300
|
super(http, config, pageSize);
|
|
22858
|
-
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 () => {
|
|
23301
|
+
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 () => {
|
|
22859
23302
|
throw new OperationNotSupportedError(config.key, "getUdfInfo");
|
|
22860
23303
|
};
|
|
22861
23304
|
if (config.ops?.create === false || isScopedAttachmentResource(config.key) || ["company_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {
|
|
@@ -24738,7 +25181,7 @@ function dateBucketLabel(value, bucket) {
|
|
|
24738
25181
|
var queryResourceKeysPromise = null;
|
|
24739
25182
|
function queryResourceKeys() {
|
|
24740
25183
|
if (queryResourceKeysPromise === null) {
|
|
24741
|
-
queryResourceKeysPromise =
|
|
25184
|
+
queryResourceKeysPromise = chunkQCA5R7QF_cjs.loadCapabilityRecords().then((records) => {
|
|
24742
25185
|
const s = /* @__PURE__ */ new Set();
|
|
24743
25186
|
for (const rec of records) if (rec.operation === "query") s.add(rec.resource);
|
|
24744
25187
|
return s;
|
|
@@ -24860,7 +25303,7 @@ function parseTopAndLimit(opts, problems) {
|
|
|
24860
25303
|
return { top, limit };
|
|
24861
25304
|
}
|
|
24862
25305
|
async function checkFieldNames(resourceKey, conditions, opts, problems) {
|
|
24863
|
-
const records = resourceKey === void 0 ? [] : await
|
|
25306
|
+
const records = resourceKey === void 0 ? [] : await chunkQCA5R7QF_cjs.loadCapabilityRecords();
|
|
24864
25307
|
const record = resourceKey === void 0 ? void 0 : records.find((r) => r.resource === resourceKey && r.operation === "query");
|
|
24865
25308
|
if (record === void 0) return void 0;
|
|
24866
25309
|
const strings = (v) => Array.isArray(v) ? v.filter((f) => typeof f === "string" && f.trim() !== "") : [];
|
|
@@ -25505,7 +25948,7 @@ async function uiLink(client, input) {
|
|
|
25505
25948
|
var indexPromise = null;
|
|
25506
25949
|
function operationIndex() {
|
|
25507
25950
|
if (indexPromise === null) {
|
|
25508
|
-
indexPromise =
|
|
25951
|
+
indexPromise = chunkQCA5R7QF_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
|
|
25509
25952
|
}
|
|
25510
25953
|
return indexPromise;
|
|
25511
25954
|
}
|