node-autotask 0.91.0 → 0.92.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/MCP_TOOL_CATALOG.json +152 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +575 -28
  5. package/dist/capabilities-data.js +574 -27
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-43ADHLZJ.js → chunk-2MC3LDZU.js} +3 -3
  9. package/dist/{chunk-2GP7W6QB.js → chunk-4BICEQ4S.js} +841 -295
  10. package/dist/{chunk-Y2KXGSWM.js → chunk-C7KZ7PB3.js} +3 -2
  11. package/dist/{chunk-5PUHGPKG.cjs → chunk-JY6BQUPO.cjs} +202 -200
  12. package/dist/{chunk-RXXITZH4.cjs → chunk-LYAHXYZR.cjs} +847 -299
  13. package/dist/{chunk-YFC5VAKK.cjs → chunk-QC45KFQQ.cjs} +31 -30
  14. package/dist/{chunk-WAHRZDV4.js → chunk-QVDXIXY4.js} +4 -2
  15. package/dist/{chunk-KRYDLTY3.cjs → chunk-QXJQIZCT.cjs} +3 -3
  16. package/dist/{index-Dy92Xbpv.d.cts → index-B0p5O-2e.d.cts} +70 -2
  17. package/dist/{index-Dy92Xbpv.d.ts → index-B0p5O-2e.d.ts} +70 -2
  18. package/dist/{index-C3jXvpXZ.d.ts → index-it9IqLsM.d.ts} +13 -5
  19. package/dist/{index-BfGOllfY.d.cts → index-opnSlg90.d.cts} +13 -5
  20. package/dist/index.cjs +89 -85
  21. package/dist/index.d.cts +8 -4
  22. package/dist/index.d.ts +8 -4
  23. package/dist/index.js +5 -5
  24. package/dist/operations/index.cjs +51 -51
  25. package/dist/operations/index.d.cts +9 -4
  26. package/dist/operations/index.d.ts +9 -4
  27. package/dist/operations/index.js +2 -2
  28. package/dist/pool.cjs +12 -12
  29. package/dist/pool.d.cts +1 -1
  30. package/dist/pool.d.ts +1 -1
  31. package/dist/pool.js +4 -4
  32. package/dist/resources/index.cjs +27 -27
  33. package/dist/resources/index.d.cts +2 -2
  34. package/dist/resources/index.d.ts +2 -2
  35. package/dist/resources/index.js +3 -3
  36. package/dist/types/index.d.cts +1 -1
  37. package/dist/types/index.d.ts +1 -1
  38. package/docs/API.md +39 -2
  39. package/examples/mcp/manifest.ts +1 -1
  40. package/examples/mcp/tools-mode.ts +15 -6
  41. package/examples/mcp/tools-read.ts +8 -2
  42. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,7 +1,8 @@
1
- import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-BfGOllfY.cjs';
2
- export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-BfGOllfY.cjs';
1
+ import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-opnSlg90.cjs';
2
+ export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-opnSlg90.cjs';
3
+ import { I as InventoryItemGuardFacts } from './index-B0p5O-2e.cjs';
4
+ export { A as AuditEvent, E as ExpectedInventoryFacts, Q as QueryParams } from './index-B0p5O-2e.cjs';
3
5
  export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.cjs';
4
- export { A as AuditEvent, Q as QueryParams } from './index-Dy92Xbpv.cjs';
5
6
 
