node-autotask 0.77.0 → 0.79.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-6VBOBCWA.cjs → chunk-2YFX77XI.cjs} +312 -14
- package/dist/{chunk-5MH3MPLB.cjs → chunk-75TQWC3M.cjs} +32 -30
- package/dist/{chunk-NAI7XIX4.cjs → chunk-EEGAMP4D.cjs} +199 -199
- package/dist/{chunk-G2U6NHPO.js → chunk-GJU4DJ6H.js} +3 -3
- package/dist/{chunk-RLXUY4VM.js → chunk-MQ2DXOZW.js} +2 -2
- package/dist/{chunk-QTFK2HAO.js → chunk-XIPZDDZS.js} +4 -2
- package/dist/{chunk-3FZJJX5B.cjs → chunk-XJQS3FBA.cjs} +3 -3
- package/dist/{chunk-F5Y7WBWY.js → chunk-YK32RN77.js} +307 -9
- package/dist/{index-B-vNyiD_.d.cts → index-BGFWqM2_.d.cts} +89 -1
- package/dist/{index-B-vNyiD_.d.ts → index-BGFWqM2_.d.ts} +89 -1
- package/dist/{index-PLdAoAFJ.d.cts → index-DBz-dqAY.d.cts} +4 -2
- package/dist/{index-ecr6unv3.d.ts → index-DS3jnPiq.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 chunkXJQS3FBA_cjs = require('./chunk-XJQS3FBA.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 chunkXJQS3FBA_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXJQS3FBA_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkXJQS3FBA_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-GJU4DJ6H.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXJQS3FBA_cjs = require('./chunk-XJQS3FBA.cjs');
|
|
4
4
|
var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
|
|
5
5
|
var crypto = require('crypto');
|
|
6
6
|
var async_hooks = require('async_hooks');
|
|
@@ -3025,7 +3025,24 @@ var RELATIONSHIP_MAP = {
|
|
|
3025
3025
|
"segment": "Notes",
|
|
3026
3026
|
"field": "configurationItemID"
|
|
3027
3027
|
},
|
|
3028
|
-
"children": [
|
|
3028
|
+
"children": [
|
|
3029
|
+
{
|
|
3030
|
+
"resource": "configuration_item_note_attachments",
|
|
3031
|
+
"apiEntity": "ConfigurationItemNoteAttachment",
|
|
3032
|
+
"parentField": "configurationItemNoteID",
|
|
3033
|
+
"parentSegment": "Attachments",
|
|
3034
|
+
"tier": "extended",
|
|
3035
|
+
"workflowResource": false,
|
|
3036
|
+
"specialOps": [],
|
|
3037
|
+
"searchCovers": null,
|
|
3038
|
+
"scopedOps": {
|
|
3039
|
+
"create": true,
|
|
3040
|
+
"query": true,
|
|
3041
|
+
"update": false,
|
|
3042
|
+
"delete": true
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
],
|
|
3029
3046
|
"naturalKeys": {
|
|
3030
3047
|
"hasSearch": false,
|
|
3031
3048
|
"searchCovers": null,
|
|
@@ -6385,6 +6402,22 @@ var RELATIONSHIP_MAP = {
|
|
|
6385
6402
|
"delete": false
|
|
6386
6403
|
}
|
|
6387
6404
|
},
|
|
6405
|
+
{
|
|
6406
|
+
"resource": "project_attachments",
|
|
6407
|
+
"apiEntity": "ProjectAttachment",
|
|
6408
|
+
"parentField": "projectID",
|
|
6409
|
+
"parentSegment": "Attachments",
|
|
6410
|
+
"tier": "extended",
|
|
6411
|
+
"workflowResource": false,
|
|
6412
|
+
"specialOps": [],
|
|
6413
|
+
"searchCovers": null,
|
|
6414
|
+
"scopedOps": {
|
|
6415
|
+
"create": true,
|
|
6416
|
+
"query": true,
|
|
6417
|
+
"update": false,
|
|
6418
|
+
"delete": true
|
|
6419
|
+
}
|
|
6420
|
+
},
|
|
6388
6421
|
{
|
|
6389
6422
|
"resource": "project_charges",
|
|
6390
6423
|
"apiEntity": "ProjectCharge",
|
|
@@ -10074,6 +10107,139 @@ var RELATIONSHIP_MAP = {
|
|
|
10074
10107
|
},
|
|
10075
10108
|
"deleteBoundary": null,
|
|
10076
10109
|
"markerField": null
|
|
10110
|
+
},
|
|
10111
|
+
"configuration_item_note_attachments": {
|
|
10112
|
+
"resource": "configuration_item_note_attachments",
|
|
10113
|
+
"apiEntity": "ConfigurationItemNoteAttachment",
|
|
10114
|
+
"kind": "entity",
|
|
10115
|
+
"path": "ConfigurationItemNoteAttachments",
|
|
10116
|
+
"parentScoped": true,
|
|
10117
|
+
"tier": "extended",
|
|
10118
|
+
"workflowResource": false,
|
|
10119
|
+
"group": "A",
|
|
10120
|
+
"parent": {
|
|
10121
|
+
"resource": "configuration_item_notes",
|
|
10122
|
+
"segment": "Attachments",
|
|
10123
|
+
"field": "configurationItemNoteID"
|
|
10124
|
+
},
|
|
10125
|
+
"children": [],
|
|
10126
|
+
"naturalKeys": {
|
|
10127
|
+
"hasSearch": false,
|
|
10128
|
+
"searchCovers": null,
|
|
10129
|
+
"findBy": []
|
|
10130
|
+
},
|
|
10131
|
+
"blindSurfaces": null,
|
|
10132
|
+
"zoneFacts": {
|
|
10133
|
+
"createGuidance": {
|
|
10134
|
+
"createOp": "configuration_item_note_attachments.create",
|
|
10135
|
+
"parentScoped": true,
|
|
10136
|
+
"liveProvenPrefix": [],
|
|
10137
|
+
"unproven": true,
|
|
10138
|
+
"blocker": {
|
|
10139
|
+
"kind": "unknown",
|
|
10140
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10141
|
+
"remedy": "Read current field and picklist metadata, supply the configuration-item note id, and preview the attachment before applying.",
|
|
10142
|
+
"requires": {
|
|
10143
|
+
"allOf": [
|
|
10144
|
+
"attachmentType",
|
|
10145
|
+
"fullPath",
|
|
10146
|
+
"title",
|
|
10147
|
+
"publish",
|
|
10148
|
+
"data"
|
|
10149
|
+
]
|
|
10150
|
+
}
|
|
10151
|
+
},
|
|
10152
|
+
"requiresByValue": [
|
|
10153
|
+
{
|
|
10154
|
+
"field": "attachmentType",
|
|
10155
|
+
"value": "FILE_ATTACHMENT",
|
|
10156
|
+
"requires": {
|
|
10157
|
+
"allOf": [
|
|
10158
|
+
"data"
|
|
10159
|
+
]
|
|
10160
|
+
}
|
|
10161
|
+
}
|
|
10162
|
+
],
|
|
10163
|
+
"vendorEvidence": [
|
|
10164
|
+
"Official ConfigurationItemNoteAttachmentsEntity.htm and REST_Attachments.htm: ConfigurationItemNotes is the parent, configurationItemID identifies the asset, and file creation requires title, fullPath, attachmentType, publish and base64 data. Static contract, with live create unproven."
|
|
10165
|
+
],
|
|
10166
|
+
"deleteBoundary": {
|
|
10167
|
+
"available": true,
|
|
10168
|
+
"note": null
|
|
10169
|
+
}
|
|
10170
|
+
}
|
|
10171
|
+
},
|
|
10172
|
+
"deleteBoundary": null,
|
|
10173
|
+
"markerField": null
|
|
10174
|
+
},
|
|
10175
|
+
"project_attachments": {
|
|
10176
|
+
"resource": "project_attachments",
|
|
10177
|
+
"apiEntity": "ProjectAttachment",
|
|
10178
|
+
"kind": "entity",
|
|
10179
|
+
"path": "ProjectAttachments",
|
|
10180
|
+
"parentScoped": true,
|
|
10181
|
+
"tier": "extended",
|
|
10182
|
+
"workflowResource": false,
|
|
10183
|
+
"group": "A",
|
|
10184
|
+
"parent": {
|
|
10185
|
+
"resource": "projects",
|
|
10186
|
+
"segment": "Attachments",
|
|
10187
|
+
"field": "projectID"
|
|
10188
|
+
},
|
|
10189
|
+
"children": [],
|
|
10190
|
+
"naturalKeys": {
|
|
10191
|
+
"hasSearch": false,
|
|
10192
|
+
"searchCovers": null,
|
|
10193
|
+
"findBy": []
|
|
10194
|
+
},
|
|
10195
|
+
"blindSurfaces": null,
|
|
10196
|
+
"zoneFacts": {
|
|
10197
|
+
"createGuidance": {
|
|
10198
|
+
"createOp": "project_attachments.create",
|
|
10199
|
+
"parentScoped": true,
|
|
10200
|
+
"liveProvenPrefix": [],
|
|
10201
|
+
"unproven": true,
|
|
10202
|
+
"blocker": {
|
|
10203
|
+
"kind": "unknown",
|
|
10204
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10205
|
+
"remedy": "Read current field and picklist metadata, supply the project id, and preview the attachment before applying.",
|
|
10206
|
+
"requires": {
|
|
10207
|
+
"allOf": [
|
|
10208
|
+
"attachmentType",
|
|
10209
|
+
"fullPath",
|
|
10210
|
+
"title",
|
|
10211
|
+
"publish",
|
|
10212
|
+
"data"
|
|
10213
|
+
]
|
|
10214
|
+
}
|
|
10215
|
+
},
|
|
10216
|
+
"requiresByValue": [
|
|
10217
|
+
{
|
|
10218
|
+
"field": "attachmentType",
|
|
10219
|
+
"value": "FILE_ATTACHMENT",
|
|
10220
|
+
"requires": {
|
|
10221
|
+
"allOf": [
|
|
10222
|
+
"data"
|
|
10223
|
+
]
|
|
10224
|
+
}
|
|
10225
|
+
}
|
|
10226
|
+
],
|
|
10227
|
+
"vendorEvidence": [
|
|
10228
|
+
"Official ProjectAttachmentsEntity.htm and REST_Attachments.htm: Projects is the parent; file creation requires attachmentType, title, fullPath, publish and base64 data. Project queries include child project-note attachments; no nesting. Static contract, with live create unproven."
|
|
10229
|
+
],
|
|
10230
|
+
"deleteBoundary": {
|
|
10231
|
+
"available": true,
|
|
10232
|
+
"note": null
|
|
10233
|
+
},
|
|
10234
|
+
"parentCompany": {
|
|
10235
|
+
"via": "projectID",
|
|
10236
|
+
"resource": "projects",
|
|
10237
|
+
"field": "companyID"
|
|
10238
|
+
}
|
|
10239
|
+
}
|
|
10240
|
+
},
|
|
10241
|
+
"deleteBoundary": null,
|
|
10242
|
+
"markerField": null
|
|
10077
10243
|
}
|
|
10078
10244
|
};
|
|
10079
10245
|
var BLIND_SURFACE_STAMPS = {
|
|
@@ -12024,6 +12190,45 @@ var CREATE_GUIDANCE = {
|
|
|
12024
12190
|
"note": null
|
|
12025
12191
|
}
|
|
12026
12192
|
},
|
|
12193
|
+
{
|
|
12194
|
+
"resource": "configuration_item_note_attachments",
|
|
12195
|
+
"createOp": "configuration_item_note_attachments.create",
|
|
12196
|
+
"parentScoped": true,
|
|
12197
|
+
"liveProvenPrefix": [],
|
|
12198
|
+
"unproven": true,
|
|
12199
|
+
"blocker": {
|
|
12200
|
+
"kind": "unknown",
|
|
12201
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
12202
|
+
"remedy": "Read current field and picklist metadata, supply the configuration-item note id, and preview the attachment before applying.",
|
|
12203
|
+
"requires": {
|
|
12204
|
+
"allOf": [
|
|
12205
|
+
"attachmentType",
|
|
12206
|
+
"fullPath",
|
|
12207
|
+
"title",
|
|
12208
|
+
"publish",
|
|
12209
|
+
"data"
|
|
12210
|
+
]
|
|
12211
|
+
}
|
|
12212
|
+
},
|
|
12213
|
+
"vendorEvidence": [
|
|
12214
|
+
"Official ConfigurationItemNoteAttachmentsEntity.htm and REST_Attachments.htm: ConfigurationItemNotes is the parent, configurationItemID identifies the asset, and file creation requires title, fullPath, attachmentType, publish and base64 data. Static contract, with live create unproven."
|
|
12215
|
+
],
|
|
12216
|
+
"deleteBoundary": {
|
|
12217
|
+
"available": true,
|
|
12218
|
+
"note": null
|
|
12219
|
+
},
|
|
12220
|
+
"requiresByValue": [
|
|
12221
|
+
{
|
|
12222
|
+
"field": "attachmentType",
|
|
12223
|
+
"value": "FILE_ATTACHMENT",
|
|
12224
|
+
"requires": {
|
|
12225
|
+
"allOf": [
|
|
12226
|
+
"data"
|
|
12227
|
+
]
|
|
12228
|
+
}
|
|
12229
|
+
}
|
|
12230
|
+
]
|
|
12231
|
+
},
|
|
12027
12232
|
{
|
|
12028
12233
|
"resource": "configuration_item_notes",
|
|
12029
12234
|
"createOp": "configuration_item_notes.create",
|
|
@@ -13195,6 +13400,50 @@ var CREATE_GUIDANCE = {
|
|
|
13195
13400
|
"note": "the vendor defines no DELETE for products (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."
|
|
13196
13401
|
}
|
|
13197
13402
|
},
|
|
13403
|
+
{
|
|
13404
|
+
"resource": "project_attachments",
|
|
13405
|
+
"createOp": "project_attachments.create",
|
|
13406
|
+
"parentScoped": true,
|
|
13407
|
+
"liveProvenPrefix": [],
|
|
13408
|
+
"unproven": true,
|
|
13409
|
+
"blocker": {
|
|
13410
|
+
"kind": "unknown",
|
|
13411
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
13412
|
+
"remedy": "Read current field and picklist metadata, supply the project id, and preview the attachment before applying.",
|
|
13413
|
+
"requires": {
|
|
13414
|
+
"allOf": [
|
|
13415
|
+
"attachmentType",
|
|
13416
|
+
"fullPath",
|
|
13417
|
+
"title",
|
|
13418
|
+
"publish",
|
|
13419
|
+
"data"
|
|
13420
|
+
]
|
|
13421
|
+
}
|
|
13422
|
+
},
|
|
13423
|
+
"vendorEvidence": [
|
|
13424
|
+
"Official ProjectAttachmentsEntity.htm and REST_Attachments.htm: Projects is the parent; file creation requires attachmentType, title, fullPath, publish and base64 data. Project queries include child project-note attachments; no nesting. Static contract, with live create unproven."
|
|
13425
|
+
],
|
|
13426
|
+
"deleteBoundary": {
|
|
13427
|
+
"available": true,
|
|
13428
|
+
"note": null
|
|
13429
|
+
},
|
|
13430
|
+
"requiresByValue": [
|
|
13431
|
+
{
|
|
13432
|
+
"field": "attachmentType",
|
|
13433
|
+
"value": "FILE_ATTACHMENT",
|
|
13434
|
+
"requires": {
|
|
13435
|
+
"allOf": [
|
|
13436
|
+
"data"
|
|
13437
|
+
]
|
|
13438
|
+
}
|
|
13439
|
+
}
|
|
13440
|
+
],
|
|
13441
|
+
"parentCompany": {
|
|
13442
|
+
"via": "projectID",
|
|
13443
|
+
"resource": "projects",
|
|
13444
|
+
"field": "companyID"
|
|
13445
|
+
}
|
|
13446
|
+
},
|
|
13198
13447
|
{
|
|
13199
13448
|
"resource": "project_charges",
|
|
13200
13449
|
"createOp": "project_charges.create",
|
|
@@ -14339,7 +14588,7 @@ var CREATE_GUIDANCE = {
|
|
|
14339
14588
|
}
|
|
14340
14589
|
],
|
|
14341
14590
|
"counts": {
|
|
14342
|
-
"total":
|
|
14591
|
+
"total": 109,
|
|
14343
14592
|
"byKind": {
|
|
14344
14593
|
"ok": 41,
|
|
14345
14594
|
"blind-reference": 16,
|
|
@@ -14349,7 +14598,7 @@ var CREATE_GUIDANCE = {
|
|
|
14349
14598
|
"resource-role-pair": 2,
|
|
14350
14599
|
"delete-absent": 0,
|
|
14351
14600
|
"non-mutable": 0,
|
|
14352
|
-
"unknown":
|
|
14601
|
+
"unknown": 33
|
|
14353
14602
|
}
|
|
14354
14603
|
}
|
|
14355
14604
|
};
|
|
@@ -15088,6 +15337,12 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
|
|
|
15088
15337
|
],
|
|
15089
15338
|
"configuration_item_attachments": [
|
|
15090
15339
|
"title"
|
|
15340
|
+
],
|
|
15341
|
+
"configuration_item_note_attachments": [
|
|
15342
|
+
"title"
|
|
15343
|
+
],
|
|
15344
|
+
"project_attachments": [
|
|
15345
|
+
"title"
|
|
15091
15346
|
]
|
|
15092
15347
|
};
|
|
15093
15348
|
|
|
@@ -16962,7 +17217,7 @@ async function capabilitySets() {
|
|
|
16962
17217
|
const fieldOps = /* @__PURE__ */ new Map();
|
|
16963
17218
|
const udfCapable = /* @__PURE__ */ new Set();
|
|
16964
17219
|
const resources = /* @__PURE__ */ new Set();
|
|
16965
|
-
for (const rec of await
|
|
17220
|
+
for (const rec of await chunkXJQS3FBA_cjs.loadCapabilityRecords()) {
|
|
16966
17221
|
if (rec.resource === "operations") continue;
|
|
16967
17222
|
resources.add(rec.resource);
|
|
16968
17223
|
if (rec.operation === "getFieldInfo") fieldOps.set(rec.resource, rec);
|
|
@@ -16973,7 +17228,7 @@ async function capabilitySets() {
|
|
|
16973
17228
|
var derivedIndexPromise = null;
|
|
16974
17229
|
function derivedIndexLoad() {
|
|
16975
17230
|
if (derivedIndexPromise === null) {
|
|
16976
|
-
derivedIndexPromise =
|
|
17231
|
+
derivedIndexPromise = chunkXJQS3FBA_cjs.loadCapabilityRecords().then((records) => {
|
|
16977
17232
|
const index = /* @__PURE__ */ new Map();
|
|
16978
17233
|
for (const rec of records) {
|
|
16979
17234
|
const declared = rec.metadata?.derivedFields;
|
|
@@ -18097,6 +18352,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18097
18352
|
"configuration_item_categories": ["id", "displayColorRGB", "isActive", "isClientPortalDefault", "isGlobalDefault", "name", "nickname"],
|
|
18098
18353
|
"configuration_item_category_udf_associations": ["id", "configurationItemCategoryID", "isRequired", "userDefinedFieldDefinitionID", "soapParentPropertyId"],
|
|
18099
18354
|
"configuration_item_dns_records": ["id", "createDateTime", "data", "installedProductID", "timeToLiveSeconds", "dnsType", "soapParentPropertyId"],
|
|
18355
|
+
"configuration_item_note_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "configurationItemID", "configurationItemNoteID", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18100
18356
|
"configuration_item_notes": ["id", "configurationItemID", "createDateTime", "creatorResourceID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "lastActivityDate", "noteType", "title", "soapParentPropertyId"],
|
|
18101
18357
|
"configuration_item_related_items": ["id", "configurationItemID", "relatedConfigurationItemID", "relationship", "soapParentPropertyId"],
|
|
18102
18358
|
"configuration_item_ssl_subject_alternative_names": ["id", "configurationItemID", "name", "soapParentPropertyId"],
|
|
@@ -18149,6 +18405,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18149
18405
|
"phases": ["id", "createDate", "creatorResourceID", "description", "dueDate", "estimatedHours", "externalID", "isScheduled", "lastActivityDateTime", "parentPhaseID", "phaseNumber", "projectID", "startDate", "title", "soapParentPropertyId"],
|
|
18150
18406
|
"product_vendors": ["id", "isActive", "isDefault", "productID", "vendorCost", "vendorID", "vendorPartNumber", "soapParentPropertyId"],
|
|
18151
18407
|
"products": ["id", "billingType", "chargeBillingCodeID", "createdByResourceID", "createdTime", "defaultVendorID", "description", "doesNotRequireProcurement", "externalProductID", "impersonatorCreatorResourceID", "internalProductID", "isActive", "isEligibleForRma", "isSerialized", "link", "manufacturerName", "manufacturerProductName", "markupRate", "msrp", "name", "periodType", "priceCostMethod", "productBillingCodeID", "productCategory", "sku", "unitCost", "unitPrice", "vendorProductNumber", "defaultInstalledProductCategoryID", "userDefinedFields"],
|
|
18408
|
+
"project_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "projectID", "projectNoteID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18152
18409
|
"project_charges": ["id", "billableAmount", "billingCodeID", "chargeType", "contractServiceBundleID", "contractServiceID", "createDate", "creatorResourceID", "datePurchased", "description", "estimatedCost", "extendedCost", "internalCurrencyBillableAmount", "internalCurrencyUnitPrice", "internalPurchaseOrderNumber", "isBillableToCompany", "isBilled", "name", "notes", "organizationalLevelAssociationID", "productID", "projectID", "purchaseOrderNumber", "status", "statusLastModifiedBy", "statusLastModifiedDate", "unitCost", "unitPrice", "unitQuantity", "soapParentPropertyId"],
|
|
18153
18410
|
"project_notes": ["id", "createDateTime", "createdByContactID", "creatorResourceID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "isAnnouncement", "lastActivityDate", "noteType", "projectID", "publish", "title", "soapParentPropertyId"],
|
|
18154
18411
|
"projects": ["id", "actualBilledHours", "actualHours", "changeOrdersBudget", "changeOrdersRevenue", "companyID", "companyOwnerResourceID", "completedDateTime", "completedPercentage", "contractID", "createDateTime", "creatorResourceID", "department", "description", "duration", "endDateTime", "estimatedSalesCost", "estimatedTime", "extProjectNumber", "extProjectType", "impersonatorCreatorResourceID", "laborEstimatedCosts", "laborEstimatedMarginPercentage", "laborEstimatedRevenue", "lastActivityDateTime", "lastActivityPersonType", "lastActivityResourceID", "opportunityID", "organizationalLevelAssociationID", "originalEstimatedRevenue", "projectCostEstimatedMarginPercentage", "projectCostsBudget", "projectCostsRevenue", "projectLeadResourceID", "projectName", "projectNumber", "projectType", "purchaseOrderNumber", "sgda", "startDateTime", "status", "statusDateTime", "statusDetail", "userDefinedFields"],
|
|
@@ -18223,6 +18480,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18223
18480
|
"configuration_item_attachments": ["attachDate"],
|
|
18224
18481
|
"configuration_item_billing_product_associations": ["effectiveDate", "expirationDate"],
|
|
18225
18482
|
"configuration_item_dns_records": ["createDateTime"],
|
|
18483
|
+
"configuration_item_note_attachments": ["attachDate"],
|
|
18226
18484
|
"configuration_item_notes": ["createDateTime", "lastActivityDate"],
|
|
18227
18485
|
"configuration_items": ["createDate", "dattoLastCheckInDateTime", "domainRegistrationDateTime", "domainLastUpdatedDateTime", "domainExpirationDateTime", "installDate", "lastModifiedTime", "sslValidFromDateTime", "sslValidUntilDateTime", "warrantyExpirationDate"],
|
|
18228
18486
|
"contacts": ["bulkEmailOptOutTime", "createDate", "lastActivityDate", "lastModifiedDate", "solicitationOptOutTime"],
|
|
@@ -18248,6 +18506,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18248
18506
|
"opportunity_attachments": ["attachDate"],
|
|
18249
18507
|
"phases": ["createDate", "dueDate", "lastActivityDateTime", "startDate"],
|
|
18250
18508
|
"products": ["createdTime"],
|
|
18509
|
+
"project_attachments": ["attachDate"],
|
|
18251
18510
|
"project_charges": ["createDate", "datePurchased", "statusLastModifiedDate"],
|
|
18252
18511
|
"project_notes": ["createDateTime", "lastActivityDate"],
|
|
18253
18512
|
"projects": ["completedDateTime", "createDateTime", "endDateTime", "lastActivityDateTime", "startDateTime", "statusDateTime"],
|
|
@@ -20624,9 +20883,11 @@ var WRITABLE2 = /* @__PURE__ */ new Set(["attachmentType", "contentType", "data"
|
|
|
20624
20883
|
var FILE_WRITABLE = /* @__PURE__ */ new Set(["attachmentType", "data", "fullPath", "publish", "title"]);
|
|
20625
20884
|
var NON_QUERYABLE = /* @__PURE__ */ new Set(["creatortype", "data", "filesize"]);
|
|
20626
20885
|
var SCOPED_ATTACHMENT_PARENTS = {
|
|
20886
|
+
project_attachments: { field: "projectID", name: "project" },
|
|
20627
20887
|
task_attachments: { field: "taskID", name: "task" },
|
|
20628
20888
|
task_note_attachments: { field: "taskNoteID", name: "task note" },
|
|
20629
|
-
configuration_item_attachments: { field: "configurationItemID", name: "configuration item" }
|
|
20889
|
+
configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
|
|
20890
|
+
configuration_item_note_attachments: { field: "configurationItemNoteID", name: "configuration item note" }
|
|
20630
20891
|
};
|
|
20631
20892
|
function isScopedAttachmentResource(resource) {
|
|
20632
20893
|
return Object.hasOwn(SCOPED_ATTACHMENT_PARENTS, resource);
|
|
@@ -20669,15 +20930,24 @@ function admitFileAttachment(resource, data, parentId) {
|
|
|
20669
20930
|
};
|
|
20670
20931
|
if (data === null || typeof data !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(data))) fail2("data must be a plain record");
|
|
20671
20932
|
const body = data;
|
|
20672
|
-
const reference =
|
|
20933
|
+
const reference = {
|
|
20934
|
+
project_attachments: void 0,
|
|
20935
|
+
task_note_attachments: "attachedByContactID",
|
|
20936
|
+
configuration_item_attachments: "parentAttachmentID",
|
|
20937
|
+
configuration_item_note_attachments: void 0
|
|
20938
|
+
}[resource];
|
|
20673
20939
|
for (const field of Object.keys(body)) if (!FILE_WRITABLE.has(field) && field !== reference) fail2(`${field} is not a supported create field`);
|
|
20674
20940
|
if (body.attachmentType !== "FILE_ATTACHMENT") fail2("attachmentType must explicitly be FILE_ATTACHMENT; other attachment types are unsupported");
|
|
20941
|
+
const maxLength = resource === "project_attachments" ? void 0 : 255;
|
|
20675
20942
|
for (const field of ["fullPath", "title"]) {
|
|
20676
|
-
|
|
20943
|
+
const value = body[field];
|
|
20944
|
+
const requirement = `${field} is required and must be a nonblank string${maxLength === void 0 ? "" : ` of at most ${maxLength} characters`}`;
|
|
20945
|
+
if (typeof value !== "string" || value.trim() === "") return fail2(requirement);
|
|
20946
|
+
if (maxLength !== void 0 && value.length > maxLength) fail2(requirement);
|
|
20677
20947
|
}
|
|
20678
20948
|
if (typeof body.publish !== "number" || !Number.isSafeInteger(body.publish)) fail2("publish must be an integer from current field metadata");
|
|
20679
20949
|
if (typeof body.data !== "string" || !isBase64(body.data)) fail2("FILE_ATTACHMENT requires nonempty base64 data");
|
|
20680
|
-
if (body[reference] !== void 0) {
|
|
20950
|
+
if (reference !== void 0 && body[reference] !== void 0) {
|
|
20681
20951
|
if (typeof body[reference] !== "number") fail2(`${reference} must be a numeric identifier`);
|
|
20682
20952
|
if (parseIdentifier(body[reference], reference) === 0) fail2(`${reference} must be positive`);
|
|
20683
20953
|
}
|
|
@@ -20970,6 +21240,20 @@ var SIMPLE_RESOURCES = [
|
|
|
20970
21240
|
helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
20971
21241
|
opForms: { get: "scoped", delete: "scoped" }
|
|
20972
21242
|
},
|
|
21243
|
+
{
|
|
21244
|
+
key: "configuration_item_note_attachments",
|
|
21245
|
+
accessor: "configurationItemNoteAttachments",
|
|
21246
|
+
resourcePath: "/V1.0/ConfigurationItemNoteAttachments",
|
|
21247
|
+
parentScopedPath: "/V1.0/ConfigurationItemNotes/{parentId}/Attachments",
|
|
21248
|
+
parentPath: "/V1.0/ConfigurationItemNotes",
|
|
21249
|
+
parentField: "configurationItemNoteID",
|
|
21250
|
+
deletable: true,
|
|
21251
|
+
udfCapable: false,
|
|
21252
|
+
attachmentGet: true,
|
|
21253
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
21254
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21255
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
21256
|
+
},
|
|
20973
21257
|
{
|
|
20974
21258
|
key: "configuration_item_notes",
|
|
20975
21259
|
accessor: "configurationItemNotes",
|
|
@@ -21584,6 +21868,20 @@ var SIMPLE_RESOURCES = [
|
|
|
21584
21868
|
helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21585
21869
|
opForms: { get: "global", create: "global", update: "global" }
|
|
21586
21870
|
},
|
|
21871
|
+
{
|
|
21872
|
+
key: "project_attachments",
|
|
21873
|
+
accessor: "projectAttachments",
|
|
21874
|
+
resourcePath: "/V1.0/ProjectAttachments",
|
|
21875
|
+
parentScopedPath: "/V1.0/Projects/{parentId}/Attachments",
|
|
21876
|
+
parentPath: "/V1.0/Projects",
|
|
21877
|
+
parentField: "projectID",
|
|
21878
|
+
deletable: true,
|
|
21879
|
+
udfCapable: false,
|
|
21880
|
+
attachmentGet: true,
|
|
21881
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
21882
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21883
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
21884
|
+
},
|
|
21587
21885
|
{
|
|
21588
21886
|
key: "project_charges",
|
|
21589
21887
|
accessor: "projectCharges",
|
|
@@ -22267,7 +22565,7 @@ var SIMPLE_RESOURCES = [
|
|
|
22267
22565
|
var GenericResource = class extends BaseResource {
|
|
22268
22566
|
constructor(http, config, pageSize) {
|
|
22269
22567
|
super(http, config, pageSize);
|
|
22270
|
-
if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
|
|
22568
|
+
if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "project_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
|
|
22271
22569
|
throw new OperationNotSupportedError(config.key, "getUdfInfo");
|
|
22272
22570
|
};
|
|
22273
22571
|
if (config.ops?.create === false || isScopedAttachmentResource(config.key) || ["company_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {
|
|
@@ -24150,7 +24448,7 @@ function dateBucketLabel(value, bucket) {
|
|
|
24150
24448
|
var queryResourceKeysPromise = null;
|
|
24151
24449
|
function queryResourceKeys() {
|
|
24152
24450
|
if (queryResourceKeysPromise === null) {
|
|
24153
|
-
queryResourceKeysPromise =
|
|
24451
|
+
queryResourceKeysPromise = chunkXJQS3FBA_cjs.loadCapabilityRecords().then((records) => {
|
|
24154
24452
|
const s = /* @__PURE__ */ new Set();
|
|
24155
24453
|
for (const rec of records) if (rec.operation === "query") s.add(rec.resource);
|
|
24156
24454
|
return s;
|
|
@@ -24272,7 +24570,7 @@ function parseTopAndLimit(opts, problems) {
|
|
|
24272
24570
|
return { top, limit };
|
|
24273
24571
|
}
|
|
24274
24572
|
async function checkFieldNames(resourceKey, conditions, opts, problems) {
|
|
24275
|
-
const records = resourceKey === void 0 ? [] : await
|
|
24573
|
+
const records = resourceKey === void 0 ? [] : await chunkXJQS3FBA_cjs.loadCapabilityRecords();
|
|
24276
24574
|
const record = resourceKey === void 0 ? void 0 : records.find((r) => r.resource === resourceKey && r.operation === "query");
|
|
24277
24575
|
if (record === void 0) return void 0;
|
|
24278
24576
|
const strings = (v) => Array.isArray(v) ? v.filter((f) => typeof f === "string" && f.trim() !== "") : [];
|
|
@@ -24917,7 +25215,7 @@ async function uiLink(client, input) {
|
|
|
24917
25215
|
var indexPromise = null;
|
|
24918
25216
|
function operationIndex() {
|
|
24919
25217
|
if (indexPromise === null) {
|
|
24920
|
-
indexPromise =
|
|
25218
|
+
indexPromise = chunkXJQS3FBA_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
|
|
24921
25219
|
}
|
|
24922
25220
|
return indexPromise;
|
|
24923
25221
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkEEGAMP4D_cjs = require('./chunk-EEGAMP4D.cjs');
|
|
4
|
+
var chunk2YFX77XI_cjs = require('./chunk-2YFX77XI.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -33,6 +33,7 @@ var AutotaskClient = class {
|
|
|
33
33
|
configurationItemCategories;
|
|
34
34
|
configurationItemCategoryUdfAssociations;
|
|
35
35
|
configurationItemDnsRecords;
|
|
36
|
+
configurationItemNoteAttachments;
|
|
36
37
|
configurationItemNotes;
|
|
37
38
|
configurationItemRelatedItems;
|
|
38
39
|
configurationItems;
|
|
@@ -89,6 +90,7 @@ var AutotaskClient = class {
|
|
|
89
90
|
phases;
|
|
90
91
|
products;
|
|
91
92
|
productVendors;
|
|
93
|
+
projectAttachments;
|
|
92
94
|
projectCharges;
|
|
93
95
|
projectNotes;
|
|
94
96
|
projects;
|
|
@@ -162,34 +164,34 @@ var AutotaskClient = class {
|
|
|
162
164
|
* anything is wired. Construction issues NO request.
|
|
163
165
|
*/
|
|
164
166
|
constructor(options) {
|
|
165
|
-
this.config =
|
|
166
|
-
this.http = new
|
|
167
|
+
this.config = chunk2YFX77XI_cjs.resolveConfig(options);
|
|
168
|
+
this.http = new chunk2YFX77XI_cjs.HttpClient(this.config);
|
|
167
169
|
this.http.client = this;
|
|
168
|
-
for (const entry of
|
|
169
|
-
this[entry.accessor] = new
|
|
170
|
+
for (const entry of chunk2YFX77XI_cjs.SIMPLE_RESOURCES) {
|
|
171
|
+
this[entry.accessor] = new chunk2YFX77XI_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
170
172
|
}
|
|
171
|
-
this.companies = new
|
|
172
|
-
this.configurationItems = new
|
|
173
|
-
this.contacts = new
|
|
174
|
-
this.contracts = new
|
|
175
|
-
this.inventoryProducts = new
|
|
176
|
-
this.invoices = new
|
|
177
|
-
this.quotes = new
|
|
178
|
-
this.resourceTimeOffAdditional = new
|
|
179
|
-
this.resourceTimeOffBalances = new
|
|
180
|
-
this.resources = new
|
|
181
|
-
this.serviceCalls = new
|
|
182
|
-
this.ticketCharges = new
|
|
183
|
-
this.tickets = new
|
|
184
|
-
this.timeEntries = new
|
|
185
|
-
this.timeOffRequests = new
|
|
186
|
-
this.authenticateResource = new
|
|
187
|
-
this.entityInformation = new
|
|
188
|
-
this.modules = new
|
|
189
|
-
this.thresholdInformation = new
|
|
190
|
-
this.version = new
|
|
191
|
-
this.versionInformation = new
|
|
192
|
-
this.zoneInformation = new
|
|
173
|
+
this.companies = new chunk2YFX77XI_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
174
|
+
this.configurationItems = new chunkEEGAMP4D_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
175
|
+
this.contacts = new chunkEEGAMP4D_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
176
|
+
this.contracts = new chunk2YFX77XI_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
177
|
+
this.inventoryProducts = new chunkEEGAMP4D_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.invoices = new chunk2YFX77XI_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
179
|
+
this.quotes = new chunkEEGAMP4D_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
180
|
+
this.resourceTimeOffAdditional = new chunkEEGAMP4D_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
181
|
+
this.resourceTimeOffBalances = new chunkEEGAMP4D_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
182
|
+
this.resources = new chunkEEGAMP4D_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
183
|
+
this.serviceCalls = new chunkEEGAMP4D_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
184
|
+
this.ticketCharges = new chunkEEGAMP4D_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
185
|
+
this.tickets = new chunkEEGAMP4D_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
186
|
+
this.timeEntries = new chunk2YFX77XI_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
187
|
+
this.timeOffRequests = new chunkEEGAMP4D_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
188
|
+
this.authenticateResource = new chunkEEGAMP4D_cjs.AuthenticateResource(this.http);
|
|
189
|
+
this.entityInformation = new chunkEEGAMP4D_cjs.EntityInformationResource(this.http);
|
|
190
|
+
this.modules = new chunkEEGAMP4D_cjs.ModulesResource(this.http);
|
|
191
|
+
this.thresholdInformation = new chunkEEGAMP4D_cjs.ThresholdInformationResource(this.http);
|
|
192
|
+
this.version = new chunkEEGAMP4D_cjs.VersionResource(this.http);
|
|
193
|
+
this.versionInformation = new chunkEEGAMP4D_cjs.VersionInformationResource(this.http);
|
|
194
|
+
this.zoneInformation = new chunkEEGAMP4D_cjs.ZoneInformationResource(this.http);
|
|
193
195
|
}
|
|
194
196
|
/**
|
|
195
197
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -223,10 +225,10 @@ var AutotaskClient = class {
|
|
|
223
225
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
224
226
|
*/
|
|
225
227
|
withSignal(signal, fn) {
|
|
226
|
-
return
|
|
228
|
+
return chunk2YFX77XI_cjs.runWithSignal(signal, fn);
|
|
227
229
|
}
|
|
228
230
|
async batch(fn, items, opts = {}) {
|
|
229
|
-
return
|
|
231
|
+
return chunk2YFX77XI_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
230
232
|
}
|
|
231
233
|
};
|
|
232
234
|
|