node-autotask 0.26.0 → 0.27.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 +47 -0
- package/MCP_TOOL_CATALOG.json +921 -30
- package/MCP_TOOL_MANIFEST.md +69 -16
- package/N8N_MCP_MANIFEST.json +39 -8
- package/N8N_MCP_MANIFEST.md +9 -8
- package/README.md +11 -9
- package/capabilities.json +13316 -7733
- package/capabilities.schema.json +125 -0
- package/dist/capabilities.cjs +2 -2
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-SSUECUVN.js → chunk-42ZUISDH.js} +947 -128
- package/dist/{chunk-WM6E5O55.cjs → chunk-5CC7LGNM.cjs} +13315 -7732
- package/dist/{chunk-SG4LIVMG.cjs → chunk-5GGCSRT4.cjs} +848 -439
- package/dist/{chunk-QXWIQ67O.js → chunk-F7FVOXPQ.js} +13315 -7732
- package/dist/{chunk-7DOSJS6S.js → chunk-GURC52J7.js} +23 -2
- package/dist/{chunk-5OGJTS2E.cjs → chunk-UHTZLUDE.cjs} +157 -136
- package/dist/{chunk-VVQ6NJYZ.js → chunk-ZGTFVZL5.js} +433 -24
- package/dist/{chunk-HQGE4WAV.cjs → chunk-ZJ4ONAQF.cjs} +1054 -235
- package/dist/{index-CKYr0unq.d.cts → index-BIWy9m-a.d.ts} +379 -49
- package/dist/{index-C8QH3BkP.d.ts → index-D4XYtn4s.d.cts} +379 -49
- package/dist/{index-1zBdJIEy.d.cts → index-DQ9NgraW.d.cts} +281 -1
- package/dist/{index-1zBdJIEy.d.ts → index-DQ9NgraW.d.ts} +281 -1
- package/dist/index.cjs +44 -24
- package/dist/index.d.cts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +26 -6
- package/dist/operations/index.cjs +147 -120
- package/dist/operations/index.d.cts +136 -7
- package/dist/operations/index.d.ts +136 -7
- package/dist/operations/index.js +33 -6
- package/dist/pool.cjs +42 -9
- package/dist/pool.d.cts +14 -3
- package/dist/pool.d.ts +14 -3
- package/dist/pool.js +38 -5
- package/dist/resources/index.cjs +19 -5
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +18 -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 +207 -9
- package/examples/mcp/schemas.ts +16 -7
- package/package.json +1 -1
- /package/dist/{chunk-S643FDOR.cjs → chunk-IXF7AKOJ.cjs} +0 -0
- /package/dist/{chunk-2TWKEB2L.js → chunk-RMG55JTF.js} +0 -0
- /package/dist/{chunk-W3K5BEVY.cjs → chunk-SDYRQFGL.cjs} +0 -0
- /package/dist/{chunk-EBCHCNPK.js → chunk-WLTLB2ND.js} +0 -0
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
AppointmentsResource,
|
|
3
3
|
AuthenticateResource,
|
|
4
4
|
BillingCodesResource,
|
|
5
|
+
BillingItemApprovalLevelsResource,
|
|
5
6
|
BillingItemsResource,
|
|
6
7
|
ChangeRequestLinksResource,
|
|
7
8
|
ChecklistLibrariesResource,
|
|
@@ -60,12 +61,16 @@ import {
|
|
|
60
61
|
HolidaySetsResource,
|
|
61
62
|
HolidaysResource,
|
|
62
63
|
InventoryProductsResource,
|
|
64
|
+
InvoiceTemplatesResource,
|
|
63
65
|
InvoicesResource,
|
|
64
66
|
ModulesResource,
|
|
65
67
|
NotificationHistoryResource,
|
|
66
68
|
OpportunitiesResource,
|
|
67
69
|
OpportunityAttachmentsResource,
|
|
68
70
|
OpportunityCategoriesResource,
|
|
71
|
+
OrganizationalLevel1sResource,
|
|
72
|
+
OrganizationalLevel2sResource,
|
|
73
|
+
OrganizationalLevelAssociationsResource,
|
|
69
74
|
PhasesResource,
|
|
70
75
|
ProductVendorsResource,
|
|
71
76
|
ProductsResource,
|
|
@@ -88,6 +93,7 @@ import {
|
|
|
88
93
|
ResourceTimeOffBalancesResource,
|
|
89
94
|
ResourcesResource,
|
|
90
95
|
RolesResource,
|
|
96
|
+
SalesOrdersResource,
|
|
91
97
|
ServiceCallTaskResourcesResource,
|
|
92
98
|
ServiceCallTasksResource,
|
|
93
99
|
ServiceCallTicketResourcesResource,
|
|
@@ -105,6 +111,7 @@ import {
|
|
|
105
111
|
TagsResource,
|
|
106
112
|
TaskSecondaryResourcesResource,
|
|
107
113
|
TasksResource,
|
|
114
|
+
TaxRegionsResource,
|
|
108
115
|
ThresholdInformationResource,
|
|
109
116
|
TicketAdditionalConfigurationItemsResource,
|
|
110
117
|
TicketAdditionalContactsResource,
|
|
@@ -128,13 +135,13 @@ import {
|
|
|
128
135
|
VersionInformationResource,
|
|
129
136
|
VersionResource,
|
|
130
137
|
ZoneInformationResource
|
|
131
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-ZGTFVZL5.js";
|
|
132
139
|
import {
|
|
133
140
|
AutotaskConfigError,
|
|
134
141
|
HttpClient,
|
|
135
142
|
resolveConfig,
|
|
136
143
|
runWithSignal
|
|
137
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-42ZUISDH.js";
|
|
138
145
|
|
|
139
146
|
// src/client.ts
|
|
140
147
|
var AutotaskClient = class {
|
|
@@ -146,6 +153,7 @@ var AutotaskClient = class {
|
|
|
146
153
|
appointments;
|
|
147
154
|
authenticateResource;
|
|
148
155
|
billingCodes;
|
|
156
|
+
billingItemApprovalLevels;
|
|
149
157
|
billingItems;
|
|
150
158
|
changeRequestLinks;
|
|
151
159
|
checklistLibraries;
|
|
@@ -205,11 +213,15 @@ var AutotaskClient = class {
|
|
|
205
213
|
holidays;
|
|
206
214
|
inventoryProducts;
|
|
207
215
|
invoices;
|
|
216
|
+
invoiceTemplates;
|
|
208
217
|
modules;
|
|
209
218
|
notificationHistory;
|
|
210
219
|
opportunities;
|
|
211
220
|
opportunityAttachments;
|
|
212
221
|
opportunityCategories;
|
|
222
|
+
organizationalLevel1s;
|
|
223
|
+
organizationalLevel2s;
|
|
224
|
+
organizationalLevelAssociations;
|
|
213
225
|
phases;
|
|
214
226
|
products;
|
|
215
227
|
productVendors;
|
|
@@ -232,6 +244,7 @@ var AutotaskClient = class {
|
|
|
232
244
|
resourceTimeOffApprovers;
|
|
233
245
|
resourceTimeOffBalances;
|
|
234
246
|
roles;
|
|
247
|
+
salesOrders;
|
|
235
248
|
serviceCalls;
|
|
236
249
|
serviceCallTaskResources;
|
|
237
250
|
serviceCallTasks;
|
|
@@ -249,6 +262,7 @@ var AutotaskClient = class {
|
|
|
249
262
|
tags;
|
|
250
263
|
taskSecondaryResources;
|
|
251
264
|
tasks;
|
|
265
|
+
taxRegions;
|
|
252
266
|
thresholdInformation;
|
|
253
267
|
ticketAdditionalConfigurationItems;
|
|
254
268
|
ticketAdditionalContacts;
|
|
@@ -284,6 +298,7 @@ var AutotaskClient = class {
|
|
|
284
298
|
this.appointments = new AppointmentsResource(this.http, this.config.pageSize);
|
|
285
299
|
this.authenticateResource = new AuthenticateResource(this.http);
|
|
286
300
|
this.billingCodes = new BillingCodesResource(this.http, this.config.pageSize);
|
|
301
|
+
this.billingItemApprovalLevels = new BillingItemApprovalLevelsResource(this.http, this.config.pageSize);
|
|
287
302
|
this.billingItems = new BillingItemsResource(this.http, this.config.pageSize);
|
|
288
303
|
this.changeRequestLinks = new ChangeRequestLinksResource(this.http, this.config.pageSize);
|
|
289
304
|
this.checklistLibraries = new ChecklistLibrariesResource(this.http, this.config.pageSize);
|
|
@@ -343,11 +358,15 @@ var AutotaskClient = class {
|
|
|
343
358
|
this.holidays = new HolidaysResource(this.http, this.config.pageSize);
|
|
344
359
|
this.inventoryProducts = new InventoryProductsResource(this.http, this.config.pageSize);
|
|
345
360
|
this.invoices = new InvoicesResource(this.http, this.config.pageSize);
|
|
361
|
+
this.invoiceTemplates = new InvoiceTemplatesResource(this.http, this.config.pageSize);
|
|
346
362
|
this.modules = new ModulesResource(this.http);
|
|
347
363
|
this.notificationHistory = new NotificationHistoryResource(this.http, this.config.pageSize);
|
|
348
364
|
this.opportunities = new OpportunitiesResource(this.http, this.config.pageSize);
|
|
349
365
|
this.opportunityAttachments = new OpportunityAttachmentsResource(this.http, this.config.pageSize);
|
|
350
366
|
this.opportunityCategories = new OpportunityCategoriesResource(this.http, this.config.pageSize);
|
|
367
|
+
this.organizationalLevel1s = new OrganizationalLevel1sResource(this.http, this.config.pageSize);
|
|
368
|
+
this.organizationalLevel2s = new OrganizationalLevel2sResource(this.http, this.config.pageSize);
|
|
369
|
+
this.organizationalLevelAssociations = new OrganizationalLevelAssociationsResource(this.http, this.config.pageSize);
|
|
351
370
|
this.phases = new PhasesResource(this.http, this.config.pageSize);
|
|
352
371
|
this.products = new ProductsResource(this.http, this.config.pageSize);
|
|
353
372
|
this.productVendors = new ProductVendorsResource(this.http, this.config.pageSize);
|
|
@@ -370,6 +389,7 @@ var AutotaskClient = class {
|
|
|
370
389
|
this.resourceTimeOffApprovers = new ResourceTimeOffApproversResource(this.http, this.config.pageSize);
|
|
371
390
|
this.resourceTimeOffBalances = new ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
372
391
|
this.roles = new RolesResource(this.http, this.config.pageSize);
|
|
392
|
+
this.salesOrders = new SalesOrdersResource(this.http, this.config.pageSize);
|
|
373
393
|
this.serviceCalls = new ServiceCallsResource(this.http, this.config.pageSize);
|
|
374
394
|
this.serviceCallTaskResources = new ServiceCallTaskResourcesResource(this.http, this.config.pageSize);
|
|
375
395
|
this.serviceCallTasks = new ServiceCallTasksResource(this.http, this.config.pageSize);
|
|
@@ -387,6 +407,7 @@ var AutotaskClient = class {
|
|
|
387
407
|
this.tags = new TagsResource(this.http, this.config.pageSize);
|
|
388
408
|
this.taskSecondaryResources = new TaskSecondaryResourcesResource(this.http, this.config.pageSize);
|
|
389
409
|
this.tasks = new TasksResource(this.http, this.config.pageSize);
|
|
410
|
+
this.taxRegions = new TaxRegionsResource(this.http, this.config.pageSize);
|
|
390
411
|
this.thresholdInformation = new ThresholdInformationResource(this.http);
|
|
391
412
|
this.ticketAdditionalConfigurationItems = new TicketAdditionalConfigurationItemsResource(this.http, this.config.pageSize);
|
|
392
413
|
this.ticketAdditionalContacts = new TicketAdditionalContactsResource(this.http, this.config.pageSize);
|
|
@@ -128,13 +128,20 @@
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
var _chunkSG4LIVMGcjs = require('./chunk-SG4LIVMG.cjs');
|
|
132
131
|
|
|
133
132
|
|
|
134
133
|
|
|
135
134
|
|
|
136
135
|
|
|
137
|
-
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
var _chunk5GGCSRT4cjs = require('./chunk-5GGCSRT4.cjs');
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
var _chunkZJ4ONAQFcjs = require('./chunk-ZJ4ONAQF.cjs');
|
|
138
145
|
|
|
139
146
|
// src/client.ts
|
|
140
147
|
var AutotaskClient = class {
|
|
@@ -264,6 +271,13 @@ var AutotaskClient = class {
|
|
|
264
271
|
|
|
265
272
|
|
|
266
273
|
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
267
281
|
|
|
268
282
|
|
|
269
283
|
|
|
@@ -278,138 +292,145 @@ var AutotaskClient = class {
|
|
|
278
292
|
* anything is wired. Construction issues NO request.
|
|
279
293
|
*/
|
|
280
294
|
constructor(options) {
|
|
281
|
-
this.config =
|
|
282
|
-
this.http = new (0,
|
|
295
|
+
this.config = _chunkZJ4ONAQFcjs.resolveConfig.call(void 0, options);
|
|
296
|
+
this.http = new (0, _chunkZJ4ONAQFcjs.HttpClient)(this.config);
|
|
283
297
|
this.http.client = this;
|
|
284
|
-
this.appointments = new (0,
|
|
285
|
-
this.authenticateResource = new (0,
|
|
286
|
-
this.billingCodes = new (0,
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
this.
|
|
303
|
-
this.
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
307
|
-
this.
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
326
|
-
this.
|
|
327
|
-
this.
|
|
328
|
-
this.
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
361
|
-
this.
|
|
362
|
-
this.
|
|
363
|
-
this.
|
|
364
|
-
this.
|
|
365
|
-
this.
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
370
|
-
this.
|
|
371
|
-
this.
|
|
372
|
-
this.
|
|
373
|
-
this.
|
|
374
|
-
this.
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
385
|
-
this.
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
298
|
+
this.appointments = new (0, _chunk5GGCSRT4cjs.AppointmentsResource)(this.http, this.config.pageSize);
|
|
299
|
+
this.authenticateResource = new (0, _chunk5GGCSRT4cjs.AuthenticateResource)(this.http);
|
|
300
|
+
this.billingCodes = new (0, _chunk5GGCSRT4cjs.BillingCodesResource)(this.http, this.config.pageSize);
|
|
301
|
+
this.billingItemApprovalLevels = new (0, _chunk5GGCSRT4cjs.BillingItemApprovalLevelsResource)(this.http, this.config.pageSize);
|
|
302
|
+
this.billingItems = new (0, _chunk5GGCSRT4cjs.BillingItemsResource)(this.http, this.config.pageSize);
|
|
303
|
+
this.changeRequestLinks = new (0, _chunk5GGCSRT4cjs.ChangeRequestLinksResource)(this.http, this.config.pageSize);
|
|
304
|
+
this.checklistLibraries = new (0, _chunk5GGCSRT4cjs.ChecklistLibrariesResource)(this.http, this.config.pageSize);
|
|
305
|
+
this.checklistLibraryChecklistItems = new (0, _chunk5GGCSRT4cjs.ChecklistLibraryChecklistItemsResource)(this.http, this.config.pageSize);
|
|
306
|
+
this.classificationIcons = new (0, _chunk5GGCSRT4cjs.ClassificationIconsResource)(this.http, this.config.pageSize);
|
|
307
|
+
this.companies = new (0, _chunk5GGCSRT4cjs.CompaniesResource)(this.http, this.config.pageSize);
|
|
308
|
+
this.companyAlerts = new (0, _chunk5GGCSRT4cjs.CompanyAlertsResource)(this.http, this.config.pageSize);
|
|
309
|
+
this.companyLocations = new (0, _chunk5GGCSRT4cjs.CompanyLocationsResource)(this.http, this.config.pageSize);
|
|
310
|
+
this.companyNotes = new (0, _chunk5GGCSRT4cjs.CompanyNotesResource)(this.http, this.config.pageSize);
|
|
311
|
+
this.companySiteConfigurations = new (0, _chunk5GGCSRT4cjs.CompanySiteConfigurationsResource)(this.http, this.config.pageSize);
|
|
312
|
+
this.companyWebhooks = new (0, _chunk5GGCSRT4cjs.CompanyWebhooksResource)(this.http, this.config.pageSize);
|
|
313
|
+
this.configurationItemBillingProductAssociations = new (0, _chunk5GGCSRT4cjs.ConfigurationItemBillingProductAssociationsResource)(this.http, this.config.pageSize);
|
|
314
|
+
this.configurationItemCategories = new (0, _chunk5GGCSRT4cjs.ConfigurationItemCategoriesResource)(this.http, this.config.pageSize);
|
|
315
|
+
this.configurationItemCategoryUdfAssociations = new (0, _chunk5GGCSRT4cjs.ConfigurationItemCategoryUdfAssociationsResource)(this.http, this.config.pageSize);
|
|
316
|
+
this.configurationItemDnsRecords = new (0, _chunk5GGCSRT4cjs.ConfigurationItemDnsRecordsResource)(this.http, this.config.pageSize);
|
|
317
|
+
this.configurationItemNotes = new (0, _chunk5GGCSRT4cjs.ConfigurationItemNotesResource)(this.http, this.config.pageSize);
|
|
318
|
+
this.configurationItemRelatedItems = new (0, _chunk5GGCSRT4cjs.ConfigurationItemRelatedItemsResource)(this.http, this.config.pageSize);
|
|
319
|
+
this.configurationItems = new (0, _chunk5GGCSRT4cjs.ConfigurationItemsResource)(this.http, this.config.pageSize);
|
|
320
|
+
this.configurationItemSslSubjectAlternativeNames = new (0, _chunk5GGCSRT4cjs.ConfigurationItemSslSubjectAlternativeNamesResource)(this.http, this.config.pageSize);
|
|
321
|
+
this.configurationItemTypes = new (0, _chunk5GGCSRT4cjs.ConfigurationItemTypesResource)(this.http, this.config.pageSize);
|
|
322
|
+
this.configurationItemWebhooks = new (0, _chunk5GGCSRT4cjs.ConfigurationItemWebhooksResource)(this.http, this.config.pageSize);
|
|
323
|
+
this.contactGroupContacts = new (0, _chunk5GGCSRT4cjs.ContactGroupContactsResource)(this.http, this.config.pageSize);
|
|
324
|
+
this.contactGroups = new (0, _chunk5GGCSRT4cjs.ContactGroupsResource)(this.http, this.config.pageSize);
|
|
325
|
+
this.contacts = new (0, _chunk5GGCSRT4cjs.ContactsResource)(this.http, this.config.pageSize);
|
|
326
|
+
this.contactWebhooks = new (0, _chunk5GGCSRT4cjs.ContactWebhooksResource)(this.http, this.config.pageSize);
|
|
327
|
+
this.contractBillingRules = new (0, _chunk5GGCSRT4cjs.ContractBillingRulesResource)(this.http, this.config.pageSize);
|
|
328
|
+
this.contractBlockHourFactors = new (0, _chunk5GGCSRT4cjs.ContractBlockHourFactorsResource)(this.http, this.config.pageSize);
|
|
329
|
+
this.contractBlocks = new (0, _chunk5GGCSRT4cjs.ContractBlocksResource)(this.http, this.config.pageSize);
|
|
330
|
+
this.contractCharges = new (0, _chunk5GGCSRT4cjs.ContractChargesResource)(this.http, this.config.pageSize);
|
|
331
|
+
this.contractExclusionBillingCodes = new (0, _chunk5GGCSRT4cjs.ContractExclusionBillingCodesResource)(this.http, this.config.pageSize);
|
|
332
|
+
this.contractExclusionRoles = new (0, _chunk5GGCSRT4cjs.ContractExclusionRolesResource)(this.http, this.config.pageSize);
|
|
333
|
+
this.contractExclusionSetExcludedRoles = new (0, _chunk5GGCSRT4cjs.ContractExclusionSetExcludedRolesResource)(this.http, this.config.pageSize);
|
|
334
|
+
this.contractExclusionSetExcludedWorkTypes = new (0, _chunk5GGCSRT4cjs.ContractExclusionSetExcludedWorkTypesResource)(this.http, this.config.pageSize);
|
|
335
|
+
this.contractExclusionSets = new (0, _chunk5GGCSRT4cjs.ContractExclusionSetsResource)(this.http, this.config.pageSize);
|
|
336
|
+
this.contractMilestones = new (0, _chunk5GGCSRT4cjs.ContractMilestonesResource)(this.http, this.config.pageSize);
|
|
337
|
+
this.contractNotes = new (0, _chunk5GGCSRT4cjs.ContractNotesResource)(this.http, this.config.pageSize);
|
|
338
|
+
this.contractRates = new (0, _chunk5GGCSRT4cjs.ContractRatesResource)(this.http, this.config.pageSize);
|
|
339
|
+
this.contractRetainers = new (0, _chunk5GGCSRT4cjs.ContractRetainersResource)(this.http, this.config.pageSize);
|
|
340
|
+
this.contractRoleCosts = new (0, _chunk5GGCSRT4cjs.ContractRoleCostsResource)(this.http, this.config.pageSize);
|
|
341
|
+
this.contractServiceAdjustments = new (0, _chunk5GGCSRT4cjs.ContractServiceAdjustmentsResource)(this.http, this.config.pageSize);
|
|
342
|
+
this.contractServiceBundleAdjustments = new (0, _chunk5GGCSRT4cjs.ContractServiceBundleAdjustmentsResource)(this.http, this.config.pageSize);
|
|
343
|
+
this.contractServiceBundles = new (0, _chunk5GGCSRT4cjs.ContractServiceBundlesResource)(this.http, this.config.pageSize);
|
|
344
|
+
this.contractServiceBundleUnits = new (0, _chunk5GGCSRT4cjs.ContractServiceBundleUnitsResource)(this.http, this.config.pageSize);
|
|
345
|
+
this.contractServices = new (0, _chunk5GGCSRT4cjs.ContractServicesResource)(this.http, this.config.pageSize);
|
|
346
|
+
this.contractServiceUnits = new (0, _chunk5GGCSRT4cjs.ContractServiceUnitsResource)(this.http, this.config.pageSize);
|
|
347
|
+
this.contracts = new (0, _chunk5GGCSRT4cjs.ContractsResource)(this.http, this.config.pageSize);
|
|
348
|
+
this.contractTicketPurchases = new (0, _chunk5GGCSRT4cjs.ContractTicketPurchasesResource)(this.http, this.config.pageSize);
|
|
349
|
+
this.countries = new (0, _chunk5GGCSRT4cjs.CountriesResource)(this.http, this.config.pageSize);
|
|
350
|
+
this.currencies = new (0, _chunk5GGCSRT4cjs.CurrenciesResource)(this.http, this.config.pageSize);
|
|
351
|
+
this.departments = new (0, _chunk5GGCSRT4cjs.DepartmentsResource)(this.http, this.config.pageSize);
|
|
352
|
+
this.domainRegistrars = new (0, _chunk5GGCSRT4cjs.DomainRegistrarsResource)(this.http, this.config.pageSize);
|
|
353
|
+
this.entityInformation = new (0, _chunk5GGCSRT4cjs.EntityInformationResource)(this.http);
|
|
354
|
+
this.expenseItemAttachments = new (0, _chunk5GGCSRT4cjs.ExpenseItemAttachmentsResource)(this.http, this.config.pageSize);
|
|
355
|
+
this.expenseItems = new (0, _chunk5GGCSRT4cjs.ExpenseItemsResource)(this.http, this.config.pageSize);
|
|
356
|
+
this.expenseReports = new (0, _chunk5GGCSRT4cjs.ExpenseReportsResource)(this.http, this.config.pageSize);
|
|
357
|
+
this.holidaySets = new (0, _chunk5GGCSRT4cjs.HolidaySetsResource)(this.http, this.config.pageSize);
|
|
358
|
+
this.holidays = new (0, _chunk5GGCSRT4cjs.HolidaysResource)(this.http, this.config.pageSize);
|
|
359
|
+
this.inventoryProducts = new (0, _chunk5GGCSRT4cjs.InventoryProductsResource)(this.http, this.config.pageSize);
|
|
360
|
+
this.invoices = new (0, _chunk5GGCSRT4cjs.InvoicesResource)(this.http, this.config.pageSize);
|
|
361
|
+
this.invoiceTemplates = new (0, _chunk5GGCSRT4cjs.InvoiceTemplatesResource)(this.http, this.config.pageSize);
|
|
362
|
+
this.modules = new (0, _chunk5GGCSRT4cjs.ModulesResource)(this.http);
|
|
363
|
+
this.notificationHistory = new (0, _chunk5GGCSRT4cjs.NotificationHistoryResource)(this.http, this.config.pageSize);
|
|
364
|
+
this.opportunities = new (0, _chunk5GGCSRT4cjs.OpportunitiesResource)(this.http, this.config.pageSize);
|
|
365
|
+
this.opportunityAttachments = new (0, _chunk5GGCSRT4cjs.OpportunityAttachmentsResource)(this.http, this.config.pageSize);
|
|
366
|
+
this.opportunityCategories = new (0, _chunk5GGCSRT4cjs.OpportunityCategoriesResource)(this.http, this.config.pageSize);
|
|
367
|
+
this.organizationalLevel1s = new (0, _chunk5GGCSRT4cjs.OrganizationalLevel1sResource)(this.http, this.config.pageSize);
|
|
368
|
+
this.organizationalLevel2s = new (0, _chunk5GGCSRT4cjs.OrganizationalLevel2sResource)(this.http, this.config.pageSize);
|
|
369
|
+
this.organizationalLevelAssociations = new (0, _chunk5GGCSRT4cjs.OrganizationalLevelAssociationsResource)(this.http, this.config.pageSize);
|
|
370
|
+
this.phases = new (0, _chunk5GGCSRT4cjs.PhasesResource)(this.http, this.config.pageSize);
|
|
371
|
+
this.products = new (0, _chunk5GGCSRT4cjs.ProductsResource)(this.http, this.config.pageSize);
|
|
372
|
+
this.productVendors = new (0, _chunk5GGCSRT4cjs.ProductVendorsResource)(this.http, this.config.pageSize);
|
|
373
|
+
this.projectCharges = new (0, _chunk5GGCSRT4cjs.ProjectChargesResource)(this.http, this.config.pageSize);
|
|
374
|
+
this.projectNotes = new (0, _chunk5GGCSRT4cjs.ProjectNotesResource)(this.http, this.config.pageSize);
|
|
375
|
+
this.projects = new (0, _chunk5GGCSRT4cjs.ProjectsResource)(this.http, this.config.pageSize);
|
|
376
|
+
this.purchaseApprovals = new (0, _chunk5GGCSRT4cjs.PurchaseApprovalsResource)(this.http, this.config.pageSize);
|
|
377
|
+
this.purchaseOrderItemReceiving = new (0, _chunk5GGCSRT4cjs.PurchaseOrderItemReceivingResource)(this.http, this.config.pageSize);
|
|
378
|
+
this.purchaseOrderItems = new (0, _chunk5GGCSRT4cjs.PurchaseOrderItemsResource)(this.http, this.config.pageSize);
|
|
379
|
+
this.purchaseOrders = new (0, _chunk5GGCSRT4cjs.PurchaseOrdersResource)(this.http, this.config.pageSize);
|
|
380
|
+
this.quoteItems = new (0, _chunk5GGCSRT4cjs.QuoteItemsResource)(this.http, this.config.pageSize);
|
|
381
|
+
this.quoteLocations = new (0, _chunk5GGCSRT4cjs.QuoteLocationsResource)(this.http, this.config.pageSize);
|
|
382
|
+
this.quotes = new (0, _chunk5GGCSRT4cjs.QuotesResource)(this.http, this.config.pageSize);
|
|
383
|
+
this.quoteTemplates = new (0, _chunk5GGCSRT4cjs.QuoteTemplatesResource)(this.http, this.config.pageSize);
|
|
384
|
+
this.resourceRoleQueues = new (0, _chunk5GGCSRT4cjs.ResourceRoleQueuesResource)(this.http, this.config.pageSize);
|
|
385
|
+
this.resourceRoles = new (0, _chunk5GGCSRT4cjs.ResourceRolesResource)(this.http, this.config.pageSize);
|
|
386
|
+
this.resourceSkills = new (0, _chunk5GGCSRT4cjs.ResourceSkillsResource)(this.http, this.config.pageSize);
|
|
387
|
+
this.resources = new (0, _chunk5GGCSRT4cjs.ResourcesResource)(this.http, this.config, this.config.pageSize);
|
|
388
|
+
this.resourceTimeOffAdditional = new (0, _chunk5GGCSRT4cjs.ResourceTimeOffAdditionalResource)(this.http, this.config.pageSize);
|
|
389
|
+
this.resourceTimeOffApprovers = new (0, _chunk5GGCSRT4cjs.ResourceTimeOffApproversResource)(this.http, this.config.pageSize);
|
|
390
|
+
this.resourceTimeOffBalances = new (0, _chunk5GGCSRT4cjs.ResourceTimeOffBalancesResource)(this.http, this.config.pageSize);
|
|
391
|
+
this.roles = new (0, _chunk5GGCSRT4cjs.RolesResource)(this.http, this.config.pageSize);
|
|
392
|
+
this.salesOrders = new (0, _chunk5GGCSRT4cjs.SalesOrdersResource)(this.http, this.config.pageSize);
|
|
393
|
+
this.serviceCalls = new (0, _chunk5GGCSRT4cjs.ServiceCallsResource)(this.http, this.config.pageSize);
|
|
394
|
+
this.serviceCallTaskResources = new (0, _chunk5GGCSRT4cjs.ServiceCallTaskResourcesResource)(this.http, this.config.pageSize);
|
|
395
|
+
this.serviceCallTasks = new (0, _chunk5GGCSRT4cjs.ServiceCallTasksResource)(this.http, this.config.pageSize);
|
|
396
|
+
this.serviceCallTicketResources = new (0, _chunk5GGCSRT4cjs.ServiceCallTicketResourcesResource)(this.http, this.config.pageSize);
|
|
397
|
+
this.serviceCallTickets = new (0, _chunk5GGCSRT4cjs.ServiceCallTicketsResource)(this.http, this.config.pageSize);
|
|
398
|
+
this.serviceLevelAgreementResults = new (0, _chunk5GGCSRT4cjs.ServiceLevelAgreementResultsResource)(this.http, this.config.pageSize);
|
|
399
|
+
this.services = new (0, _chunk5GGCSRT4cjs.ServicesResource)(this.http, this.config.pageSize);
|
|
400
|
+
this.skills = new (0, _chunk5GGCSRT4cjs.SkillsResource)(this.http, this.config.pageSize);
|
|
401
|
+
this.subscriptionPeriods = new (0, _chunk5GGCSRT4cjs.SubscriptionPeriodsResource)(this.http, this.config.pageSize);
|
|
402
|
+
this.subscriptions = new (0, _chunk5GGCSRT4cjs.SubscriptionsResource)(this.http, this.config.pageSize);
|
|
403
|
+
this.surveyResults = new (0, _chunk5GGCSRT4cjs.SurveyResultsResource)(this.http, this.config.pageSize);
|
|
404
|
+
this.surveys = new (0, _chunk5GGCSRT4cjs.SurveysResource)(this.http, this.config.pageSize);
|
|
405
|
+
this.tagAliases = new (0, _chunk5GGCSRT4cjs.TagAliasesResource)(this.http, this.config.pageSize);
|
|
406
|
+
this.tagGroups = new (0, _chunk5GGCSRT4cjs.TagGroupsResource)(this.http, this.config.pageSize);
|
|
407
|
+
this.tags = new (0, _chunk5GGCSRT4cjs.TagsResource)(this.http, this.config.pageSize);
|
|
408
|
+
this.taskSecondaryResources = new (0, _chunk5GGCSRT4cjs.TaskSecondaryResourcesResource)(this.http, this.config.pageSize);
|
|
409
|
+
this.tasks = new (0, _chunk5GGCSRT4cjs.TasksResource)(this.http, this.config.pageSize);
|
|
410
|
+
this.taxRegions = new (0, _chunk5GGCSRT4cjs.TaxRegionsResource)(this.http, this.config.pageSize);
|
|
411
|
+
this.thresholdInformation = new (0, _chunk5GGCSRT4cjs.ThresholdInformationResource)(this.http);
|
|
412
|
+
this.ticketAdditionalConfigurationItems = new (0, _chunk5GGCSRT4cjs.TicketAdditionalConfigurationItemsResource)(this.http, this.config.pageSize);
|
|
413
|
+
this.ticketAdditionalContacts = new (0, _chunk5GGCSRT4cjs.TicketAdditionalContactsResource)(this.http, this.config.pageSize);
|
|
414
|
+
this.ticketAttachments = new (0, _chunk5GGCSRT4cjs.TicketAttachmentsResource)(this.http, this.config.pageSize);
|
|
415
|
+
this.ticketCategories = new (0, _chunk5GGCSRT4cjs.TicketCategoriesResource)(this.http, this.config.pageSize);
|
|
416
|
+
this.ticketCategoryFieldDefaults = new (0, _chunk5GGCSRT4cjs.TicketCategoryFieldDefaultsResource)(this.http, this.config.pageSize);
|
|
417
|
+
this.ticketChangeRequestApprovals = new (0, _chunk5GGCSRT4cjs.TicketChangeRequestApprovalsResource)(this.http, this.config.pageSize);
|
|
418
|
+
this.ticketCharges = new (0, _chunk5GGCSRT4cjs.TicketChargesResource)(this.http, this.config.pageSize);
|
|
419
|
+
this.ticketChecklistItems = new (0, _chunk5GGCSRT4cjs.TicketChecklistItemsResource)(this.http, this.config.pageSize);
|
|
420
|
+
this.ticketChecklistLibraries = new (0, _chunk5GGCSRT4cjs.TicketChecklistLibrariesResource)(this.http, this.config.pageSize);
|
|
421
|
+
this.ticketHistory = new (0, _chunk5GGCSRT4cjs.TicketHistoryResource)(this.http, this.config.pageSize);
|
|
422
|
+
this.ticketNoteAttachments = new (0, _chunk5GGCSRT4cjs.TicketNoteAttachmentsResource)(this.http, this.config.pageSize);
|
|
423
|
+
this.ticketNotes = new (0, _chunk5GGCSRT4cjs.TicketNotesResource)(this.http, this.config.pageSize);
|
|
424
|
+
this.ticketNoteWebhooks = new (0, _chunk5GGCSRT4cjs.TicketNoteWebhooksResource)(this.http, this.config.pageSize);
|
|
425
|
+
this.ticketSecondaryResources = new (0, _chunk5GGCSRT4cjs.TicketSecondaryResourcesResource)(this.http, this.config.pageSize);
|
|
426
|
+
this.tickets = new (0, _chunk5GGCSRT4cjs.TicketsResource)(this.http, this.config.pageSize);
|
|
427
|
+
this.ticketWebhooks = new (0, _chunk5GGCSRT4cjs.TicketWebhooksResource)(this.http, this.config.pageSize);
|
|
428
|
+
this.timeEntries = new (0, _chunk5GGCSRT4cjs.TimeEntriesResource)(this.http, this.config.pageSize);
|
|
429
|
+
this.timeEntryAttachments = new (0, _chunk5GGCSRT4cjs.TimeEntryAttachmentsResource)(this.http, this.config.pageSize);
|
|
430
|
+
this.timeOffRequests = new (0, _chunk5GGCSRT4cjs.TimeOffRequestsResource)(this.http, this.config.pageSize);
|
|
431
|
+
this.versionInformation = new (0, _chunk5GGCSRT4cjs.VersionInformationResource)(this.http);
|
|
432
|
+
this.version = new (0, _chunk5GGCSRT4cjs.VersionResource)(this.http);
|
|
433
|
+
this.zoneInformation = new (0, _chunk5GGCSRT4cjs.ZoneInformationResource)(this.http);
|
|
413
434
|
}
|
|
414
435
|
/**
|
|
415
436
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -443,12 +464,12 @@ var AutotaskClient = class {
|
|
|
443
464
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
444
465
|
*/
|
|
445
466
|
withSignal(signal, fn) {
|
|
446
|
-
return
|
|
467
|
+
return _chunkZJ4ONAQFcjs.runWithSignal.call(void 0, signal, fn);
|
|
447
468
|
}
|
|
448
469
|
async batch(fn, items, opts = {}) {
|
|
449
470
|
const concurrency = _nullishCoalesce(opts.concurrency, () => ( this.config.maxConcurrent));
|
|
450
471
|
if (!Number.isInteger(concurrency) || concurrency <= 0) {
|
|
451
|
-
throw new (0,
|
|
472
|
+
throw new (0, _chunkZJ4ONAQFcjs.AutotaskConfigError)("batch concurrency must be a positive integer");
|
|
452
473
|
}
|
|
453
474
|
const { signal, settle } = opts;
|
|
454
475
|
const results = new Array(items.length);
|
|
@@ -463,7 +484,7 @@ var AutotaskClient = class {
|
|
|
463
484
|
const i = next++;
|
|
464
485
|
try {
|
|
465
486
|
const item = items[i];
|
|
466
|
-
const value = await (signal === void 0 ? fn(item) :
|
|
487
|
+
const value = await (signal === void 0 ? fn(item) : _chunkZJ4ONAQFcjs.runWithSignal.call(void 0, signal, () => fn(item)));
|
|
467
488
|
results[i] = settle ? { status: "fulfilled", value } : value;
|
|
468
489
|
} catch (error) {
|
|
469
490
|
if (settle) results[i] = { status: "rejected", reason: error };
|