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.
- package/CHANGELOG.md +6 -0
- package/MCP_TOOL_CATALOG.json +265 -9
- package/README.md +1 -1
- package/capabilities.json +959 -7
- package/dist/capabilities-data.js +958 -6
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-XJQYDJKB.cjs → chunk-5AHEJCSP.cjs} +32 -30
- package/dist/{chunk-EFINBMXE.cjs → chunk-C2AFRW5M.cjs} +297 -9
- package/dist/{chunk-HZGCJ2CQ.js → chunk-CV56RIGS.js} +292 -4
- package/dist/{chunk-EQ6LOII6.js → chunk-DBEAS3IR.js} +3 -3
- package/dist/{chunk-FYDLVUSN.js → chunk-HQJLIRXW.js} +4 -2
- package/dist/{chunk-5UR4L7SB.cjs → chunk-QCA5R7QF.cjs} +3 -3
- package/dist/{chunk-TZL45TYE.cjs → chunk-QEMBBAF5.cjs} +199 -199
- package/dist/{chunk-7PQKFGTI.js → chunk-ZKAJVHHZ.js} +2 -2
- package/dist/{index-inEhFJaU.d.cts → index-8Hg6dytT.d.cts} +88 -1
- package/dist/{index-inEhFJaU.d.ts → index-8Hg6dytT.d.ts} +88 -1
- package/dist/{index-Dt1KqDEQ.d.cts → index-DxESlIIg.d.cts} +4 -2
- package/dist/{index-CW3PJPqH.d.ts → index-nXhYAQOf.d.ts} +4 -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 +4 -2
- package/package.json +1 -1
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQCA5R7QF_cjs = require('./chunk-QCA5R7QF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkQCA5R7QF_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQCA5R7QF_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQCA5R7QF_cjs.loadCapabilityRecords; }
|
|
18
18
|
});
|
package/dist/capabilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-
|
|
1
|
+
export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-DBEAS3IR.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQEMBBAF5_cjs = require('./chunk-QEMBBAF5.cjs');
|
|
4
|
+
var chunkC2AFRW5M_cjs = require('./chunk-C2AFRW5M.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -74,6 +74,7 @@ var AutotaskClient = class {
|
|
|
74
74
|
entityInformation;
|
|
75
75
|
expenseItemAttachments;
|
|
76
76
|
expenseItems;
|
|
77
|
+
expenseReportAttachments;
|
|
77
78
|
expenseReports;
|
|
78
79
|
holidays;
|
|
79
80
|
holidaySets;
|
|
@@ -104,6 +105,7 @@ var AutotaskClient = class {
|
|
|
104
105
|
quoteLocations;
|
|
105
106
|
quotes;
|
|
106
107
|
quoteTemplates;
|
|
108
|
+
resourceAttachments;
|
|
107
109
|
resourceRoleQueues;
|
|
108
110
|
resourceRoles;
|
|
109
111
|
resources;
|
|
@@ -167,34 +169,34 @@ var AutotaskClient = class {
|
|
|
167
169
|
* anything is wired. Construction issues NO request.
|
|
168
170
|
*/
|
|
169
171
|
constructor(options) {
|
|
170
|
-
this.config =
|
|
171
|
-
this.http = new
|
|
172
|
+
this.config = chunkC2AFRW5M_cjs.resolveConfig(options);
|
|
173
|
+
this.http = new chunkC2AFRW5M_cjs.HttpClient(this.config);
|
|
172
174
|
this.http.client = this;
|
|
173
|
-
for (const entry of
|
|
174
|
-
this[entry.accessor] = new
|
|
175
|
+
for (const entry of chunkC2AFRW5M_cjs.SIMPLE_RESOURCES) {
|
|
176
|
+
this[entry.accessor] = new chunkC2AFRW5M_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
175
177
|
}
|
|
176
|
-
this.companies = new
|
|
177
|
-
this.configurationItems = new
|
|
178
|
-
this.contacts = new
|
|
179
|
-
this.contracts = new
|
|
180
|
-
this.inventoryProducts = new
|
|
181
|
-
this.invoices = new
|
|
182
|
-
this.quotes = new
|
|
183
|
-
this.resourceTimeOffAdditional = new
|
|
184
|
-
this.resourceTimeOffBalances = new
|
|
185
|
-
this.resources = new
|
|
186
|
-
this.serviceCalls = new
|
|
187
|
-
this.ticketCharges = new
|
|
188
|
-
this.tickets = new
|
|
189
|
-
this.timeEntries = new
|
|
190
|
-
this.timeOffRequests = new
|
|
191
|
-
this.authenticateResource = new
|
|
192
|
-
this.entityInformation = new
|
|
193
|
-
this.modules = new
|
|
194
|
-
this.thresholdInformation = new
|
|
195
|
-
this.version = new
|
|
196
|
-
this.versionInformation = new
|
|
197
|
-
this.zoneInformation = new
|
|
178
|
+
this.companies = new chunkC2AFRW5M_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
179
|
+
this.configurationItems = new chunkQEMBBAF5_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
180
|
+
this.contacts = new chunkQEMBBAF5_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
181
|
+
this.contracts = new chunkC2AFRW5M_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
182
|
+
this.inventoryProducts = new chunkQEMBBAF5_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
183
|
+
this.invoices = new chunkC2AFRW5M_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
184
|
+
this.quotes = new chunkQEMBBAF5_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
185
|
+
this.resourceTimeOffAdditional = new chunkQEMBBAF5_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
186
|
+
this.resourceTimeOffBalances = new chunkQEMBBAF5_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
187
|
+
this.resources = new chunkQEMBBAF5_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
188
|
+
this.serviceCalls = new chunkQEMBBAF5_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
189
|
+
this.ticketCharges = new chunkQEMBBAF5_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
190
|
+
this.tickets = new chunkQEMBBAF5_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
191
|
+
this.timeEntries = new chunkC2AFRW5M_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
192
|
+
this.timeOffRequests = new chunkQEMBBAF5_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
193
|
+
this.authenticateResource = new chunkQEMBBAF5_cjs.AuthenticateResource(this.http);
|
|
194
|
+
this.entityInformation = new chunkQEMBBAF5_cjs.EntityInformationResource(this.http);
|
|
195
|
+
this.modules = new chunkQEMBBAF5_cjs.ModulesResource(this.http);
|
|
196
|
+
this.thresholdInformation = new chunkQEMBBAF5_cjs.ThresholdInformationResource(this.http);
|
|
197
|
+
this.version = new chunkQEMBBAF5_cjs.VersionResource(this.http);
|
|
198
|
+
this.versionInformation = new chunkQEMBBAF5_cjs.VersionInformationResource(this.http);
|
|
199
|
+
this.zoneInformation = new chunkQEMBBAF5_cjs.ZoneInformationResource(this.http);
|
|
198
200
|
}
|
|
199
201
|
/**
|
|
200
202
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -228,10 +230,10 @@ var AutotaskClient = class {
|
|
|
228
230
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
229
231
|
*/
|
|
230
232
|
withSignal(signal, fn) {
|
|
231
|
-
return
|
|
233
|
+
return chunkC2AFRW5M_cjs.runWithSignal(signal, fn);
|
|
232
234
|
}
|
|
233
235
|
async batch(fn, items, opts = {}) {
|
|
234
|
-
return
|
|
236
|
+
return chunkC2AFRW5M_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
235
237
|
}
|
|
236
238
|
};
|
|
237
239
|
|
|
@@ -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",
|
|
@@ -10494,6 +10526,138 @@ var RELATIONSHIP_MAP = {
|
|
|
10494
10526
|
},
|
|
10495
10527
|
"deleteBoundary": null,
|
|
10496
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
|
|
10497
10661
|
}
|
|
10498
10662
|
};
|
|
10499
10663
|
var BLIND_SURFACE_STAMPS = {
|
|
@@ -13418,6 +13582,47 @@ var CREATE_GUIDANCE = {
|
|
|
13418
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."
|
|
13419
13583
|
}
|
|
13420
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
|
+
},
|
|
13421
13626
|
{
|
|
13422
13627
|
"resource": "expense_reports",
|
|
13423
13628
|
"createOp": "expense_reports.create",
|
|
@@ -14003,6 +14208,47 @@ var CREATE_GUIDANCE = {
|
|
|
14003
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."
|
|
14004
14209
|
}
|
|
14005
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
|
+
},
|
|
14006
14252
|
{
|
|
14007
14253
|
"resource": "resource_role_queues",
|
|
14008
14254
|
"createOp": "resource_role_queues.create",
|
|
@@ -14970,7 +15216,7 @@ var CREATE_GUIDANCE = {
|
|
|
14970
15216
|
}
|
|
14971
15217
|
],
|
|
14972
15218
|
"counts": {
|
|
14973
|
-
"total":
|
|
15219
|
+
"total": 114,
|
|
14974
15220
|
"byKind": {
|
|
14975
15221
|
"ok": 41,
|
|
14976
15222
|
"blind-reference": 16,
|
|
@@ -14980,7 +15226,7 @@ var CREATE_GUIDANCE = {
|
|
|
14980
15226
|
"resource-role-pair": 2,
|
|
14981
15227
|
"delete-absent": 0,
|
|
14982
15228
|
"non-mutable": 0,
|
|
14983
|
-
"unknown":
|
|
15229
|
+
"unknown": 38
|
|
14984
15230
|
}
|
|
14985
15231
|
}
|
|
14986
15232
|
};
|
|
@@ -15734,6 +15980,12 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
|
|
|
15734
15980
|
],
|
|
15735
15981
|
"sales_order_attachments": [
|
|
15736
15982
|
"title"
|
|
15983
|
+
],
|
|
15984
|
+
"expense_report_attachments": [
|
|
15985
|
+
"title"
|
|
15986
|
+
],
|
|
15987
|
+
"resource_attachments": [
|
|
15988
|
+
"title"
|
|
15737
15989
|
]
|
|
15738
15990
|
};
|
|
15739
15991
|
|
|
@@ -17608,7 +17860,7 @@ async function capabilitySets() {
|
|
|
17608
17860
|
const fieldOps = /* @__PURE__ */ new Map();
|
|
17609
17861
|
const udfCapable = /* @__PURE__ */ new Set();
|
|
17610
17862
|
const resources = /* @__PURE__ */ new Set();
|
|
17611
|
-
for (const rec of await
|
|
17863
|
+
for (const rec of await chunkQCA5R7QF_cjs.loadCapabilityRecords()) {
|
|
17612
17864
|
if (rec.resource === "operations") continue;
|
|
17613
17865
|
resources.add(rec.resource);
|
|
17614
17866
|
if (rec.operation === "getFieldInfo") fieldOps.set(rec.resource, rec);
|
|
@@ -17619,7 +17871,7 @@ async function capabilitySets() {
|
|
|
17619
17871
|
var derivedIndexPromise = null;
|
|
17620
17872
|
function derivedIndexLoad() {
|
|
17621
17873
|
if (derivedIndexPromise === null) {
|
|
17622
|
-
derivedIndexPromise =
|
|
17874
|
+
derivedIndexPromise = chunkQCA5R7QF_cjs.loadCapabilityRecords().then((records) => {
|
|
17623
17875
|
const index = /* @__PURE__ */ new Map();
|
|
17624
17876
|
for (const rec of records) {
|
|
17625
17877
|
const declared = rec.metadata?.derivedFields;
|
|
@@ -18781,6 +19033,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18781
19033
|
"domain_registrars": ["id", "name", "url"],
|
|
18782
19034
|
"expense_item_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18783
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"],
|
|
18784
19037
|
"expense_reports": ["id", "amountDue", "approvedDate", "approverID", "departmentNumber", "internalCurrencyCashAdvanceAmount", "internalCurrencyExpenseTotal", "name", "organizationalLevelAssociationID", "quickBooksReferenceNumber", "reimbursementCurrencyAmountDue", "reimbursementCurrencyCashAdvanceAmount", "reimbursementCurrencyID", "rejectionReason", "status", "submit", "submitDate", "submitterID", "weekEnding"],
|
|
18785
19038
|
"holiday_sets": ["id", "holidaySetDescription", "holidaySetName"],
|
|
18786
19039
|
"holidays": ["id", "holidayDate", "holidayName", "holidaySetID", "soapParentPropertyId"],
|
|
@@ -18810,6 +19063,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18810
19063
|
"quote_locations": ["id", "address1", "address2", "city", "postalCode", "state"],
|
|
18811
19064
|
"quote_templates": ["id", "calculateTaxSeparately", "createDate", "createdBy", "currencyNegativeFormat", "currencyPositiveFormat", "dateFormat", "description", "displayTaxCategorySuperscripts", "isActive", "lastActivityBy", "lastActivityDate", "name", "numberFormat", "pageLayout", "pageNumberFormat", "showEachTaxInGroup", "showGridHeader", "showTaxCategory", "showVerticalGridLines"],
|
|
18812
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"],
|
|
18813
19067
|
"resource_role_queues": ["id", "queueID", "resourceID", "soapParentPropertyId"],
|
|
18814
19068
|
"resource_roles": ["id", "departmentID", "isActive", "queueID", "resourceID", "roleID", "soapParentPropertyId"],
|
|
18815
19069
|
"resource_skills": ["id", "resourceID", "skillDescription", "skillID", "skillLevel", "soapParentPropertyId"],
|
|
@@ -18892,6 +19146,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18892
19146
|
"currencies": ["lastModifiedDateTime"],
|
|
18893
19147
|
"expense_item_attachments": ["attachDate"],
|
|
18894
19148
|
"expense_items": ["expenseDate"],
|
|
19149
|
+
"expense_report_attachments": ["attachDate"],
|
|
18895
19150
|
"expense_reports": ["approvedDate", "submitDate", "weekEnding"],
|
|
18896
19151
|
"holidays": ["holidayDate"],
|
|
18897
19152
|
"inventory_products": ["createDateTime"],
|
|
@@ -18911,6 +19166,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18911
19166
|
"purchase_orders": ["cancelDateTime", "createDateTime", "latestEstimatedArrivalDate", "shippingDate", "submitDateTime"],
|
|
18912
19167
|
"quote_templates": ["createDate", "lastActivityDate"],
|
|
18913
19168
|
"quotes": ["approvalStatusChangedDate", "createDate", "effectiveDate", "expirationDate", "extApprovalResponseDate", "lastActivityDate", "lastPublishedDateTime"],
|
|
19169
|
+
"resource_attachments": ["attachDate"],
|
|
18914
19170
|
"resources": ["hireDate"],
|
|
18915
19171
|
"sales_order_attachments": ["attachDate"],
|
|
18916
19172
|
"sales_orders": ["promisedFulfillmentDate", "salesOrderDate"],
|
|
@@ -21284,6 +21540,8 @@ var SCOPED_ATTACHMENT_PARENTS = {
|
|
|
21284
21540
|
project_note_attachments: { field: "projectNoteID", name: "project note" },
|
|
21285
21541
|
contract_note_attachments: { field: "contractNoteID", name: "contract note" },
|
|
21286
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" },
|
|
21287
21545
|
task_attachments: { field: "taskID", name: "task" },
|
|
21288
21546
|
task_note_attachments: { field: "taskNoteID", name: "task note" },
|
|
21289
21547
|
configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
|
|
@@ -21334,6 +21592,8 @@ function admitFileAttachment(resource, data, parentId) {
|
|
|
21334
21592
|
project_attachments: void 0,
|
|
21335
21593
|
contract_note_attachments: void 0,
|
|
21336
21594
|
sales_order_attachments: void 0,
|
|
21595
|
+
expense_report_attachments: void 0,
|
|
21596
|
+
resource_attachments: void 0,
|
|
21337
21597
|
task_note_attachments: "attachedByContactID",
|
|
21338
21598
|
project_note_attachments: "attachedByContactID",
|
|
21339
21599
|
configuration_item_attachments: "parentAttachmentID",
|
|
@@ -22121,6 +22381,20 @@ var SIMPLE_RESOURCES = [
|
|
|
22121
22381
|
helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22122
22382
|
opForms: { get: "global", create: "scoped", update: "scoped" }
|
|
22123
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
|
+
},
|
|
22124
22398
|
{
|
|
22125
22399
|
key: "expense_reports",
|
|
22126
22400
|
accessor: "expenseReports",
|
|
@@ -22442,6 +22716,20 @@ var SIMPLE_RESOURCES = [
|
|
|
22442
22716
|
helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22443
22717
|
opForms: { get: "global" }
|
|
22444
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
|
+
},
|
|
22445
22733
|
{
|
|
22446
22734
|
key: "resource_role_queues",
|
|
22447
22735
|
accessor: "resourceRoleQueues",
|
|
@@ -23010,7 +23298,7 @@ var SIMPLE_RESOURCES = [
|
|
|
23010
23298
|
var GenericResource = class extends BaseResource {
|
|
23011
23299
|
constructor(http, config, pageSize) {
|
|
23012
23300
|
super(http, config, pageSize);
|
|
23013
|
-
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 () => {
|
|
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 () => {
|
|
23014
23302
|
throw new OperationNotSupportedError(config.key, "getUdfInfo");
|
|
23015
23303
|
};
|
|
23016
23304
|
if (config.ops?.create === false || isScopedAttachmentResource(config.key) || ["company_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {
|
|
@@ -24893,7 +25181,7 @@ function dateBucketLabel(value, bucket) {
|
|
|
24893
25181
|
var queryResourceKeysPromise = null;
|
|
24894
25182
|
function queryResourceKeys() {
|
|
24895
25183
|
if (queryResourceKeysPromise === null) {
|
|
24896
|
-
queryResourceKeysPromise =
|
|
25184
|
+
queryResourceKeysPromise = chunkQCA5R7QF_cjs.loadCapabilityRecords().then((records) => {
|
|
24897
25185
|
const s = /* @__PURE__ */ new Set();
|
|
24898
25186
|
for (const rec of records) if (rec.operation === "query") s.add(rec.resource);
|
|
24899
25187
|
return s;
|
|
@@ -25015,7 +25303,7 @@ function parseTopAndLimit(opts, problems) {
|
|
|
25015
25303
|
return { top, limit };
|
|
25016
25304
|
}
|
|
25017
25305
|
async function checkFieldNames(resourceKey, conditions, opts, problems) {
|
|
25018
|
-
const records = resourceKey === void 0 ? [] : await
|
|
25306
|
+
const records = resourceKey === void 0 ? [] : await chunkQCA5R7QF_cjs.loadCapabilityRecords();
|
|
25019
25307
|
const record = resourceKey === void 0 ? void 0 : records.find((r) => r.resource === resourceKey && r.operation === "query");
|
|
25020
25308
|
if (record === void 0) return void 0;
|
|
25021
25309
|
const strings = (v) => Array.isArray(v) ? v.filter((f) => typeof f === "string" && f.trim() !== "") : [];
|
|
@@ -25660,7 +25948,7 @@ async function uiLink(client, input) {
|
|
|
25660
25948
|
var indexPromise = null;
|
|
25661
25949
|
function operationIndex() {
|
|
25662
25950
|
if (indexPromise === null) {
|
|
25663
|
-
indexPromise =
|
|
25951
|
+
indexPromise = chunkQCA5R7QF_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
|
|
25664
25952
|
}
|
|
25665
25953
|
return indexPromise;
|
|
25666
25954
|
}
|