node-autotask 0.24.0 → 0.26.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 +34 -0
- package/MCP_TOOL_CATALOG.json +151 -9
- package/MCP_TOOL_MANIFEST.md +26 -21
- package/N8N_MCP_MANIFEST.json +3 -3
- package/N8N_MCP_MANIFEST.md +4 -4
- package/README.md +1 -1
- package/capabilities.json +2451 -1674
- package/dist/capabilities.cjs +2 -2
- package/dist/capabilities.d.cts +4 -1
- package/dist/capabilities.d.ts +4 -1
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-SOHQ6SDI.cjs → chunk-5OGJTS2E.cjs} +138 -135
- package/dist/{chunk-ICCU2S62.js → chunk-7DOSJS6S.js} +5 -2
- package/dist/{chunk-LVBFLSPL.cjs → chunk-HQGE4WAV.cjs} +45 -3
- package/dist/{chunk-WJD26CPN.js → chunk-QXWIQ67O.js} +2450 -1673
- package/dist/{chunk-SW66OWM5.cjs → chunk-SG4LIVMG.cjs} +523 -478
- package/dist/{chunk-BBQBWVBE.js → chunk-SSUECUVN.js} +44 -2
- package/dist/{chunk-IOVFTIW6.js → chunk-VVQ6NJYZ.js} +47 -2
- package/dist/{chunk-4VAC2Z55.cjs → chunk-WM6E5O55.cjs} +2450 -1673
- package/dist/{index-BVtycq-6.d.cts → index-1zBdJIEy.d.cts} +42 -1
- package/dist/{index-BVtycq-6.d.ts → index-1zBdJIEy.d.ts} +42 -1
- package/dist/{index-C0OwQhon.d.cts → index-C8QH3BkP.d.ts} +38 -3
- package/dist/{index-CZ94y401.d.ts → index-CKYr0unq.d.cts} +38 -3
- package/dist/index.cjs +26 -24
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -6
- package/dist/operations/index.cjs +147 -108
- package/dist/operations/index.d.cts +19 -9
- package/dist/operations/index.d.ts +19 -9
- package/dist/operations/index.js +42 -3
- package/dist/pool.cjs +8 -8
- package/dist/pool.d.cts +2 -2
- package/dist/pool.d.ts +2 -2
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +7 -5
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +6 -4
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/docs/API.md +10 -1
- package/package.json +3 -3
- /package/dist/{chunk-DMMMWO6A.js → chunk-2TWKEB2L.js} +0 -0
- /package/dist/{chunk-UPQIUWOS.js → chunk-EBCHCNPK.js} +0 -0
- /package/dist/{chunk-FLB2X6O5.cjs → chunk-S643FDOR.cjs} +0 -0
- /package/dist/{chunk-IDPB4N2Q.cjs → chunk-W3K5BEVY.cjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CAPABILITIES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QXWIQ67O.js";
|
|
4
4
|
|
|
5
5
|
// src/auth.ts
|
|
6
6
|
var AUTH_HEADERS = {
|
|
@@ -737,6 +737,7 @@ var DEFAULT_PER_RESOURCE_TTL_MS = {
|
|
|
737
737
|
"contract_ticket_purchases": 3e5,
|
|
738
738
|
"contracts": 3e5,
|
|
739
739
|
"countries": 36e5,
|
|
740
|
+
"currencies": 3e5,
|
|
740
741
|
"departments": 36e5,
|
|
741
742
|
"domain_registrars": 3e5,
|
|
742
743
|
"entity_information": 3e5,
|
|
@@ -866,6 +867,7 @@ var RESOURCE_KEY_BY_PATH = {
|
|
|
866
867
|
"/V1.0/ContractTicketPurchases": "contract_ticket_purchases",
|
|
867
868
|
"/V1.0/Contracts": "contracts",
|
|
868
869
|
"/V1.0/Countries": "countries",
|
|
870
|
+
"/V1.0/Currencies": "currencies",
|
|
869
871
|
"/V1.0/Departments": "departments",
|
|
870
872
|
"/V1.0/DomainRegistrars": "domain_registrars",
|
|
871
873
|
"/V1.0/ExpenseItemAttachments": "expense_item_attachments",
|
|
@@ -5117,6 +5119,27 @@ var RELATIONSHIP_MAP = {
|
|
|
5117
5119
|
"deleteBoundary": null,
|
|
5118
5120
|
"markerField": null
|
|
5119
5121
|
},
|
|
5122
|
+
"currencies": {
|
|
5123
|
+
"resource": "currencies",
|
|
5124
|
+
"apiEntity": "Currency",
|
|
5125
|
+
"kind": "entity",
|
|
5126
|
+
"path": "Currencies",
|
|
5127
|
+
"parentScoped": false,
|
|
5128
|
+
"tier": "advanced",
|
|
5129
|
+
"workflowResource": false,
|
|
5130
|
+
"group": "B",
|
|
5131
|
+
"parent": null,
|
|
5132
|
+
"children": [],
|
|
5133
|
+
"naturalKeys": {
|
|
5134
|
+
"hasSearch": true,
|
|
5135
|
+
"searchCovers": "name only (contains)",
|
|
5136
|
+
"findBy": []
|
|
5137
|
+
},
|
|
5138
|
+
"blindSurfaces": null,
|
|
5139
|
+
"zoneFacts": null,
|
|
5140
|
+
"deleteBoundary": null,
|
|
5141
|
+
"markerField": null
|
|
5142
|
+
},
|
|
5120
5143
|
"departments": {
|
|
5121
5144
|
"resource": "departments",
|
|
5122
5145
|
"apiEntity": "Department",
|
|
@@ -11044,6 +11067,18 @@ var BLIND_SURFACE_INVENTORY = {
|
|
|
11044
11067
|
"note": "ww29 discovery sweep (marker FULL100-SEED-1791096521, 2026-10-04): the unfiltered limit-2 read returned 0 rows \u2014 INCONCLUSIVE (tenant-empty-for-user vs blind for this API user; a 0/empty result here proves nothing). countries.get is the authority for a specific record.",
|
|
11045
11068
|
"proof": "discovery-sweep"
|
|
11046
11069
|
},
|
|
11070
|
+
{
|
|
11071
|
+
"resource": "currencies",
|
|
11072
|
+
"ops": [
|
|
11073
|
+
"count",
|
|
11074
|
+
"query"
|
|
11075
|
+
],
|
|
11076
|
+
"kind": "unknown",
|
|
11077
|
+
"unfilteredRows": null,
|
|
11078
|
+
"authority": "currencies.get",
|
|
11079
|
+
"note": "Not swept: currencies was added after the ww29 discovery sweep, so no unfiltered read has been made for any tenant. Whether this API user sees currency rows through count/query is unknown; currencies.get is the authority for a specific record.",
|
|
11080
|
+
"proof": "spec-derived"
|
|
11081
|
+
},
|
|
11047
11082
|
{
|
|
11048
11083
|
"resource": "departments",
|
|
11049
11084
|
"ops": [
|
|
@@ -11862,7 +11897,7 @@ var BLIND_SURFACE_INVENTORY = {
|
|
|
11862
11897
|
}
|
|
11863
11898
|
],
|
|
11864
11899
|
"counts": {
|
|
11865
|
-
"total":
|
|
11900
|
+
"total": 117,
|
|
11866
11901
|
"dataFull": 46,
|
|
11867
11902
|
"blind": 69,
|
|
11868
11903
|
"pinned": 6
|
|
@@ -11964,6 +11999,7 @@ var REACHABILITY_PROBE_DEFAULTS = {
|
|
|
11964
11999
|
"contract_ticket_purchases",
|
|
11965
12000
|
"contracts",
|
|
11966
12001
|
"countries",
|
|
12002
|
+
"currencies",
|
|
11967
12003
|
"expense_items",
|
|
11968
12004
|
"expense_reports",
|
|
11969
12005
|
"invoices",
|
|
@@ -14400,6 +14436,10 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
|
|
|
14400
14436
|
"displayName",
|
|
14401
14437
|
"name"
|
|
14402
14438
|
],
|
|
14439
|
+
"currencies": [
|
|
14440
|
+
"description",
|
|
14441
|
+
"name"
|
|
14442
|
+
],
|
|
14403
14443
|
"departments": [
|
|
14404
14444
|
"description",
|
|
14405
14445
|
"name"
|
|
@@ -16758,6 +16798,7 @@ var MODEL_FIELD_SETS = {
|
|
|
16758
16798
|
"contract_ticket_purchases": ["id", "contractID", "datePurchased", "endDate", "invoiceNumber", "isPaid", "paymentNumber", "paymentType", "perTicketRate", "startDate", "status", "ticketsPurchased", "ticketsUsed", "soapParentPropertyId"],
|
|
16759
16799
|
"contracts": ["id", "billingPreference", "billToCompanyContactID", "billToCompanyID", "companyID", "contactID", "contactName", "contractCategory", "contractExclusionSetID", "contractName", "contractNumber", "contractPeriodType", "contractType", "description", "endDate", "estimatedCost", "estimatedHours", "estimatedRevenue", "exclusionContractID", "internalCurrencyOverageBillingRate", "internalCurrencySetupFee", "isCompliant", "isDefaultContract", "lastModifiedDateTime", "opportunityID", "organizationalLevelAssociationID", "overageBillingRate", "purchaseOrderNumber", "renewedContractID", "serviceLevelAgreementID", "setupFee", "setupFeeBillingCodeID", "startDate", "status", "timeReportingRequiresStartAndStopTimes", "userDefinedFields"],
|
|
16760
16800
|
"countries": ["id", "addressFormatID", "countryCode", "displayName", "invoiceTemplateID", "isActive", "isDefaultCountry", "name", "purchaseOrderTemplateID", "quoteTemplateID"],
|
|
16801
|
+
"currencies": ["id", "currencyNegativeFormat", "currencyPositiveFormat", "description", "displaySymbol", "exchangeRate", "isActive", "isInternalCurrency", "lastModifiedDateTime", "name", "updateResourceId"],
|
|
16761
16802
|
"departments": ["id", "description", "name", "number", "primaryLocationID"],
|
|
16762
16803
|
"domain_registrars": ["id", "name", "url"],
|
|
16763
16804
|
"expense_item_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
@@ -16848,6 +16889,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
16848
16889
|
"contract_service_units": ["approveAndPostDate", "endDate", "startDate"],
|
|
16849
16890
|
"contract_ticket_purchases": ["datePurchased", "endDate", "startDate"],
|
|
16850
16891
|
"contracts": ["endDate", "lastModifiedDateTime", "startDate"],
|
|
16892
|
+
"currencies": ["lastModifiedDateTime"],
|
|
16851
16893
|
"expense_item_attachments": ["attachDate"],
|
|
16852
16894
|
"expense_items": ["expenseDate"],
|
|
16853
16895
|
"expense_reports": ["approvedDate", "submitDate", "weekEnding"],
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
unwrapItem,
|
|
39
39
|
unwrapItems,
|
|
40
40
|
unwrapOperation
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-SSUECUVN.js";
|
|
42
42
|
import {
|
|
43
43
|
CAPABILITIES
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-QXWIQ67O.js";
|
|
45
45
|
|
|
46
46
|
// src/resources/appointments.ts
|
|
47
47
|
var AppointmentsResource = class extends BaseResource {
|
|
@@ -6334,6 +6334,50 @@ var CountriesResource = class extends BaseResource {
|
|
|
6334
6334
|
}
|
|
6335
6335
|
};
|
|
6336
6336
|
|
|
6337
|
+
// src/resources/currencies.ts
|
|
6338
|
+
var CurrenciesResource = class extends BaseResource {
|
|
6339
|
+
constructor(http, pageSize) {
|
|
6340
|
+
super(http, {
|
|
6341
|
+
key: "currencies",
|
|
6342
|
+
resourcePath: "/V1.0/Currencies",
|
|
6343
|
+
deletable: false,
|
|
6344
|
+
udfCapable: false,
|
|
6345
|
+
searchFields: ["name"]
|
|
6346
|
+
}, pageSize);
|
|
6347
|
+
}
|
|
6348
|
+
/** Query Currency records with the G3 filter surface (server-side JSON filter). */
|
|
6349
|
+
query(params) {
|
|
6350
|
+
return this.queryItems(params);
|
|
6351
|
+
}
|
|
6352
|
+
/** Get every Currency record (the MCP-preferred read; 1000-page guarded). */
|
|
6353
|
+
async queryAll(params) {
|
|
6354
|
+
return this.queryAllItems(params);
|
|
6355
|
+
}
|
|
6356
|
+
/** Count matching records (queryCount envelope unwrapped to a plain number). */
|
|
6357
|
+
async count(params) {
|
|
6358
|
+
return this.countGlobal(params);
|
|
6359
|
+
}
|
|
6360
|
+
/** Get one record by id (item envelope; item: null → NotFoundError). */
|
|
6361
|
+
async get(id) {
|
|
6362
|
+
return this.getGlobal(id);
|
|
6363
|
+
}
|
|
6364
|
+
/** Resolve a Currency from a numeric id (or, where the vendor indexes a primary text field,
|
|
6365
|
+
* from an exact match on name). A numeric id miss throws NOT_FOUND; a complete
|
|
6366
|
+
* non-match returns null; ambiguity throws RESOLUTION_AMBIGUOUS (candidate ids) and a
|
|
6367
|
+
* cap-tripped bounded client scan throws RESOLUTION_TRUNCATED (never a silent null).
|
|
6368
|
+
* The compact shape is the structural alias of the full record; `expand: true` is the
|
|
6369
|
+
* type-level escape hatch. */
|
|
6370
|
+
async resolve(identifier, opts = {}) {
|
|
6371
|
+
void opts;
|
|
6372
|
+
return this.resolveBase(identifier);
|
|
6373
|
+
}
|
|
6374
|
+
/** Search Currency records: bounded contains on name (no vendor free-text search exists);
|
|
6375
|
+
* limit defaults to 25, max 500. */
|
|
6376
|
+
async search(query, opts) {
|
|
6377
|
+
return this.searchBase(query, { limit: opts?.limit });
|
|
6378
|
+
}
|
|
6379
|
+
};
|
|
6380
|
+
|
|
6337
6381
|
// src/resources/departments.ts
|
|
6338
6382
|
var DepartmentsResource = class extends BaseResource {
|
|
6339
6383
|
constructor(http, pageSize) {
|
|
@@ -12969,6 +13013,7 @@ export {
|
|
|
12969
13013
|
ContractsResource,
|
|
12970
13014
|
ContractTicketPurchasesResource,
|
|
12971
13015
|
CountriesResource,
|
|
13016
|
+
CurrenciesResource,
|
|
12972
13017
|
DepartmentsResource,
|
|
12973
13018
|
DomainRegistrarsResource,
|
|
12974
13019
|
EntityInformationResource,
|