6
7
  declare class AutotaskNetworkError extends AutotaskError {
7
8
  constructor(message: string, options?: AutotaskErrorOptions);
@@ -294,6 +295,9 @@ declare class OperationNotSupportedError extends AutotaskConfigError {
294
295
  constructor(key: string, op: string);
295
296
  }
296
297
 
298
+ /** Canonical own-field projection shared by approval callers and the final SDK guard. */
299
+ declare function inventoryItemGuardFacts(value: unknown): InventoryItemGuardFacts;
300
+
297
301
  /**
298
302
  * Credential VALUE shape checks — the intake guard for the 2026-10-07 incident class.
299
303
  *
@@ -631,5 +635,5 @@ declare function classifyWriteOutcome(error: unknown): WriteOutcome;
631
635
 
632
636
  type TicketChangeStatusOutcome = TicketChangeStatusResult | TicketChangeStatusNoChange;
633
637
 
634
- export { AutotaskAbortError, AutotaskClient, AutotaskConfigError, AutotaskError, AutotaskErrorOptions, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, ConfirmationRequiredError, ConflictError, DOCTOR_CHECK_TIMEOUT_MS, DeleteBoundaryError, EmptyResponseError, HostPolicyDeniedError, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, ScopeRequiredError, StaleObjectError, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, classifyWriteOutcome, credentialShapeProblem, credentialValueSummary, doctorConfigStep, errorFromStatus, formatVendorDetail, isDeterministicVendor500, loadAutotaskCredentialEnvFile, loadAutotaskCredentialsFromEnv, mergeDetails, parseVendorErrors, runDoctor };
638
+ export { AutotaskAbortError, AutotaskClient, AutotaskConfigError, AutotaskError, AutotaskErrorOptions, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, ConfirmationRequiredError, ConflictError, DOCTOR_CHECK_TIMEOUT_MS, DeleteBoundaryError, EmptyResponseError, HostPolicyDeniedError, InventoryItemGuardFacts, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, ScopeRequiredError, StaleObjectError, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, classifyWriteOutcome, credentialShapeProblem, credentialValueSummary, doctorConfigStep, errorFromStatus, formatVendorDetail, inventoryItemGuardFacts, isDeterministicVendor500, loadAutotaskCredentialEnvFile, loadAutotaskCredentialsFromEnv, mergeDetails, parseVendorErrors, runDoctor };
635
639
  export type { CredentialShapeExpectation, TicketChangeStatusOutcome, VendorFieldError };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-C3jXvpXZ.js';
2
- export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-C3jXvpXZ.js';
1
+ import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-it9IqLsM.js';
2
+ export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-it9IqLsM.js';
3
+ import { I as InventoryItemGuardFacts } from './index-B0p5O-2e.js';
4
+ export { A as AuditEvent, E as ExpectedInventoryFacts, Q as QueryParams } from './index-B0p5O-2e.js';
3
5
  export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.js';
4
- export { A as AuditEvent, Q as QueryParams } from './index-Dy92Xbpv.js';
5
6
 
6
7
  declare class AutotaskNetworkError extends AutotaskError {
7
8
  constructor(message: string, options?: AutotaskErrorOptions);
@@ -294,6 +295,9 @@ declare class OperationNotSupportedError extends AutotaskConfigError {
294
295
  constructor(key: string, op: string);
295
296
  }
296
297
 
298
+ /** Canonical own-field projection shared by approval callers and the final SDK guard. */
299
+ declare function inventoryItemGuardFacts(value: unknown): InventoryItemGuardFacts;
300
+
297
301
  /**
298
302
  * Credential VALUE shape checks — the intake guard for the 2026-10-07 incident class.
299
303
  *
@@ -631,5 +635,5 @@ declare function classifyWriteOutcome(error: unknown): WriteOutcome;
631
635
 
632
636
  type TicketChangeStatusOutcome = TicketChangeStatusResult | TicketChangeStatusNoChange;
633
637
 
634
- export { AutotaskAbortError, AutotaskClient, AutotaskConfigError, AutotaskError, AutotaskErrorOptions, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, ConfirmationRequiredError, ConflictError, DOCTOR_CHECK_TIMEOUT_MS, DeleteBoundaryError, EmptyResponseError, HostPolicyDeniedError, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, ScopeRequiredError, StaleObjectError, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, classifyWriteOutcome, credentialShapeProblem, credentialValueSummary, doctorConfigStep, errorFromStatus, formatVendorDetail, isDeterministicVendor500, loadAutotaskCredentialEnvFile, loadAutotaskCredentialsFromEnv, mergeDetails, parseVendorErrors, runDoctor };
638
+ export { AutotaskAbortError, AutotaskClient, AutotaskConfigError, AutotaskError, AutotaskErrorOptions, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, ConfirmationRequiredError, ConflictError, DOCTOR_CHECK_TIMEOUT_MS, DeleteBoundaryError, EmptyResponseError, HostPolicyDeniedError, InventoryItemGuardFacts, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, ScopeRequiredError, StaleObjectError, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, classifyWriteOutcome, credentialShapeProblem, credentialValueSummary, doctorConfigStep, errorFromStatus, formatVendorDetail, inventoryItemGuardFacts, isDeterministicVendor500, loadAutotaskCredentialEnvFile, loadAutotaskCredentialsFromEnv, mergeDetails, parseVendorErrors, runDoctor };
635
639
  export type { CredentialShapeExpectation, TicketChangeStatusOutcome, VendorFieldError };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- export { AutotaskClient } from './chunk-Y2KXGSWM.js';
1
+ export { AutotaskClient } from './chunk-C7KZ7PB3.js';
2
2
  import './chunk-YL6HXU33.js';
3
- export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-WAHRZDV4.js';
4
- import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, MaintenanceError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-2GP7W6QB.js';
5
- export { AutotaskAbortError, AutotaskConfigError, AutotaskError, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, CompaniesResource, ConfirmationRequiredError, ConflictError, ContractsResource, DeleteBoundaryError, EmptyResponseError, GenericResource, HostPolicyDeniedError, InvoicesResource, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, SIMPLE_RESOURCES, ScopeRequiredError, StaleObjectError, TimeEntriesResource, TtlCache, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, ZONES, credentialShapeProblem, credentialValueSummary, errorFromStatus, formatVendorDetail, isAutotaskError, isDeterministicVendor500, mergeDetails, nextActionFor, parseVendorErrors } from './chunk-2GP7W6QB.js';
6
- import './chunk-43ADHLZJ.js';
3
+ export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-QVDXIXY4.js';
4
+ import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, MaintenanceError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-4BICEQ4S.js';
5
+ export { AutotaskAbortError, AutotaskConfigError, AutotaskError, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, CompaniesResource, ConfirmationRequiredError, ConflictError, ContractsResource, DeleteBoundaryError, EmptyResponseError, GenericResource, HostPolicyDeniedError, InvoicesResource, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, SIMPLE_RESOURCES, ScopeRequiredError, StaleObjectError, TimeEntriesResource, TtlCache, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, ZONES, credentialShapeProblem, credentialValueSummary, errorFromStatus, formatVendorDetail, inventoryItemGuardFacts, isAutotaskError, isDeterministicVendor500, mergeDetails, nextActionFor, parseVendorErrors } from './chunk-4BICEQ4S.js';
6
+ import './chunk-2MC3LDZU.js';
7
7
  export { NoopLogger, REDACTED } from './chunk-X6VWD6WW.js';
8
8
  import { existsSync, readFileSync } from 'fs';
9
9
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkRXXITZH4_cjs = require('../chunk-RXXITZH4.cjs');
4
- require('../chunk-KRYDLTY3.cjs');
3
+ var chunkLYAHXYZR_cjs = require('../chunk-LYAHXYZR.cjs');
4
+ require('../chunk-QXJQIZCT.cjs');
5
5
  var chunkCM5O672I_cjs = require('../chunk-CM5O672I.cjs');
6
6
 
7
7
  // src/operations/describeWrite.ts
@@ -78,198 +78,198 @@ function describeWrite(dry, record, opts) {
78
78
 
79
79
  Object.defineProperty(exports, "AGGREGATE_DATE_BUCKETS", {
80
80
  enumerable: true,
81
- get: function () { return chunkRXXITZH4_cjs.AGGREGATE_DATE_BUCKETS; }
81
+ get: function () { return chunkLYAHXYZR_cjs.AGGREGATE_DATE_BUCKETS; }
82
82
  });
83
83
  Object.defineProperty(exports, "AGGREGATE_DEFAULT_LIMIT", {
84
84
  enumerable: true,
85
- get: function () { return chunkRXXITZH4_cjs.AGGREGATE_DEFAULT_LIMIT; }
85
+ get: function () { return chunkLYAHXYZR_cjs.AGGREGATE_DEFAULT_LIMIT; }
86
86
  });
87
87
  Object.defineProperty(exports, "AGGREGATE_DEFAULT_TOP", {
88
88
  enumerable: true,
89
- get: function () { return chunkRXXITZH4_cjs.AGGREGATE_DEFAULT_TOP; }
89
+ get: function () { return chunkLYAHXYZR_cjs.AGGREGATE_DEFAULT_TOP; }
90
90
  });
91
91
  Object.defineProperty(exports, "AGGREGATE_TOP_MAX", {
92
92
  enumerable: true,
93
- get: function () { return chunkRXXITZH4_cjs.AGGREGATE_TOP_MAX; }
93
+ get: function () { return chunkLYAHXYZR_cjs.AGGREGATE_TOP_MAX; }
94
94
  });
95
95
  Object.defineProperty(exports, "CREATE_BLOCKER_KINDS", {
96
96
  enumerable: true,
97
- get: function () { return chunkRXXITZH4_cjs.CREATE_BLOCKER_KINDS; }
97
+ get: function () { return chunkLYAHXYZR_cjs.CREATE_BLOCKER_KINDS; }
98
98
  });
99
99
  Object.defineProperty(exports, "EXPAND_RESOURCE_NAMES_MAX_IDS", {
100
100
  enumerable: true,
101
- get: function () { return chunkRXXITZH4_cjs.EXPAND_RESOURCE_NAMES_MAX_IDS; }
101
+ get: function () { return chunkLYAHXYZR_cjs.EXPAND_RESOURCE_NAMES_MAX_IDS; }
102
102
  });
103
103
  Object.defineProperty(exports, "FETCH_BY_IDS_CHUNK_SIZE", {
104
104
  enumerable: true,
105
- get: function () { return chunkRXXITZH4_cjs.FETCH_BY_IDS_CHUNK_SIZE; }
105
+ get: function () { return chunkLYAHXYZR_cjs.FETCH_BY_IDS_CHUNK_SIZE; }
106
106
  });
107
107
  Object.defineProperty(exports, "FETCH_BY_IDS_MAX_ITEMS", {
108
108
  enumerable: true,
109
- get: function () { return chunkRXXITZH4_cjs.FETCH_BY_IDS_MAX_ITEMS; }
109
+ get: function () { return chunkLYAHXYZR_cjs.FETCH_BY_IDS_MAX_ITEMS; }
110
110
  });
111
111
  Object.defineProperty(exports, "FIELD_CACHE_KINDS", {
112
112
  enumerable: true,
113
- get: function () { return chunkRXXITZH4_cjs.FIELD_CACHE_KINDS; }
113
+ get: function () { return chunkLYAHXYZR_cjs.FIELD_CACHE_KINDS; }
114
114
  });
115
115
  Object.defineProperty(exports, "FIELD_CATALOG_HONESTY_NOTE", {
116
116
  enumerable: true,
117
- get: function () { return chunkRXXITZH4_cjs.FIELD_CATALOG_HONESTY_NOTE; }
117
+ get: function () { return chunkLYAHXYZR_cjs.FIELD_CATALOG_HONESTY_NOTE; }
118
118
  });
119
119
  Object.defineProperty(exports, "INVOKE_OPTION_KEYS", {
120
120
  enumerable: true,
121
- get: function () { return chunkRXXITZH4_cjs.INVOKE_OPTION_KEYS; }
121
+ get: function () { return chunkLYAHXYZR_cjs.INVOKE_OPTION_KEYS; }
122
122
  });
123
123
  Object.defineProperty(exports, "MAX_FIELD_CATALOG_WIRE", {
124
124
  enumerable: true,
125
- get: function () { return chunkRXXITZH4_cjs.MAX_FIELD_CATALOG_WIRE; }
125
+ get: function () { return chunkLYAHXYZR_cjs.MAX_FIELD_CATALOG_WIRE; }
126
126
  });
127
127
  Object.defineProperty(exports, "MIN_FIELD_CATALOG_MAX_BYTES", {
128
128
  enumerable: true,
129
- get: function () { return chunkRXXITZH4_cjs.MIN_FIELD_CATALOG_MAX_BYTES; }
129
+ get: function () { return chunkLYAHXYZR_cjs.MIN_FIELD_CATALOG_MAX_BYTES; }
130
130
  });
131
131
  Object.defineProperty(exports, "PARAMS_BAG_KEYS", {
132
132
  enumerable: true,
133
- get: function () { return chunkRXXITZH4_cjs.PARAMS_BAG_KEYS; }
133
+ get: function () { return chunkLYAHXYZR_cjs.PARAMS_BAG_KEYS; }
134
134
  });
135
135
  Object.defineProperty(exports, "PICKLIST_VALUE_NOT_SERVED_NOTE", {
136
136
  enumerable: true,
137
- get: function () { return chunkRXXITZH4_cjs.PICKLIST_VALUE_NOT_SERVED_NOTE; }
137
+ get: function () { return chunkLYAHXYZR_cjs.PICKLIST_VALUE_NOT_SERVED_NOTE; }
138
138
  });
139
139
  Object.defineProperty(exports, "UI_LINK_ENTITIES", {
140
140
  enumerable: true,
141
- get: function () { return chunkRXXITZH4_cjs.UI_LINK_ENTITIES; }
141
+ get: function () { return chunkLYAHXYZR_cjs.UI_LINK_ENTITIES; }
142
142
  });
143
143
  Object.defineProperty(exports, "WORKFLOW_RESOURCES", {
144
144
  enumerable: true,
145
- get: function () { return chunkRXXITZH4_cjs.WORKFLOW_RESOURCES; }
145
+ get: function () { return chunkLYAHXYZR_cjs.WORKFLOW_RESOURCES; }
146
146
  });
147
147
  Object.defineProperty(exports, "aggregate", {
148
148
  enumerable: true,
149
- get: function () { return chunkRXXITZH4_cjs.aggregate; }
149
+ get: function () { return chunkLYAHXYZR_cjs.aggregate; }
150
150
  });
151
151
  Object.defineProperty(exports, "arAging", {
152
152
  enumerable: true,
153
- get: function () { return chunkRXXITZH4_cjs.arAging; }
153
+ get: function () { return chunkLYAHXYZR_cjs.arAging; }
154
154
  });
155
155
  Object.defineProperty(exports, "buildUiLink", {
156
156
  enumerable: true,
157
- get: function () { return chunkRXXITZH4_cjs.buildUiLink; }
157
+ get: function () { return chunkLYAHXYZR_cjs.buildUiLink; }
158
158
  });
159
159
  Object.defineProperty(exports, "createGuidance", {
160
160
  enumerable: true,
161
- get: function () { return chunkRXXITZH4_cjs.createGuidance; }
161
+ get: function () { return chunkLYAHXYZR_cjs.createGuidance; }
162
162
  });
163
163
  Object.defineProperty(exports, "dateBucketLabel", {
164
164
  enumerable: true,
165
- get: function () { return chunkRXXITZH4_cjs.dateBucketLabel; }
165
+ get: function () { return chunkLYAHXYZR_cjs.dateBucketLabel; }
166
166
  });
167
167
  Object.defineProperty(exports, "effectiveRequiredFields", {
168
168
  enumerable: true,
169
- get: function () { return chunkRXXITZH4_cjs.effectiveRequiredFields; }
169
+ get: function () { return chunkLYAHXYZR_cjs.effectiveRequiredFields; }
170
170
  });
171
171
  Object.defineProperty(exports, "expandResourceNames", {
172
172
  enumerable: true,
173
- get: function () { return chunkRXXITZH4_cjs.expandResourceNames; }
173
+ get: function () { return chunkLYAHXYZR_cjs.expandResourceNames; }
174
174
  });
175
175
  Object.defineProperty(exports, "fetchByIds", {
176
176
  enumerable: true,
177
- get: function () { return chunkRXXITZH4_cjs.fetchByIds; }
177
+ get: function () { return chunkLYAHXYZR_cjs.fetchByIds; }
178
178
  });
179
179
  Object.defineProperty(exports, "fieldCatalog", {
180
180
  enumerable: true,
181
- get: function () { return chunkRXXITZH4_cjs.fieldCatalog; }
181
+ get: function () { return chunkLYAHXYZR_cjs.fieldCatalog; }
182
182
  });
183
183
  Object.defineProperty(exports, "foldFlattenedOpts", {
184
184
  enumerable: true,
185
- get: function () { return chunkRXXITZH4_cjs.foldFlattenedOpts; }
185
+ get: function () { return chunkLYAHXYZR_cjs.foldFlattenedOpts; }
186
186
  });
187
187
  Object.defineProperty(exports, "invoke", {
188
188
  enumerable: true,
189
- get: function () { return chunkRXXITZH4_cjs.invoke; }
189
+ get: function () { return chunkLYAHXYZR_cjs.invoke; }
190
190
  });
191
191
  Object.defineProperty(exports, "invokeDelete", {
192
192
  enumerable: true,
193
- get: function () { return chunkRXXITZH4_cjs.invokeDelete; }
193
+ get: function () { return chunkLYAHXYZR_cjs.invokeDelete; }
194
194
  });
195
195
  Object.defineProperty(exports, "invokeRead", {
196
196
  enumerable: true,
197
- get: function () { return chunkRXXITZH4_cjs.invokeRead; }
197
+ get: function () { return chunkLYAHXYZR_cjs.invokeRead; }
198
198
  });
199
199
  Object.defineProperty(exports, "invokeReadPages", {
200
200
  enumerable: true,
201
- get: function () { return chunkRXXITZH4_cjs.invokeReadPages; }
201
+ get: function () { return chunkLYAHXYZR_cjs.invokeReadPages; }
202
202
  });
203
203
  Object.defineProperty(exports, "invokeWrite", {
204
204
  enumerable: true,
205
- get: function () { return chunkRXXITZH4_cjs.invokeWrite; }
205
+ get: function () { return chunkLYAHXYZR_cjs.invokeWrite; }
206
206
  });
207
207
  Object.defineProperty(exports, "needsConfirmation", {
208
208
  enumerable: true,
209
- get: function () { return chunkRXXITZH4_cjs.needsConfirmation; }
209
+ get: function () { return chunkLYAHXYZR_cjs.needsConfirmation; }
210
210
  });
211
211
  Object.defineProperty(exports, "nonChargeableWork", {
212
212
  enumerable: true,
213
- get: function () { return chunkRXXITZH4_cjs.nonChargeableWork; }
213
+ get: function () { return chunkLYAHXYZR_cjs.nonChargeableWork; }
214
214
  });
215
215
  Object.defineProperty(exports, "notPersistedFields", {
216
216
  enumerable: true,
217
- get: function () { return chunkRXXITZH4_cjs.notPersistedFields; }
217
+ get: function () { return chunkLYAHXYZR_cjs.notPersistedFields; }
218
218
  });
219
219
  Object.defineProperty(exports, "portfolioMargin", {
220
220
  enumerable: true,
221
- get: function () { return chunkRXXITZH4_cjs.portfolioMargin; }
221
+ get: function () { return chunkLYAHXYZR_cjs.portfolioMargin; }
222
222
  });
223
223
  Object.defineProperty(exports, "recurringRevenue", {
224
224
  enumerable: true,
225
- get: function () { return chunkRXXITZH4_cjs.recurringRevenue; }
225
+ get: function () { return chunkLYAHXYZR_cjs.recurringRevenue; }
226
226
  });
227
227
  Object.defineProperty(exports, "relationshipMap", {
228
228
  enumerable: true,
229
- get: function () { return chunkRXXITZH4_cjs.relationshipMap; }
229
+ get: function () { return chunkLYAHXYZR_cjs.relationshipMap; }
230
230
  });
231
231
  Object.defineProperty(exports, "resolveAny", {
232
232
  enumerable: true,
233
- get: function () { return chunkRXXITZH4_cjs.resolveAny; }
233
+ get: function () { return chunkLYAHXYZR_cjs.resolveAny; }
234
234
  });
235
235
  Object.defineProperty(exports, "resolveStaff", {
236
236
  enumerable: true,
237
- get: function () { return chunkRXXITZH4_cjs.resolveStaff; }
237
+ get: function () { return chunkLYAHXYZR_cjs.resolveStaff; }
238
238
  });
239
239
  Object.defineProperty(exports, "revenueRollup", {
240
240
  enumerable: true,
241
- get: function () { return chunkRXXITZH4_cjs.revenueRollup; }
241
+ get: function () { return chunkLYAHXYZR_cjs.revenueRollup; }
242
242
  });
243
243
  Object.defineProperty(exports, "sanitiseResult", {
244
244
  enumerable: true,
245
- get: function () { return chunkRXXITZH4_cjs.sanitiseResult; }
245
+ get: function () { return chunkLYAHXYZR_cjs.sanitiseResult; }
246
246
  });
247
247
  Object.defineProperty(exports, "searchAcrossResources", {
248
248
  enumerable: true,
249
- get: function () { return chunkRXXITZH4_cjs.searchAcrossResources; }
249
+ get: function () { return chunkLYAHXYZR_cjs.searchAcrossResources; }
250
250
  });
251
251
  Object.defineProperty(exports, "uiLink", {
252
252
  enumerable: true,
253
- get: function () { return chunkRXXITZH4_cjs.uiLink; }
253
+ get: function () { return chunkLYAHXYZR_cjs.uiLink; }
254
254
  });
255
255
  Object.defineProperty(exports, "unknownKeysRefusal", {
256
256
  enumerable: true,
257
- get: function () { return chunkRXXITZH4_cjs.unknownKeysRefusal; }
257
+ get: function () { return chunkLYAHXYZR_cjs.unknownKeysRefusal; }
258
258
  });
259
259
  Object.defineProperty(exports, "validateDispatchArgs", {
260
260
  enumerable: true,
261
- get: function () { return chunkRXXITZH4_cjs.validateDispatchArgs; }
261
+ get: function () { return chunkLYAHXYZR_cjs.validateDispatchArgs; }
262
262
  });
263
263
  Object.defineProperty(exports, "validateInvokeOptions", {
264
264
  enumerable: true,
265
- get: function () { return chunkRXXITZH4_cjs.validateInvokeOptions; }
265
+ get: function () { return chunkLYAHXYZR_cjs.validateInvokeOptions; }
266
266
  });
267
267
  Object.defineProperty(exports, "validateParamsBag", {
268
268
  enumerable: true,
269
- get: function () { return chunkRXXITZH4_cjs.validateParamsBag; }
269
+ get: function () { return chunkLYAHXYZR_cjs.validateParamsBag; }
270
270
  });
271
271
  Object.defineProperty(exports, "wipHours", {
272
272
  enumerable: true,
273
- get: function () { return chunkRXXITZH4_cjs.wipHours; }
273
+ get: function () { return chunkLYAHXYZR_cjs.wipHours; }
274
274
  });
275
275
  exports.describeWrite = describeWrite;
@@ -1,8 +1,9 @@
1
- import { ae as RowNamesSummary, af as BlindSurfaceInfo, ag as RelationshipResource, ah as CreateGuidanceValueRequirement, ai as CreateGuidanceRow, aj as CreateBlockerKind, ak as CreateGuidanceReport, al as FieldCacheKind, am as BoundedQueryResult } from '../index-BfGOllfY.cjs';
1
+ import { ae as RowNamesSummary, af as BlindSurfaceInfo, ag as RelationshipResource, ah as CreateGuidanceValueRequirement, ai as CreateGuidanceRow, aj as CreateBlockerKind, ak as CreateGuidanceReport, al as FieldCacheKind, am as BoundedQueryResult } from '../index-opnSlg90.cjs';
2
2
  import { AutotaskClient, ProfitabilityLabourCostMethod, ZoneName, AutotaskConfigError } from '../index.cjs';
3
- export { an as FIELD_CACHE_KINDS } from '../index-BfGOllfY.cjs';
4
- import { I as Identifier, E as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-Dy92Xbpv.cjs';
5
- export { a as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-Dy92Xbpv.cjs';
3
+ export { an as FIELD_CACHE_KINDS } from '../index-opnSlg90.cjs';
4
+ import { a as Identifier, b as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-B0p5O-2e.cjs';
5
+ import { ExpectedInventoryFacts } from '../index.cjs';
6
+ export { c as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-B0p5O-2e.cjs';
6
7
  import { CapabilityRecord } from '../capabilities.cjs';
7
8
  import '../logger-B1gYmFre.cjs';
8
9
 
@@ -124,6 +125,8 @@ interface ResolveAnyResult {
124
125
  * payload.
125
126
  */
126
127
  interface InvokeOptions {
128
+ /** Only inventory_items.create/update; binds preview/apply guards to approved facts, not vendor CAS. */
129
+ expectedInventoryFacts?: ExpectedInventoryFacts;
127
130
  /**
128
131
  * Writes are DRY-RUN-FIRST: omit this (or pass `true`) and the operation
129
132
  * runs on the SDK's dry-run path — the real mutating request is never
@@ -259,6 +262,8 @@ interface AggregateGroup {
259
262
  /** The aggregate result (the mode discards the other mode's fields). */
260
263
  interface AggregateResult {
261
264
  mode: 'count' | 'group' | 'sum';
265
+ /** The source of InventoryItems groups, used for resource-specific text projection. */
266
+ resource?: 'inventory_items';
262
267
  /** count mode: the count value (a plain number; 0 + `blind` on a pinned blind shape). */
263
268
  count?: number;
264
269
  /** group/sum mode: the top-N folded groups (the returned rows ONLY when `hasMore`). */
@@ -1,8 +1,9 @@
1
- import { ae as RowNamesSummary, af as BlindSurfaceInfo, ag as RelationshipResource, ah as CreateGuidanceValueRequirement, ai as CreateGuidanceRow, aj as CreateBlockerKind, ak as CreateGuidanceReport, al as FieldCacheKind, am as BoundedQueryResult } from '../index-C3jXvpXZ.js';
1
+ import { ae as RowNamesSummary, af as BlindSurfaceInfo, ag as RelationshipResource, ah as CreateGuidanceValueRequirement, ai as CreateGuidanceRow, aj as CreateBlockerKind, ak as CreateGuidanceReport, al as FieldCacheKind, am as BoundedQueryResult } from '../index-it9IqLsM.js';
2
2
  import { AutotaskClient, ProfitabilityLabourCostMethod, ZoneName, AutotaskConfigError } from '../index.js';
3
- export { an as FIELD_CACHE_KINDS } from '../index-C3jXvpXZ.js';
4
- import { I as Identifier, E as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-Dy92Xbpv.js';
5
- export { a as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-Dy92Xbpv.js';
3
+ export { an as FIELD_CACHE_KINDS } from '../index-it9IqLsM.js';
4
+ import { a as Identifier, b as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-B0p5O-2e.js';
5
+ import { ExpectedInventoryFacts } from '../index.js';
6
+ export { c as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-B0p5O-2e.js';
6
7
  import { CapabilityRecord } from '../capabilities.js';
7
8
  import '../logger-B1gYmFre.js';
8
9
 
@@ -124,6 +125,8 @@ interface ResolveAnyResult {
124
125
  * payload.
125
126
  */
126
127
  interface InvokeOptions {
128
+ /** Only inventory_items.create/update; binds preview/apply guards to approved facts, not vendor CAS. */
129
+ expectedInventoryFacts?: ExpectedInventoryFacts;
127
130
  /**
128
131
  * Writes are DRY-RUN-FIRST: omit this (or pass `true`) and the operation
129
132
  * runs on the SDK's dry-run path — the real mutating request is never
@@ -259,6 +262,8 @@ interface AggregateGroup {
259
262
  /** The aggregate result (the mode discards the other mode's fields). */
260
263
  interface AggregateResult {
261
264
  mode: 'count' | 'group' | 'sum';
265
+ /** The source of InventoryItems groups, used for resource-specific text projection. */
266
+ resource?: 'inventory_items';
262
267
  /** count mode: the count value (a plain number; 0 + `blind` on a pinned blind shape). */
263
268
  count?: number;
264
269
  /** group/sum mode: the top-N folded groups (the returned rows ONLY when `hasMore`). */
@@ -1,5 +1,5 @@
1
- export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, CREATE_BLOCKER_KINDS, EXPAND_RESOURCE_NAMES_MAX_IDS, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FIELD_CACHE_KINDS, FIELD_CATALOG_HONESTY_NOTE, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, PICKLIST_VALUE_NOT_SERVED_NOTE, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, effectiveRequiredFields, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, invoke, invokeDelete, invokeRead, invokeReadPages, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours } from '../chunk-2GP7W6QB.js';
2
- import '../chunk-43ADHLZJ.js';
1
+ export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, CREATE_BLOCKER_KINDS, EXPAND_RESOURCE_NAMES_MAX_IDS, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FIELD_CACHE_KINDS, FIELD_CATALOG_HONESTY_NOTE, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, PICKLIST_VALUE_NOT_SERVED_NOTE, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, effectiveRequiredFields, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, invoke, invokeDelete, invokeRead, invokeReadPages, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours } from '../chunk-4BICEQ4S.js';
2
+ import '../chunk-2MC3LDZU.js';
3
3
  import { REDACTED } from '../chunk-X6VWD6WW.js';
4
4
 
5
5
  // src/operations/describeWrite.ts
package/dist/pool.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkYFC5VAKK_cjs = require('./chunk-YFC5VAKK.cjs');
4
- require('./chunk-5PUHGPKG.cjs');
5
- var chunkRXXITZH4_cjs = require('./chunk-RXXITZH4.cjs');
6
- require('./chunk-KRYDLTY3.cjs');
3
+ var chunkQC45KFQQ_cjs = require('./chunk-QC45KFQQ.cjs');
4
+ require('./chunk-JY6BQUPO.cjs');
5
+ var chunkLYAHXYZR_cjs = require('./chunk-LYAHXYZR.cjs');
6
+ require('./chunk-QXJQIZCT.cjs');
7
7
  require('./chunk-CM5O672I.cjs');
8
8
  var crypto = require('crypto');
9
9
 
10
10
  function createClientPool(options = {}) {
11
11
  const maxSize = options.maxSize ?? 128;
12
12
  if (!Number.isInteger(maxSize) || maxSize < 1) {
13
- throw new chunkRXXITZH4_cjs.AutotaskConfigError(
13
+ throw new chunkLYAHXYZR_cjs.AutotaskConfigError(
14
14
  `ClientPool maxSize must be a positive integer (got ${String(options.maxSize)})`
15
15
  );
16
16
  }
@@ -25,13 +25,13 @@ function createClientPool(options = {}) {
25
25
  readCaches.set(key, existing);
26
26
  return existing;
27
27
  }
28
- const created = chunkRXXITZH4_cjs.buildReadCache(config);
28
+ const created = chunkLYAHXYZR_cjs.buildReadCache(config);
29
29
  if (created === void 0) return void 0;
30
30
  readCaches.set(key, created);
31
31
  while (readCaches.size > maxSize) {
32
32
  const oldest = [...readCaches.keys()].find((candidate) => candidate !== key && !entries.has(candidate));
33
33
  if (oldest === void 0) break;
34
- chunkRXXITZH4_cjs.suspendCompanyIndex(readCaches.get(oldest));
34
+ chunkLYAHXYZR_cjs.suspendCompanyIndex(readCaches.get(oldest));
35
35
  readCaches.delete(oldest);
36
36
  }
37
37
  return created;
@@ -43,7 +43,7 @@ function createClientPool(options = {}) {
43
43
  return { ...config, cache };
44
44
  }
45
45
  function keyFor(config) {
46
- const resolved = chunkRXXITZH4_cjs.resolveCredentials(config);
46
+ const resolved = chunkLYAHXYZR_cjs.resolveCredentials(config);
47
47
  const tuple = [
48
48
  resolved.userName,
49
49
  resolved.apiIntegrationCode,
@@ -71,18 +71,18 @@ function createClientPool(options = {}) {
71
71
  const oldest = entries.keys().next().value;
72
72
  if (oldest !== void 0) {
73
73
  const store = entries.get(oldest)?.http.readCache;
74
- if (store !== void 0) chunkRXXITZH4_cjs.suspendCompanyIndex(store);
74
+ if (store !== void 0) chunkLYAHXYZR_cjs.suspendCompanyIndex(store);
75
75
  entries.delete(oldest);
76
76
  }
77
77
  }
78
- const client = new chunkYFC5VAKK_cjs.AutotaskClient(withSharedCache(config, sharedCacheFor(key, config)));
78
+ const client = new chunkQC45KFQQ_cjs.AutotaskClient(withSharedCache(config, sharedCacheFor(key, config)));
79
79
  entries.set(key, client);
80
80
  return client;
81
81
  },
82
82
  delete(config) {
83
83
  const key = keyFor(config);
84
84
  const store = entries.get(key)?.http.readCache ?? readCaches.get(key);
85
- if (store !== void 0) chunkRXXITZH4_cjs.suspendCompanyIndex(store);
85
+ if (store !== void 0) chunkLYAHXYZR_cjs.suspendCompanyIndex(store);
86
86
  return entries.delete(key);
87
87
  },
88
88
  clear() {
@@ -90,7 +90,7 @@ function createClientPool(options = {}) {
90
90
  for (const client of entries.values()) {
91
91
  if (client.http.readCache !== void 0) stores.add(client.http.readCache);
92
92
  }
93
- for (const store of stores) chunkRXXITZH4_cjs.suspendCompanyIndex(store);
93
+ for (const store of stores) chunkLYAHXYZR_cjs.suspendCompanyIndex(store);
94
94
  entries.clear();
95
95
  readCaches.clear();
96
96
  },
package/dist/pool.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AutotaskConfig, AutotaskClient } from './index.cjs';
2
- import './index-Dy92Xbpv.cjs';
2
+ import './index-B0p5O-2e.cjs';
3
3
  import './logger-B1gYmFre.cjs';
4
4
 
5
5
  interface ClientPoolOptions {
package/dist/pool.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AutotaskConfig, AutotaskClient } from './index.js';
2
- import './index-Dy92Xbpv.js';
2
+ import './index-B0p5O-2e.js';
3
3
  import './logger-B1gYmFre.js';
4
4
 
5
5
  interface ClientPoolOptions {
package/dist/pool.js CHANGED
@@ -1,7 +1,7 @@
1
- import { AutotaskClient } from './chunk-Y2KXGSWM.js';
2
- import './chunk-WAHRZDV4.js';
3
- import { AutotaskConfigError, suspendCompanyIndex, buildReadCache, resolveCredentials } from './chunk-2GP7W6QB.js';
4
- import './chunk-43ADHLZJ.js';
1
+ import { AutotaskClient } from './chunk-C7KZ7PB3.js';
2
+ import './chunk-QVDXIXY4.js';
3
+ import { AutotaskConfigError, suspendCompanyIndex, buildReadCache, resolveCredentials } from './chunk-4BICEQ4S.js';
4
+ import './chunk-2MC3LDZU.js';
5
5
  import './chunk-X6VWD6WW.js';
6
6
  import { createHash } from 'crypto';
7
7