node-autotask 0.80.0 → 0.82.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 +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-TMJX6NTZ.cjs → chunk-5UR4L7SB.cjs} +3 -3
- package/dist/{chunk-GRJE3IUU.js → chunk-7PQKFGTI.js} +2 -2
- package/dist/{chunk-3VW75XKV.cjs → chunk-EFINBMXE.cjs} +311 -11
- package/dist/{chunk-R4MKUN4N.js → chunk-EQ6LOII6.js} +3 -3
- package/dist/{chunk-R6N7S6LC.js → chunk-FYDLVUSN.js} +4 -2
- package/dist/{chunk-JITS5NKE.js → chunk-HZGCJ2CQ.js} +306 -6
- package/dist/{chunk-OVP7IH6K.cjs → chunk-TZL45TYE.cjs} +199 -199
- package/dist/{chunk-Z5QCH7JA.cjs → chunk-XJQYDJKB.cjs} +32 -30
- package/dist/{index-mFUX-x9D.d.ts → index-CW3PJPqH.d.ts} +4 -2
- package/dist/{index-CZaFISYn.d.cts → index-Dt1KqDEQ.d.cts} +4 -2
- package/dist/{index-BBc96jwe.d.cts → index-inEhFJaU.d.cts} +88 -1
- package/dist/{index-BBc96jwe.d.ts → index-inEhFJaU.d.ts} +88 -1
- 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 chunk5UR4L7SB_cjs = require('./chunk-5UR4L7SB.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 chunk5UR4L7SB_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk5UR4L7SB_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk5UR4L7SB_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-EQ6LOII6.js';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// src/capabilities.ts
|
|
4
4
|
var CAPABILITY_PLAN_HASHES = {
|
|
5
|
-
"B": "
|
|
6
|
-
"A": "
|
|
7
|
-
"operations": "
|
|
5
|
+
"B": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308",
|
|
6
|
+
"A": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308",
|
|
7
|
+
"operations": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-
|
|
2
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-HZGCJ2CQ.js';
|
|
2
|
+
import { loadCapabilityRecords } from './chunk-EQ6LOII6.js';
|
|
3
3
|
|
|
4
4
|
// src/resources/special/configuration_items.ts
|
|
5
5
|
async function fetchRecord(http, path, label, readOpts) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5UR4L7SB_cjs = require('./chunk-5UR4L7SB.cjs');
|
|
4
4
|
var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
|
|
5
5
|
var crypto = require('crypto');
|
|
6
6
|
var async_hooks = require('async_hooks');
|
|
@@ -4234,7 +4234,24 @@ var RELATIONSHIP_MAP = {
|
|
|
4234
4234
|
"segment": "Notes",
|
|
4235
4235
|
"field": "contractID"
|
|
4236
4236
|
},
|
|
4237
|
-
"children": [
|
|
4237
|
+
"children": [
|
|
4238
|
+
{
|
|
4239
|
+
"resource": "contract_note_attachments",
|
|
4240
|
+
"apiEntity": "ContractNoteAttachment",
|
|
4241
|
+
"parentField": "contractNoteID",
|
|
4242
|
+
"parentSegment": "Attachments",
|
|
4243
|
+
"tier": "extended",
|
|
4244
|
+
"workflowResource": false,
|
|
4245
|
+
"specialOps": [],
|
|
4246
|
+
"searchCovers": null,
|
|
4247
|
+
"scopedOps": {
|
|
4248
|
+
"create": true,
|
|
4249
|
+
"query": true,
|
|
4250
|
+
"update": false,
|
|
4251
|
+
"delete": true
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4254
|
+
],
|
|
4238
4255
|
"naturalKeys": {
|
|
4239
4256
|
"hasSearch": false,
|
|
4240
4257
|
"searchCovers": null,
|
|
@@ -7339,7 +7356,24 @@ var RELATIONSHIP_MAP = {
|
|
|
7339
7356
|
"workflowResource": false,
|
|
7340
7357
|
"group": "B",
|
|
7341
7358
|
"parent": null,
|
|
7342
|
-
"children": [
|
|
7359
|
+
"children": [
|
|
7360
|
+
{
|
|
7361
|
+
"resource": "sales_order_attachments",
|
|
7362
|
+
"apiEntity": "SalesOrderAttachment",
|
|
7363
|
+
"parentField": "salesOrderID",
|
|
7364
|
+
"parentSegment": "Attachments",
|
|
7365
|
+
"tier": "extended",
|
|
7366
|
+
"workflowResource": false,
|
|
7367
|
+
"specialOps": [],
|
|
7368
|
+
"searchCovers": null,
|
|
7369
|
+
"scopedOps": {
|
|
7370
|
+
"create": true,
|
|
7371
|
+
"query": true,
|
|
7372
|
+
"update": false,
|
|
7373
|
+
"delete": true
|
|
7374
|
+
}
|
|
7375
|
+
}
|
|
7376
|
+
],
|
|
7343
7377
|
"naturalKeys": {
|
|
7344
7378
|
"hasSearch": false,
|
|
7345
7379
|
"searchCovers": null,
|
|
@@ -10323,6 +10357,143 @@ var RELATIONSHIP_MAP = {
|
|
|
10323
10357
|
},
|
|
10324
10358
|
"deleteBoundary": null,
|
|
10325
10359
|
"markerField": null
|
|
10360
|
+
},
|
|
10361
|
+
"contract_note_attachments": {
|
|
10362
|
+
"resource": "contract_note_attachments",
|
|
10363
|
+
"apiEntity": "ContractNoteAttachment",
|
|
10364
|
+
"kind": "entity",
|
|
10365
|
+
"path": "ContractNoteAttachments",
|
|
10366
|
+
"parentScoped": true,
|
|
10367
|
+
"tier": "extended",
|
|
10368
|
+
"workflowResource": false,
|
|
10369
|
+
"group": "A",
|
|
10370
|
+
"parent": {
|
|
10371
|
+
"resource": "contract_notes",
|
|
10372
|
+
"segment": "Attachments",
|
|
10373
|
+
"field": "contractNoteID"
|
|
10374
|
+
},
|
|
10375
|
+
"children": [],
|
|
10376
|
+
"naturalKeys": {
|
|
10377
|
+
"hasSearch": false,
|
|
10378
|
+
"searchCovers": null,
|
|
10379
|
+
"findBy": []
|
|
10380
|
+
},
|
|
10381
|
+
"blindSurfaces": null,
|
|
10382
|
+
"zoneFacts": {
|
|
10383
|
+
"createGuidance": {
|
|
10384
|
+
"createOp": "contract_note_attachments.create",
|
|
10385
|
+
"parentScoped": true,
|
|
10386
|
+
"liveProvenPrefix": [],
|
|
10387
|
+
"unproven": true,
|
|
10388
|
+
"blocker": {
|
|
10389
|
+
"kind": "unknown",
|
|
10390
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10391
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
10392
|
+
"requires": {
|
|
10393
|
+
"allOf": [
|
|
10394
|
+
"attachmentType",
|
|
10395
|
+
"fullPath",
|
|
10396
|
+
"title",
|
|
10397
|
+
"publish",
|
|
10398
|
+
"data"
|
|
10399
|
+
]
|
|
10400
|
+
}
|
|
10401
|
+
},
|
|
10402
|
+
"requiresByValue": [
|
|
10403
|
+
{
|
|
10404
|
+
"field": "attachmentType",
|
|
10405
|
+
"value": "FILE_ATTACHMENT",
|
|
10406
|
+
"requires": {
|
|
10407
|
+
"allOf": [
|
|
10408
|
+
"data"
|
|
10409
|
+
]
|
|
10410
|
+
}
|
|
10411
|
+
}
|
|
10412
|
+
],
|
|
10413
|
+
"vendorEvidence": [
|
|
10414
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ContractNoteAttachmentsEntity.htm",
|
|
10415
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
10416
|
+
"Official ContractNoteAttachments entity documentation and vendored controllers define scoped ContractNotes attachment routes. Contract notes cannot have nested attachments, and the documented contact-author exception does not include contract notes. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
|
|
10417
|
+
],
|
|
10418
|
+
"deleteBoundary": {
|
|
10419
|
+
"available": true,
|
|
10420
|
+
"note": null
|
|
10421
|
+
}
|
|
10422
|
+
}
|
|
10423
|
+
},
|
|
10424
|
+
"deleteBoundary": null,
|
|
10425
|
+
"markerField": null
|
|
10426
|
+
},
|
|
10427
|
+
"sales_order_attachments": {
|
|
10428
|
+
"resource": "sales_order_attachments",
|
|
10429
|
+
"apiEntity": "SalesOrderAttachment",
|
|
10430
|
+
"kind": "entity",
|
|
10431
|
+
"path": "SalesOrderAttachments",
|
|
10432
|
+
"parentScoped": true,
|
|
10433
|
+
"tier": "extended",
|
|
10434
|
+
"workflowResource": false,
|
|
10435
|
+
"group": "B",
|
|
10436
|
+
"parent": {
|
|
10437
|
+
"resource": "sales_orders",
|
|
10438
|
+
"segment": "Attachments",
|
|
10439
|
+
"field": "salesOrderID"
|
|
10440
|
+
},
|
|
10441
|
+
"children": [],
|
|
10442
|
+
"naturalKeys": {
|
|
10443
|
+
"hasSearch": false,
|
|
10444
|
+
"searchCovers": null,
|
|
10445
|
+
"findBy": []
|
|
10446
|
+
},
|
|
10447
|
+
"blindSurfaces": null,
|
|
10448
|
+
"zoneFacts": {
|
|
10449
|
+
"createGuidance": {
|
|
10450
|
+
"createOp": "sales_order_attachments.create",
|
|
10451
|
+
"parentScoped": true,
|
|
10452
|
+
"liveProvenPrefix": [],
|
|
10453
|
+
"unproven": true,
|
|
10454
|
+
"blocker": {
|
|
10455
|
+
"kind": "unknown",
|
|
10456
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10457
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
10458
|
+
"requires": {
|
|
10459
|
+
"allOf": [
|
|
10460
|
+
"attachmentType",
|
|
10461
|
+
"fullPath",
|
|
10462
|
+
"title",
|
|
10463
|
+
"publish",
|
|
10464
|
+
"data"
|
|
10465
|
+
]
|
|
10466
|
+
}
|
|
10467
|
+
},
|
|
10468
|
+
"requiresByValue": [
|
|
10469
|
+
{
|
|
10470
|
+
"field": "attachmentType",
|
|
10471
|
+
"value": "FILE_ATTACHMENT",
|
|
10472
|
+
"requires": {
|
|
10473
|
+
"allOf": [
|
|
10474
|
+
"data"
|
|
10475
|
+
]
|
|
10476
|
+
}
|
|
10477
|
+
}
|
|
10478
|
+
],
|
|
10479
|
+
"vendorEvidence": [
|
|
10480
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/SalesOrderAttachmentsEntity.htm",
|
|
10481
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
10482
|
+
"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."
|
|
10483
|
+
],
|
|
10484
|
+
"deleteBoundary": {
|
|
10485
|
+
"available": true,
|
|
10486
|
+
"note": null
|
|
10487
|
+
},
|
|
10488
|
+
"parentCompany": {
|
|
10489
|
+
"via": "salesOrderID",
|
|
10490
|
+
"resource": "sales_orders",
|
|
10491
|
+
"field": "companyID"
|
|
10492
|
+
}
|
|
10493
|
+
}
|
|
10494
|
+
},
|
|
10495
|
+
"deleteBoundary": null,
|
|
10496
|
+
"markerField": null
|
|
10326
10497
|
}
|
|
10327
10498
|
};
|
|
10328
10499
|
var BLIND_SURFACE_STAMPS = {
|
|
@@ -12785,6 +12956,47 @@ var CREATE_GUIDANCE = {
|
|
|
12785
12956
|
"field": "companyID"
|
|
12786
12957
|
}
|
|
12787
12958
|
},
|
|
12959
|
+
{
|
|
12960
|
+
"resource": "contract_note_attachments",
|
|
12961
|
+
"createOp": "contract_note_attachments.create",
|
|
12962
|
+
"parentScoped": true,
|
|
12963
|
+
"liveProvenPrefix": [],
|
|
12964
|
+
"unproven": true,
|
|
12965
|
+
"blocker": {
|
|
12966
|
+
"kind": "unknown",
|
|
12967
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
12968
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
12969
|
+
"requires": {
|
|
12970
|
+
"allOf": [
|
|
12971
|
+
"attachmentType",
|
|
12972
|
+
"fullPath",
|
|
12973
|
+
"title",
|
|
12974
|
+
"publish",
|
|
12975
|
+
"data"
|
|
12976
|
+
]
|
|
12977
|
+
}
|
|
12978
|
+
},
|
|
12979
|
+
"vendorEvidence": [
|
|
12980
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ContractNoteAttachmentsEntity.htm",
|
|
12981
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
12982
|
+
"Official ContractNoteAttachments entity documentation and vendored controllers define scoped ContractNotes attachment routes. Contract notes cannot have nested attachments, and the documented contact-author exception does not include contract notes. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
|
|
12983
|
+
],
|
|
12984
|
+
"deleteBoundary": {
|
|
12985
|
+
"available": true,
|
|
12986
|
+
"note": null
|
|
12987
|
+
},
|
|
12988
|
+
"requiresByValue": [
|
|
12989
|
+
{
|
|
12990
|
+
"field": "attachmentType",
|
|
12991
|
+
"value": "FILE_ATTACHMENT",
|
|
12992
|
+
"requires": {
|
|
12993
|
+
"allOf": [
|
|
12994
|
+
"data"
|
|
12995
|
+
]
|
|
12996
|
+
}
|
|
12997
|
+
}
|
|
12998
|
+
]
|
|
12999
|
+
},
|
|
12788
13000
|
{
|
|
12789
13001
|
"resource": "contract_notes",
|
|
12790
13002
|
"createOp": "contract_notes.create",
|
|
@@ -13835,6 +14047,52 @@ var CREATE_GUIDANCE = {
|
|
|
13835
14047
|
"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."
|
|
13836
14048
|
}
|
|
13837
14049
|
},
|
|
14050
|
+
{
|
|
14051
|
+
"resource": "sales_order_attachments",
|
|
14052
|
+
"createOp": "sales_order_attachments.create",
|
|
14053
|
+
"parentScoped": true,
|
|
14054
|
+
"liveProvenPrefix": [],
|
|
14055
|
+
"unproven": true,
|
|
14056
|
+
"blocker": {
|
|
14057
|
+
"kind": "unknown",
|
|
14058
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
14059
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
14060
|
+
"requires": {
|
|
14061
|
+
"allOf": [
|
|
14062
|
+
"attachmentType",
|
|
14063
|
+
"fullPath",
|
|
14064
|
+
"title",
|
|
14065
|
+
"publish",
|
|
14066
|
+
"data"
|
|
14067
|
+
]
|
|
14068
|
+
}
|
|
14069
|
+
},
|
|
14070
|
+
"vendorEvidence": [
|
|
14071
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/SalesOrderAttachmentsEntity.htm",
|
|
14072
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
14073
|
+
"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."
|
|
14074
|
+
],
|
|
14075
|
+
"deleteBoundary": {
|
|
14076
|
+
"available": true,
|
|
14077
|
+
"note": null
|
|
14078
|
+
},
|
|
14079
|
+
"requiresByValue": [
|
|
14080
|
+
{
|
|
14081
|
+
"field": "attachmentType",
|
|
14082
|
+
"value": "FILE_ATTACHMENT",
|
|
14083
|
+
"requires": {
|
|
14084
|
+
"allOf": [
|
|
14085
|
+
"data"
|
|
14086
|
+
]
|
|
14087
|
+
}
|
|
14088
|
+
}
|
|
14089
|
+
],
|
|
14090
|
+
"parentCompany": {
|
|
14091
|
+
"via": "salesOrderID",
|
|
14092
|
+
"resource": "sales_orders",
|
|
14093
|
+
"field": "companyID"
|
|
14094
|
+
}
|
|
14095
|
+
},
|
|
13838
14096
|
{
|
|
13839
14097
|
"resource": "service_call_task_resources",
|
|
13840
14098
|
"createOp": "service_call_task_resources.create",
|
|
@@ -14712,7 +14970,7 @@ var CREATE_GUIDANCE = {
|
|
|
14712
14970
|
}
|
|
14713
14971
|
],
|
|
14714
14972
|
"counts": {
|
|
14715
|
-
"total":
|
|
14973
|
+
"total": 112,
|
|
14716
14974
|
"byKind": {
|
|
14717
14975
|
"ok": 41,
|
|
14718
14976
|
"blind-reference": 16,
|
|
@@ -14722,7 +14980,7 @@ var CREATE_GUIDANCE = {
|
|
|
14722
14980
|
"resource-role-pair": 2,
|
|
14723
14981
|
"delete-absent": 0,
|
|
14724
14982
|
"non-mutable": 0,
|
|
14725
|
-
"unknown":
|
|
14983
|
+
"unknown": 36
|
|
14726
14984
|
}
|
|
14727
14985
|
}
|
|
14728
14986
|
};
|
|
@@ -15470,6 +15728,12 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
|
|
|
15470
15728
|
],
|
|
15471
15729
|
"project_note_attachments": [
|
|
15472
15730
|
"title"
|
|
15731
|
+
],
|
|
15732
|
+
"contract_note_attachments": [
|
|
15733
|
+
"title"
|
|
15734
|
+
],
|
|
15735
|
+
"sales_order_attachments": [
|
|
15736
|
+
"title"
|
|
15473
15737
|
]
|
|
15474
15738
|
};
|
|
15475
15739
|
|
|
@@ -17344,7 +17608,7 @@ async function capabilitySets() {
|
|
|
17344
17608
|
const fieldOps = /* @__PURE__ */ new Map();
|
|
17345
17609
|
const udfCapable = /* @__PURE__ */ new Set();
|
|
17346
17610
|
const resources = /* @__PURE__ */ new Set();
|
|
17347
|
-
for (const rec of await
|
|
17611
|
+
for (const rec of await chunk5UR4L7SB_cjs.loadCapabilityRecords()) {
|
|
17348
17612
|
if (rec.resource === "operations") continue;
|
|
17349
17613
|
resources.add(rec.resource);
|
|
17350
17614
|
if (rec.operation === "getFieldInfo") fieldOps.set(rec.resource, rec);
|
|
@@ -17355,7 +17619,7 @@ async function capabilitySets() {
|
|
|
17355
17619
|
var derivedIndexPromise = null;
|
|
17356
17620
|
function derivedIndexLoad() {
|
|
17357
17621
|
if (derivedIndexPromise === null) {
|
|
17358
|
-
derivedIndexPromise =
|
|
17622
|
+
derivedIndexPromise = chunk5UR4L7SB_cjs.loadCapabilityRecords().then((records) => {
|
|
17359
17623
|
const index = /* @__PURE__ */ new Map();
|
|
17360
17624
|
for (const rec of records) {
|
|
17361
17625
|
const declared = rec.metadata?.derivedFields;
|
|
@@ -18500,6 +18764,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18500
18764
|
"contract_exclusion_set_excluded_work_types": ["id", "contractExclusionSetID", "excludedWorkTypeID", "soapParentPropertyId"],
|
|
18501
18765
|
"contract_exclusion_sets": ["id", "description", "isActive", "name"],
|
|
18502
18766
|
"contract_milestones": ["id", "amount", "billingCodeID", "contractID", "createDate", "creatorResourceID", "dateDue", "description", "internalCurrencyAmount", "isInitialPayment", "organizationalLevelAssociationID", "status", "title", "soapParentPropertyId"],
|
|
18767
|
+
"contract_note_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "contractID", "contractNoteID", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18503
18768
|
"contract_notes": ["id", "contractID", "createDateTime", "creatorResourceID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "lastActivityDate", "title", "soapParentPropertyId"],
|
|
18504
18769
|
"contract_rates": ["id", "contractHourlyRate", "contractID", "internalCurrencyContractHourlyRate", "roleID", "soapParentPropertyId"],
|
|
18505
18770
|
"contract_retainers": ["id", "amount", "amountApproved", "contractID", "datePurchased", "endDate", "internalCurrencyAmount", "internalCurrencyAmountApproved", "invoiceNumber", "isPaid", "paymentID", "paymentNumber", "startDate", "status", "soapParentPropertyId"],
|
|
@@ -18552,6 +18817,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18552
18817
|
"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"],
|
|
18553
18818
|
"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"],
|
|
18554
18819
|
"roles": ["id", "description", "hourlyFactor", "hourlyRate", "isActive", "isExcludedFromNewContracts", "isSystemRole", "name", "quoteItemDefaultTaxCategoryId", "roleType"],
|
|
18820
|
+
"sales_order_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "salesOrderID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18555
18821
|
"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"],
|
|
18556
18822
|
"service_call_task_resources": ["id", "resourceID", "serviceCallTaskID", "soapParentPropertyId"],
|
|
18557
18823
|
"service_call_tasks": ["id", "serviceCallID", "taskID", "soapParentPropertyId"],
|
|
@@ -18616,6 +18882,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18616
18882
|
"contract_blocks": ["datePurchased", "endDate", "startDate"],
|
|
18617
18883
|
"contract_charges": ["createDate", "datePurchased", "statusLastModifiedDate"],
|
|
18618
18884
|
"contract_milestones": ["createDate", "dateDue"],
|
|
18885
|
+
"contract_note_attachments": ["attachDate"],
|
|
18619
18886
|
"contract_notes": ["createDateTime", "lastActivityDate"],
|
|
18620
18887
|
"contract_retainers": ["datePurchased", "endDate", "startDate"],
|
|
18621
18888
|
"contract_service_bundle_units": ["approveAndPostDate", "endDate", "startDate"],
|
|
@@ -18645,6 +18912,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18645
18912
|
"quote_templates": ["createDate", "lastActivityDate"],
|
|
18646
18913
|
"quotes": ["approvalStatusChangedDate", "createDate", "effectiveDate", "expirationDate", "extApprovalResponseDate", "lastActivityDate", "lastPublishedDateTime"],
|
|
18647
18914
|
"resources": ["hireDate"],
|
|
18915
|
+
"sales_order_attachments": ["attachDate"],
|
|
18648
18916
|
"sales_orders": ["promisedFulfillmentDate", "salesOrderDate"],
|
|
18649
18917
|
"service_calls": ["canceledDateTime", "createDateTime", "endDateTime", "lastModifiedDateTime", "startDateTime"],
|
|
18650
18918
|
"services": ["createDate", "lastModifiedDate"],
|
|
@@ -21014,6 +21282,8 @@ var NON_QUERYABLE = /* @__PURE__ */ new Set(["creatortype", "data", "filesize"])
|
|
|
21014
21282
|
var SCOPED_ATTACHMENT_PARENTS = {
|
|
21015
21283
|
project_attachments: { field: "projectID", name: "project" },
|
|
21016
21284
|
project_note_attachments: { field: "projectNoteID", name: "project note" },
|
|
21285
|
+
contract_note_attachments: { field: "contractNoteID", name: "contract note" },
|
|
21286
|
+
sales_order_attachments: { field: "salesOrderID", name: "sales order" },
|
|
21017
21287
|
task_attachments: { field: "taskID", name: "task" },
|
|
21018
21288
|
task_note_attachments: { field: "taskNoteID", name: "task note" },
|
|
21019
21289
|
configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
|
|
@@ -21062,6 +21332,8 @@ function admitFileAttachment(resource, data, parentId) {
|
|
|
21062
21332
|
const body = data;
|
|
21063
21333
|
const reference = {
|
|
21064
21334
|
project_attachments: void 0,
|
|
21335
|
+
contract_note_attachments: void 0,
|
|
21336
|
+
sales_order_attachments: void 0,
|
|
21065
21337
|
task_note_attachments: "attachedByContactID",
|
|
21066
21338
|
project_note_attachments: "attachedByContactID",
|
|
21067
21339
|
configuration_item_attachments: "parentAttachmentID",
|
|
@@ -21617,6 +21889,20 @@ var SIMPLE_RESOURCES = [
|
|
|
21617
21889
|
helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21618
21890
|
opForms: { get: "scoped", create: "scoped", update: "scoped" }
|
|
21619
21891
|
},
|
|
21892
|
+
{
|
|
21893
|
+
key: "contract_note_attachments",
|
|
21894
|
+
accessor: "contractNoteAttachments",
|
|
21895
|
+
resourcePath: "/V1.0/ContractNoteAttachments",
|
|
21896
|
+
parentScopedPath: "/V1.0/ContractNotes/{parentId}/Attachments",
|
|
21897
|
+
parentPath: "/V1.0/ContractNotes",
|
|
21898
|
+
parentField: "contractNoteID",
|
|
21899
|
+
deletable: true,
|
|
21900
|
+
udfCapable: false,
|
|
21901
|
+
attachmentGet: true,
|
|
21902
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
21903
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21904
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
21905
|
+
},
|
|
21620
21906
|
{
|
|
21621
21907
|
key: "contract_notes",
|
|
21622
21908
|
accessor: "contractNotes",
|
|
@@ -22220,6 +22506,20 @@ var SIMPLE_RESOURCES = [
|
|
|
22220
22506
|
helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22221
22507
|
opForms: { get: "global", create: "global", update: "global" }
|
|
22222
22508
|
},
|
|
22509
|
+
{
|
|
22510
|
+
key: "sales_order_attachments",
|
|
22511
|
+
accessor: "salesOrderAttachments",
|
|
22512
|
+
resourcePath: "/V1.0/SalesOrderAttachments",
|
|
22513
|
+
parentScopedPath: "/V1.0/SalesOrders/{parentId}/Attachments",
|
|
22514
|
+
parentPath: "/V1.0/SalesOrders",
|
|
22515
|
+
parentField: "salesOrderID",
|
|
22516
|
+
deletable: true,
|
|
22517
|
+
udfCapable: false,
|
|
22518
|
+
attachmentGet: true,
|
|
22519
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
22520
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22521
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
22522
|
+
},
|
|
22223
22523
|
{
|
|
22224
22524
|
key: "sales_orders",
|
|
22225
22525
|
accessor: "salesOrders",
|
|
@@ -22710,7 +23010,7 @@ var SIMPLE_RESOURCES = [
|
|
|
22710
23010
|
var GenericResource = class extends BaseResource {
|
|
22711
23011
|
constructor(http, config, pageSize) {
|
|
22712
23012
|
super(http, config, pageSize);
|
|
22713
|
-
if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "project_attachments", "project_note_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
|
|
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 () => {
|
|
22714
23014
|
throw new OperationNotSupportedError(config.key, "getUdfInfo");
|
|
22715
23015
|
};
|
|
22716
23016
|
if (config.ops?.create === false || isScopedAttachmentResource(config.key) || ["company_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {
|
|
@@ -24593,7 +24893,7 @@ function dateBucketLabel(value, bucket) {
|
|
|
24593
24893
|
var queryResourceKeysPromise = null;
|
|
24594
24894
|
function queryResourceKeys() {
|
|
24595
24895
|
if (queryResourceKeysPromise === null) {
|
|
24596
|
-
queryResourceKeysPromise =
|
|
24896
|
+
queryResourceKeysPromise = chunk5UR4L7SB_cjs.loadCapabilityRecords().then((records) => {
|
|
24597
24897
|
const s = /* @__PURE__ */ new Set();
|
|
24598
24898
|
for (const rec of records) if (rec.operation === "query") s.add(rec.resource);
|
|
24599
24899
|
return s;
|
|
@@ -24715,7 +25015,7 @@ function parseTopAndLimit(opts, problems) {
|
|
|
24715
25015
|
return { top, limit };
|
|
24716
25016
|
}
|
|
24717
25017
|
async function checkFieldNames(resourceKey, conditions, opts, problems) {
|
|
24718
|
-
const records = resourceKey === void 0 ? [] : await
|
|
25018
|
+
const records = resourceKey === void 0 ? [] : await chunk5UR4L7SB_cjs.loadCapabilityRecords();
|
|
24719
25019
|
const record = resourceKey === void 0 ? void 0 : records.find((r) => r.resource === resourceKey && r.operation === "query");
|
|
24720
25020
|
if (record === void 0) return void 0;
|
|
24721
25021
|
const strings = (v) => Array.isArray(v) ? v.filter((f) => typeof f === "string" && f.trim() !== "") : [];
|
|
@@ -25360,7 +25660,7 @@ async function uiLink(client, input) {
|
|
|
25360
25660
|
var indexPromise = null;
|
|
25361
25661
|
function operationIndex() {
|
|
25362
25662
|
if (indexPromise === null) {
|
|
25363
|
-
indexPromise =
|
|
25663
|
+
indexPromise = chunk5UR4L7SB_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
|
|
25364
25664
|
}
|
|
25365
25665
|
return indexPromise;
|
|
25366
25666
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308",
|
|
4
|
+
"A": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308",
|
|
5
|
+
"operations": "2de751fe81574eda1520f8db24e6f947cab79b1231aeeb39da8e379bf50d7308"
|
|
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-
|
|
2
|
-
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-
|
|
1
|
+
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-7PQKFGTI.js';
|
|
2
|
+
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, runBounded } from './chunk-HZGCJ2CQ.js';
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
var AutotaskClient = class {
|
|
@@ -52,6 +52,7 @@ var AutotaskClient = class {
|
|
|
52
52
|
contractExclusionSetExcludedWorkTypes;
|
|
53
53
|
contractExclusionSets;
|
|
54
54
|
contractMilestones;
|
|
55
|
+
contractNoteAttachments;
|
|
55
56
|
contractNotes;
|
|
56
57
|
contractRates;
|
|
57
58
|
contractRetainers;
|
|
@@ -109,6 +110,7 @@ var AutotaskClient = class {
|
|
|
109
110
|
resourceTimeOffApprovers;
|
|
110
111
|
resourceTimeOffBalances;
|
|
111
112
|
roles;
|
|
113
|
+
salesOrderAttachments;
|
|
112
114
|
salesOrders;
|
|
113
115
|
serviceCalls;
|
|
114
116
|
serviceCallTaskResources;
|