node-autotask 0.60.1 → 0.62.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 +30 -0
- package/MCP_TOOL_CATALOG.json +298 -9
- package/README.md +3 -3
- package/capabilities.json +1047 -7
- package/dist/capabilities-data.js +1046 -6
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-XYWSPKCN.cjs → chunk-LFEMZVOV.cjs} +33 -31
- package/dist/{chunk-2GPQ55O6.js → chunk-O6SYTORL.js} +4 -2
- package/dist/{chunk-XP43NERF.cjs → chunk-ODPM4YVG.cjs} +3 -3
- package/dist/{chunk-VN3OZHC7.cjs → chunk-QHM6ROAE.cjs} +174 -174
- package/dist/{chunk-XUPVX5MQ.js → chunk-S4YR3RLJ.js} +2 -2
- package/dist/{chunk-Y2SR6D2D.js → chunk-TGCFJCWN.js} +237 -8
- package/dist/{chunk-MYLSBOZI.cjs → chunk-VDYUG6RK.cjs} +242 -13
- package/dist/{chunk-K722F7EM.js → chunk-XJNNCMBS.js} +3 -3
- package/dist/{index-BmaFIj42.d.cts → index-BXJOPL7w.d.cts} +4 -2
- package/dist/{index-cAntv7_A.d.ts → index-C4wZRw9N.d.ts} +4 -2
- package/dist/{index-D6bAO4ZV.d.cts → index-COQEG55Q.d.cts} +90 -1
- package/dist/{index-D6bAO4ZV.d.ts → index-COQEG55Q.d.ts} +90 -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 +50 -50
- 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 +8 -8
- 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/docs/VENDOR-QUIRKS.md +18 -3
- package/package.json +1 -1
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkODPM4YVG_cjs = require('./chunk-ODPM4YVG.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 chunkODPM4YVG_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkODPM4YVG_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkODPM4YVG_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-XJNNCMBS.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQHM6ROAE_cjs = require('./chunk-QHM6ROAE.cjs');
|
|
4
|
+
var chunkVDYUG6RK_cjs = require('./chunk-VDYUG6RK.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -143,6 +143,8 @@ var AutotaskClient = class {
|
|
|
143
143
|
timeEntries;
|
|
144
144
|
timeEntryAttachments;
|
|
145
145
|
timeOffRequests;
|
|
146
|
+
userDefinedFieldDefinitions;
|
|
147
|
+
userDefinedFieldListItems;
|
|
146
148
|
version;
|
|
147
149
|
versionInformation;
|
|
148
150
|
zoneInformation;
|
|
@@ -152,34 +154,34 @@ var AutotaskClient = class {
|
|
|
152
154
|
* anything is wired. Construction issues NO request.
|
|
153
155
|
*/
|
|
154
156
|
constructor(options) {
|
|
155
|
-
this.config =
|
|
156
|
-
this.http = new
|
|
157
|
+
this.config = chunkVDYUG6RK_cjs.resolveConfig(options);
|
|
158
|
+
this.http = new chunkVDYUG6RK_cjs.HttpClient(this.config);
|
|
157
159
|
this.http.client = this;
|
|
158
|
-
for (const entry of
|
|
159
|
-
this[entry.accessor] = new
|
|
160
|
+
for (const entry of chunkVDYUG6RK_cjs.SIMPLE_RESOURCES) {
|
|
161
|
+
this[entry.accessor] = new chunkVDYUG6RK_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
160
162
|
}
|
|
161
|
-
this.companies = new
|
|
162
|
-
this.configurationItems = new
|
|
163
|
-
this.contacts = new
|
|
164
|
-
this.contracts = new
|
|
165
|
-
this.inventoryProducts = new
|
|
166
|
-
this.invoices = new
|
|
167
|
-
this.quotes = new
|
|
168
|
-
this.resourceTimeOffAdditional = new
|
|
169
|
-
this.resourceTimeOffBalances = new
|
|
170
|
-
this.resources = new
|
|
171
|
-
this.serviceCalls = new
|
|
172
|
-
this.ticketCharges = new
|
|
173
|
-
this.tickets = new
|
|
174
|
-
this.timeEntries = new
|
|
175
|
-
this.timeOffRequests = new
|
|
176
|
-
this.authenticateResource = new
|
|
177
|
-
this.entityInformation = new
|
|
178
|
-
this.modules = new
|
|
179
|
-
this.thresholdInformation = new
|
|
180
|
-
this.version = new
|
|
181
|
-
this.versionInformation = new
|
|
182
|
-
this.zoneInformation = new
|
|
163
|
+
this.companies = new chunkVDYUG6RK_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
164
|
+
this.configurationItems = new chunkQHM6ROAE_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
165
|
+
this.contacts = new chunkQHM6ROAE_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
166
|
+
this.contracts = new chunkVDYUG6RK_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
167
|
+
this.inventoryProducts = new chunkQHM6ROAE_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
168
|
+
this.invoices = new chunkVDYUG6RK_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
169
|
+
this.quotes = new chunkQHM6ROAE_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
170
|
+
this.resourceTimeOffAdditional = new chunkQHM6ROAE_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
171
|
+
this.resourceTimeOffBalances = new chunkQHM6ROAE_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
172
|
+
this.resources = new chunkQHM6ROAE_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
173
|
+
this.serviceCalls = new chunkQHM6ROAE_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
174
|
+
this.ticketCharges = new chunkQHM6ROAE_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
175
|
+
this.tickets = new chunkQHM6ROAE_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
176
|
+
this.timeEntries = new chunkVDYUG6RK_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
177
|
+
this.timeOffRequests = new chunkQHM6ROAE_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
178
|
+
this.authenticateResource = new chunkQHM6ROAE_cjs.AuthenticateResource(this.http);
|
|
179
|
+
this.entityInformation = new chunkQHM6ROAE_cjs.EntityInformationResource(this.http);
|
|
180
|
+
this.modules = new chunkQHM6ROAE_cjs.ModulesResource(this.http);
|
|
181
|
+
this.thresholdInformation = new chunkQHM6ROAE_cjs.ThresholdInformationResource(this.http);
|
|
182
|
+
this.version = new chunkQHM6ROAE_cjs.VersionResource(this.http);
|
|
183
|
+
this.versionInformation = new chunkQHM6ROAE_cjs.VersionInformationResource(this.http);
|
|
184
|
+
this.zoneInformation = new chunkQHM6ROAE_cjs.ZoneInformationResource(this.http);
|
|
183
185
|
}
|
|
184
186
|
/**
|
|
185
187
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -213,12 +215,12 @@ var AutotaskClient = class {
|
|
|
213
215
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
214
216
|
*/
|
|
215
217
|
withSignal(signal, fn) {
|
|
216
|
-
return
|
|
218
|
+
return chunkVDYUG6RK_cjs.runWithSignal(signal, fn);
|
|
217
219
|
}
|
|
218
220
|
async batch(fn, items, opts = {}) {
|
|
219
221
|
const concurrency = opts.concurrency ?? this.config.maxConcurrent;
|
|
220
222
|
if (!Number.isInteger(concurrency) || concurrency <= 0) {
|
|
221
|
-
throw new
|
|
223
|
+
throw new chunkVDYUG6RK_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
|
|
222
224
|
}
|
|
223
225
|
const { signal, settle } = opts;
|
|
224
226
|
const results = new Array(items.length);
|
|
@@ -233,7 +235,7 @@ var AutotaskClient = class {
|
|
|
233
235
|
const i = next++;
|
|
234
236
|
try {
|
|
235
237
|
const item = items[i];
|
|
236
|
-
const value = await (signal === void 0 ? fn(item) :
|
|
238
|
+
const value = await (signal === void 0 ? fn(item) : chunkVDYUG6RK_cjs.runWithSignal(signal, () => fn(item)));
|
|
237
239
|
results[i] = settle ? { status: "fulfilled", value } : value;
|
|
238
240
|
} catch (error) {
|
|
239
241
|
if (settle) results[i] = { status: "rejected", reason: error };
|
|
@@ -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, AutotaskConfigError } from './chunk-
|
|
1
|
+
import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-S4YR3RLJ.js';
|
|
2
|
+
import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-TGCFJCWN.js';
|
|
3
3
|
|
|
4
4
|
// src/client.ts
|
|
5
5
|
var AutotaskClient = class {
|
|
@@ -141,6 +141,8 @@ var AutotaskClient = class {
|
|
|
141
141
|
timeEntries;
|
|
142
142
|
timeEntryAttachments;
|
|
143
143
|
timeOffRequests;
|
|
144
|
+
userDefinedFieldDefinitions;
|
|
145
|
+
userDefinedFieldListItems;
|
|
144
146
|
version;
|
|
145
147
|
versionInformation;
|
|
146
148
|
zoneInformation;
|
|
@@ -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": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
6
|
+
"A": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0",
|
|
7
|
+
"operations": "ccbe1f33bf20dfb0f67f994169a5e15a1be839e82703dd2f3929e7247991d3f0"
|
|
8
8
|
};
|
|
9
9
|
var cached = null;
|
|
10
10
|
function loadCapabilities() {
|