node-autotask 0.12.0 → 0.12.1
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/MCP_TOOL_CATALOG.json +1 -1
- package/MCP_TOOL_MANIFEST.md +2 -2
- package/N8N_MCP_MANIFEST.json +2 -2
- package/N8N_MCP_MANIFEST.md +3 -3
- package/capabilities.json +5 -5
- package/dist/capabilities.cjs +2 -2
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-TELBX6HK.cjs → chunk-36PG2IU2.cjs} +767 -583
- package/dist/{chunk-JKZVCFRY.cjs → chunk-CSRCMBZ2.cjs} +4 -4
- package/dist/{chunk-5N6DYKXO.cjs → chunk-IHRXVIUU.cjs} +2 -2
- package/dist/{chunk-4A6XLQHE.js → chunk-NACI2NDF.js} +4 -4
- package/dist/{chunk-MY7ZSXY3.js → chunk-P35GFG2H.js} +357 -173
- package/dist/{chunk-SRJI5XUZ.cjs → chunk-PGQIGE63.cjs} +135 -135
- package/dist/{chunk-3WIDDEHP.js → chunk-PPTAMCFA.js} +2 -2
- package/dist/{chunk-GD4JRPYF.js → chunk-ZOA5HUFX.js} +1 -1
- package/dist/{index-D8I6taEo.d.cts → index-DZfd9Gt7.d.cts} +67 -16
- package/dist/{index-uAxAcRol.d.ts → index-UilX3PFL.d.ts} +67 -16
- package/dist/index.cjs +20 -20
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +103 -103
- package/dist/operations/index.d.cts +2 -2
- package/dist/operations/index.d.ts +2 -2
- 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 +4 -4
- package/dist/resources/index.d.cts +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.js +3 -3
- package/docs/API.md +157 -48
- package/package.json +1 -1
|
@@ -127,13 +127,13 @@
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunk36PG2IU2cjs = require('./chunk-36PG2IU2.cjs');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
var
|
|
136
|
+
var _chunkIHRXVIUUcjs = require('./chunk-IHRXVIUU.cjs');
|
|
137
137
|
|
|
138
138
|
// src/client.ts
|
|
139
139
|
var AutotaskClient = class {
|
|
@@ -276,137 +276,137 @@ var AutotaskClient = class {
|
|
|
276
276
|
* anything is wired. Construction issues NO request.
|
|
277
277
|
*/
|
|
278
278
|
constructor(options) {
|
|
279
|
-
this.config =
|
|
280
|
-
this.http = new (0,
|
|
279
|
+
this.config = _chunkIHRXVIUUcjs.resolveConfig.call(void 0, options);
|
|
280
|
+
this.http = new (0, _chunkIHRXVIUUcjs.HttpClient)(this.config);
|
|
281
281
|
this.http.client = this;
|
|
282
|
-
this.appointments = new (0,
|
|
283
|
-
this.authenticateResource = new (0,
|
|
284
|
-
this.billingCodes = new (0,
|
|
285
|
-
this.billingItems = new (0,
|
|
286
|
-
this.changeRequestLinks = new (0,
|
|
287
|
-
this.checklistLibraries = new (0,
|
|
288
|
-
this.checklistLibraryChecklistItems = new (0,
|
|
289
|
-
this.classificationIcons = new (0,
|
|
290
|
-
this.companies = new (0,
|
|
291
|
-
this.companyAlerts = new (0,
|
|
292
|
-
this.companyLocations = new (0,
|
|
293
|
-
this.companyNotes = new (0,
|
|
294
|
-
this.companySiteConfigurations = new (0,
|
|
295
|
-
this.companyWebhooks = new (0,
|
|
296
|
-
this.configurationItemBillingProductAssociations = new (0,
|
|
297
|
-
this.configurationItemCategories = new (0,
|
|
298
|
-
this.configurationItemCategoryUdfAssociations = new (0,
|
|
299
|
-
this.configurationItemDnsRecords = new (0,
|
|
300
|
-
this.configurationItemNotes = new (0,
|
|
301
|
-
this.configurationItemRelatedItems = new (0,
|
|
302
|
-
this.configurationItems = new (0,
|
|
303
|
-
this.configurationItemSslSubjectAlternativeNames = new (0,
|
|
304
|
-
this.configurationItemTypes = new (0,
|
|
305
|
-
this.configurationItemWebhooks = new (0,
|
|
306
|
-
this.contactGroupContacts = new (0,
|
|
307
|
-
this.contactGroups = new (0,
|
|
308
|
-
this.contacts = new (0,
|
|
309
|
-
this.contactWebhooks = new (0,
|
|
310
|
-
this.contractBillingRules = new (0,
|
|
311
|
-
this.contractBlockHourFactors = new (0,
|
|
312
|
-
this.contractBlocks = new (0,
|
|
313
|
-
this.contractCharges = new (0,
|
|
314
|
-
this.contractExclusionBillingCodes = new (0,
|
|
315
|
-
this.contractExclusionRoles = new (0,
|
|
316
|
-
this.contractExclusionSetExcludedRoles = new (0,
|
|
317
|
-
this.contractExclusionSetExcludedWorkTypes = new (0,
|
|
318
|
-
this.contractExclusionSets = new (0,
|
|
319
|
-
this.contractMilestones = new (0,
|
|
320
|
-
this.contractNotes = new (0,
|
|
321
|
-
this.contractRates = new (0,
|
|
322
|
-
this.contractRetainers = new (0,
|
|
323
|
-
this.contractRoleCosts = new (0,
|
|
324
|
-
this.contractServiceAdjustments = new (0,
|
|
325
|
-
this.contractServiceBundleAdjustments = new (0,
|
|
326
|
-
this.contractServiceBundles = new (0,
|
|
327
|
-
this.contractServiceBundleUnits = new (0,
|
|
328
|
-
this.contractServices = new (0,
|
|
329
|
-
this.contractServiceUnits = new (0,
|
|
330
|
-
this.contracts = new (0,
|
|
331
|
-
this.contractTicketPurchases = new (0,
|
|
332
|
-
this.countries = new (0,
|
|
333
|
-
this.departments = new (0,
|
|
334
|
-
this.domainRegistrars = new (0,
|
|
335
|
-
this.entityInformation = new (0,
|
|
336
|
-
this.expenseItemAttachments = new (0,
|
|
337
|
-
this.expenseItems = new (0,
|
|
338
|
-
this.expenseReports = new (0,
|
|
339
|
-
this.holidaySets = new (0,
|
|
340
|
-
this.holidays = new (0,
|
|
341
|
-
this.inventoryProducts = new (0,
|
|
342
|
-
this.invoices = new (0,
|
|
343
|
-
this.modules = new (0,
|
|
344
|
-
this.notificationHistory = new (0,
|
|
345
|
-
this.opportunities = new (0,
|
|
346
|
-
this.opportunityAttachments = new (0,
|
|
347
|
-
this.opportunityCategories = new (0,
|
|
348
|
-
this.phases = new (0,
|
|
349
|
-
this.products = new (0,
|
|
350
|
-
this.productVendors = new (0,
|
|
351
|
-
this.projectCharges = new (0,
|
|
352
|
-
this.projectNotes = new (0,
|
|
353
|
-
this.projects = new (0,
|
|
354
|
-
this.purchaseApprovals = new (0,
|
|
355
|
-
this.purchaseOrderItemReceiving = new (0,
|
|
356
|
-
this.purchaseOrderItems = new (0,
|
|
357
|
-
this.purchaseOrders = new (0,
|
|
358
|
-
this.quoteItems = new (0,
|
|
359
|
-
this.quoteLocations = new (0,
|
|
360
|
-
this.quotes = new (0,
|
|
361
|
-
this.quoteTemplates = new (0,
|
|
362
|
-
this.resourceRoleQueues = new (0,
|
|
363
|
-
this.resourceRoles = new (0,
|
|
364
|
-
this.resourceSkills = new (0,
|
|
365
|
-
this.resources = new (0,
|
|
366
|
-
this.resourceTimeOffAdditional = new (0,
|
|
367
|
-
this.resourceTimeOffApprovers = new (0,
|
|
368
|
-
this.resourceTimeOffBalances = new (0,
|
|
369
|
-
this.roles = new (0,
|
|
370
|
-
this.serviceCalls = new (0,
|
|
371
|
-
this.serviceCallTaskResources = new (0,
|
|
372
|
-
this.serviceCallTasks = new (0,
|
|
373
|
-
this.serviceCallTicketResources = new (0,
|
|
374
|
-
this.serviceCallTickets = new (0,
|
|
375
|
-
this.serviceLevelAgreementResults = new (0,
|
|
376
|
-
this.services = new (0,
|
|
377
|
-
this.skills = new (0,
|
|
378
|
-
this.subscriptionPeriods = new (0,
|
|
379
|
-
this.subscriptions = new (0,
|
|
380
|
-
this.surveyResults = new (0,
|
|
381
|
-
this.surveys = new (0,
|
|
382
|
-
this.tagAliases = new (0,
|
|
383
|
-
this.tagGroups = new (0,
|
|
384
|
-
this.tags = new (0,
|
|
385
|
-
this.taskSecondaryResources = new (0,
|
|
386
|
-
this.tasks = new (0,
|
|
387
|
-
this.thresholdInformation = new (0,
|
|
388
|
-
this.ticketAdditionalConfigurationItems = new (0,
|
|
389
|
-
this.ticketAdditionalContacts = new (0,
|
|
390
|
-
this.ticketAttachments = new (0,
|
|
391
|
-
this.ticketCategories = new (0,
|
|
392
|
-
this.ticketCategoryFieldDefaults = new (0,
|
|
393
|
-
this.ticketChangeRequestApprovals = new (0,
|
|
394
|
-
this.ticketCharges = new (0,
|
|
395
|
-
this.ticketChecklistItems = new (0,
|
|
396
|
-
this.ticketChecklistLibraries = new (0,
|
|
397
|
-
this.ticketHistory = new (0,
|
|
398
|
-
this.ticketNoteAttachments = new (0,
|
|
399
|
-
this.ticketNotes = new (0,
|
|
400
|
-
this.ticketNoteWebhooks = new (0,
|
|
401
|
-
this.ticketSecondaryResources = new (0,
|
|
402
|
-
this.tickets = new (0,
|
|
403
|
-
this.ticketWebhooks = new (0,
|
|
404
|
-
this.timeEntries = new (0,
|
|
405
|
-
this.timeEntryAttachments = new (0,
|
|
406
|
-
this.timeOffRequests = new (0,
|
|
407
|
-
this.versionInformation = new (0,
|
|
408
|
-
this.version = new (0,
|
|
409
|
-
this.zoneInformation = new (0,
|
|
282
|
+
this.appointments = new (0, _chunk36PG2IU2cjs.AppointmentsResource)(this.http, this.config.pageSize);
|
|
283
|
+
this.authenticateResource = new (0, _chunk36PG2IU2cjs.AuthenticateResource)(this.http);
|
|
284
|
+
this.billingCodes = new (0, _chunk36PG2IU2cjs.BillingCodesResource)(this.http, this.config.pageSize);
|
|
285
|
+
this.billingItems = new (0, _chunk36PG2IU2cjs.BillingItemsResource)(this.http, this.config.pageSize);
|
|
286
|
+
this.changeRequestLinks = new (0, _chunk36PG2IU2cjs.ChangeRequestLinksResource)(this.http, this.config.pageSize);
|
|
287
|
+
this.checklistLibraries = new (0, _chunk36PG2IU2cjs.ChecklistLibrariesResource)(this.http, this.config.pageSize);
|
|
288
|
+
this.checklistLibraryChecklistItems = new (0, _chunk36PG2IU2cjs.ChecklistLibraryChecklistItemsResource)(this.http, this.config.pageSize);
|
|
289
|
+
this.classificationIcons = new (0, _chunk36PG2IU2cjs.ClassificationIconsResource)(this.http, this.config.pageSize);
|
|
290
|
+
this.companies = new (0, _chunk36PG2IU2cjs.CompaniesResource)(this.http, this.config.pageSize);
|
|
291
|
+
this.companyAlerts = new (0, _chunk36PG2IU2cjs.CompanyAlertsResource)(this.http, this.config.pageSize);
|
|
292
|
+
this.companyLocations = new (0, _chunk36PG2IU2cjs.CompanyLocationsResource)(this.http, this.config.pageSize);
|
|
293
|
+
this.companyNotes = new (0, _chunk36PG2IU2cjs.CompanyNotesResource)(this.http, this.config.pageSize);
|
|
294
|
+
this.companySiteConfigurations = new (0, _chunk36PG2IU2cjs.CompanySiteConfigurationsResource)(this.http, this.config.pageSize);
|
|
295
|
+
this.companyWebhooks = new (0, _chunk36PG2IU2cjs.CompanyWebhooksResource)(this.http, this.config.pageSize);
|
|
296
|
+
this.configurationItemBillingProductAssociations = new (0, _chunk36PG2IU2cjs.ConfigurationItemBillingProductAssociationsResource)(this.http, this.config.pageSize);
|
|
297
|
+
this.configurationItemCategories = new (0, _chunk36PG2IU2cjs.ConfigurationItemCategoriesResource)(this.http, this.config.pageSize);
|
|
298
|
+
this.configurationItemCategoryUdfAssociations = new (0, _chunk36PG2IU2cjs.ConfigurationItemCategoryUdfAssociationsResource)(this.http, this.config.pageSize);
|
|
299
|
+
this.configurationItemDnsRecords = new (0, _chunk36PG2IU2cjs.ConfigurationItemDnsRecordsResource)(this.http, this.config.pageSize);
|
|
300
|
+
this.configurationItemNotes = new (0, _chunk36PG2IU2cjs.ConfigurationItemNotesResource)(this.http, this.config.pageSize);
|
|
301
|
+
this.configurationItemRelatedItems = new (0, _chunk36PG2IU2cjs.ConfigurationItemRelatedItemsResource)(this.http, this.config.pageSize);
|
|
302
|
+
this.configurationItems = new (0, _chunk36PG2IU2cjs.ConfigurationItemsResource)(this.http, this.config.pageSize);
|
|
303
|
+
this.configurationItemSslSubjectAlternativeNames = new (0, _chunk36PG2IU2cjs.ConfigurationItemSslSubjectAlternativeNamesResource)(this.http, this.config.pageSize);
|
|
304
|
+
this.configurationItemTypes = new (0, _chunk36PG2IU2cjs.ConfigurationItemTypesResource)(this.http, this.config.pageSize);
|
|
305
|
+
this.configurationItemWebhooks = new (0, _chunk36PG2IU2cjs.ConfigurationItemWebhooksResource)(this.http, this.config.pageSize);
|
|
306
|
+
this.contactGroupContacts = new (0, _chunk36PG2IU2cjs.ContactGroupContactsResource)(this.http, this.config.pageSize);
|
|
307
|
+
this.contactGroups = new (0, _chunk36PG2IU2cjs.ContactGroupsResource)(this.http, this.config.pageSize);
|
|
308
|
+
this.contacts = new (0, _chunk36PG2IU2cjs.ContactsResource)(this.http, this.config.pageSize);
|
|
309
|
+
this.contactWebhooks = new (0, _chunk36PG2IU2cjs.ContactWebhooksResource)(this.http, this.config.pageSize);
|
|
310
|
+
this.contractBillingRules = new (0, _chunk36PG2IU2cjs.ContractBillingRulesResource)(this.http, this.config.pageSize);
|
|
311
|
+
this.contractBlockHourFactors = new (0, _chunk36PG2IU2cjs.ContractBlockHourFactorsResource)(this.http, this.config.pageSize);
|
|
312
|
+
this.contractBlocks = new (0, _chunk36PG2IU2cjs.ContractBlocksResource)(this.http, this.config.pageSize);
|
|
313
|
+
this.contractCharges = new (0, _chunk36PG2IU2cjs.ContractChargesResource)(this.http, this.config.pageSize);
|
|
314
|
+
this.contractExclusionBillingCodes = new (0, _chunk36PG2IU2cjs.ContractExclusionBillingCodesResource)(this.http, this.config.pageSize);
|
|
315
|
+
this.contractExclusionRoles = new (0, _chunk36PG2IU2cjs.ContractExclusionRolesResource)(this.http, this.config.pageSize);
|
|
316
|
+
this.contractExclusionSetExcludedRoles = new (0, _chunk36PG2IU2cjs.ContractExclusionSetExcludedRolesResource)(this.http, this.config.pageSize);
|
|
317
|
+
this.contractExclusionSetExcludedWorkTypes = new (0, _chunk36PG2IU2cjs.ContractExclusionSetExcludedWorkTypesResource)(this.http, this.config.pageSize);
|
|
318
|
+
this.contractExclusionSets = new (0, _chunk36PG2IU2cjs.ContractExclusionSetsResource)(this.http, this.config.pageSize);
|
|
319
|
+
this.contractMilestones = new (0, _chunk36PG2IU2cjs.ContractMilestonesResource)(this.http, this.config.pageSize);
|
|
320
|
+
this.contractNotes = new (0, _chunk36PG2IU2cjs.ContractNotesResource)(this.http, this.config.pageSize);
|
|
321
|
+
this.contractRates = new (0, _chunk36PG2IU2cjs.ContractRatesResource)(this.http, this.config.pageSize);
|
|
322
|
+
this.contractRetainers = new (0, _chunk36PG2IU2cjs.ContractRetainersResource)(this.http, this.config.pageSize);
|
|
323
|
+
this.contractRoleCosts = new (0, _chunk36PG2IU2cjs.ContractRoleCostsResource)(this.http, this.config.pageSize);
|
|
324
|
+
this.contractServiceAdjustments = new (0, _chunk36PG2IU2cjs.ContractServiceAdjustmentsResource)(this.http, this.config.pageSize);
|
|
325
|
+
this.contractServiceBundleAdjustments = new (0, _chunk36PG2IU2cjs.ContractServiceBundleAdjustmentsResource)(this.http, this.config.pageSize);
|
|
326
|
+
this.contractServiceBundles = new (0, _chunk36PG2IU2cjs.ContractServiceBundlesResource)(this.http, this.config.pageSize);
|
|
327
|
+
this.contractServiceBundleUnits = new (0, _chunk36PG2IU2cjs.ContractServiceBundleUnitsResource)(this.http, this.config.pageSize);
|
|
328
|
+
this.contractServices = new (0, _chunk36PG2IU2cjs.ContractServicesResource)(this.http, this.config.pageSize);
|
|
329
|
+
this.contractServiceUnits = new (0, _chunk36PG2IU2cjs.ContractServiceUnitsResource)(this.http, this.config.pageSize);
|
|
330
|
+
this.contracts = new (0, _chunk36PG2IU2cjs.ContractsResource)(this.http, this.config.pageSize);
|
|
331
|
+
this.contractTicketPurchases = new (0, _chunk36PG2IU2cjs.ContractTicketPurchasesResource)(this.http, this.config.pageSize);
|
|
332
|
+
this.countries = new (0, _chunk36PG2IU2cjs.CountriesResource)(this.http, this.config.pageSize);
|
|
333
|
+
this.departments = new (0, _chunk36PG2IU2cjs.DepartmentsResource)(this.http, this.config.pageSize);
|
|
334
|
+
this.domainRegistrars = new (0, _chunk36PG2IU2cjs.DomainRegistrarsResource)(this.http, this.config.pageSize);
|
|
335
|
+
this.entityInformation = new (0, _chunk36PG2IU2cjs.EntityInformationResource)(this.http);
|
|
336
|
+
this.expenseItemAttachments = new (0, _chunk36PG2IU2cjs.ExpenseItemAttachmentsResource)(this.http, this.config.pageSize);
|
|
337
|
+
this.expenseItems = new (0, _chunk36PG2IU2cjs.ExpenseItemsResource)(this.http, this.config.pageSize);
|
|
338
|
+
this.expenseReports = new (0, _chunk36PG2IU2cjs.ExpenseReportsResource)(this.http, this.config.pageSize);
|
|
339
|
+
this.holidaySets = new (0, _chunk36PG2IU2cjs.HolidaySetsResource)(this.http, this.config.pageSize);
|
|
340
|
+
this.holidays = new (0, _chunk36PG2IU2cjs.HolidaysResource)(this.http, this.config.pageSize);
|
|
341
|
+
this.inventoryProducts = new (0, _chunk36PG2IU2cjs.InventoryProductsResource)(this.http, this.config.pageSize);
|
|
342
|
+
this.invoices = new (0, _chunk36PG2IU2cjs.InvoicesResource)(this.http, this.config.pageSize);
|
|
343
|
+
this.modules = new (0, _chunk36PG2IU2cjs.ModulesResource)(this.http);
|
|
344
|
+
this.notificationHistory = new (0, _chunk36PG2IU2cjs.NotificationHistoryResource)(this.http, this.config.pageSize);
|
|
345
|
+
this.opportunities = new (0, _chunk36PG2IU2cjs.OpportunitiesResource)(this.http, this.config.pageSize);
|
|
346
|
+
this.opportunityAttachments = new (0, _chunk36PG2IU2cjs.OpportunityAttachmentsResource)(this.http, this.config.pageSize);
|
|
347
|
+
this.opportunityCategories = new (0, _chunk36PG2IU2cjs.OpportunityCategoriesResource)(this.http, this.config.pageSize);
|
|
348
|
+
this.phases = new (0, _chunk36PG2IU2cjs.PhasesResource)(this.http, this.config.pageSize);
|
|
349
|
+
this.products = new (0, _chunk36PG2IU2cjs.ProductsResource)(this.http, this.config.pageSize);
|
|
350
|
+
this.productVendors = new (0, _chunk36PG2IU2cjs.ProductVendorsResource)(this.http, this.config.pageSize);
|
|
351
|
+
this.projectCharges = new (0, _chunk36PG2IU2cjs.ProjectChargesResource)(this.http, this.config.pageSize);
|
|
352
|
+
this.projectNotes = new (0, _chunk36PG2IU2cjs.ProjectNotesResource)(this.http, this.config.pageSize);
|
|
353
|
+
this.projects = new (0, _chunk36PG2IU2cjs.ProjectsResource)(this.http, this.config.pageSize);
|
|
354
|
+
this.purchaseApprovals = new (0, _chunk36PG2IU2cjs.PurchaseApprovalsResource)(this.http, this.config.pageSize);
|
|
355
|
+
this.purchaseOrderItemReceiving = new (0, _chunk36PG2IU2cjs.PurchaseOrderItemReceivingResource)(this.http, this.config.pageSize);
|
|
356
|
+
this.purchaseOrderItems = new (0, _chunk36PG2IU2cjs.PurchaseOrderItemsResource)(this.http, this.config.pageSize);
|
|
357
|
+
this.purchaseOrders = new (0, _chunk36PG2IU2cjs.PurchaseOrdersResource)(this.http, this.config.pageSize);
|
|
358
|
+
this.quoteItems = new (0, _chunk36PG2IU2cjs.QuoteItemsResource)(this.http, this.config.pageSize);
|
|
359
|
+
this.quoteLocations = new (0, _chunk36PG2IU2cjs.QuoteLocationsResource)(this.http, this.config.pageSize);
|
|
360
|
+
this.quotes = new (0, _chunk36PG2IU2cjs.QuotesResource)(this.http, this.config.pageSize);
|
|
361
|
+
this.quoteTemplates = new (0, _chunk36PG2IU2cjs.QuoteTemplatesResource)(this.http, this.config.pageSize);
|
|
362
|
+
this.resourceRoleQueues = new (0, _chunk36PG2IU2cjs.ResourceRoleQueuesResource)(this.http, this.config.pageSize);
|
|
363
|
+
this.resourceRoles = new (0, _chunk36PG2IU2cjs.ResourceRolesResource)(this.http, this.config.pageSize);
|
|
364
|
+
this.resourceSkills = new (0, _chunk36PG2IU2cjs.ResourceSkillsResource)(this.http, this.config.pageSize);
|
|
365
|
+
this.resources = new (0, _chunk36PG2IU2cjs.ResourcesResource)(this.http, this.config, this.config.pageSize);
|
|
366
|
+
this.resourceTimeOffAdditional = new (0, _chunk36PG2IU2cjs.ResourceTimeOffAdditionalResource)(this.http, this.config.pageSize);
|
|
367
|
+
this.resourceTimeOffApprovers = new (0, _chunk36PG2IU2cjs.ResourceTimeOffApproversResource)(this.http, this.config.pageSize);
|
|
368
|
+
this.resourceTimeOffBalances = new (0, _chunk36PG2IU2cjs.ResourceTimeOffBalancesResource)(this.http, this.config.pageSize);
|
|
369
|
+
this.roles = new (0, _chunk36PG2IU2cjs.RolesResource)(this.http, this.config.pageSize);
|
|
370
|
+
this.serviceCalls = new (0, _chunk36PG2IU2cjs.ServiceCallsResource)(this.http, this.config.pageSize);
|
|
371
|
+
this.serviceCallTaskResources = new (0, _chunk36PG2IU2cjs.ServiceCallTaskResourcesResource)(this.http, this.config.pageSize);
|
|
372
|
+
this.serviceCallTasks = new (0, _chunk36PG2IU2cjs.ServiceCallTasksResource)(this.http, this.config.pageSize);
|
|
373
|
+
this.serviceCallTicketResources = new (0, _chunk36PG2IU2cjs.ServiceCallTicketResourcesResource)(this.http, this.config.pageSize);
|
|
374
|
+
this.serviceCallTickets = new (0, _chunk36PG2IU2cjs.ServiceCallTicketsResource)(this.http, this.config.pageSize);
|
|
375
|
+
this.serviceLevelAgreementResults = new (0, _chunk36PG2IU2cjs.ServiceLevelAgreementResultsResource)(this.http, this.config.pageSize);
|
|
376
|
+
this.services = new (0, _chunk36PG2IU2cjs.ServicesResource)(this.http, this.config.pageSize);
|
|
377
|
+
this.skills = new (0, _chunk36PG2IU2cjs.SkillsResource)(this.http, this.config.pageSize);
|
|
378
|
+
this.subscriptionPeriods = new (0, _chunk36PG2IU2cjs.SubscriptionPeriodsResource)(this.http, this.config.pageSize);
|
|
379
|
+
this.subscriptions = new (0, _chunk36PG2IU2cjs.SubscriptionsResource)(this.http, this.config.pageSize);
|
|
380
|
+
this.surveyResults = new (0, _chunk36PG2IU2cjs.SurveyResultsResource)(this.http, this.config.pageSize);
|
|
381
|
+
this.surveys = new (0, _chunk36PG2IU2cjs.SurveysResource)(this.http, this.config.pageSize);
|
|
382
|
+
this.tagAliases = new (0, _chunk36PG2IU2cjs.TagAliasesResource)(this.http, this.config.pageSize);
|
|
383
|
+
this.tagGroups = new (0, _chunk36PG2IU2cjs.TagGroupsResource)(this.http, this.config.pageSize);
|
|
384
|
+
this.tags = new (0, _chunk36PG2IU2cjs.TagsResource)(this.http, this.config.pageSize);
|
|
385
|
+
this.taskSecondaryResources = new (0, _chunk36PG2IU2cjs.TaskSecondaryResourcesResource)(this.http, this.config.pageSize);
|
|
386
|
+
this.tasks = new (0, _chunk36PG2IU2cjs.TasksResource)(this.http, this.config.pageSize);
|
|
387
|
+
this.thresholdInformation = new (0, _chunk36PG2IU2cjs.ThresholdInformationResource)(this.http);
|
|
388
|
+
this.ticketAdditionalConfigurationItems = new (0, _chunk36PG2IU2cjs.TicketAdditionalConfigurationItemsResource)(this.http, this.config.pageSize);
|
|
389
|
+
this.ticketAdditionalContacts = new (0, _chunk36PG2IU2cjs.TicketAdditionalContactsResource)(this.http, this.config.pageSize);
|
|
390
|
+
this.ticketAttachments = new (0, _chunk36PG2IU2cjs.TicketAttachmentsResource)(this.http, this.config.pageSize);
|
|
391
|
+
this.ticketCategories = new (0, _chunk36PG2IU2cjs.TicketCategoriesResource)(this.http, this.config.pageSize);
|
|
392
|
+
this.ticketCategoryFieldDefaults = new (0, _chunk36PG2IU2cjs.TicketCategoryFieldDefaultsResource)(this.http, this.config.pageSize);
|
|
393
|
+
this.ticketChangeRequestApprovals = new (0, _chunk36PG2IU2cjs.TicketChangeRequestApprovalsResource)(this.http, this.config.pageSize);
|
|
394
|
+
this.ticketCharges = new (0, _chunk36PG2IU2cjs.TicketChargesResource)(this.http, this.config.pageSize);
|
|
395
|
+
this.ticketChecklistItems = new (0, _chunk36PG2IU2cjs.TicketChecklistItemsResource)(this.http, this.config.pageSize);
|
|
396
|
+
this.ticketChecklistLibraries = new (0, _chunk36PG2IU2cjs.TicketChecklistLibrariesResource)(this.http, this.config.pageSize);
|
|
397
|
+
this.ticketHistory = new (0, _chunk36PG2IU2cjs.TicketHistoryResource)(this.http, this.config.pageSize);
|
|
398
|
+
this.ticketNoteAttachments = new (0, _chunk36PG2IU2cjs.TicketNoteAttachmentsResource)(this.http, this.config.pageSize);
|
|
399
|
+
this.ticketNotes = new (0, _chunk36PG2IU2cjs.TicketNotesResource)(this.http, this.config.pageSize);
|
|
400
|
+
this.ticketNoteWebhooks = new (0, _chunk36PG2IU2cjs.TicketNoteWebhooksResource)(this.http, this.config.pageSize);
|
|
401
|
+
this.ticketSecondaryResources = new (0, _chunk36PG2IU2cjs.TicketSecondaryResourcesResource)(this.http, this.config.pageSize);
|
|
402
|
+
this.tickets = new (0, _chunk36PG2IU2cjs.TicketsResource)(this.http, this.config.pageSize);
|
|
403
|
+
this.ticketWebhooks = new (0, _chunk36PG2IU2cjs.TicketWebhooksResource)(this.http, this.config.pageSize);
|
|
404
|
+
this.timeEntries = new (0, _chunk36PG2IU2cjs.TimeEntriesResource)(this.http, this.config.pageSize);
|
|
405
|
+
this.timeEntryAttachments = new (0, _chunk36PG2IU2cjs.TimeEntryAttachmentsResource)(this.http, this.config.pageSize);
|
|
406
|
+
this.timeOffRequests = new (0, _chunk36PG2IU2cjs.TimeOffRequestsResource)(this.http, this.config.pageSize);
|
|
407
|
+
this.versionInformation = new (0, _chunk36PG2IU2cjs.VersionInformationResource)(this.http);
|
|
408
|
+
this.version = new (0, _chunk36PG2IU2cjs.VersionResource)(this.http);
|
|
409
|
+
this.zoneInformation = new (0, _chunk36PG2IU2cjs.ZoneInformationResource)(this.http);
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
412
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -440,12 +440,12 @@ var AutotaskClient = class {
|
|
|
440
440
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
441
441
|
*/
|
|
442
442
|
withSignal(signal, fn) {
|
|
443
|
-
return
|
|
443
|
+
return _chunkIHRXVIUUcjs.runWithSignal.call(void 0, signal, fn);
|
|
444
444
|
}
|
|
445
445
|
async batch(fn, items, opts = {}) {
|
|
446
446
|
const concurrency = _nullishCoalesce(opts.concurrency, () => ( this.config.maxConcurrent));
|
|
447
447
|
if (!Number.isInteger(concurrency) || concurrency <= 0) {
|
|
448
|
-
throw new (0,
|
|
448
|
+
throw new (0, _chunkIHRXVIUUcjs.AutotaskConfigError)("batch concurrency must be a positive integer");
|
|
449
449
|
}
|
|
450
450
|
const { signal, settle } = opts;
|
|
451
451
|
const results = new Array(items.length);
|
|
@@ -460,7 +460,7 @@ var AutotaskClient = class {
|
|
|
460
460
|
const i = next++;
|
|
461
461
|
try {
|
|
462
462
|
const item = items[i];
|
|
463
|
-
const value = await (signal === void 0 ? fn(item) :
|
|
463
|
+
const value = await (signal === void 0 ? fn(item) : _chunkIHRXVIUUcjs.runWithSignal.call(void 0, signal, () => fn(item)));
|
|
464
464
|
results[i] = settle ? { status: "fulfilled", value } : value;
|
|
465
465
|
} catch (error) {
|
|
466
466
|
if (settle) results[i] = { status: "rejected", reason: error };
|
|
@@ -127,13 +127,13 @@ import {
|
|
|
127
127
|
VersionInformationResource,
|
|
128
128
|
VersionResource,
|
|
129
129
|
ZoneInformationResource
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-P35GFG2H.js";
|
|
131
131
|
import {
|
|
132
132
|
AutotaskConfigError,
|
|
133
133
|
HttpClient,
|
|
134
134
|
resolveConfig,
|
|
135
135
|
runWithSignal
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-ZOA5HUFX.js";
|
|
137
137
|
|
|
138
138
|
// src/client.ts
|
|
139
139
|
var AutotaskClient = class {
|
|
@@ -5017,7 +5017,7 @@ interface ProfitabilityOptions {
|
|
|
5017
5017
|
groupByActivity?: boolean;
|
|
5018
5018
|
/** Check-10 staleness horizon in days (default 30). */
|
|
5019
5019
|
staleAfterDays?: number;
|
|
5020
|
-
/** The ticket-id join-set cap for the in-filter parts (default 500, the in-filter cap). */
|
|
5020
|
+
/** The ticket-id join-set cap for the in-filter parts — the expenses/probe join AND the time-referenced ticket ids (default 500, the in-filter cap). */
|
|
5021
5021
|
maxTicketsForJoin?: number;
|
|
5022
5022
|
/** Per-part page cap AND capped-list cap (default 50, clamped 1..500). */
|
|
5023
5023
|
limit?: number;
|
|
@@ -5035,14 +5035,38 @@ interface ProfitabilityPart<TItem> {
|
|
|
5035
5035
|
blindSurface?: BlindSurfaceInfo;
|
|
5036
5036
|
/** The base layer's 0-row stamp (the pinned tenant-empty-for-user class rides here where attached). */
|
|
5037
5037
|
emptyReason?: EmptyReasonInfo;
|
|
5038
|
-
status
|
|
5038
|
+
/** status 'absent' only: the typed error code of the read that faulted (the part degraded, the call did not). */
|
|
5039
|
+
absent?: string;
|
|
5040
|
+
status: 'ok' | 'blind' | 'skipped' | 'absent';
|
|
5041
|
+
}
|
|
5042
|
+
/** Invoiced revenue by billing-line kind (classified by the line's FK: service/bundle → recurring, timeEntryID → labour, charge FKs → charges, expenseItemID → expenses). */
|
|
5043
|
+
interface ProfitabilityRevenueByType {
|
|
5044
|
+
recurring: number;
|
|
5045
|
+
labour: number;
|
|
5046
|
+
charges: number;
|
|
5047
|
+
expenses: number;
|
|
5048
|
+
other: number;
|
|
5039
5049
|
}
|
|
5040
5050
|
interface ProfitabilityMonthlyRow {
|
|
5041
5051
|
month: string;
|
|
5042
5052
|
revenue_invoiced: number;
|
|
5053
|
+
revenue_by_type: ProfitabilityRevenueByType;
|
|
5043
5054
|
revenue_voided_excluded: number;
|
|
5055
|
+
/** Σ the month's posted billing items with no invoice yet. */
|
|
5056
|
+
revenue_posted_uninvoiced: number;
|
|
5057
|
+
/** Σ the month's billing items whose invoice could not be read (or was beyond the join cap) — not recognized revenue; the count rides coverage_gaps. */
|
|
5058
|
+
revenue_unresolved_invoice: number;
|
|
5059
|
+
/** Σ the period price of the service units starting in the month (null without a services/units basis). */
|
|
5044
5060
|
revenue_expected: number | null;
|
|
5061
|
+
/** max(0, expected − the month's invoiced SERVICE lines). */
|
|
5045
5062
|
revenue_expected_unbilled: number;
|
|
5063
|
+
/** Billable time with no billing item yet (not approved+posted). `value` is priced at the contract role rate on Time & Materials contracts only. */
|
|
5064
|
+
unposted_time: {
|
|
5065
|
+
entries: number;
|
|
5066
|
+
hours: number;
|
|
5067
|
+
value: number | null;
|
|
5068
|
+
absent?: 'CONTRACT_TYPE_UNKNOWN' | 'NOT_TIME_AND_MATERIALS_CONTRACT' | 'NO_CONTRACT_RATE';
|
|
5069
|
+
};
|
|
5046
5070
|
labour_hours: number;
|
|
5047
5071
|
labour_cost: {
|
|
5048
5072
|
total: number;
|
|
@@ -5062,15 +5086,21 @@ interface ProfitabilityMonthlyRow {
|
|
|
5062
5086
|
};
|
|
5063
5087
|
};
|
|
5064
5088
|
tooling_cost: {
|
|
5089
|
+
/** Σ the monthly share (periodType-prorated) of the subscriptions on this contract's CIs — REPORTED, never folded into total_cost (subscriptions bill outside the contract). */
|
|
5065
5090
|
vendor: number | null;
|
|
5066
5091
|
caller_supplied: number;
|
|
5067
5092
|
};
|
|
5093
|
+
/** Σ contract charge COST (extendedCost, else unitCost × unitQuantity) + the cost of the service units starting in the month. */
|
|
5068
5094
|
recurring_cost: number;
|
|
5069
5095
|
expense_cost: number;
|
|
5096
|
+
/** labour + caller-supplied tooling + recurring + expenses (vendor subscriptions excluded). */
|
|
5070
5097
|
total_cost: number;
|
|
5071
5098
|
profit: number;
|
|
5072
5099
|
margin: number | null;
|
|
5100
|
+
/** The labour hours the month's invoiced revenue absorbs at the average resolved cost rate before profit hits zero: (revenue − non-labour cost) / rate; 0 when non-labour cost already exceeds revenue; null with no resolved hours or a zero rate. */
|
|
5073
5101
|
break_even_hours: number | null;
|
|
5102
|
+
/** Why the month's figures may be incomplete: `<part>: absent (<code>)`, `<part>: truncated at limit N`, `<part>: capped at limit N`. Empty = complete. */
|
|
5103
|
+
coverage_gaps: string[];
|
|
5074
5104
|
}
|
|
5075
5105
|
interface ProfitabilityActivityCategory {
|
|
5076
5106
|
ticketCategory: number | null;
|
|
@@ -5131,6 +5161,23 @@ interface CostRateResolution {
|
|
|
5131
5161
|
interface ContractsProfitabilityResult {
|
|
5132
5162
|
contract: Contract;
|
|
5133
5163
|
customer: Company | null;
|
|
5164
|
+
/** parts.customer 'absent' only: the typed code of the customer-read fault (a 404 is the plain null/skipped). */
|
|
5165
|
+
customerAbsent?: string;
|
|
5166
|
+
/** The raw contractType id + its tenant picklist label (the folds branch on the label); CONTRACT_TYPE_UNKNOWN when the id is absent/0 or the label is unresolvable. */
|
|
5167
|
+
contract_type: {
|
|
5168
|
+
id: number | null;
|
|
5169
|
+
label: string | null;
|
|
5170
|
+
absent?: 'CONTRACT_TYPE_UNKNOWN';
|
|
5171
|
+
};
|
|
5172
|
+
/** Block Hours contracts only (contract_blocks hours vs hoursApproved); otherwise null + the typed reason (NOT_BLOCK_HOURS_CONTRACT / CONTRACT_TYPE_UNKNOWN / the blocks read's fault code). Service units are never read as hours. */
|
|
5173
|
+
included_hours: {
|
|
5174
|
+
value: {
|
|
5175
|
+
purchased: number;
|
|
5176
|
+
approved: number;
|
|
5177
|
+
remaining: number;
|
|
5178
|
+
} | null;
|
|
5179
|
+
absent?: string;
|
|
5180
|
+
};
|
|
5134
5181
|
period: {
|
|
5135
5182
|
dateFrom: string;
|
|
5136
5183
|
dateTo: string;
|
|
@@ -5154,6 +5201,7 @@ interface ContractsProfitabilityResult {
|
|
|
5154
5201
|
contractCharges: ProfitabilityPart<ContractCharge>;
|
|
5155
5202
|
contractRoleCosts: ProfitabilityPart<ContractRoleCosts>;
|
|
5156
5203
|
contractRates: ProfitabilityPart<ContractRate>;
|
|
5204
|
+
contractBlocks: ProfitabilityPart<ContractBlock>;
|
|
5157
5205
|
billingItems: ProfitabilityPart<BillingItems>;
|
|
5158
5206
|
invoices: ProfitabilityPart<Invoice>;
|
|
5159
5207
|
timeEntries: ProfitabilityPart<TimeEntry>;
|
|
@@ -5166,25 +5214,28 @@ interface ContractsProfitabilityResult {
|
|
|
5166
5214
|
subscriptions: ProfitabilityPart<Subscription>;
|
|
5167
5215
|
parts: {
|
|
5168
5216
|
contract: 'ok';
|
|
5169
|
-
customer: 'ok' | 'skipped';
|
|
5170
|
-
contractServices: 'ok' | 'blind';
|
|
5171
|
-
contractServiceUnits: 'ok' | 'blind';
|
|
5172
|
-
contractCharges: 'ok' | 'blind' | 'skipped';
|
|
5173
|
-
contractRoleCosts: 'ok' | 'blind';
|
|
5174
|
-
contractRates: 'ok' | 'blind';
|
|
5175
|
-
|
|
5217
|
+
customer: 'ok' | 'skipped' | 'absent';
|
|
5218
|
+
contractServices: 'ok' | 'blind' | 'absent';
|
|
5219
|
+
contractServiceUnits: 'ok' | 'blind' | 'absent';
|
|
5220
|
+
contractCharges: 'ok' | 'blind' | 'skipped' | 'absent';
|
|
5221
|
+
contractRoleCosts: 'ok' | 'blind' | 'absent';
|
|
5222
|
+
contractRates: 'ok' | 'blind' | 'absent';
|
|
5223
|
+
contractBlocks: 'ok' | 'blind' | 'skipped' | 'absent';
|
|
5224
|
+
billingItems: 'ok' | 'blind' | 'absent';
|
|
5176
5225
|
invoices: 'ok' | 'skipped';
|
|
5177
|
-
timeEntries: 'ok' | 'blind';
|
|
5178
|
-
ticketsActivity: 'ok' | 'blind';
|
|
5179
|
-
ticketsOpen: 'ok' | 'blind' | 'skipped';
|
|
5226
|
+
timeEntries: 'ok' | 'blind' | 'absent';
|
|
5227
|
+
ticketsActivity: 'ok' | 'blind' | 'absent';
|
|
5228
|
+
ticketsOpen: 'ok' | 'blind' | 'skipped' | 'absent';
|
|
5180
5229
|
resources: 'ok' | 'skipped';
|
|
5181
|
-
expenses: 'ok' | 'blind' | 'skipped';
|
|
5182
|
-
miscodingProbe: 'ok' | 'blind' | 'skipped';
|
|
5183
|
-
configurationItems: 'ok' | 'blind' | 'skipped';
|
|
5184
|
-
subscriptions: 'ok' | 'blind' | 'skipped';
|
|
5230
|
+
expenses: 'ok' | 'blind' | 'skipped' | 'absent';
|
|
5231
|
+
miscodingProbe: 'ok' | 'blind' | 'skipped' | 'absent';
|
|
5232
|
+
configurationItems: 'ok' | 'blind' | 'skipped' | 'absent';
|
|
5233
|
+
subscriptions: 'ok' | 'blind' | 'skipped' | 'absent';
|
|
5185
5234
|
};
|
|
5235
|
+
/** issued = logical part reads (a fetch-by-ids part counts once); requests = raw HTTP requests (its chunk + per-id gets counted individually). */
|
|
5186
5236
|
wires: {
|
|
5187
5237
|
issued: number;
|
|
5238
|
+
requests: number;
|
|
5188
5239
|
budget: number;
|
|
5189
5240
|
note?: string;
|
|
5190
5241
|
};
|