node-autotask 0.12.0 → 0.13.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.
Files changed (35) hide show
  1. package/MCP_TOOL_CATALOG.json +4 -3
  2. package/MCP_TOOL_MANIFEST.md +5 -5
  3. package/N8N_MCP_MANIFEST.json +2 -2
  4. package/N8N_MCP_MANIFEST.md +3 -3
  5. package/capabilities.json +1238 -1237
  6. package/dist/capabilities.cjs +2 -2
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-SRJI5XUZ.cjs → chunk-CJA6L6NR.cjs} +135 -135
  9. package/dist/{chunk-JKZVCFRY.cjs → chunk-CXXNONRP.cjs} +1237 -1236
  10. package/dist/{chunk-3WIDDEHP.js → chunk-DDZXN6LN.js} +2 -2
  11. package/dist/{chunk-GD4JRPYF.js → chunk-IKJLIDK3.js} +1 -1
  12. package/dist/{chunk-5N6DYKXO.cjs → chunk-KB2ANVVR.cjs} +2 -2
  13. package/dist/{chunk-TELBX6HK.cjs → chunk-MTDCLVQQ.cjs} +797 -603
  14. package/dist/{chunk-4A6XLQHE.js → chunk-OZD5FQM4.js} +1237 -1236
  15. package/dist/{chunk-MY7ZSXY3.js → chunk-Y6O5VVQ4.js} +387 -193
  16. package/dist/{index-D8I6taEo.d.cts → index-DbMKWnEX.d.cts} +96 -35
  17. package/dist/{index-uAxAcRol.d.ts → index-TuqNq3Ro.d.ts} +96 -35
  18. package/dist/index.cjs +19 -19
  19. package/dist/index.d.cts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +4 -4
  22. package/dist/operations/index.cjs +103 -103
  23. package/dist/operations/index.d.cts +2 -2
  24. package/dist/operations/index.d.ts +2 -2
  25. package/dist/operations/index.js +2 -2
  26. package/dist/pool.cjs +8 -8
  27. package/dist/pool.d.cts +1 -1
  28. package/dist/pool.d.ts +1 -1
  29. package/dist/pool.js +4 -4
  30. package/dist/resources/index.cjs +4 -4
  31. package/dist/resources/index.d.cts +1 -1
  32. package/dist/resources/index.d.ts +1 -1
  33. package/dist/resources/index.js +3 -3
  34. package/docs/API.md +190 -51
  35. package/package.json +1 -1
@@ -1532,7 +1532,7 @@ declare function toArray<T>(iter: AsyncIterable<T>): Promise<T[]>;
1532
1532
  * queryBounded noteChars free-text cap (issue #61 — response-side only);
1533
1533
  * - docs/API.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
1534
1534
  *
1535
- * planHash: e4cf4228d5bad71cf762e31d4379ea9337633ededab68450b85f56bf3bc95fb9
1535
+ * planHash: bd88648453f58ede018062ce66acefacb672fecaa450af89f421057809971e14
1536
1536
  */
1537
1537
 
1538
1538
  /** One pinned blind-surface stamp (the result-time sentinel object). */
@@ -5017,10 +5017,13 @@ 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;
5024
+ /** Return the raw row arrays behind the calculation on every per-part container (default false —
5025
+ * each part carries its stamps + `rows_fetched` instead of `items`; every computed figure stays). */
5026
+ includeRows?: boolean;
5024
5027
  }
5025
5028
  /** One bounded part (the unbilledWork envelope, same status vocabulary). */
