node-autotask 0.71.0 → 0.72.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 +10 -0
- package/MCP_TOOL_CATALOG.json +155 -9
- package/README.md +1 -1
- package/capabilities.json +519 -9
- package/dist/capabilities-data.js +518 -8
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-YKQ2KNQO.js → chunk-A4IRIYZ5.js} +3 -2
- package/dist/{chunk-4OR3XBIP.js → chunk-EGG2RGL5.js} +145 -4
- package/dist/{chunk-5COLIVBE.js → chunk-F2TYZKJS.js} +2 -2
- package/dist/{chunk-4DSLRDIF.cjs → chunk-HJVTA7SI.cjs} +31 -30
- package/dist/{chunk-LKJA57CH.js → chunk-K33DPJFK.js} +3 -3
- package/dist/{chunk-QQFF7X67.cjs → chunk-KVC5DZAP.cjs} +150 -9
- package/dist/{chunk-JLCHKCEB.cjs → chunk-SPME362B.cjs} +3 -3
- package/dist/{chunk-QJ327YI6.cjs → chunk-V5UGW6KZ.cjs} +177 -177
- package/dist/{index-CM_SRgtH.d.cts → index-BXnhBnhN.d.cts} +40 -1
- package/dist/{index-CM_SRgtH.d.ts → index-BXnhBnhN.d.ts} +40 -1
- package/dist/{index-CAXT5ZKT.d.cts → index-CqsY5YHt.d.cts} +3 -2
- package/dist/{index-lGpxr4gY.d.ts → index-DxfspQR1.d.ts} +3 -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 +25 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { loadCapabilityRecords } from './chunk-K33DPJFK.js';
|
|
2
2
|
import { NoopLogger, REDACTED, deepMarkUntrusted, wrapUntrusted } from './chunk-7NKB4UXV.js';
|
|
3
3
|
import { randomUUID, createHash } from 'crypto';
|
|
4
4
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
@@ -6199,6 +6199,22 @@ var RELATIONSHIP_MAP = {
|
|
|
6199
6199
|
"field": "projectID"
|
|
6200
6200
|
},
|
|
6201
6201
|
"children": [
|
|
6202
|
+
{
|
|
6203
|
+
"resource": "task_notes",
|
|
6204
|
+
"apiEntity": "TaskNote",
|
|
6205
|
+
"parentField": "taskID",
|
|
6206
|
+
"parentSegment": "Notes",
|
|
6207
|
+
"tier": "extended",
|
|
6208
|
+
"workflowResource": false,
|
|
6209
|
+
"specialOps": [],
|
|
6210
|
+
"searchCovers": null,
|
|
6211
|
+
"scopedOps": {
|
|
6212
|
+
"create": true,
|
|
6213
|
+
"query": true,
|
|
6214
|
+
"update": true,
|
|
6215
|
+
"delete": false
|
|
6216
|
+
}
|
|
6217
|
+
},
|
|
6202
6218
|
{
|
|
6203
6219
|
"resource": "task_secondary_resources",
|
|
6204
6220
|
"apiEntity": "TaskSecondaryResource",
|
|
@@ -9664,6 +9680,53 @@ var RELATIONSHIP_MAP = {
|
|
|
9664
9680
|
},
|
|
9665
9681
|
"deleteBoundary": null,
|
|
9666
9682
|
"markerField": null
|
|
9683
|
+
},
|
|
9684
|
+
"task_notes": {
|
|
9685
|
+
"resource": "task_notes",
|
|
9686
|
+
"apiEntity": "TaskNote",
|
|
9687
|
+
"kind": "entity",
|
|
9688
|
+
"path": "TaskNotes",
|
|
9689
|
+
"parentScoped": true,
|
|
9690
|
+
"tier": "extended",
|
|
9691
|
+
"workflowResource": false,
|
|
9692
|
+
"group": "A",
|
|
9693
|
+
"parent": {
|
|
9694
|
+
"resource": "tasks",
|
|
9695
|
+
"segment": "Notes",
|
|
9696
|
+
"field": "taskID"
|
|
9697
|
+
},
|
|
9698
|
+
"children": [],
|
|
9699
|
+
"naturalKeys": {
|
|
9700
|
+
"hasSearch": false,
|
|
9701
|
+
"searchCovers": null,
|
|
9702
|
+
"findBy": []
|
|
9703
|
+
},
|
|
9704
|
+
"blindSurfaces": null,
|
|
9705
|
+
"zoneFacts": {
|
|
9706
|
+
"createGuidance": {
|
|
9707
|
+
"createOp": "task_notes.create",
|
|
9708
|
+
"parentScoped": true,
|
|
9709
|
+
"liveProvenPrefix": [],
|
|
9710
|
+
"unproven": true,
|
|
9711
|
+
"blocker": {
|
|
9712
|
+
"kind": "unknown",
|
|
9713
|
+
"message": "TaskNotes creation has not been verified; module, permissions, project state and category settings may restrict it.",
|
|
9714
|
+
"remedy": "Use current field metadata and preview first; baseline-project notes are read-only."
|
|
9715
|
+
},
|
|
9716
|
+
"vendorEvidence": [
|
|
9717
|
+
"https://autotask.net/help/developerhelp/Content/APIs/REST/Entities/TaskNotesEntity.htm"
|
|
9718
|
+
],
|
|
9719
|
+
"deleteBoundary": {
|
|
9720
|
+
"available": false,
|
|
9721
|
+
"note": "The vendor defines no DELETE for task_notes (spec-derived); a created task note cannot be removed through the public API."
|
|
9722
|
+
}
|
|
9723
|
+
}
|
|
9724
|
+
},
|
|
9725
|
+
"deleteBoundary": {
|
|
9726
|
+
"note": "The vendor defines no DELETE for task_notes (spec-derived); a created task note cannot be removed through the public API.",
|
|
9727
|
+
"proof": "spec-derived"
|
|
9728
|
+
},
|
|
9729
|
+
"markerField": "title"
|
|
9667
9730
|
}
|
|
9668
9731
|
};
|
|
9669
9732
|
var BLIND_SURFACE_STAMPS = {
|
|
@@ -9773,7 +9836,8 @@ var DELETE_BOUNDARY_NOTES = {
|
|
|
9773
9836
|
"ticket_notes": "the vendor defines no DELETE for ticket_notes (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.",
|
|
9774
9837
|
"tickets": "the vendor defines no DELETE for tickets (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.",
|
|
9775
9838
|
"user_defined_field_definitions": "the vendor defines no DELETE for user_defined_field_definitions (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a UDF definition cannot be deleted through the API; deactivation is via isActive (vendor soft-removal); hard cleanup is UI-only.",
|
|
9776
|
-
"user_defined_field_list_items": "the vendor defines no DELETE for user_defined_field_list_items (spec-derived: the vendored api-docs.json defines no DELETE on the standalone or parent-scoped ListItems paths) \u2014 a picklist value cannot be deleted through the API; deactivation is via isActive (vendor soft-removal); hard cleanup is UI-only."
|
|
9839
|
+
"user_defined_field_list_items": "the vendor defines no DELETE for user_defined_field_list_items (spec-derived: the vendored api-docs.json defines no DELETE on the standalone or parent-scoped ListItems paths) \u2014 a picklist value cannot be deleted through the API; deactivation is via isActive (vendor soft-removal); hard cleanup is UI-only.",
|
|
9840
|
+
"task_notes": "The vendor defines no DELETE for task_notes (spec-derived); a created task note cannot be removed through the public API."
|
|
9777
9841
|
};
|
|
9778
9842
|
var RESPONSE_DRIFT_MARKERS = {
|
|
9779
9843
|
"ticket_checklist_libraries": {
|
|
@@ -13219,6 +13283,25 @@ var CREATE_GUIDANCE = {
|
|
|
13219
13283
|
"note": null
|
|
13220
13284
|
}
|
|
13221
13285
|
},
|
|
13286
|
+
{
|
|
13287
|
+
"resource": "task_notes",
|
|
13288
|
+
"createOp": "task_notes.create",
|
|
13289
|
+
"parentScoped": true,
|
|
13290
|
+
"liveProvenPrefix": [],
|
|
13291
|
+
"unproven": true,
|
|
13292
|
+
"blocker": {
|
|
13293
|
+
"kind": "unknown",
|
|
13294
|
+
"message": "TaskNotes creation has not been verified; module, permissions, project state and category settings may restrict it.",
|
|
13295
|
+
"remedy": "Use current field metadata and preview first; baseline-project notes are read-only."
|
|
13296
|
+
},
|
|
13297
|
+
"vendorEvidence": [
|
|
13298
|
+
"https://autotask.net/help/developerhelp/Content/APIs/REST/Entities/TaskNotesEntity.htm"
|
|
13299
|
+
],
|
|
13300
|
+
"deleteBoundary": {
|
|
13301
|
+
"available": false,
|
|
13302
|
+
"note": "The vendor defines no DELETE for task_notes (spec-derived); a created task note cannot be removed through the public API."
|
|
13303
|
+
}
|
|
13304
|
+
},
|
|
13222
13305
|
{
|
|
13223
13306
|
"resource": "task_secondary_resources",
|
|
13224
13307
|
"createOp": "task_secondary_resources.create",
|
|
@@ -13754,7 +13837,7 @@ var CREATE_GUIDANCE = {
|
|
|
13754
13837
|
}
|
|
13755
13838
|
],
|
|
13756
13839
|
"counts": {
|
|
13757
|
-
"total":
|
|
13840
|
+
"total": 102,
|
|
13758
13841
|
"byKind": {
|
|
13759
13842
|
"ok": 41,
|
|
13760
13843
|
"blind-reference": 16,
|
|
@@ -13764,7 +13847,7 @@ var CREATE_GUIDANCE = {
|
|
|
13764
13847
|
"resource-role-pair": 2,
|
|
13765
13848
|
"delete-absent": 0,
|
|
13766
13849
|
"non-mutable": 0,
|
|
13767
|
-
"unknown":
|
|
13850
|
+
"unknown": 26
|
|
13768
13851
|
}
|
|
13769
13852
|
}
|
|
13770
13853
|
};
|
|
@@ -14490,6 +14573,10 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
|
|
|
14490
14573
|
],
|
|
14491
14574
|
"company_note_attachments": [
|
|
14492
14575
|
"title"
|
|
14576
|
+
],
|
|
14577
|
+
"task_notes": [
|
|
14578
|
+
"description",
|
|
14579
|
+
"title"
|
|
14493
14580
|
]
|
|
14494
14581
|
};
|
|
14495
14582
|
|
|
@@ -17584,6 +17671,7 @@ var MODEL_FIELD_SETS = {
|
|
|
17584
17671
|
"tag_aliases": ["id", "alias", "tagID", "soapParentPropertyId"],
|
|
17585
17672
|
"tag_groups": ["id", "displayColor", "isActive", "isSystem", "label"],
|
|
17586
17673
|
"tags": ["id", "createDateTime", "isActive", "isExcludedFromAutomaticTagging", "isSystem", "label", "lastModifiedDateTime", "tagGroupID"],
|
|
17674
|
+
"task_notes": ["id", "createDateTime", "creatorResourceID", "createdByContactID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "lastActivityDate", "noteType", "publish", "taskID", "title", "soapParentPropertyId"],
|
|
17587
17675
|
"task_secondary_resources": ["id", "resourceID", "roleID", "taskID", "soapParentPropertyId"],
|
|
17588
17676
|
"tasks": ["id", "assignedResourceID", "assignedResourceRoleID", "billingCodeID", "canClientPortalUserCompleteTask", "companyLocationID", "completedByResourceID", "completedByType", "completedDateTime", "createDateTime", "creatorResourceID", "creatorType", "departmentID", "description", "endDateTime", "estimatedHours", "externalID", "hoursToBeScheduled", "isTaskBillable", "isVisibleInClientPortal", "lastActivityDateTime", "lastActivityPersonType", "lastActivityResourceID", "phaseID", "priority", "priorityLabel", "projectID", "purchaseOrderNumber", "remainingHours", "startDateTime", "status", "taskCategoryID", "taskNumber", "taskType", "title", "soapParentPropertyId", "userDefinedFields"],
|
|
17589
17677
|
"tax_regions": ["id", "isActive", "name"],
|
|
@@ -17660,6 +17748,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
17660
17748
|
"subscriptions": ["effectiveDate", "expirationDate"],
|
|
17661
17749
|
"survey_results": ["completeDate", "sendDate"],
|
|
17662
17750
|
"tags": ["createDateTime", "lastModifiedDateTime"],
|
|
17751
|
+
"task_notes": ["createDateTime", "lastActivityDate"],
|
|
17663
17752
|
"tasks": ["completedDateTime", "createDateTime", "endDateTime", "lastActivityDateTime", "startDateTime"],
|
|
17664
17753
|
"ticket_attachments": ["attachDate"],
|
|
17665
17754
|
"ticket_change_request_approvals": ["approveRejectDateTime"],
|
|
@@ -19784,6 +19873,36 @@ var BaseResource = class extends MutationBase {
|
|
|
19784
19873
|
}
|
|
19785
19874
|
};
|
|
19786
19875
|
|
|
19876
|
+
// src/resources/special/taskNotes.ts
|
|
19877
|
+
var WRITABLE = /* @__PURE__ */ new Set(["id", "itemId", "createdByContactID", "description", "noteType", "publish", "taskID", "title"]);
|
|
19878
|
+
function admitTaskNote(data, parentId, creating) {
|
|
19879
|
+
const parent = parseIdentifier(parentId, "parentId");
|
|
19880
|
+
const fail = (message) => {
|
|
19881
|
+
throw new AutotaskConfigError(`task_notes: ${message}`);
|
|
19882
|
+
};
|
|
19883
|
+
if (data === null || typeof data !== "object" || Array.isArray(data)) fail("data must be a record");
|
|
19884
|
+
const body = data;
|
|
19885
|
+
for (const key of Object.keys(body)) if (!WRITABLE.has(key)) fail(`${key} is not a writable TaskNotes field`);
|
|
19886
|
+
for (const [field, maximum] of [["description", 3200], ["title", 250]]) {
|
|
19887
|
+
const value = body[field];
|
|
19888
|
+
if (value !== void 0 && (typeof value !== "string" || value.length > maximum)) fail(`${field} must be a string of at most ${maximum} characters`);
|
|
19889
|
+
}
|
|
19890
|
+
if (creating && (typeof body.description !== "string" || body.description.trim() === "")) fail("description is required");
|
|
19891
|
+
for (const field of ["noteType", "publish"]) {
|
|
19892
|
+
const value = body[field];
|
|
19893
|
+
if ((creating || value !== void 0) && (typeof value !== "number" || !Number.isSafeInteger(value))) fail(`${field} must be an integer from the current field metadata`);
|
|
19894
|
+
}
|
|
19895
|
+
if (creating && body.taskID === void 0) fail("taskID is required in the create body and must match parentId");
|
|
19896
|
+
for (const field of ["createdByContactID", "taskID"]) {
|
|
19897
|
+
if (body[field] !== void 0) {
|
|
19898
|
+
if (typeof body[field] !== "number") fail(`${field} must be a numeric identifier`);
|
|
19899
|
+
const id = parseIdentifier(body[field], field);
|
|
19900
|
+
if (field === "taskID" && String(id) !== String(parent)) fail("taskID must match the parentId path argument");
|
|
19901
|
+
}
|
|
19902
|
+
}
|
|
19903
|
+
if (!creating && !Object.keys(body).some((key) => key !== "id" && key !== "itemId")) fail("update must contain a writable field");
|
|
19904
|
+
}
|
|
19905
|
+
|
|
19787
19906
|
// src/resources/simple.ts
|
|
19788
19907
|
var isIdentifier = (v) => typeof v === "number" || typeof v === "string";
|
|
19789
19908
|
var SIMPLE_RESOURCES = [
|
|
@@ -21015,6 +21134,19 @@ var SIMPLE_RESOURCES = [
|
|
|
21015
21134
|
helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21016
21135
|
opForms: { get: "global", create: "global", update: "global", delete: "global" }
|
|
21017
21136
|
},
|
|
21137
|
+
{
|
|
21138
|
+
key: "task_notes",
|
|
21139
|
+
accessor: "taskNotes",
|
|
21140
|
+
resourcePath: "/V1.0/TaskNotes",
|
|
21141
|
+
parentScopedPath: "/V1.0/Tasks/{parentId}/Notes",
|
|
21142
|
+
parentPath: "/V1.0/Tasks",
|
|
21143
|
+
parentField: "taskID",
|
|
21144
|
+
deletable: false,
|
|
21145
|
+
udfCapable: false,
|
|
21146
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: true, delete: false, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
|
|
21147
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21148
|
+
opForms: { get: "scoped", create: "scoped", update: "scoped" }
|
|
21149
|
+
},
|
|
21018
21150
|
{
|
|
21019
21151
|
key: "task_secondary_resources",
|
|
21020
21152
|
accessor: "taskSecondaryResources",
|
|
@@ -21283,6 +21415,13 @@ var GenericResource = class extends BaseResource {
|
|
|
21283
21415
|
if (config.ops?.create === false || config.key === "company_attachments") this.createIfNotExists = async () => {
|
|
21284
21416
|
throw new OperationNotSupportedError(config.key, "createIfNotExists");
|
|
21285
21417
|
};
|
|
21418
|
+
if (config.key === "task_notes") {
|
|
21419
|
+
const compose = this.createIfNotExists.bind(this);
|
|
21420
|
+
this.createIfNotExists = async (a, b, c = {}) => {
|
|
21421
|
+
admitTaskNote(b, a, true);
|
|
21422
|
+
return compose(a, b, c);
|
|
21423
|
+
};
|
|
21424
|
+
}
|
|
21286
21425
|
}
|
|
21287
21426
|
/** #293 QA F2: the superset exposes every generic method, but a row whose ops/helpers
|
|
21288
21427
|
* flags mark an op absent (the plain entities) refuses it client-side, pre-wire — the
|
|
@@ -21332,6 +21471,7 @@ var GenericResource = class extends BaseResource {
|
|
|
21332
21471
|
const parentId = a;
|
|
21333
21472
|
const data2 = b;
|
|
21334
21473
|
const opts2 = c ?? {};
|
|
21474
|
+
if (this.config.key === "task_notes") admitTaskNote(data2, parentId, true);
|
|
21335
21475
|
if (opts2.dryRun === true) return this.runCreateDryRun(data2, parentId);
|
|
21336
21476
|
return this.createScopedRaw(parentId, data2, opts2);
|
|
21337
21477
|
}
|
|
@@ -21349,6 +21489,7 @@ var GenericResource = class extends BaseResource {
|
|
|
21349
21489
|
const id2 = b;
|
|
21350
21490
|
const data2 = c;
|
|
21351
21491
|
const opts2 = d ?? {};
|
|
21492
|
+
if (this.config.key === "task_notes") admitTaskNote(data2, parentId, false);
|
|
21352
21493
|
if (opts2.dryRun === true) return this.runUpdateDryRun(id2, data2, opts2, parentId);
|
|
21353
21494
|
if (this.config.collectionUpdate !== true) {
|
|
21354
21495
|
await this.guardStaleBeforeMutation(id2, opts2, `${this.config.key}.update`, parentId);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericResource, readTasks, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-
|
|
2
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { GenericResource, readTasks, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-EGG2RGL5.js';
|
|
2
|
+
import { loadCapabilityRecords } from './chunk-K33DPJFK.js';
|
|
3
3
|
|
|
4
4
|
// src/resources/special/configuration_items.ts
|
|
5
5
|
async function fetchRecord(http, path, label, readOpts) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkV5UGW6KZ_cjs = require('./chunk-V5UGW6KZ.cjs');
|
|
4
|
+
var chunkKVC5DZAP_cjs = require('./chunk-KVC5DZAP.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -123,6 +123,7 @@ var AutotaskClient = class {
|
|
|
123
123
|
tagAliases;
|
|
124
124
|
tagGroups;
|
|
125
125
|
tags;
|
|
126
|
+
taskNotes;
|
|
126
127
|
tasks;
|
|
127
128
|
taskSecondaryResources;
|
|
128
129
|
taxRegions;
|
|
@@ -157,34 +158,34 @@ var AutotaskClient = class {
|
|
|
157
158
|
* anything is wired. Construction issues NO request.
|
|
158
159
|
*/
|
|
159
160
|
constructor(options) {
|
|
160
|
-
this.config =
|
|
161
|
-
this.http = new
|
|
161
|
+
this.config = chunkKVC5DZAP_cjs.resolveConfig(options);
|
|
162
|
+
this.http = new chunkKVC5DZAP_cjs.HttpClient(this.config);
|
|
162
163
|
this.http.client = this;
|
|
163
|
-
for (const entry of
|
|
164
|
-
this[entry.accessor] = new
|
|
164
|
+
for (const entry of chunkKVC5DZAP_cjs.SIMPLE_RESOURCES) {
|
|
165
|
+
this[entry.accessor] = new chunkKVC5DZAP_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
165
166
|
}
|
|
166
|
-
this.companies = new
|
|
167
|
-
this.configurationItems = new
|
|
168
|
-
this.contacts = new
|
|
169
|
-
this.contracts = new
|
|
170
|
-
this.inventoryProducts = new
|
|
171
|
-
this.invoices = new
|
|
172
|
-
this.quotes = new
|
|
173
|
-
this.resourceTimeOffAdditional = new
|
|
174
|
-
this.resourceTimeOffBalances = new
|
|
175
|
-
this.resources = new
|
|
176
|
-
this.serviceCalls = new
|
|
177
|
-
this.ticketCharges = new
|
|
178
|
-
this.tickets = new
|
|
179
|
-
this.timeEntries = new
|
|
180
|
-
this.timeOffRequests = new
|
|
181
|
-
this.authenticateResource = new
|
|
182
|
-
this.entityInformation = new
|
|
183
|
-
this.modules = new
|
|
184
|
-
this.thresholdInformation = new
|
|
185
|
-
this.version = new
|
|
186
|
-
this.versionInformation = new
|
|
187
|
-
this.zoneInformation = new
|
|
167
|
+
this.companies = new chunkKVC5DZAP_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
168
|
+
this.configurationItems = new chunkV5UGW6KZ_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
169
|
+
this.contacts = new chunkV5UGW6KZ_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
170
|
+
this.contracts = new chunkKVC5DZAP_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
171
|
+
this.inventoryProducts = new chunkV5UGW6KZ_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
172
|
+
this.invoices = new chunkKVC5DZAP_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
173
|
+
this.quotes = new chunkV5UGW6KZ_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
174
|
+
this.resourceTimeOffAdditional = new chunkV5UGW6KZ_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
175
|
+
this.resourceTimeOffBalances = new chunkV5UGW6KZ_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
176
|
+
this.resources = new chunkV5UGW6KZ_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
177
|
+
this.serviceCalls = new chunkV5UGW6KZ_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.ticketCharges = new chunkV5UGW6KZ_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
179
|
+
this.tickets = new chunkV5UGW6KZ_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
180
|
+
this.timeEntries = new chunkKVC5DZAP_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
181
|
+
this.timeOffRequests = new chunkV5UGW6KZ_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
182
|
+
this.authenticateResource = new chunkV5UGW6KZ_cjs.AuthenticateResource(this.http);
|
|
183
|
+
this.entityInformation = new chunkV5UGW6KZ_cjs.EntityInformationResource(this.http);
|
|
184
|
+
this.modules = new chunkV5UGW6KZ_cjs.ModulesResource(this.http);
|
|
185
|
+
this.thresholdInformation = new chunkV5UGW6KZ_cjs.ThresholdInformationResource(this.http);
|
|
186
|
+
this.version = new chunkV5UGW6KZ_cjs.VersionResource(this.http);
|
|
187
|
+
this.versionInformation = new chunkV5UGW6KZ_cjs.VersionInformationResource(this.http);
|
|
188
|
+
this.zoneInformation = new chunkV5UGW6KZ_cjs.ZoneInformationResource(this.http);
|
|
188
189
|
}
|
|
189
190
|
/**
|
|
190
191
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -218,10 +219,10 @@ var AutotaskClient = class {
|
|
|
218
219
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
219
220
|
*/
|
|
220
221
|
withSignal(signal, fn) {
|
|
221
|
-
return
|
|
222
|
+
return chunkKVC5DZAP_cjs.runWithSignal(signal, fn);
|
|
222
223
|
}
|
|
223
224
|
async batch(fn, items, opts = {}) {
|
|
224
|
-
return
|
|
225
|
+
return chunkKVC5DZAP_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
225
226
|
}
|
|
226
227
|
};
|
|
227
228
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
|
|
4
|
+
"A": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
|
|
5
|
+
"operations": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25"
|
|
6
6
|
};
|
|
7
7
|
var cached = null;
|
|
8
8
|
function loadCapabilities() {
|