5026
5029
  interface ProfitabilityPart<TItem> {
@@ -5035,14 +5038,44 @@ interface ProfitabilityPart<TItem> {
5035
5038
  blindSurface?: BlindSurfaceInfo;
5036
5039
  /** The base layer's 0-row stamp (the pinned tenant-empty-for-user class rides here where attached). */
5037
5040
  emptyReason?: EmptyReasonInfo;
5038
- status: 'ok' | 'blind' | 'skipped';
5041
+ /** status 'absent' only: the typed error code of the read that faulted (the part degraded, the call did not). */
5042
+ absent?: string;
5043
+ status: 'ok' | 'blind' | 'skipped' | 'absent';
5044
+ }
5045
+ /** A per-part container without its rows (the default, includeRows false): every stamp kept, `items` replaced by its count. */
5046
+ type ProfitabilityPartDigest = Omit<ProfitabilityPart<unknown>, 'items'> & {
5047
+ rows_fetched: number;
5048
+ };
5049
+ /** Invoiced revenue by billing-line kind (classified by the line's FK: service/bundle → recurring, timeEntryID → labour, charge FKs → charges, expenseItemID → expenses). */
5050
+ interface ProfitabilityRevenueByType {
5051
+ recurring: number;
5052
+ labour: number;
5053
+ charges: number;
5054
+ expenses: number;
5055
+ other: number;
5039
5056
  }
5040
5057
  interface ProfitabilityMonthlyRow {
5041
5058
  month: string;
5042
5059
  revenue_invoiced: number;
5060
+ revenue_by_type: ProfitabilityRevenueByType;
5043
5061
  revenue_voided_excluded: number;
5062
+ /** Σ the month's posted billing items with no invoice yet. */
5063
+ revenue_posted_uninvoiced: number;
5064
+ /** Σ 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. */
5065
+ revenue_unresolved_invoice: number;
5066
+ /** Σ the period price of the service units starting in the month (null without a services/units basis). */
5044
5067
  revenue_expected: number | null;
5068
+ /** max(0, expected − the month's invoiced SERVICE lines). */
5045
5069
  revenue_expected_unbilled: number;
5070
+ /** Billable time with no billing item yet (not approved+posted). `value` is priced at the contract role rate on Time & Materials contracts only.
5071
+ * `hours` is Σ hoursToBill; null + hoursAbsent when any entry carries no numeric hoursToBill (a deliberate 0 stays 0). */
5072
+ unposted_time: {
5073
+ entries: number;
5074
+ hours: number | null;
5075
+ hoursAbsent?: 'HOURS_TO_BILL_MISSING';
5076
+ value: number | null;
5077
+ absent?: 'CONTRACT_TYPE_UNKNOWN' | 'NOT_TIME_AND_MATERIALS_CONTRACT' | 'NO_CONTRACT_RATE' | 'HOURS_TO_BILL_MISSING';
5078
+ };
5046
5079
  labour_hours: number;
5047
5080
  labour_cost: {
5048
5081
  total: number;
@@ -5062,15 +5095,21 @@ interface ProfitabilityMonthlyRow {
5062
5095
  };
5063
5096
  };
5064
5097
  tooling_cost: {
5098
+ /** Σ 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
5099
  vendor: number | null;
5066
5100
  caller_supplied: number;
5067
5101
  };
5102
+ /** Σ contract charge COST (extendedCost, else unitCost × unitQuantity) + the cost of the service units starting in the month. */
5068
5103
  recurring_cost: number;
5069
5104
  expense_cost: number;
5105
+ /** labour + caller-supplied tooling + recurring + expenses (vendor subscriptions excluded). */
5070
5106
  total_cost: number;
5071
5107
  profit: number;
5072
5108
  margin: number | null;
5109
+ /** 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
5110
  break_even_hours: number | null;
5111
+ /** Why the month's figures may be incomplete: `<part>: absent (<code>)`, `<part>: truncated at limit N`, `<part>: capped at limit N`. Empty = complete. */
5112
+ coverage_gaps: string[];
5074
5113
  }
5075
5114
  interface ProfitabilityActivityCategory {
5076
5115
  ticketCategory: number | null;
@@ -5131,6 +5170,23 @@ interface CostRateResolution {
5131
5170
  interface ContractsProfitabilityResult {
5132
5171
  contract: Contract;
5133
5172
  customer: Company | null;
5173
+ /** parts.customer 'absent' only: the typed code of the customer-read fault (a 404 is the plain null/skipped). */
5174
+ customerAbsent?: string;
5175
+ /** 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. */
5176
+ contract_type: {
5177
+ id: number | null;
5178
+ label: string | null;
5179
+ absent?: 'CONTRACT_TYPE_UNKNOWN';
5180
+ };
5181
+ /** 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. */
5182
+ included_hours: {
5183
+ value: {
5184
+ purchased: number;
5185
+ approved: number;
5186
+ remaining: number;
5187
+ } | null;
5188
+ absent?: string;
5189
+ };
5134
5190
  period: {
5135
5191
  dateFrom: string;
5136
5192
  dateTo: string;
@@ -5148,43 +5204,48 @@ interface ContractsProfitabilityResult {
5148
5204
  open_renewal_items: ProfitabilityOpenRenewalItem[];
5149
5205
  data_quality_warnings: ProfitabilityDataQualityWarning[];
5150
5206
  costRateResolution: CostRateResolution;
5151
- /** The per-part containers (the typed rows + stamps; the status map below is the digest). */
5152
- contractServices: ProfitabilityPart<ContractService>;
5153
- contractServiceUnits: ProfitabilityPart<ContractServiceUnit>;
5154
- contractCharges: ProfitabilityPart<ContractCharge>;
5155
- contractRoleCosts: ProfitabilityPart<ContractRoleCosts>;
5156
- contractRates: ProfitabilityPart<ContractRate>;
5157
- billingItems: ProfitabilityPart<BillingItems>;
5158
- invoices: ProfitabilityPart<Invoice>;
5159
- timeEntries: ProfitabilityPart<TimeEntry>;
5160
- ticketsActivity: ProfitabilityPart<Ticket>;
5161
- ticketsOpen: ProfitabilityPart<Ticket>;
5162
- resources: ProfitabilityPart<Resource>;
5163
- expenses: ProfitabilityPart<ExpenseItem>;
5164
- miscodingProbe: ProfitabilityPart<TimeEntry>;
5165
- configurationItems: ProfitabilityPart<ConfigurationItem>;
5166
- subscriptions: ProfitabilityPart<Subscription>;
5207
+ /** The per-part containers (the stamps + the typed rows with includeRows: true; by default the
5208
+ * ProfitabilityPartDigest — the same stamps + rows_fetched, no items). The status map below is the digest. */
5209
+ contractServices: ProfitabilityPart<ContractService> | ProfitabilityPartDigest;
5210
+ contractServiceUnits: ProfitabilityPart<ContractServiceUnit> | ProfitabilityPartDigest;
5211
+ contractCharges: ProfitabilityPart<ContractCharge> | ProfitabilityPartDigest;
5212
+ contractRoleCosts: ProfitabilityPart<ContractRoleCosts> | ProfitabilityPartDigest;
5213
+ contractRates: ProfitabilityPart<ContractRate> | ProfitabilityPartDigest;
5214
+ contractBlocks: ProfitabilityPart<ContractBlock> | ProfitabilityPartDigest;
5215
+ billingItems: ProfitabilityPart<BillingItems> | ProfitabilityPartDigest;
5216
+ invoices: ProfitabilityPart<Invoice> | ProfitabilityPartDigest;
5217
+ timeEntries: ProfitabilityPart<TimeEntry> | ProfitabilityPartDigest;
5218
+ ticketsActivity: ProfitabilityPart<Ticket> | ProfitabilityPartDigest;
5219
+ ticketsOpen: ProfitabilityPart<Ticket> | ProfitabilityPartDigest;
5220
+ resources: ProfitabilityPart<Resource> | ProfitabilityPartDigest;
5221
+ expenses: ProfitabilityPart<ExpenseItem> | ProfitabilityPartDigest;
5222
+ miscodingProbe: ProfitabilityPart<TimeEntry> | ProfitabilityPartDigest;
5223
+ configurationItems: ProfitabilityPart<ConfigurationItem> | ProfitabilityPartDigest;
5224
+ subscriptions: ProfitabilityPart<Subscription> | ProfitabilityPartDigest;
5167
5225
  parts: {
5168
5226
  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
- billingItems: 'ok' | 'blind';
5227
+ customer: 'ok' | 'skipped' | 'absent';
5228
+ contractServices: 'ok' | 'blind' | 'absent';
5229
+ contractServiceUnits: 'ok' | 'blind' | 'absent';
5230
+ contractCharges: 'ok' | 'blind' | 'skipped' | 'absent';
5231
+ contractRoleCosts: 'ok' | 'blind' | 'absent';
5232
+ contractRates: 'ok' | 'blind' | 'absent';
5233
+ contractBlocks: 'ok' | 'blind' | 'skipped' | 'absent';
5234
+ billingItems: 'ok' | 'blind' | 'absent';
5176
5235
  invoices: 'ok' | 'skipped';
5177
- timeEntries: 'ok' | 'blind';
5178
- ticketsActivity: 'ok' | 'blind';
5179
- ticketsOpen: 'ok' | 'blind' | 'skipped';
5236
+ timeEntries: 'ok' | 'blind' | 'absent';
5237
+ ticketsActivity: 'ok' | 'blind' | 'absent';
5238
+ ticketsOpen: 'ok' | 'blind' | 'skipped' | 'absent';
5180
5239
  resources: 'ok' | 'skipped';
5181
- expenses: 'ok' | 'blind' | 'skipped';
5182
- miscodingProbe: 'ok' | 'blind' | 'skipped';
5183
- configurationItems: 'ok' | 'blind' | 'skipped';
5184
- subscriptions: 'ok' | 'blind' | 'skipped';
5240
+ expenses: 'ok' | 'blind' | 'skipped' | 'absent';
5241
+ miscodingProbe: 'ok' | 'blind' | 'skipped' | 'absent';
5242
+ configurationItems: 'ok' | 'blind' | 'skipped' | 'absent';
5243
+ subscriptions: 'ok' | 'blind' | 'skipped' | 'absent';
5185
5244
  };
5245
+ /** issued = logical part reads (a fetch-by-ids part counts once); requests = raw HTTP requests (its chunk + per-id gets counted individually). */
5186
5246
  wires: {
5187
5247
  issued: number;
5248
+ requests: number;
5188
5249
  budget: number;
5189
5250
  note?: string;
5190
5251
  };
@@ -5238,7 +5299,7 @@ declare class ContractsResource extends BaseResource<Contract, ContractCreate, C
5238
5299
  limit?: number;
5239
5300
  }): Promise<ContractSummary[]>;
5240
5301
  /** Node-parity special op (hand-written in src/resources/special/contracts.ts). */
5241
- profitability(id: Identifier, opts?: ProfitabilityOptions): Promise<ContractsProfitabilityResult>;
5302
+ profitability(id: Identifier, opts: ProfitabilityOptions): Promise<ContractsProfitabilityResult>;
5242
5303
  }
5243
5304
 
5244
5305
  /**
@@ -9140,4 +9201,4 @@ declare class AutotaskClient {
9140
9201
  }): Promise<PromiseSettledResult<R>[]>;
9141
9202
  }
9142
9203
 
9143
- export { ConfigurationItemRelatedItemsResource as $, type AutotaskConfig as A, BadRequestError as B, CREDENTIAL_HEADER_NAMES as C, type ClassificationIconsResourceQueryParams as D, CompaniesResource as E, type CompaniesResourceQueryParams as F, CompanyAlertsResource as G, type CompanyAlertsResourceQueryParams as H, CompanyLocationsResource as I, type CompanyLocationsResourceQueryParams as J, CompanyNotesResource as K, type CompanyNotesResourceQueryParams as L, CompanySiteConfigurationsResource as M, type CompanySiteConfigurationsResourceQueryParams as N, CompanyWebhooksResource as O, type CompanyWebhooksResourceQueryParams as P, type ConfigProfile as Q, ConfigurationItemBillingProductAssociationsResource as R, type ConfigurationItemBillingProductAssociationsResourceQueryParams as S, ConfigurationItemCategoriesResource as T, type ConfigurationItemCategoriesResourceQueryParams as U, ConfigurationItemCategoryUdfAssociationsResource as V, type ConfigurationItemCategoryUdfAssociationsResourceQueryParams as W, ConfigurationItemDnsRecordsResource as X, type ConfigurationItemDnsRecordsResourceQueryParams as Y, ConfigurationItemNotesResource as Z, type ConfigurationItemNotesResourceQueryParams as _, AutotaskClient as a, type CooldownStore as a$, type ConfigurationItemRelatedItemsResourceQueryParams as a0, ConfigurationItemSslSubjectAlternativeNamesResource as a1, type ConfigurationItemSslSubjectAlternativeNamesResourceQueryParams as a2, ConfigurationItemTypesResource as a3, type ConfigurationItemTypesResourceQueryParams as a4, ConfigurationItemWebhooksResource as a5, type ConfigurationItemWebhooksResourceQueryParams as a6, ConfigurationItemsResource as a7, type ConfigurationItemsResourceQueryParams as a8, ConfirmationRequiredError as a9, type ContractExclusionSetsResourceQueryParams as aA, ContractMilestonesResource as aB, type ContractMilestonesResourceQueryParams as aC, ContractNotesResource as aD, type ContractNotesResourceQueryParams as aE, ContractRatesResource as aF, type ContractRatesResourceQueryParams as aG, ContractRetainersResource as aH, type ContractRetainersResourceQueryParams as aI, ContractRoleCostsResource as aJ, type ContractRoleCostsResourceQueryParams as aK, ContractServiceAdjustmentsResource as aL, type ContractServiceAdjustmentsResourceQueryParams as aM, ContractServiceBundleAdjustmentsResource as aN, type ContractServiceBundleAdjustmentsResourceQueryParams as aO, ContractServiceBundleUnitsResource as aP, type ContractServiceBundleUnitsResourceQueryParams as aQ, ContractServiceBundlesResource as aR, type ContractServiceBundlesResourceQueryParams as aS, ContractServiceUnitsResource as aT, type ContractServiceUnitsResourceQueryParams as aU, ContractServicesResource as aV, type ContractServicesResourceQueryParams as aW, ContractTicketPurchasesResource as aX, type ContractTicketPurchasesResourceQueryParams as aY, ContractsResource as aZ, type ContractsResourceQueryParams as a_, ConflictError as aa, ContactGroupContactsResource as ab, type ContactGroupContactsResourceQueryParams as ac, ContactGroupsResource as ad, type ContactGroupsResourceQueryParams as ae, ContactWebhooksResource as af, type ContactWebhooksResourceQueryParams as ag, ContactsResource as ah, type ContactsResourceQueryParams as ai, ContractBillingRulesResource as aj, type ContractBillingRulesResourceQueryParams as ak, ContractBlockHourFactorsResource as al, type ContractBlockHourFactorsResourceQueryParams as am, ContractBlocksResource as an, type ContractBlocksResourceQueryParams as ao, ContractChargesResource as ap, type ContractChargesResourceQueryParams as aq, ContractExclusionBillingCodesResource as ar, type ContractExclusionBillingCodesResourceQueryParams as as, ContractExclusionRolesResource as at, type ContractExclusionRolesResourceQueryParams as au, ContractExclusionSetExcludedRolesResource as av, type ContractExclusionSetExcludedRolesResourceQueryParams as aw, ContractExclusionSetExcludedWorkTypesResource as ax, type ContractExclusionSetExcludedWorkTypesResourceQueryParams as ay, ContractExclusionSetsResource as az, AGENT_PROFILE as b, OpportunityCategoriesResource as b$, CountriesResource as b0, type CountriesResourceQueryParams as b1, type CredentialShapeExpectation as b2, DEFAULT_CIRCUIT_BREAKER_FAILURE_THRESHOLD as b3, DEFAULT_CIRCUIT_BREAKER_MAX_ENTRIES as b4, DEFAULT_CIRCUIT_BREAKER_OPEN_TIMEOUT_MS as b5, DEFAULT_CIRCUIT_BREAKER_SUCCESSES_TO_CLOSE as b6, DEFAULT_CIRCUIT_BREAKER_WINDOW_MS as b7, DEFAULT_COOLDOWN_DEFAULT_MS as b8, DEFAULT_COOLDOWN_MAX_ENTRIES as b9, ForbiddenError as bA, HolidaySetsResource as bB, type HolidaySetsResourceQueryParams as bC, HolidaysResource as bD, type HolidaysResourceQueryParams as bE, HostPolicyDeniedError as bF, HttpClient as bG, IDEMPOTENT_METHODS as bH, InMemoryCircuitBreakerStore as bI, InMemoryCooldownStore as bJ, InventoryProductsResource as bK, type InventoryProductsResourceQueryParams as bL, InvoicesResource as bM, type InvoicesResourceQueryParams as bN, type Logger as bO, MAX_PAGES as bP, MAX_PAGE_SIZE as bQ, MarkerUnsafeIdError as bR, ModulesResource as bS, NoopLogger as bT, NotFoundError as bU, NotificationHistoryResource as bV, type NotificationHistoryResourceQueryParams as bW, OpportunitiesResource as bX, type OpportunitiesResourceQueryParams as bY, OpportunityAttachmentsResource as bZ, type OpportunityAttachmentsResourceQueryParams as b_, DEFAULT_COOLDOWN_MAX_MS as ba, DEFAULT_FIELD_CACHE_TTL_MS as bb, DEFAULT_MAX_CONCURRENT as bc, DEFAULT_MAX_RESPONSE_BYTES as bd, DEFAULT_MAX_RETRIES as be, DEFAULT_MAX_SCAN_PAGES as bf, DEFAULT_MAX_SCAN_RECORDS as bg, DEFAULT_PAGE_SIZE as bh, DEFAULT_READ_CACHE_TTL_MS as bi, DEFAULT_RESOURCE_NAME_CACHE_TTL_MS as bj, DEFAULT_TIMEOUT_MS as bk, DEFAULT_ZONE as bl, DeleteBoundaryError as bm, DepartmentsResource as bn, type DepartmentsResourceQueryParams as bo, DomainRegistrarsResource as bp, type DomainRegistrarsResourceQueryParams as bq, EmptyResponseError as br, EntityInformationResource as bs, type ErrorCategory as bt, ExpenseItemAttachmentsResource as bu, type ExpenseItemAttachmentsResourceQueryParams as bv, ExpenseItemsResource as bw, type ExpenseItemsResourceQueryParams as bx, ExpenseReportsResource as by, type ExpenseReportsResourceQueryParams as bz, AppointmentsResource as c, ServiceCallTicketsResource as c$, type OpportunityCategoriesResourceQueryParams as c0, type PageFetcher as c1, type PaginateOptions as c2, PaginationLimitError as c3, PhasesResource as c4, type PhasesResourceQueryParams as c5, ProductVendorsResource as c6, type ProductVendorsResourceQueryParams as c7, ProductsResource as c8, type ProductsResourceQueryParams as c9, type RequestOptions as cA, ResolutionError as cB, type ResolvedAutotaskConfig as cC, ResourceRoleQueuesResource as cD, type ResourceRoleQueuesResourceQueryParams as cE, ResourceRolesResource as cF, type ResourceRolesResourceQueryParams as cG, ResourceSkillsResource as cH, type ResourceSkillsResourceQueryParams as cI, ResourceTimeOffAdditionalResource as cJ, type ResourceTimeOffAdditionalResourceQueryParams as cK, ResourceTimeOffApproversResource as cL, type ResourceTimeOffApproversResourceQueryParams as cM, ResourceTimeOffBalancesResource as cN, type ResourceTimeOffBalancesResourceQueryParams as cO, ResourcesResource as cP, type ResourcesResourceQueryParams as cQ, ResponseRejectedError as cR, RolesResource as cS, type RolesResourceQueryParams as cT, ServerError as cU, ServiceCallTaskResourcesResource as cV, type ServiceCallTaskResourcesResourceQueryParams as cW, ServiceCallTasksResource as cX, type ServiceCallTasksResourceQueryParams as cY, ServiceCallTicketResourcesResource as cZ, type ServiceCallTicketResourcesResourceQueryParams as c_, ProjectChargesResource as ca, type ProjectChargesResourceQueryParams as cb, ProjectNotesResource as cc, type ProjectNotesResourceQueryParams as cd, ProjectsResource as ce, type ProjectsResourceQueryParams as cf, PurchaseApprovalsResource as cg, type PurchaseApprovalsResourceQueryParams as ch, PurchaseOrderItemReceivingResource as ci, type PurchaseOrderItemReceivingResourceQueryParams as cj, PurchaseOrderItemsResource as ck, type PurchaseOrderItemsResourceQueryParams as cl, PurchaseOrdersResource as cm, type PurchaseOrdersResourceQueryParams as cn, QueryTooLongError as co, QuoteItemsResource as cp, type QuoteItemsResourceQueryParams as cq, QuoteLocationsResource as cr, type QuoteLocationsResourceQueryParams as cs, QuoteTemplatesResource as ct, type QuoteTemplatesResourceQueryParams as cu, QuotesResource as cv, type QuotesResourceQueryParams as cw, REDACTED as cx, RateLimitError as cy, RecoveryTruncatedError as cz, type AppointmentsResourceQueryParams as d, type TimeEntriesResourceQueryParams as d$, type ServiceCallTicketsResourceQueryParams as d0, ServiceCallsResource as d1, type ServiceCallsResourceQueryParams as d2, ServiceLevelAgreementResultsResource as d3, type ServiceLevelAgreementResultsResourceQueryParams as d4, ServicesResource as d5, type ServicesResourceQueryParams as d6, SkillsResource as d7, type SkillsResourceQueryParams as d8, StaleObjectError as d9, TicketCategoriesResource as dA, type TicketCategoriesResourceQueryParams as dB, TicketCategoryFieldDefaultsResource as dC, type TicketCategoryFieldDefaultsResourceQueryParams as dD, TicketChangeRequestApprovalsResource as dE, type TicketChangeRequestApprovalsResourceQueryParams as dF, TicketChargesResource as dG, type TicketChargesResourceQueryParams as dH, TicketChecklistItemsResource as dI, type TicketChecklistItemsResourceQueryParams as dJ, TicketChecklistLibrariesResource as dK, type TicketChecklistLibrariesResourceQueryParams as dL, TicketHistoryResource as dM, type TicketHistoryResourceQueryParams as dN, TicketNoteAttachmentsResource as dO, type TicketNoteAttachmentsResourceQueryParams as dP, TicketNoteWebhooksResource as dQ, type TicketNoteWebhooksResourceQueryParams as dR, TicketNotesResource as dS, type TicketNotesResourceQueryParams as dT, TicketSecondaryResourcesResource as dU, type TicketSecondaryResourcesResourceQueryParams as dV, TicketWebhooksResource as dW, type TicketWebhooksResourceQueryParams as dX, TicketsResource as dY, type TicketsResourceQueryParams as dZ, TimeEntriesResource as d_, SubscriptionPeriodsResource as da, type SubscriptionPeriodsResourceQueryParams as db, SubscriptionsResource as dc, type SubscriptionsResourceQueryParams as dd, SurveyResultsResource as de, type SurveyResultsResourceQueryParams as df, SurveysResource as dg, type SurveysResourceQueryParams as dh, TagAliasesResource as di, type TagAliasesResourceQueryParams as dj, TagGroupsResource as dk, type TagGroupsResourceQueryParams as dl, TagsResource as dm, type TagsResourceQueryParams as dn, TaskSecondaryResourcesResource as dp, type TaskSecondaryResourcesResourceQueryParams as dq, TasksResource as dr, type TasksResourceQueryParams as ds, ThresholdInformationResource as dt, TicketAdditionalConfigurationItemsResource as du, type TicketAdditionalConfigurationItemsResourceQueryParams as dv, TicketAdditionalContactsResource as dw, type TicketAdditionalContactsResourceQueryParams as dx, TicketAttachmentsResource as dy, type TicketAttachmentsResourceQueryParams as dz, AuthenticateResource as e, TimeEntryAttachmentsResource as e0, type TimeEntryAttachmentsResourceQueryParams as e1, TimeOffRequestsResource as e2, type TimeOffRequestsResourceQueryParams as e3, UnauthorizedError as e4, UnexpectedContentTypeError as e5, UnprocessableEntityError as e6, type VendorFieldError as e7, VersionInformationResource as e8, VersionResource as e9, resetDefaultCircuitBreakerStore as eA, resetDefaultCooldownStore as eB, resolveBaseUrl as eC, resolveConfig as eD, resolveCredentials as eE, runWithSignal as eF, toArray as eG, totalPagesFor as eH, unwrapItem as eI, unwrapItems as eJ, unwrapOperation as eK, unwrapQueryCount as eL, zoneUrl as eM, type BlindSurfaceInfo as eN, type RelationshipResource as eO, type BlindSurfaceInventory as eP, type BlindSurfaceRow as eQ, type CreateBlockerKind as eR, type CreateGuidanceReport as eS, type FieldCacheKind as eT, FIELD_CACHE_KINDS as eU, ZONES as ea, ZONE_CATALOG as eb, ZoneInformationResource as ec, type ZoneName as ed, buildBreakerKey as ee, buildQueryRequest as ef, buildTenantKey as eg, buildUrl as eh, clampPageSize as ei, collectAll as ej, cooldownDurationMs as ek, cursorToPath as el, defaultCircuitBreakerStore as em, defaultCooldownStore as en, errorFromStatus as eo, formatVendorDetail as ep, isAutotaskError as eq, isBreakerFailure as er, isCredentialHeaderName as es, isDeterministicVendor500 as et, mergeDetails as eu, paginate as ev, paginateItems as ew, parseVendorErrors as ex, passthrough as ey, redactRecord as ez, AutotaskAbortError as f, AutotaskConfigError as g, AutotaskError as h, type AutotaskErrorOptions as i, AutotaskNetworkError as j, AutotaskTimeoutError as k, BillingCodesResource as l, type BillingCodesResourceQueryParams as m, BillingItemsResource as n, type BillingItemsResourceQueryParams as o, CREDENTIAL_SHAPE_POINTER as p, ChangeRequestLinksResource as q, type ChangeRequestLinksResourceQueryParams as r, ChecklistLibrariesResource as s, type ChecklistLibrariesResourceQueryParams as t, ChecklistLibraryChecklistItemsResource as u, type ChecklistLibraryChecklistItemsResourceQueryParams as v, CircuitBreakerError as w, type CircuitBreakerState as x, type CircuitBreakerStore as y, ClassificationIconsResource as z };
9204
+ export { ConfigurationItemRelatedItemsResource as $, type AutotaskConfig as A, BadRequestError as B, CREDENTIAL_HEADER_NAMES as C, type ClassificationIconsResourceQueryParams as D, CompaniesResource as E, type CompaniesResourceQueryParams as F, CompanyAlertsResource as G, type CompanyAlertsResourceQueryParams as H, CompanyLocationsResource as I, type CompanyLocationsResourceQueryParams as J, CompanyNotesResource as K, type CompanyNotesResourceQueryParams as L, CompanySiteConfigurationsResource as M, type CompanySiteConfigurationsResourceQueryParams as N, CompanyWebhooksResource as O, type CompanyWebhooksResourceQueryParams as P, type ConfigProfile as Q, ConfigurationItemBillingProductAssociationsResource as R, type ConfigurationItemBillingProductAssociationsResourceQueryParams as S, ConfigurationItemCategoriesResource as T, type ConfigurationItemCategoriesResourceQueryParams as U, ConfigurationItemCategoryUdfAssociationsResource as V, type ConfigurationItemCategoryUdfAssociationsResourceQueryParams as W, ConfigurationItemDnsRecordsResource as X, type ConfigurationItemDnsRecordsResourceQueryParams as Y, ConfigurationItemNotesResource as Z, type ConfigurationItemNotesResourceQueryParams as _, AutotaskClient as a, type ContractsResourceQueryParams as a$, type ConfigurationItemRelatedItemsResourceQueryParams as a0, ConfigurationItemSslSubjectAlternativeNamesResource as a1, type ConfigurationItemSslSubjectAlternativeNamesResourceQueryParams as a2, ConfigurationItemTypesResource as a3, type ConfigurationItemTypesResourceQueryParams as a4, ConfigurationItemWebhooksResource as a5, type ConfigurationItemWebhooksResourceQueryParams as a6, ConfigurationItemsResource as a7, type ConfigurationItemsResourceQueryParams as a8, ConfirmationRequiredError as a9, type ContractExclusionSetsResourceQueryParams as aA, ContractMilestonesResource as aB, type ContractMilestonesResourceQueryParams as aC, ContractNotesResource as aD, type ContractNotesResourceQueryParams as aE, ContractRatesResource as aF, type ContractRatesResourceQueryParams as aG, ContractRetainersResource as aH, type ContractRetainersResourceQueryParams as aI, ContractRoleCostsResource as aJ, type ContractRoleCostsResourceQueryParams as aK, ContractServiceAdjustmentsResource as aL, type ContractServiceAdjustmentsResourceQueryParams as aM, ContractServiceBundleAdjustmentsResource as aN, type ContractServiceBundleAdjustmentsResourceQueryParams as aO, ContractServiceBundleUnitsResource as aP, type ContractServiceBundleUnitsResourceQueryParams as aQ, ContractServiceBundlesResource as aR, type ContractServiceBundlesResourceQueryParams as aS, ContractServiceUnitsResource as aT, type ContractServiceUnitsResourceQueryParams as aU, ContractServicesResource as aV, type ContractServicesResourceQueryParams as aW, ContractTicketPurchasesResource as aX, type ContractTicketPurchasesResourceQueryParams as aY, type ContractsProfitabilityResult as aZ, ContractsResource as a_, ConflictError as aa, ContactGroupContactsResource as ab, type ContactGroupContactsResourceQueryParams as ac, ContactGroupsResource as ad, type ContactGroupsResourceQueryParams as ae, ContactWebhooksResource as af, type ContactWebhooksResourceQueryParams as ag, ContactsResource as ah, type ContactsResourceQueryParams as ai, ContractBillingRulesResource as aj, type ContractBillingRulesResourceQueryParams as ak, ContractBlockHourFactorsResource as al, type ContractBlockHourFactorsResourceQueryParams as am, ContractBlocksResource as an, type ContractBlocksResourceQueryParams as ao, ContractChargesResource as ap, type ContractChargesResourceQueryParams as aq, ContractExclusionBillingCodesResource as ar, type ContractExclusionBillingCodesResourceQueryParams as as, ContractExclusionRolesResource as at, type ContractExclusionRolesResourceQueryParams as au, ContractExclusionSetExcludedRolesResource as av, type ContractExclusionSetExcludedRolesResourceQueryParams as aw, ContractExclusionSetExcludedWorkTypesResource as ax, type ContractExclusionSetExcludedWorkTypesResourceQueryParams as ay, ContractExclusionSetsResource as az, AGENT_PROFILE as b, OpportunityAttachmentsResource as b$, type CooldownStore as b0, type CostRateResolution as b1, CountriesResource as b2, type CountriesResourceQueryParams as b3, type CredentialShapeExpectation as b4, DEFAULT_CIRCUIT_BREAKER_FAILURE_THRESHOLD as b5, DEFAULT_CIRCUIT_BREAKER_MAX_ENTRIES as b6, DEFAULT_CIRCUIT_BREAKER_OPEN_TIMEOUT_MS as b7, DEFAULT_CIRCUIT_BREAKER_SUCCESSES_TO_CLOSE as b8, DEFAULT_CIRCUIT_BREAKER_WINDOW_MS as b9, ExpenseReportsResource as bA, type ExpenseReportsResourceQueryParams as bB, ForbiddenError as bC, HolidaySetsResource as bD, type HolidaySetsResourceQueryParams as bE, HolidaysResource as bF, type HolidaysResourceQueryParams as bG, HostPolicyDeniedError as bH, HttpClient as bI, IDEMPOTENT_METHODS as bJ, InMemoryCircuitBreakerStore as bK, InMemoryCooldownStore as bL, InventoryProductsResource as bM, type InventoryProductsResourceQueryParams as bN, InvoicesResource as bO, type InvoicesResourceQueryParams as bP, type Logger as bQ, MAX_PAGES as bR, MAX_PAGE_SIZE as bS, MarkerUnsafeIdError as bT, ModulesResource as bU, NoopLogger as bV, NotFoundError as bW, NotificationHistoryResource as bX, type NotificationHistoryResourceQueryParams as bY, OpportunitiesResource as bZ, type OpportunitiesResourceQueryParams as b_, DEFAULT_COOLDOWN_DEFAULT_MS as ba, DEFAULT_COOLDOWN_MAX_ENTRIES as bb, DEFAULT_COOLDOWN_MAX_MS as bc, DEFAULT_FIELD_CACHE_TTL_MS as bd, DEFAULT_MAX_CONCURRENT as be, DEFAULT_MAX_RESPONSE_BYTES as bf, DEFAULT_MAX_RETRIES as bg, DEFAULT_MAX_SCAN_PAGES as bh, DEFAULT_MAX_SCAN_RECORDS as bi, DEFAULT_PAGE_SIZE as bj, DEFAULT_READ_CACHE_TTL_MS as bk, DEFAULT_RESOURCE_NAME_CACHE_TTL_MS as bl, DEFAULT_TIMEOUT_MS as bm, DEFAULT_ZONE as bn, DeleteBoundaryError as bo, DepartmentsResource as bp, type DepartmentsResourceQueryParams as bq, DomainRegistrarsResource as br, type DomainRegistrarsResourceQueryParams as bs, EmptyResponseError as bt, EntityInformationResource as bu, type ErrorCategory as bv, ExpenseItemAttachmentsResource as bw, type ExpenseItemAttachmentsResourceQueryParams as bx, ExpenseItemsResource as by, type ExpenseItemsResourceQueryParams as bz, AppointmentsResource as c, ResourceTimeOffBalancesResource as c$, type OpportunityAttachmentsResourceQueryParams as c0, OpportunityCategoriesResource as c1, type OpportunityCategoriesResourceQueryParams as c2, type PageFetcher as c3, type PaginateOptions as c4, PaginationLimitError as c5, PhasesResource as c6, type PhasesResourceQueryParams as c7, ProductVendorsResource as c8, type ProductVendorsResourceQueryParams as c9, PurchaseOrdersResource as cA, type PurchaseOrdersResourceQueryParams as cB, QueryTooLongError as cC, QuoteItemsResource as cD, type QuoteItemsResourceQueryParams as cE, QuoteLocationsResource as cF, type QuoteLocationsResourceQueryParams as cG, QuoteTemplatesResource as cH, type QuoteTemplatesResourceQueryParams as cI, QuotesResource as cJ, type QuotesResourceQueryParams as cK, REDACTED as cL, RateLimitError as cM, RecoveryTruncatedError as cN, type RequestOptions as cO, ResolutionError as cP, type ResolvedAutotaskConfig as cQ, ResourceRoleQueuesResource as cR, type ResourceRoleQueuesResourceQueryParams as cS, ResourceRolesResource as cT, type ResourceRolesResourceQueryParams as cU, ResourceSkillsResource as cV, type ResourceSkillsResourceQueryParams as cW, ResourceTimeOffAdditionalResource as cX, type ResourceTimeOffAdditionalResourceQueryParams as cY, ResourceTimeOffApproversResource as cZ, type ResourceTimeOffApproversResourceQueryParams as c_, ProductsResource as ca, type ProductsResourceQueryParams as cb, type ProfitRateSource as cc, type ProfitabilityActivityCategory as cd, type ProfitabilityDataQualityWarning as ce, type ProfitabilityHighestCostTicket as cf, type ProfitabilityLabourCostMethod as cg, type ProfitabilityMiscoding as ch, type ProfitabilityMonthlyRow as ci, type ProfitabilityOpenRenewalItem as cj, type ProfitabilityOptions as ck, type ProfitabilityPart as cl, type ProfitabilityPartDigest as cm, type ProfitabilityRevenueByType as cn, ProjectChargesResource as co, type ProjectChargesResourceQueryParams as cp, ProjectNotesResource as cq, type ProjectNotesResourceQueryParams as cr, ProjectsResource as cs, type ProjectsResourceQueryParams as ct, PurchaseApprovalsResource as cu, type PurchaseApprovalsResourceQueryParams as cv, PurchaseOrderItemReceivingResource as cw, type PurchaseOrderItemReceivingResourceQueryParams as cx, PurchaseOrderItemsResource as cy, type PurchaseOrderItemsResourceQueryParams as cz, type AppointmentsResourceQueryParams as d, type TicketHistoryResourceQueryParams as d$, type ResourceTimeOffBalancesResourceQueryParams as d0, ResourcesResource as d1, type ResourcesResourceQueryParams as d2, ResponseRejectedError as d3, RolesResource as d4, type RolesResourceQueryParams as d5, ServerError as d6, ServiceCallTaskResourcesResource as d7, type ServiceCallTaskResourcesResourceQueryParams as d8, ServiceCallTasksResource as d9, type TagGroupsResourceQueryParams as dA, TagsResource as dB, type TagsResourceQueryParams as dC, TaskSecondaryResourcesResource as dD, type TaskSecondaryResourcesResourceQueryParams as dE, TasksResource as dF, type TasksResourceQueryParams as dG, ThresholdInformationResource as dH, TicketAdditionalConfigurationItemsResource as dI, type TicketAdditionalConfigurationItemsResourceQueryParams as dJ, TicketAdditionalContactsResource as dK, type TicketAdditionalContactsResourceQueryParams as dL, TicketAttachmentsResource as dM, type TicketAttachmentsResourceQueryParams as dN, TicketCategoriesResource as dO, type TicketCategoriesResourceQueryParams as dP, TicketCategoryFieldDefaultsResource as dQ, type TicketCategoryFieldDefaultsResourceQueryParams as dR, TicketChangeRequestApprovalsResource as dS, type TicketChangeRequestApprovalsResourceQueryParams as dT, TicketChargesResource as dU, type TicketChargesResourceQueryParams as dV, TicketChecklistItemsResource as dW, type TicketChecklistItemsResourceQueryParams as dX, TicketChecklistLibrariesResource as dY, type TicketChecklistLibrariesResourceQueryParams as dZ, TicketHistoryResource as d_, type ServiceCallTasksResourceQueryParams as da, ServiceCallTicketResourcesResource as db, type ServiceCallTicketResourcesResourceQueryParams as dc, ServiceCallTicketsResource as dd, type ServiceCallTicketsResourceQueryParams as de, ServiceCallsResource as df, type ServiceCallsResourceQueryParams as dg, ServiceLevelAgreementResultsResource as dh, type ServiceLevelAgreementResultsResourceQueryParams as di, ServicesResource as dj, type ServicesResourceQueryParams as dk, SkillsResource as dl, type SkillsResourceQueryParams as dm, StaleObjectError as dn, SubscriptionPeriodsResource as dp, type SubscriptionPeriodsResourceQueryParams as dq, SubscriptionsResource as dr, type SubscriptionsResourceQueryParams as ds, SurveyResultsResource as dt, type SurveyResultsResourceQueryParams as du, SurveysResource as dv, type SurveysResourceQueryParams as dw, TagAliasesResource as dx, type TagAliasesResourceQueryParams as dy, TagGroupsResource as dz, AuthenticateResource as e, type BlindSurfaceInfo as e$, TicketNoteAttachmentsResource as e0, type TicketNoteAttachmentsResourceQueryParams as e1, TicketNoteWebhooksResource as e2, type TicketNoteWebhooksResourceQueryParams as e3, TicketNotesResource as e4, type TicketNotesResourceQueryParams as e5, TicketSecondaryResourcesResource as e6, type TicketSecondaryResourcesResourceQueryParams as e7, TicketWebhooksResource as e8, type TicketWebhooksResourceQueryParams as e9, defaultCircuitBreakerStore as eA, defaultCooldownStore as eB, errorFromStatus as eC, formatVendorDetail as eD, isAutotaskError as eE, isBreakerFailure as eF, isCredentialHeaderName as eG, isDeterministicVendor500 as eH, mergeDetails as eI, paginate as eJ, paginateItems as eK, parseVendorErrors as eL, passthrough as eM, redactRecord as eN, resetDefaultCircuitBreakerStore as eO, resetDefaultCooldownStore as eP, resolveBaseUrl as eQ, resolveConfig as eR, resolveCredentials as eS, runWithSignal as eT, toArray as eU, totalPagesFor as eV, unwrapItem as eW, unwrapItems as eX, unwrapOperation as eY, unwrapQueryCount as eZ, zoneUrl as e_, TicketsResource as ea, type TicketsResourceQueryParams as eb, TimeEntriesResource as ec, type TimeEntriesResourceQueryParams as ed, TimeEntryAttachmentsResource as ee, type TimeEntryAttachmentsResourceQueryParams as ef, TimeOffRequestsResource as eg, type TimeOffRequestsResourceQueryParams as eh, UnauthorizedError as ei, UnexpectedContentTypeError as ej, UnprocessableEntityError as ek, type VendorFieldError as el, VersionInformationResource as em, VersionResource as en, ZONES as eo, ZONE_CATALOG as ep, ZoneInformationResource as eq, type ZoneName as er, buildBreakerKey as es, buildQueryRequest as et, buildTenantKey as eu, buildUrl as ev, clampPageSize as ew, collectAll as ex, cooldownDurationMs as ey, cursorToPath as ez, AutotaskAbortError as f, type RelationshipResource as f0, type BlindSurfaceInventory as f1, type BlindSurfaceRow as f2, type CreateBlockerKind as f3, type CreateGuidanceReport as f4, type FieldCacheKind as f5, FIELD_CACHE_KINDS as f6, AutotaskConfigError as g, AutotaskError as h, type AutotaskErrorOptions as i, AutotaskNetworkError as j, AutotaskTimeoutError as k, BillingCodesResource as l, type BillingCodesResourceQueryParams as m, BillingItemsResource as n, type BillingItemsResourceQueryParams as o, CREDENTIAL_SHAPE_POINTER as p, ChangeRequestLinksResource as q, type ChangeRequestLinksResourceQueryParams as r, ChecklistLibrariesResource as s, type ChecklistLibrariesResourceQueryParams as t, ChecklistLibraryChecklistItemsResource as u, type ChecklistLibraryChecklistItemsResourceQueryParams as v, CircuitBreakerError as w, type CircuitBreakerState as x, type CircuitBreakerStore as y, ClassificationIconsResource as z };
@@ -1532,7 +1532,7 @@ declare function toArray<T>(iter: AsyncIterable<T>): Promise<T[]>;
1532
1532
  * queryBounded noteChars free-text cap (issue #61 — response-side only);
1533
1533
  * - docs/API.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
1534
1534
  *
1535
- * planHash: e4cf4228d5bad71cf762e31d4379ea9337633ededab68450b85f56bf3bc95fb9
1535
+ * planHash: bd88648453f58ede018062ce66acefacb672fecaa450af89f421057809971e14
1536
1536
  */
1537
1537
 
1538
1538
  /** One pinned blind-surface stamp (the result-time sentinel object). */
@@ -5017,10 +5017,13 @@ 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;
5024
+ /** Return the raw row arrays behind the calculation on every per-part container (default false —
5025
+ * each part carries its stamps + `rows_fetched` instead of `items`; every computed figure stays). */
5026
+ includeRows?: boolean;
5024
5027
  }
5025
5028
  /** One bounded part (the unbilledWork envelope, same status vocabulary). */
5026
5029
  interface ProfitabilityPart<TItem> {
@@ -5035,14 +5038,44 @@ interface ProfitabilityPart<TItem> {
5035
5038
  blindSurface?: BlindSurfaceInfo;
5036
5039
  /** The base layer's 0-row stamp (the pinned tenant-empty-for-user class rides here where attached). */
5037
5040
  emptyReason?: EmptyReasonInfo;
5038
- status: 'ok' | 'blind' | 'skipped';
5041
+ /** status 'absent' only: the typed error code of the read that faulted (the part degraded, the call did not). */
5042
+ absent?: string;
5043
+ status: 'ok' | 'blind' | 'skipped' | 'absent';
5044
+ }
5045
+ /** A per-part container without its rows (the default, includeRows false): every stamp kept, `items` replaced by its count. */
5046
+ type ProfitabilityPartDigest = Omit<ProfitabilityPart<unknown>, 'items'> & {
5047
+ rows_fetched: number;
5048
+ };
5049
+ /** Invoiced revenue by billing-line kind (classified by the line's FK: service/bundle → recurring, timeEntryID → labour, charge FKs → charges, expenseItemID → expenses). */
5050
+ interface ProfitabilityRevenueByType {
5051
+ recurring: number;
5052
+ labour: number;
5053
+ charges: number;
5054
+ expenses: number;
5055
+ other: number;
5039
5056
  }
5040
5057
  interface ProfitabilityMonthlyRow {
5041
5058
  month: string;
5042
5059
  revenue_invoiced: number;
5060
+ revenue_by_type: ProfitabilityRevenueByType;
5043
5061
  revenue_voided_excluded: number;
5062
+ /** Σ the month's posted billing items with no invoice yet. */
5063
+ revenue_posted_uninvoiced: number;
5064
+ /** Σ 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. */
5065
+ revenue_unresolved_invoice: number;
5066
+ /** Σ the period price of the service units starting in the month (null without a services/units basis). */
5044
5067
  revenue_expected: number | null;
5068
+ /** max(0, expected − the month's invoiced SERVICE lines). */
5045
5069
  revenue_expected_unbilled: number;
5070
+ /** Billable time with no billing item yet (not approved+posted). `value` is priced at the contract role rate on Time & Materials contracts only.
5071
+ * `hours` is Σ hoursToBill; null + hoursAbsent when any entry carries no numeric hoursToBill (a deliberate 0 stays 0). */
5072
+ unposted_time: {
5073
+ entries: number;
5074
+ hours: number | null;
5075
+ hoursAbsent?: 'HOURS_TO_BILL_MISSING';
5076
+ value: number | null;
5077
+ absent?: 'CONTRACT_TYPE_UNKNOWN' | 'NOT_TIME_AND_MATERIALS_CONTRACT' | 'NO_CONTRACT_RATE' | 'HOURS_TO_BILL_MISSING';
5078
+ };
5046
5079
  labour_hours: number;
5047
5080
  labour_cost: {
5048
5081
  total: number;
@@ -5062,15 +5095,21 @@ interface ProfitabilityMonthlyRow {
5062
5095
  };
5063
5096
  };
5064
5097
  tooling_cost: {
5098
+ /** Σ 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
5099
  vendor: number | null;
5066
5100
  caller_supplied: number;
5067
5101
  };
5102
+ /** Σ contract charge COST (extendedCost, else unitCost × unitQuantity) + the cost of the service units starting in the month. */
5068
5103
  recurring_cost: number;
5069
5104
  expense_cost: number;
5105
+ /** labour + caller-supplied tooling + recurring + expenses (vendor subscriptions excluded). */
5070
5106
  total_cost: number;
5071
5107
  profit: number;
5072
5108
  margin: number | null;
5109
+ /** 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
5110
  break_even_hours: number | null;
5111
+ /** Why the month's figures may be incomplete: `<part>: absent (<code>)`, `<part>: truncated at limit N`, `<part>: capped at limit N`. Empty = complete. */
5112
+ coverage_gaps: string[];
5074
5113
  }
5075
5114
  interface ProfitabilityActivityCategory {
5076
5115
  ticketCategory: number | null;
@@ -5131,6 +5170,23 @@ interface CostRateResolution {
5131
5170
  interface ContractsProfitabilityResult {
5132
5171
  contract: Contract;
5133
5172
  customer: Company | null;
5173
+ /** parts.customer 'absent' only: the typed code of the customer-read fault (a 404 is the plain null/skipped). */
5174
+ customerAbsent?: string;
5175
+ /** 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. */
5176
+ contract_type: {
5177
+ id: number | null;
5178
+ label: string | null;
5179
+ absent?: 'CONTRACT_TYPE_UNKNOWN';
5180
+ };
5181
+ /** 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. */
5182
+ included_hours: {
5183
+ value: {
5184
+ purchased: number;
5185
+ approved: number;
5186
+ remaining: number;
5187
+ } | null;
5188
+ absent?: string;
5189
+ };
5134
5190
  period: {
5135
5191
  dateFrom: string;
5136
5192
  dateTo: string;
@@ -5148,43 +5204,48 @@ interface ContractsProfitabilityResult {
5148
5204
  open_renewal_items: ProfitabilityOpenRenewalItem[];
5149
5205
  data_quality_warnings: ProfitabilityDataQualityWarning[];
5150
5206
  costRateResolution: CostRateResolution;
5151
- /** The per-part containers (the typed rows + stamps; the status map below is the digest). */
5152
- contractServices: ProfitabilityPart<ContractService>;
5153
- contractServiceUnits: ProfitabilityPart<ContractServiceUnit>;
5154
- contractCharges: ProfitabilityPart<ContractCharge>;
5155
- contractRoleCosts: ProfitabilityPart<ContractRoleCosts>;
5156
- contractRates: ProfitabilityPart<ContractRate>;
5157
- billingItems: ProfitabilityPart<BillingItems>;
5158
- invoices: ProfitabilityPart<Invoice>;
5159
- timeEntries: ProfitabilityPart<TimeEntry>;
5160
- ticketsActivity: ProfitabilityPart<Ticket>;
5161
- ticketsOpen: ProfitabilityPart<Ticket>;
5162
- resources: ProfitabilityPart<Resource>;
5163
- expenses: ProfitabilityPart<ExpenseItem>;
5164
- miscodingProbe: ProfitabilityPart<TimeEntry>;
5165
- configurationItems: ProfitabilityPart<ConfigurationItem>;
5166
- subscriptions: ProfitabilityPart<Subscription>;
5207
+ /** The per-part containers (the stamps + the typed rows with includeRows: true; by default the
5208
+ * ProfitabilityPartDigest — the same stamps + rows_fetched, no items). The status map below is the digest. */
5209
+ contractServices: ProfitabilityPart<ContractService> | ProfitabilityPartDigest;
5210
+ contractServiceUnits: ProfitabilityPart<ContractServiceUnit> | ProfitabilityPartDigest;
5211
+ contractCharges: ProfitabilityPart<ContractCharge> | ProfitabilityPartDigest;
5212
+ contractRoleCosts: ProfitabilityPart<ContractRoleCosts> | ProfitabilityPartDigest;
5213
+ contractRates: ProfitabilityPart<ContractRate> | ProfitabilityPartDigest;
5214
+ contractBlocks: ProfitabilityPart<ContractBlock> | ProfitabilityPartDigest;
5215
+ billingItems: ProfitabilityPart<BillingItems> | ProfitabilityPartDigest;
5216
+ invoices: ProfitabilityPart<Invoice> | ProfitabilityPartDigest;
5217
+ timeEntries: ProfitabilityPart<TimeEntry> | ProfitabilityPartDigest;
5218
+ ticketsActivity: ProfitabilityPart<Ticket> | ProfitabilityPartDigest;
5219
+ ticketsOpen: ProfitabilityPart<Ticket> | ProfitabilityPartDigest;
5220
+ resources: ProfitabilityPart<Resource> | ProfitabilityPartDigest;
5221
+ expenses: ProfitabilityPart<ExpenseItem> | ProfitabilityPartDigest;
5222
+ miscodingProbe: ProfitabilityPart<TimeEntry> | ProfitabilityPartDigest;
5223
+ configurationItems: ProfitabilityPart<ConfigurationItem> | ProfitabilityPartDigest;
5224
+ subscriptions: ProfitabilityPart<Subscription> | ProfitabilityPartDigest;
5167
5225
  parts: {
5168
5226
  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
- billingItems: 'ok' | 'blind';
5227
+ customer: 'ok' | 'skipped' | 'absent';
5228
+ contractServices: 'ok' | 'blind' | 'absent';
5229
+ contractServiceUnits: 'ok' | 'blind' | 'absent';
5230
+ contractCharges: 'ok' | 'blind' | 'skipped' | 'absent';
5231
+ contractRoleCosts: 'ok' | 'blind' | 'absent';
5232
+ contractRates: 'ok' | 'blind' | 'absent';
5233
+ contractBlocks: 'ok' | 'blind' | 'skipped' | 'absent';
5234
+ billingItems: 'ok' | 'blind' | 'absent';
5176
5235
  invoices: 'ok' | 'skipped';
5177
- timeEntries: 'ok' | 'blind';
5178
- ticketsActivity: 'ok' | 'blind';
5179
- ticketsOpen: 'ok' | 'blind' | 'skipped';
5236
+ timeEntries: 'ok' | 'blind' | 'absent';
5237
+ ticketsActivity: 'ok' | 'blind' | 'absent';
5238
+ ticketsOpen: 'ok' | 'blind' | 'skipped' | 'absent';
5180
5239
  resources: 'ok' | 'skipped';
5181
- expenses: 'ok' | 'blind' | 'skipped';
5182
- miscodingProbe: 'ok' | 'blind' | 'skipped';
5183
- configurationItems: 'ok' | 'blind' | 'skipped';
5184
- subscriptions: 'ok' | 'blind' | 'skipped';
5240
+ expenses: 'ok' | 'blind' | 'skipped' | 'absent';
5241
+ miscodingProbe: 'ok' | 'blind' | 'skipped' | 'absent';
5242
+ configurationItems: 'ok' | 'blind' | 'skipped' | 'absent';
5243
+ subscriptions: 'ok' | 'blind' | 'skipped' | 'absent';
5185
5244
  };
5245
+ /** issued = logical part reads (a fetch-by-ids part counts once); requests = raw HTTP requests (its chunk + per-id gets counted individually). */
5186
5246
  wires: {
5187
5247
  issued: number;
5248
+ requests: number;
5188
5249
  budget: number;
5189
5250
  note?: string;
5190
5251
  };
@@ -5238,7 +5299,7 @@ declare class ContractsResource extends BaseResource<Contract, ContractCreate, C
5238
5299
  limit?: number;
5239
5300
  }): Promise<ContractSummary[]>;
5240
5301
  /** Node-parity special op (hand-written in src/resources/special/contracts.ts). */
5241
- profitability(id: Identifier, opts?: ProfitabilityOptions): Promise<ContractsProfitabilityResult>;
5302
+ profitability(id: Identifier, opts: ProfitabilityOptions): Promise<ContractsProfitabilityResult>;
5242
5303
  }
5243
5304
 
5244
5305
  /**
@@ -9140,4 +9201,4 @@ declare class AutotaskClient {
9140
9201
  }): Promise<PromiseSettledResult<R>[]>;
9141
9202
  }
9142
9203
 
9143
- export { ConfigurationItemRelatedItemsResource as $, type AutotaskConfig as A, BadRequestError as B, CREDENTIAL_HEADER_NAMES as C, type ClassificationIconsResourceQueryParams as D, CompaniesResource as E, type CompaniesResourceQueryParams as F, CompanyAlertsResource as G, type CompanyAlertsResourceQueryParams as H, CompanyLocationsResource as I, type CompanyLocationsResourceQueryParams as J, CompanyNotesResource as K, type CompanyNotesResourceQueryParams as L, CompanySiteConfigurationsResource as M, type CompanySiteConfigurationsResourceQueryParams as N, CompanyWebhooksResource as O, type CompanyWebhooksResourceQueryParams as P, type ConfigProfile as Q, ConfigurationItemBillingProductAssociationsResource as R, type ConfigurationItemBillingProductAssociationsResourceQueryParams as S, ConfigurationItemCategoriesResource as T, type ConfigurationItemCategoriesResourceQueryParams as U, ConfigurationItemCategoryUdfAssociationsResource as V, type ConfigurationItemCategoryUdfAssociationsResourceQueryParams as W, ConfigurationItemDnsRecordsResource as X, type ConfigurationItemDnsRecordsResourceQueryParams as Y, ConfigurationItemNotesResource as Z, type ConfigurationItemNotesResourceQueryParams as _, AutotaskClient as a, type CooldownStore as a$, type ConfigurationItemRelatedItemsResourceQueryParams as a0, ConfigurationItemSslSubjectAlternativeNamesResource as a1, type ConfigurationItemSslSubjectAlternativeNamesResourceQueryParams as a2, ConfigurationItemTypesResource as a3, type ConfigurationItemTypesResourceQueryParams as a4, ConfigurationItemWebhooksResource as a5, type ConfigurationItemWebhooksResourceQueryParams as a6, ConfigurationItemsResource as a7, type ConfigurationItemsResourceQueryParams as a8, ConfirmationRequiredError as a9, type ContractExclusionSetsResourceQueryParams as aA, ContractMilestonesResource as aB, type ContractMilestonesResourceQueryParams as aC, ContractNotesResource as aD, type ContractNotesResourceQueryParams as aE, ContractRatesResource as aF, type ContractRatesResourceQueryParams as aG, ContractRetainersResource as aH, type ContractRetainersResourceQueryParams as aI, ContractRoleCostsResource as aJ, type ContractRoleCostsResourceQueryParams as aK, ContractServiceAdjustmentsResource as aL, type ContractServiceAdjustmentsResourceQueryParams as aM, ContractServiceBundleAdjustmentsResource as aN, type ContractServiceBundleAdjustmentsResourceQueryParams as aO, ContractServiceBundleUnitsResource as aP, type ContractServiceBundleUnitsResourceQueryParams as aQ, ContractServiceBundlesResource as aR, type ContractServiceBundlesResourceQueryParams as aS, ContractServiceUnitsResource as aT, type ContractServiceUnitsResourceQueryParams as aU, ContractServicesResource as aV, type ContractServicesResourceQueryParams as aW, ContractTicketPurchasesResource as aX, type ContractTicketPurchasesResourceQueryParams as aY, ContractsResource as aZ, type ContractsResourceQueryParams as a_, ConflictError as aa, ContactGroupContactsResource as ab, type ContactGroupContactsResourceQueryParams as ac, ContactGroupsResource as ad, type ContactGroupsResourceQueryParams as ae, ContactWebhooksResource as af, type ContactWebhooksResourceQueryParams as ag, ContactsResource as ah, type ContactsResourceQueryParams as ai, ContractBillingRulesResource as aj, type ContractBillingRulesResourceQueryParams as ak, ContractBlockHourFactorsResource as al, type ContractBlockHourFactorsResourceQueryParams as am, ContractBlocksResource as an, type ContractBlocksResourceQueryParams as ao, ContractChargesResource as ap, type ContractChargesResourceQueryParams as aq, ContractExclusionBillingCodesResource as ar, type ContractExclusionBillingCodesResourceQueryParams as as, ContractExclusionRolesResource as at, type ContractExclusionRolesResourceQueryParams as au, ContractExclusionSetExcludedRolesResource as av, type ContractExclusionSetExcludedRolesResourceQueryParams as aw, ContractExclusionSetExcludedWorkTypesResource as ax, type ContractExclusionSetExcludedWorkTypesResourceQueryParams as ay, ContractExclusionSetsResource as az, AGENT_PROFILE as b, OpportunityCategoriesResource as b$, CountriesResource as b0, type CountriesResourceQueryParams as b1, type CredentialShapeExpectation as b2, DEFAULT_CIRCUIT_BREAKER_FAILURE_THRESHOLD as b3, DEFAULT_CIRCUIT_BREAKER_MAX_ENTRIES as b4, DEFAULT_CIRCUIT_BREAKER_OPEN_TIMEOUT_MS as b5, DEFAULT_CIRCUIT_BREAKER_SUCCESSES_TO_CLOSE as b6, DEFAULT_CIRCUIT_BREAKER_WINDOW_MS as b7, DEFAULT_COOLDOWN_DEFAULT_MS as b8, DEFAULT_COOLDOWN_MAX_ENTRIES as b9, ForbiddenError as bA, HolidaySetsResource as bB, type HolidaySetsResourceQueryParams as bC, HolidaysResource as bD, type HolidaysResourceQueryParams as bE, HostPolicyDeniedError as bF, HttpClient as bG, IDEMPOTENT_METHODS as bH, InMemoryCircuitBreakerStore as bI, InMemoryCooldownStore as bJ, InventoryProductsResource as bK, type InventoryProductsResourceQueryParams as bL, InvoicesResource as bM, type InvoicesResourceQueryParams as bN, type Logger as bO, MAX_PAGES as bP, MAX_PAGE_SIZE as bQ, MarkerUnsafeIdError as bR, ModulesResource as bS, NoopLogger as bT, NotFoundError as bU, NotificationHistoryResource as bV, type NotificationHistoryResourceQueryParams as bW, OpportunitiesResource as bX, type OpportunitiesResourceQueryParams as bY, OpportunityAttachmentsResource as bZ, type OpportunityAttachmentsResourceQueryParams as b_, DEFAULT_COOLDOWN_MAX_MS as ba, DEFAULT_FIELD_CACHE_TTL_MS as bb, DEFAULT_MAX_CONCURRENT as bc, DEFAULT_MAX_RESPONSE_BYTES as bd, DEFAULT_MAX_RETRIES as be, DEFAULT_MAX_SCAN_PAGES as bf, DEFAULT_MAX_SCAN_RECORDS as bg, DEFAULT_PAGE_SIZE as bh, DEFAULT_READ_CACHE_TTL_MS as bi, DEFAULT_RESOURCE_NAME_CACHE_TTL_MS as bj, DEFAULT_TIMEOUT_MS as bk, DEFAULT_ZONE as bl, DeleteBoundaryError as bm, DepartmentsResource as bn, type DepartmentsResourceQueryParams as bo, DomainRegistrarsResource as bp, type DomainRegistrarsResourceQueryParams as bq, EmptyResponseError as br, EntityInformationResource as bs, type ErrorCategory as bt, ExpenseItemAttachmentsResource as bu, type ExpenseItemAttachmentsResourceQueryParams as bv, ExpenseItemsResource as bw, type ExpenseItemsResourceQueryParams as bx, ExpenseReportsResource as by, type ExpenseReportsResourceQueryParams as bz, AppointmentsResource as c, ServiceCallTicketsResource as c$, type OpportunityCategoriesResourceQueryParams as c0, type PageFetcher as c1, type PaginateOptions as c2, PaginationLimitError as c3, PhasesResource as c4, type PhasesResourceQueryParams as c5, ProductVendorsResource as c6, type ProductVendorsResourceQueryParams as c7, ProductsResource as c8, type ProductsResourceQueryParams as c9, type RequestOptions as cA, ResolutionError as cB, type ResolvedAutotaskConfig as cC, ResourceRoleQueuesResource as cD, type ResourceRoleQueuesResourceQueryParams as cE, ResourceRolesResource as cF, type ResourceRolesResourceQueryParams as cG, ResourceSkillsResource as cH, type ResourceSkillsResourceQueryParams as cI, ResourceTimeOffAdditionalResource as cJ, type ResourceTimeOffAdditionalResourceQueryParams as cK, ResourceTimeOffApproversResource as cL, type ResourceTimeOffApproversResourceQueryParams as cM, ResourceTimeOffBalancesResource as cN, type ResourceTimeOffBalancesResourceQueryParams as cO, ResourcesResource as cP, type ResourcesResourceQueryParams as cQ, ResponseRejectedError as cR, RolesResource as cS, type RolesResourceQueryParams as cT, ServerError as cU, ServiceCallTaskResourcesResource as cV, type ServiceCallTaskResourcesResourceQueryParams as cW, ServiceCallTasksResource as cX, type ServiceCallTasksResourceQueryParams as cY, ServiceCallTicketResourcesResource as cZ, type ServiceCallTicketResourcesResourceQueryParams as c_, ProjectChargesResource as ca, type ProjectChargesResourceQueryParams as cb, ProjectNotesResource as cc, type ProjectNotesResourceQueryParams as cd, ProjectsResource as ce, type ProjectsResourceQueryParams as cf, PurchaseApprovalsResource as cg, type PurchaseApprovalsResourceQueryParams as ch, PurchaseOrderItemReceivingResource as ci, type PurchaseOrderItemReceivingResourceQueryParams as cj, PurchaseOrderItemsResource as ck, type PurchaseOrderItemsResourceQueryParams as cl, PurchaseOrdersResource as cm, type PurchaseOrdersResourceQueryParams as cn, QueryTooLongError as co, QuoteItemsResource as cp, type QuoteItemsResourceQueryParams as cq, QuoteLocationsResource as cr, type QuoteLocationsResourceQueryParams as cs, QuoteTemplatesResource as ct, type QuoteTemplatesResourceQueryParams as cu, QuotesResource as cv, type QuotesResourceQueryParams as cw, REDACTED as cx, RateLimitError as cy, RecoveryTruncatedError as cz, type AppointmentsResourceQueryParams as d, type TimeEntriesResourceQueryParams as d$, type ServiceCallTicketsResourceQueryParams as d0, ServiceCallsResource as d1, type ServiceCallsResourceQueryParams as d2, ServiceLevelAgreementResultsResource as d3, type ServiceLevelAgreementResultsResourceQueryParams as d4, ServicesResource as d5, type ServicesResourceQueryParams as d6, SkillsResource as d7, type SkillsResourceQueryParams as d8, StaleObjectError as d9, TicketCategoriesResource as dA, type TicketCategoriesResourceQueryParams as dB, TicketCategoryFieldDefaultsResource as dC, type TicketCategoryFieldDefaultsResourceQueryParams as dD, TicketChangeRequestApprovalsResource as dE, type TicketChangeRequestApprovalsResourceQueryParams as dF, TicketChargesResource as dG, type TicketChargesResourceQueryParams as dH, TicketChecklistItemsResource as dI, type TicketChecklistItemsResourceQueryParams as dJ, TicketChecklistLibrariesResource as dK, type TicketChecklistLibrariesResourceQueryParams as dL, TicketHistoryResource as dM, type TicketHistoryResourceQueryParams as dN, TicketNoteAttachmentsResource as dO, type TicketNoteAttachmentsResourceQueryParams as dP, TicketNoteWebhooksResource as dQ, type TicketNoteWebhooksResourceQueryParams as dR, TicketNotesResource as dS, type TicketNotesResourceQueryParams as dT, TicketSecondaryResourcesResource as dU, type TicketSecondaryResourcesResourceQueryParams as dV, TicketWebhooksResource as dW, type TicketWebhooksResourceQueryParams as dX, TicketsResource as dY, type TicketsResourceQueryParams as dZ, TimeEntriesResource as d_, SubscriptionPeriodsResource as da, type SubscriptionPeriodsResourceQueryParams as db, SubscriptionsResource as dc, type SubscriptionsResourceQueryParams as dd, SurveyResultsResource as de, type SurveyResultsResourceQueryParams as df, SurveysResource as dg, type SurveysResourceQueryParams as dh, TagAliasesResource as di, type TagAliasesResourceQueryParams as dj, TagGroupsResource as dk, type TagGroupsResourceQueryParams as dl, TagsResource as dm, type TagsResourceQueryParams as dn, TaskSecondaryResourcesResource as dp, type TaskSecondaryResourcesResourceQueryParams as dq, TasksResource as dr, type TasksResourceQueryParams as ds, ThresholdInformationResource as dt, TicketAdditionalConfigurationItemsResource as du, type TicketAdditionalConfigurationItemsResourceQueryParams as dv, TicketAdditionalContactsResource as dw, type TicketAdditionalContactsResourceQueryParams as dx, TicketAttachmentsResource as dy, type TicketAttachmentsResourceQueryParams as dz, AuthenticateResource as e, TimeEntryAttachmentsResource as e0, type TimeEntryAttachmentsResourceQueryParams as e1, TimeOffRequestsResource as e2, type TimeOffRequestsResourceQueryParams as e3, UnauthorizedError as e4, UnexpectedContentTypeError as e5, UnprocessableEntityError as e6, type VendorFieldError as e7, VersionInformationResource as e8, VersionResource as e9, resetDefaultCircuitBreakerStore as eA, resetDefaultCooldownStore as eB, resolveBaseUrl as eC, resolveConfig as eD, resolveCredentials as eE, runWithSignal as eF, toArray as eG, totalPagesFor as eH, unwrapItem as eI, unwrapItems as eJ, unwrapOperation as eK, unwrapQueryCount as eL, zoneUrl as eM, type BlindSurfaceInfo as eN, type RelationshipResource as eO, type BlindSurfaceInventory as eP, type BlindSurfaceRow as eQ, type CreateBlockerKind as eR, type CreateGuidanceReport as eS, type FieldCacheKind as eT, FIELD_CACHE_KINDS as eU, ZONES as ea, ZONE_CATALOG as eb, ZoneInformationResource as ec, type ZoneName as ed, buildBreakerKey as ee, buildQueryRequest as ef, buildTenantKey as eg, buildUrl as eh, clampPageSize as ei, collectAll as ej, cooldownDurationMs as ek, cursorToPath as el, defaultCircuitBreakerStore as em, defaultCooldownStore as en, errorFromStatus as eo, formatVendorDetail as ep, isAutotaskError as eq, isBreakerFailure as er, isCredentialHeaderName as es, isDeterministicVendor500 as et, mergeDetails as eu, paginate as ev, paginateItems as ew, parseVendorErrors as ex, passthrough as ey, redactRecord as ez, AutotaskAbortError as f, AutotaskConfigError as g, AutotaskError as h, type AutotaskErrorOptions as i, AutotaskNetworkError as j, AutotaskTimeoutError as k, BillingCodesResource as l, type BillingCodesResourceQueryParams as m, BillingItemsResource as n, type BillingItemsResourceQueryParams as o, CREDENTIAL_SHAPE_POINTER as p, ChangeRequestLinksResource as q, type ChangeRequestLinksResourceQueryParams as r, ChecklistLibrariesResource as s, type ChecklistLibrariesResourceQueryParams as t, ChecklistLibraryChecklistItemsResource as u, type ChecklistLibraryChecklistItemsResourceQueryParams as v, CircuitBreakerError as w, type CircuitBreakerState as x, type CircuitBreakerStore as y, ClassificationIconsResource as z };
9204
+ export { ConfigurationItemRelatedItemsResource as $, type AutotaskConfig as A, BadRequestError as B, CREDENTIAL_HEADER_NAMES as C, type ClassificationIconsResourceQueryParams as D, CompaniesResource as E, type CompaniesResourceQueryParams as F, CompanyAlertsResource as G, type CompanyAlertsResourceQueryParams as H, CompanyLocationsResource as I, type CompanyLocationsResourceQueryParams as J, CompanyNotesResource as K, type CompanyNotesResourceQueryParams as L, CompanySiteConfigurationsResource as M, type CompanySiteConfigurationsResourceQueryParams as N, CompanyWebhooksResource as O, type CompanyWebhooksResourceQueryParams as P, type ConfigProfile as Q, ConfigurationItemBillingProductAssociationsResource as R, type ConfigurationItemBillingProductAssociationsResourceQueryParams as S, ConfigurationItemCategoriesResource as T, type ConfigurationItemCategoriesResourceQueryParams as U, ConfigurationItemCategoryUdfAssociationsResource as V, type ConfigurationItemCategoryUdfAssociationsResourceQueryParams as W, ConfigurationItemDnsRecordsResource as X, type ConfigurationItemDnsRecordsResourceQueryParams as Y, ConfigurationItemNotesResource as Z, type ConfigurationItemNotesResourceQueryParams as _, AutotaskClient as a, type ContractsResourceQueryParams as a$, type ConfigurationItemRelatedItemsResourceQueryParams as a0, ConfigurationItemSslSubjectAlternativeNamesResource as a1, type ConfigurationItemSslSubjectAlternativeNamesResourceQueryParams as a2, ConfigurationItemTypesResource as a3, type ConfigurationItemTypesResourceQueryParams as a4, ConfigurationItemWebhooksResource as a5, type ConfigurationItemWebhooksResourceQueryParams as a6, ConfigurationItemsResource as a7, type ConfigurationItemsResourceQueryParams as a8, ConfirmationRequiredError as a9, type ContractExclusionSetsResourceQueryParams as aA, ContractMilestonesResource as aB, type ContractMilestonesResourceQueryParams as aC, ContractNotesResource as aD, type ContractNotesResourceQueryParams as aE, ContractRatesResource as aF, type ContractRatesResourceQueryParams as aG, ContractRetainersResource as aH, type ContractRetainersResourceQueryParams as aI, ContractRoleCostsResource as aJ, type ContractRoleCostsResourceQueryParams as aK, ContractServiceAdjustmentsResource as aL, type ContractServiceAdjustmentsResourceQueryParams as aM, ContractServiceBundleAdjustmentsResource as aN, type ContractServiceBundleAdjustmentsResourceQueryParams as aO, ContractServiceBundleUnitsResource as aP, type ContractServiceBundleUnitsResourceQueryParams as aQ, ContractServiceBundlesResource as aR, type ContractServiceBundlesResourceQueryParams as aS, ContractServiceUnitsResource as aT, type ContractServiceUnitsResourceQueryParams as aU, ContractServicesResource as aV, type ContractServicesResourceQueryParams as aW, ContractTicketPurchasesResource as aX, type ContractTicketPurchasesResourceQueryParams as aY, type ContractsProfitabilityResult as aZ, ContractsResource as a_, ConflictError as aa, ContactGroupContactsResource as ab, type ContactGroupContactsResourceQueryParams as ac, ContactGroupsResource as ad, type ContactGroupsResourceQueryParams as ae, ContactWebhooksResource as af, type ContactWebhooksResourceQueryParams as ag, ContactsResource as ah, type ContactsResourceQueryParams as ai, ContractBillingRulesResource as aj, type ContractBillingRulesResourceQueryParams as ak, ContractBlockHourFactorsResource as al, type ContractBlockHourFactorsResourceQueryParams as am, ContractBlocksResource as an, type ContractBlocksResourceQueryParams as ao, ContractChargesResource as ap, type ContractChargesResourceQueryParams as aq, ContractExclusionBillingCodesResource as ar, type ContractExclusionBillingCodesResourceQueryParams as as, ContractExclusionRolesResource as at, type ContractExclusionRolesResourceQueryParams as au, ContractExclusionSetExcludedRolesResource as av, type ContractExclusionSetExcludedRolesResourceQueryParams as aw, ContractExclusionSetExcludedWorkTypesResource as ax, type ContractExclusionSetExcludedWorkTypesResourceQueryParams as ay, ContractExclusionSetsResource as az, AGENT_PROFILE as b, OpportunityAttachmentsResource as b$, type CooldownStore as b0, type CostRateResolution as b1, CountriesResource as b2, type CountriesResourceQueryParams as b3, type CredentialShapeExpectation as b4, DEFAULT_CIRCUIT_BREAKER_FAILURE_THRESHOLD as b5, DEFAULT_CIRCUIT_BREAKER_MAX_ENTRIES as b6, DEFAULT_CIRCUIT_BREAKER_OPEN_TIMEOUT_MS as b7, DEFAULT_CIRCUIT_BREAKER_SUCCESSES_TO_CLOSE as b8, DEFAULT_CIRCUIT_BREAKER_WINDOW_MS as b9, ExpenseReportsResource as bA, type ExpenseReportsResourceQueryParams as bB, ForbiddenError as bC, HolidaySetsResource as bD, type HolidaySetsResourceQueryParams as bE, HolidaysResource as bF, type HolidaysResourceQueryParams as bG, HostPolicyDeniedError as bH, HttpClient as bI, IDEMPOTENT_METHODS as bJ, InMemoryCircuitBreakerStore as bK, InMemoryCooldownStore as bL, InventoryProductsResource as bM, type InventoryProductsResourceQueryParams as bN, InvoicesResource as bO, type InvoicesResourceQueryParams as bP, type Logger as bQ, MAX_PAGES as bR, MAX_PAGE_SIZE as bS, MarkerUnsafeIdError as bT, ModulesResource as bU, NoopLogger as bV, NotFoundError as bW, NotificationHistoryResource as bX, type NotificationHistoryResourceQueryParams as bY, OpportunitiesResource as bZ, type OpportunitiesResourceQueryParams as b_, DEFAULT_COOLDOWN_DEFAULT_MS as ba, DEFAULT_COOLDOWN_MAX_ENTRIES as bb, DEFAULT_COOLDOWN_MAX_MS as bc, DEFAULT_FIELD_CACHE_TTL_MS as bd, DEFAULT_MAX_CONCURRENT as be, DEFAULT_MAX_RESPONSE_BYTES as bf, DEFAULT_MAX_RETRIES as bg, DEFAULT_MAX_SCAN_PAGES as bh, DEFAULT_MAX_SCAN_RECORDS as bi, DEFAULT_PAGE_SIZE as bj, DEFAULT_READ_CACHE_TTL_MS as bk, DEFAULT_RESOURCE_NAME_CACHE_TTL_MS as bl, DEFAULT_TIMEOUT_MS as bm, DEFAULT_ZONE as bn, DeleteBoundaryError as bo, DepartmentsResource as bp, type DepartmentsResourceQueryParams as bq, DomainRegistrarsResource as br, type DomainRegistrarsResourceQueryParams as bs, EmptyResponseError as bt, EntityInformationResource as bu, type ErrorCategory as bv, ExpenseItemAttachmentsResource as bw, type ExpenseItemAttachmentsResourceQueryParams as bx, ExpenseItemsResource as by, type ExpenseItemsResourceQueryParams as bz, AppointmentsResource as c, ResourceTimeOffBalancesResource as c$, type OpportunityAttachmentsResourceQueryParams as c0, OpportunityCategoriesResource as c1, type OpportunityCategoriesResourceQueryParams as c2, type PageFetcher as c3, type PaginateOptions as c4, PaginationLimitError as c5, PhasesResource as c6, type PhasesResourceQueryParams as c7, ProductVendorsResource as c8, type ProductVendorsResourceQueryParams as c9, PurchaseOrdersResource as cA, type PurchaseOrdersResourceQueryParams as cB, QueryTooLongError as cC, QuoteItemsResource as cD, type QuoteItemsResourceQueryParams as cE, QuoteLocationsResource as cF, type QuoteLocationsResourceQueryParams as cG, QuoteTemplatesResource as cH, type QuoteTemplatesResourceQueryParams as cI, QuotesResource as cJ, type QuotesResourceQueryParams as cK, REDACTED as cL, RateLimitError as cM, RecoveryTruncatedError as cN, type RequestOptions as cO, ResolutionError as cP, type ResolvedAutotaskConfig as cQ, ResourceRoleQueuesResource as cR, type ResourceRoleQueuesResourceQueryParams as cS, ResourceRolesResource as cT, type ResourceRolesResourceQueryParams as cU, ResourceSkillsResource as cV, type ResourceSkillsResourceQueryParams as cW, ResourceTimeOffAdditionalResource as cX, type ResourceTimeOffAdditionalResourceQueryParams as cY, ResourceTimeOffApproversResource as cZ, type ResourceTimeOffApproversResourceQueryParams as c_, ProductsResource as ca, type ProductsResourceQueryParams as cb, type ProfitRateSource as cc, type ProfitabilityActivityCategory as cd, type ProfitabilityDataQualityWarning as ce, type ProfitabilityHighestCostTicket as cf, type ProfitabilityLabourCostMethod as cg, type ProfitabilityMiscoding as ch, type ProfitabilityMonthlyRow as ci, type ProfitabilityOpenRenewalItem as cj, type ProfitabilityOptions as ck, type ProfitabilityPart as cl, type ProfitabilityPartDigest as cm, type ProfitabilityRevenueByType as cn, ProjectChargesResource as co, type ProjectChargesResourceQueryParams as cp, ProjectNotesResource as cq, type ProjectNotesResourceQueryParams as cr, ProjectsResource as cs, type ProjectsResourceQueryParams as ct, PurchaseApprovalsResource as cu, type PurchaseApprovalsResourceQueryParams as cv, PurchaseOrderItemReceivingResource as cw, type PurchaseOrderItemReceivingResourceQueryParams as cx, PurchaseOrderItemsResource as cy, type PurchaseOrderItemsResourceQueryParams as cz, type AppointmentsResourceQueryParams as d, type TicketHistoryResourceQueryParams as d$, type ResourceTimeOffBalancesResourceQueryParams as d0, ResourcesResource as d1, type ResourcesResourceQueryParams as d2, ResponseRejectedError as d3, RolesResource as d4, type RolesResourceQueryParams as d5, ServerError as d6, ServiceCallTaskResourcesResource as d7, type ServiceCallTaskResourcesResourceQueryParams as d8, ServiceCallTasksResource as d9, type TagGroupsResourceQueryParams as dA, TagsResource as dB, type TagsResourceQueryParams as dC, TaskSecondaryResourcesResource as dD, type TaskSecondaryResourcesResourceQueryParams as dE, TasksResource as dF, type TasksResourceQueryParams as dG, ThresholdInformationResource as dH, TicketAdditionalConfigurationItemsResource as dI, type TicketAdditionalConfigurationItemsResourceQueryParams as dJ, TicketAdditionalContactsResource as dK, type TicketAdditionalContactsResourceQueryParams as dL, TicketAttachmentsResource as dM, type TicketAttachmentsResourceQueryParams as dN, TicketCategoriesResource as dO, type TicketCategoriesResourceQueryParams as dP, TicketCategoryFieldDefaultsResource as dQ, type TicketCategoryFieldDefaultsResourceQueryParams as dR, TicketChangeRequestApprovalsResource as dS, type TicketChangeRequestApprovalsResourceQueryParams as dT, TicketChargesResource as dU, type TicketChargesResourceQueryParams as dV, TicketChecklistItemsResource as dW, type TicketChecklistItemsResourceQueryParams as dX, TicketChecklistLibrariesResource as dY, type TicketChecklistLibrariesResourceQueryParams as dZ, TicketHistoryResource as d_, type ServiceCallTasksResourceQueryParams as da, ServiceCallTicketResourcesResource as db, type ServiceCallTicketResourcesResourceQueryParams as dc, ServiceCallTicketsResource as dd, type ServiceCallTicketsResourceQueryParams as de, ServiceCallsResource as df, type ServiceCallsResourceQueryParams as dg, ServiceLevelAgreementResultsResource as dh, type ServiceLevelAgreementResultsResourceQueryParams as di, ServicesResource as dj, type ServicesResourceQueryParams as dk, SkillsResource as dl, type SkillsResourceQueryParams as dm, StaleObjectError as dn, SubscriptionPeriodsResource as dp, type SubscriptionPeriodsResourceQueryParams as dq, SubscriptionsResource as dr, type SubscriptionsResourceQueryParams as ds, SurveyResultsResource as dt, type SurveyResultsResourceQueryParams as du, SurveysResource as dv, type SurveysResourceQueryParams as dw, TagAliasesResource as dx, type TagAliasesResourceQueryParams as dy, TagGroupsResource as dz, AuthenticateResource as e, type BlindSurfaceInfo as e$, TicketNoteAttachmentsResource as e0, type TicketNoteAttachmentsResourceQueryParams as e1, TicketNoteWebhooksResource as e2, type TicketNoteWebhooksResourceQueryParams as e3, TicketNotesResource as e4, type TicketNotesResourceQueryParams as e5, TicketSecondaryResourcesResource as e6, type TicketSecondaryResourcesResourceQueryParams as e7, TicketWebhooksResource as e8, type TicketWebhooksResourceQueryParams as e9, defaultCircuitBreakerStore as eA, defaultCooldownStore as eB, errorFromStatus as eC, formatVendorDetail as eD, isAutotaskError as eE, isBreakerFailure as eF, isCredentialHeaderName as eG, isDeterministicVendor500 as eH, mergeDetails as eI, paginate as eJ, paginateItems as eK, parseVendorErrors as eL, passthrough as eM, redactRecord as eN, resetDefaultCircuitBreakerStore as eO, resetDefaultCooldownStore as eP, resolveBaseUrl as eQ, resolveConfig as eR, resolveCredentials as eS, runWithSignal as eT, toArray as eU, totalPagesFor as eV, unwrapItem as eW, unwrapItems as eX, unwrapOperation as eY, unwrapQueryCount as eZ, zoneUrl as e_, TicketsResource as ea, type TicketsResourceQueryParams as eb, TimeEntriesResource as ec, type TimeEntriesResourceQueryParams as ed, TimeEntryAttachmentsResource as ee, type TimeEntryAttachmentsResourceQueryParams as ef, TimeOffRequestsResource as eg, type TimeOffRequestsResourceQueryParams as eh, UnauthorizedError as ei, UnexpectedContentTypeError as ej, UnprocessableEntityError as ek, type VendorFieldError as el, VersionInformationResource as em, VersionResource as en, ZONES as eo, ZONE_CATALOG as ep, ZoneInformationResource as eq, type ZoneName as er, buildBreakerKey as es, buildQueryRequest as et, buildTenantKey as eu, buildUrl as ev, clampPageSize as ew, collectAll as ex, cooldownDurationMs as ey, cursorToPath as ez, AutotaskAbortError as f, type RelationshipResource as f0, type BlindSurfaceInventory as f1, type BlindSurfaceRow as f2, type CreateBlockerKind as f3, type CreateGuidanceReport as f4, type FieldCacheKind as f5, FIELD_CACHE_KINDS as f6, AutotaskConfigError as g, AutotaskError as h, type AutotaskErrorOptions as i, AutotaskNetworkError as j, AutotaskTimeoutError as k, BillingCodesResource as l, type BillingCodesResourceQueryParams as m, BillingItemsResource as n, type BillingItemsResourceQueryParams as o, CREDENTIAL_SHAPE_POINTER as p, ChangeRequestLinksResource as q, type ChangeRequestLinksResourceQueryParams as r, ChecklistLibrariesResource as s, type ChecklistLibrariesResourceQueryParams as t, ChecklistLibraryChecklistItemsResource as u, type ChecklistLibraryChecklistItemsResourceQueryParams as v, CircuitBreakerError as w, type CircuitBreakerState as x, type CircuitBreakerStore as y, ClassificationIconsResource as z };