node-autotask 0.69.0 → 0.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { AutotaskClient } from './chunk-2BB7OASJ.js';
1
+ export { AutotaskClient } from './chunk-TYUTIZWB.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-AH6WAGPS.js';
4
- import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-QDBJCGQD.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-QDBJCGQD.js';
3
+ export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-MN5VLBCI.js';
4
+ import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-3RANR2RY.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-3RANR2RY.js';
6
6
  import './chunk-SCFB5MF3.js';
7
7
  export { NoopLogger, REDACTED } from './chunk-7NKB4UXV.js';
8
8
  import { existsSync, readFileSync } from 'fs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJLBSUZ5B_cjs = require('../chunk-JLBSUZ5B.cjs');
3
+ var chunkYRRTE2NF_cjs = require('../chunk-YRRTE2NF.cjs');
4
4
  require('../chunk-KAZE4WC7.cjs');
5
5
  var chunkBD4AUGCJ_cjs = require('../chunk-BD4AUGCJ.cjs');
6
6
 
@@ -78,194 +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 chunkJLBSUZ5B_cjs.AGGREGATE_DATE_BUCKETS; }
81
+ get: function () { return chunkYRRTE2NF_cjs.AGGREGATE_DATE_BUCKETS; }
82
82
  });
83
83
  Object.defineProperty(exports, "AGGREGATE_DEFAULT_LIMIT", {
84
84
  enumerable: true,
85
- get: function () { return chunkJLBSUZ5B_cjs.AGGREGATE_DEFAULT_LIMIT; }
85
+ get: function () { return chunkYRRTE2NF_cjs.AGGREGATE_DEFAULT_LIMIT; }
86
86
  });
87
87
  Object.defineProperty(exports, "AGGREGATE_DEFAULT_TOP", {
88
88
  enumerable: true,
89
- get: function () { return chunkJLBSUZ5B_cjs.AGGREGATE_DEFAULT_TOP; }
89
+ get: function () { return chunkYRRTE2NF_cjs.AGGREGATE_DEFAULT_TOP; }
90
90
  });
91
91
  Object.defineProperty(exports, "AGGREGATE_TOP_MAX", {
92
92
  enumerable: true,
93
- get: function () { return chunkJLBSUZ5B_cjs.AGGREGATE_TOP_MAX; }
93
+ get: function () { return chunkYRRTE2NF_cjs.AGGREGATE_TOP_MAX; }
94
94
  });
95
95
  Object.defineProperty(exports, "CREATE_BLOCKER_KINDS", {
96
96
  enumerable: true,
97
- get: function () { return chunkJLBSUZ5B_cjs.CREATE_BLOCKER_KINDS; }
97
+ get: function () { return chunkYRRTE2NF_cjs.CREATE_BLOCKER_KINDS; }
98
98
  });
99
99
  Object.defineProperty(exports, "EXPAND_RESOURCE_NAMES_MAX_IDS", {
100
100
  enumerable: true,
101
- get: function () { return chunkJLBSUZ5B_cjs.EXPAND_RESOURCE_NAMES_MAX_IDS; }
101
+ get: function () { return chunkYRRTE2NF_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 chunkJLBSUZ5B_cjs.FETCH_BY_IDS_CHUNK_SIZE; }
105
+ get: function () { return chunkYRRTE2NF_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 chunkJLBSUZ5B_cjs.FETCH_BY_IDS_MAX_ITEMS; }
109
+ get: function () { return chunkYRRTE2NF_cjs.FETCH_BY_IDS_MAX_ITEMS; }
110
110
  });
111
111
  Object.defineProperty(exports, "FIELD_CACHE_KINDS", {
112
112
  enumerable: true,
113
- get: function () { return chunkJLBSUZ5B_cjs.FIELD_CACHE_KINDS; }
113
+ get: function () { return chunkYRRTE2NF_cjs.FIELD_CACHE_KINDS; }
114
114
  });
115
115
  Object.defineProperty(exports, "FIELD_CATALOG_HONESTY_NOTE", {
116
116
  enumerable: true,
117
- get: function () { return chunkJLBSUZ5B_cjs.FIELD_CATALOG_HONESTY_NOTE; }
117
+ get: function () { return chunkYRRTE2NF_cjs.FIELD_CATALOG_HONESTY_NOTE; }
118
118
  });
119
119
  Object.defineProperty(exports, "INVOKE_OPTION_KEYS", {
120
120
  enumerable: true,
121
- get: function () { return chunkJLBSUZ5B_cjs.INVOKE_OPTION_KEYS; }
121
+ get: function () { return chunkYRRTE2NF_cjs.INVOKE_OPTION_KEYS; }
122
122
  });
123
123
  Object.defineProperty(exports, "MAX_FIELD_CATALOG_WIRE", {
124
124
  enumerable: true,
125
- get: function () { return chunkJLBSUZ5B_cjs.MAX_FIELD_CATALOG_WIRE; }
125
+ get: function () { return chunkYRRTE2NF_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 chunkJLBSUZ5B_cjs.MIN_FIELD_CATALOG_MAX_BYTES; }
129
+ get: function () { return chunkYRRTE2NF_cjs.MIN_FIELD_CATALOG_MAX_BYTES; }
130
130
  });
131
131
  Object.defineProperty(exports, "PARAMS_BAG_KEYS", {
132
132
  enumerable: true,
133
- get: function () { return chunkJLBSUZ5B_cjs.PARAMS_BAG_KEYS; }
133
+ get: function () { return chunkYRRTE2NF_cjs.PARAMS_BAG_KEYS; }
134
134
  });
135
135
  Object.defineProperty(exports, "PICKLIST_VALUE_NOT_SERVED_NOTE", {
136
136
  enumerable: true,
137
- get: function () { return chunkJLBSUZ5B_cjs.PICKLIST_VALUE_NOT_SERVED_NOTE; }
137
+ get: function () { return chunkYRRTE2NF_cjs.PICKLIST_VALUE_NOT_SERVED_NOTE; }
138
138
  });
139
139
  Object.defineProperty(exports, "UI_LINK_ENTITIES", {
140
140
  enumerable: true,
141
- get: function () { return chunkJLBSUZ5B_cjs.UI_LINK_ENTITIES; }
141
+ get: function () { return chunkYRRTE2NF_cjs.UI_LINK_ENTITIES; }
142
142
  });
143
143
  Object.defineProperty(exports, "WORKFLOW_RESOURCES", {
144
144
  enumerable: true,
145
- get: function () { return chunkJLBSUZ5B_cjs.WORKFLOW_RESOURCES; }
145
+ get: function () { return chunkYRRTE2NF_cjs.WORKFLOW_RESOURCES; }
146
146
  });
147
147
  Object.defineProperty(exports, "aggregate", {
148
148
  enumerable: true,
149
- get: function () { return chunkJLBSUZ5B_cjs.aggregate; }
149
+ get: function () { return chunkYRRTE2NF_cjs.aggregate; }
150
150
  });
151
151
  Object.defineProperty(exports, "arAging", {
152
152
  enumerable: true,
153
- get: function () { return chunkJLBSUZ5B_cjs.arAging; }
153
+ get: function () { return chunkYRRTE2NF_cjs.arAging; }
154
154
  });
155
155
  Object.defineProperty(exports, "buildUiLink", {
156
156
  enumerable: true,
157
- get: function () { return chunkJLBSUZ5B_cjs.buildUiLink; }
157
+ get: function () { return chunkYRRTE2NF_cjs.buildUiLink; }
158
158
  });
159
159
  Object.defineProperty(exports, "createGuidance", {
160
160
  enumerable: true,
161
- get: function () { return chunkJLBSUZ5B_cjs.createGuidance; }
161
+ get: function () { return chunkYRRTE2NF_cjs.createGuidance; }
162
162
  });
163
163
  Object.defineProperty(exports, "dateBucketLabel", {
164
164
  enumerable: true,
165
- get: function () { return chunkJLBSUZ5B_cjs.dateBucketLabel; }
165
+ get: function () { return chunkYRRTE2NF_cjs.dateBucketLabel; }
166
166
  });
167
167
  Object.defineProperty(exports, "effectiveRequiredFields", {
168
168
  enumerable: true,
169
- get: function () { return chunkJLBSUZ5B_cjs.effectiveRequiredFields; }
169
+ get: function () { return chunkYRRTE2NF_cjs.effectiveRequiredFields; }
170
170
  });
171
171
  Object.defineProperty(exports, "expandResourceNames", {
172
172
  enumerable: true,
173
- get: function () { return chunkJLBSUZ5B_cjs.expandResourceNames; }
173
+ get: function () { return chunkYRRTE2NF_cjs.expandResourceNames; }
174
174
  });
175
175
  Object.defineProperty(exports, "fetchByIds", {
176
176
  enumerable: true,
177
- get: function () { return chunkJLBSUZ5B_cjs.fetchByIds; }
177
+ get: function () { return chunkYRRTE2NF_cjs.fetchByIds; }
178
178
  });
179
179
  Object.defineProperty(exports, "fieldCatalog", {
180
180
  enumerable: true,
181
- get: function () { return chunkJLBSUZ5B_cjs.fieldCatalog; }
181
+ get: function () { return chunkYRRTE2NF_cjs.fieldCatalog; }
182
182
  });
183
183
  Object.defineProperty(exports, "foldFlattenedOpts", {
184
184
  enumerable: true,
185
- get: function () { return chunkJLBSUZ5B_cjs.foldFlattenedOpts; }
185
+ get: function () { return chunkYRRTE2NF_cjs.foldFlattenedOpts; }
186
186
  });
187
187
  Object.defineProperty(exports, "invoke", {
188
188
  enumerable: true,
189
- get: function () { return chunkJLBSUZ5B_cjs.invoke; }
189
+ get: function () { return chunkYRRTE2NF_cjs.invoke; }
190
190
  });
191
191
  Object.defineProperty(exports, "invokeDelete", {
192
192
  enumerable: true,
193
- get: function () { return chunkJLBSUZ5B_cjs.invokeDelete; }
193
+ get: function () { return chunkYRRTE2NF_cjs.invokeDelete; }
194
194
  });
195
195
  Object.defineProperty(exports, "invokeRead", {
196
196
  enumerable: true,
197
- get: function () { return chunkJLBSUZ5B_cjs.invokeRead; }
197
+ get: function () { return chunkYRRTE2NF_cjs.invokeRead; }
198
+ });
199
+ Object.defineProperty(exports, "invokeReadPages", {
200
+ enumerable: true,
201
+ get: function () { return chunkYRRTE2NF_cjs.invokeReadPages; }
198
202
  });
199
203
  Object.defineProperty(exports, "invokeWrite", {
200
204
  enumerable: true,
201
- get: function () { return chunkJLBSUZ5B_cjs.invokeWrite; }
205
+ get: function () { return chunkYRRTE2NF_cjs.invokeWrite; }
202
206
  });
203
207
  Object.defineProperty(exports, "needsConfirmation", {
204
208
  enumerable: true,
205
- get: function () { return chunkJLBSUZ5B_cjs.needsConfirmation; }
209
+ get: function () { return chunkYRRTE2NF_cjs.needsConfirmation; }
206
210
  });
207
211
  Object.defineProperty(exports, "nonChargeableWork", {
208
212
  enumerable: true,
209
- get: function () { return chunkJLBSUZ5B_cjs.nonChargeableWork; }
213
+ get: function () { return chunkYRRTE2NF_cjs.nonChargeableWork; }
210
214
  });
211
215
  Object.defineProperty(exports, "notPersistedFields", {
212
216
  enumerable: true,
213
- get: function () { return chunkJLBSUZ5B_cjs.notPersistedFields; }
217
+ get: function () { return chunkYRRTE2NF_cjs.notPersistedFields; }
214
218
  });
215
219
  Object.defineProperty(exports, "portfolioMargin", {
216
220
  enumerable: true,
217
- get: function () { return chunkJLBSUZ5B_cjs.portfolioMargin; }
221
+ get: function () { return chunkYRRTE2NF_cjs.portfolioMargin; }
218
222
  });
219
223
  Object.defineProperty(exports, "recurringRevenue", {
220
224
  enumerable: true,
221
- get: function () { return chunkJLBSUZ5B_cjs.recurringRevenue; }
225
+ get: function () { return chunkYRRTE2NF_cjs.recurringRevenue; }
222
226
  });
223
227
  Object.defineProperty(exports, "relationshipMap", {
224
228
  enumerable: true,
225
- get: function () { return chunkJLBSUZ5B_cjs.relationshipMap; }
229
+ get: function () { return chunkYRRTE2NF_cjs.relationshipMap; }
226
230
  });
227
231
  Object.defineProperty(exports, "resolveAny", {
228
232
  enumerable: true,
229
- get: function () { return chunkJLBSUZ5B_cjs.resolveAny; }
233
+ get: function () { return chunkYRRTE2NF_cjs.resolveAny; }
230
234
  });
231
235
  Object.defineProperty(exports, "resolveStaff", {
232
236
  enumerable: true,
233
- get: function () { return chunkJLBSUZ5B_cjs.resolveStaff; }
237
+ get: function () { return chunkYRRTE2NF_cjs.resolveStaff; }
234
238
  });
235
239
  Object.defineProperty(exports, "revenueRollup", {
236
240
  enumerable: true,
237
- get: function () { return chunkJLBSUZ5B_cjs.revenueRollup; }
241
+ get: function () { return chunkYRRTE2NF_cjs.revenueRollup; }
238
242
  });
239
243
  Object.defineProperty(exports, "sanitiseResult", {
240
244
  enumerable: true,
241
- get: function () { return chunkJLBSUZ5B_cjs.sanitiseResult; }
245
+ get: function () { return chunkYRRTE2NF_cjs.sanitiseResult; }
242
246
  });
243
247
  Object.defineProperty(exports, "searchAcrossResources", {
244
248
  enumerable: true,
245
- get: function () { return chunkJLBSUZ5B_cjs.searchAcrossResources; }
249
+ get: function () { return chunkYRRTE2NF_cjs.searchAcrossResources; }
246
250
  });
247
251
  Object.defineProperty(exports, "uiLink", {
248
252
  enumerable: true,
249
- get: function () { return chunkJLBSUZ5B_cjs.uiLink; }
253
+ get: function () { return chunkYRRTE2NF_cjs.uiLink; }
250
254
  });
251
255
  Object.defineProperty(exports, "unknownKeysRefusal", {
252
256
  enumerable: true,
253
- get: function () { return chunkJLBSUZ5B_cjs.unknownKeysRefusal; }
257
+ get: function () { return chunkYRRTE2NF_cjs.unknownKeysRefusal; }
254
258
  });
255
259
  Object.defineProperty(exports, "validateDispatchArgs", {
256
260
  enumerable: true,
257
- get: function () { return chunkJLBSUZ5B_cjs.validateDispatchArgs; }
261
+ get: function () { return chunkYRRTE2NF_cjs.validateDispatchArgs; }
258
262
  });
259
263
  Object.defineProperty(exports, "validateInvokeOptions", {
260
264
  enumerable: true,
261
- get: function () { return chunkJLBSUZ5B_cjs.validateInvokeOptions; }
265
+ get: function () { return chunkYRRTE2NF_cjs.validateInvokeOptions; }
262
266
  });
263
267
  Object.defineProperty(exports, "validateParamsBag", {
264
268
  enumerable: true,
265
- get: function () { return chunkJLBSUZ5B_cjs.validateParamsBag; }
269
+ get: function () { return chunkYRRTE2NF_cjs.validateParamsBag; }
266
270
  });
267
271
  Object.defineProperty(exports, "wipHours", {
268
272
  enumerable: true,
269
- get: function () { return chunkJLBSUZ5B_cjs.wipHours; }
273
+ get: function () { return chunkYRRTE2NF_cjs.wipHours; }
270
274
  });
271
275
  exports.describeWrite = describeWrite;
@@ -1,6 +1,6 @@
1
- import { a6 as RowNamesSummary, a7 as BlindSurfaceInfo, a8 as RelationshipResource, a9 as CreateGuidanceValueRequirement, aa as CreateGuidanceRow, ab as CreateBlockerKind, ac as CreateGuidanceReport, ad as FieldCacheKind } from '../index-WZ3A8nG6.cjs';
1
+ import { a6 as RowNamesSummary, a7 as BlindSurfaceInfo, a8 as RelationshipResource, a9 as CreateGuidanceValueRequirement, aa as CreateGuidanceRow, ab as CreateBlockerKind, ac as CreateGuidanceReport, ad as FieldCacheKind, ae as BoundedQueryResult } from '../index-CGW80Uzc.cjs';
2
2
  import { AutotaskClient, ProfitabilityLabourCostMethod, ZoneName } from '../index.cjs';
3
- export { ae as FIELD_CACHE_KINDS } from '../index-WZ3A8nG6.cjs';
3
+ export { af as FIELD_CACHE_KINDS } from '../index-CGW80Uzc.cjs';
4
4
  import { I as Identifier, E as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-COQEG55Q.cjs';
5
5
  export { a as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-COQEG55Q.cjs';
6
6
  import { CapabilityRecord } from '../capabilities.cjs';
@@ -1582,6 +1582,18 @@ declare function validateInvokeOptions(opts: Record<string, unknown> | undefined
1582
1582
  */
1583
1583
  declare function unknownKeysRefusal(raw: unknown, validKeys: readonly string[], subject: string, operation?: string): AutotaskConfigError | null;
1584
1584
 
1585
+ /** Page-consumer contract for governed explicit bounded query walks. */
1586
+
1587
+ interface BoundedQueryPage<T = Record<string, unknown>> {
1588
+ /** Served rows after per-page names and note truncation, in vendor order. */
1589
+ readonly items: readonly T[];
1590
+ /** One-based vendor page ordinal; no cursor is exposed. */
1591
+ readonly page: number;
1592
+ }
1593
+ type BoundedQueryPageConsumer<T = Record<string, unknown>> = (page: BoundedQueryPage<T>) => void | Promise<void>;
1594
+ /** Fulfilled only after every served page was accepted; errors/abort reject instead. */
1595
+ type BoundedQuerySummary = Omit<BoundedQueryResult<unknown>, 'items'>;
1596
+
1585
1597
  /**
1586
1598
  * Invoke one registry operation through its typed SDK method — the legacy
1587
1599
  * path (programmatic escape hatch). The mode is derived from the registry
@@ -1595,6 +1607,12 @@ declare function invoke(client: AutotaskClient, operation: string, args?: readon
1595
1607
  * refuses (reads have no dry run).
1596
1608
  */
1597
1609
  declare function invokeRead(client: AutotaskClient, operation: string, args?: readonly unknown[] | Record<string, unknown>, opts?: InvokeOptions): Promise<unknown>;
1610
+ /**
1611
+ * Consume a governed explicit bounded query, awaiting each served page.
1612
+ * Only primitive query reads with walk.maxRows are supported. Rejections,
1613
+ * including cancellation during the last sink, produce no terminal summary.
1614
+ */
1615
+ declare function invokeReadPages(client: AutotaskClient, operation: string, args: readonly unknown[] | Record<string, unknown> | null, onPage: BoundedQueryPageConsumer, opts?: InvokeOptions): Promise<BoundedQuerySummary>;
1598
1616
  /**
1599
1617
  * `autotask_write` (SDK form): route an `effect=write` operation, dry-run-
1600
1618
  * first (the governed `dryRun ?? true`). A read or destructive op refuses
@@ -1609,5 +1627,5 @@ declare function invokeWrite(client: AutotaskClient, operation: string, args?: r
1609
1627
  */
1610
1628
  declare function invokeDelete(client: AutotaskClient, operation: string, args?: readonly unknown[] | Record<string, unknown>, opts?: InvokeOptions): Promise<unknown>;
1611
1629
 
1612
- 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_CATALOG_HONESTY_NOTE, FieldCacheKind, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, RowNamesSummary, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, describeWrite, effectiveRequiredFields, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours };
1613
- export type { AggregateGroup, AggregateOptions, AggregateResult, ArAgingBuckets, ArAgingOptions, ArAgingResult, ArAgingRow, CreateGuidanceOptions, DateBucket, DerivationRule, DescribeWriteOptions, EffectiveRequiredFields, ExpandResourceNameRow, ExpandResourceNamesOptions, ExpandResourceNamesResult, FetchByIdsOptions, FetchManyItem, FetchManyItemError, FetchManyItemResult, FetchManyResult, FieldCatalogCompactFieldRow, FieldCatalogFieldRow, FieldCatalogOptions, FieldCatalogResult, FieldCatalogRow, FieldCatalogRowError, FieldCatalogTrimKind, FieldCatalogTruncation, FieldDerivation, InvokeMode, InvokeOptions, NonChargeableWorkAmount, NonChargeableWorkFigures, NonChargeableWorkGroupBy, NonChargeableWorkOptions, NonChargeableWorkResult, NonChargeableWorkRow, PortfolioMarginDimension, PortfolioMarginFigures, PortfolioMarginKey, PortfolioMarginOptions, PortfolioMarginResult, PortfolioMarginRow, RecurringRevenueOptions, RecurringRevenueResult, RecurringRevenueRow, RequiredFieldsRecord, RequiredFieldsSource, RequiredFieldsZoneFacts, ResolveAnyOptions, ResolveAnyResourceOutcome, ResolveAnyResult, ResolveStaffMatch, ResolveStaffOptions, ResolveStaffResult, RevenueRollupAmount, RevenueRollupDimension, RevenueRollupKey, RevenueRollupNonChargeable, RevenueRollupNonChargeableAmount, RevenueRollupOptions, RevenueRollupResult, RevenueRollupRow, SanitiseResult, SearchAcrossResourcesOptions, SearchAcrossResourcesResult, SearchAcrossResourcesRow, ServedCreateGuidanceReport, ServedCreateGuidanceRow, UiLinkEntity, UiLinkInput, UiLinkResult, UnpostedNonBillableTime, WipHoursFigures, WipHoursGroupBy, WipHoursOptions, WipHoursResult, WipHoursRow, WriteDescription };
1630
+ 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_CATALOG_HONESTY_NOTE, FieldCacheKind, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, RowNamesSummary, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, describeWrite, 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 };
1631
+ export type { AggregateGroup, AggregateOptions, AggregateResult, ArAgingBuckets, ArAgingOptions, ArAgingResult, ArAgingRow, BoundedQueryPage, BoundedQueryPageConsumer, BoundedQuerySummary, CreateGuidanceOptions, DateBucket, DerivationRule, DescribeWriteOptions, EffectiveRequiredFields, ExpandResourceNameRow, ExpandResourceNamesOptions, ExpandResourceNamesResult, FetchByIdsOptions, FetchManyItem, FetchManyItemError, FetchManyItemResult, FetchManyResult, FieldCatalogCompactFieldRow, FieldCatalogFieldRow, FieldCatalogOptions, FieldCatalogResult, FieldCatalogRow, FieldCatalogRowError, FieldCatalogTrimKind, FieldCatalogTruncation, FieldDerivation, InvokeMode, InvokeOptions, NonChargeableWorkAmount, NonChargeableWorkFigures, NonChargeableWorkGroupBy, NonChargeableWorkOptions, NonChargeableWorkResult, NonChargeableWorkRow, PortfolioMarginDimension, PortfolioMarginFigures, PortfolioMarginKey, PortfolioMarginOptions, PortfolioMarginResult, PortfolioMarginRow, RecurringRevenueOptions, RecurringRevenueResult, RecurringRevenueRow, RequiredFieldsRecord, RequiredFieldsSource, RequiredFieldsZoneFacts, ResolveAnyOptions, ResolveAnyResourceOutcome, ResolveAnyResult, ResolveStaffMatch, ResolveStaffOptions, ResolveStaffResult, RevenueRollupAmount, RevenueRollupDimension, RevenueRollupKey, RevenueRollupNonChargeable, RevenueRollupNonChargeableAmount, RevenueRollupOptions, RevenueRollupResult, RevenueRollupRow, SanitiseResult, SearchAcrossResourcesOptions, SearchAcrossResourcesResult, SearchAcrossResourcesRow, ServedCreateGuidanceReport, ServedCreateGuidanceRow, UiLinkEntity, UiLinkInput, UiLinkResult, UnpostedNonBillableTime, WipHoursFigures, WipHoursGroupBy, WipHoursOptions, WipHoursResult, WipHoursRow, WriteDescription };
@@ -1,6 +1,6 @@
1
- import { a6 as RowNamesSummary, a7 as BlindSurfaceInfo, a8 as RelationshipResource, a9 as CreateGuidanceValueRequirement, aa as CreateGuidanceRow, ab as CreateBlockerKind, ac as CreateGuidanceReport, ad as FieldCacheKind } from '../index-CxBU31jT.js';
1
+ import { a6 as RowNamesSummary, a7 as BlindSurfaceInfo, a8 as RelationshipResource, a9 as CreateGuidanceValueRequirement, aa as CreateGuidanceRow, ab as CreateBlockerKind, ac as CreateGuidanceReport, ad as FieldCacheKind, ae as BoundedQueryResult } from '../index-By9Zw2Oc.js';
2
2
  import { AutotaskClient, ProfitabilityLabourCostMethod, ZoneName } from '../index.js';
3
- export { ae as FIELD_CACHE_KINDS } from '../index-CxBU31jT.js';
3
+ export { af as FIELD_CACHE_KINDS } from '../index-By9Zw2Oc.js';
4
4
  import { I as Identifier, E as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-COQEG55Q.js';
5
5
  export { a as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-COQEG55Q.js';
6
6
  import { CapabilityRecord } from '../capabilities.js';
@@ -1582,6 +1582,18 @@ declare function validateInvokeOptions(opts: Record<string, unknown> | undefined
1582
1582
  */
1583
1583
  declare function unknownKeysRefusal(raw: unknown, validKeys: readonly string[], subject: string, operation?: string): AutotaskConfigError | null;
1584
1584
 
1585
+ /** Page-consumer contract for governed explicit bounded query walks. */
1586
+
1587
+ interface BoundedQueryPage<T = Record<string, unknown>> {
1588
+ /** Served rows after per-page names and note truncation, in vendor order. */
1589
+ readonly items: readonly T[];
1590
+ /** One-based vendor page ordinal; no cursor is exposed. */
1591
+ readonly page: number;
1592
+ }
1593
+ type BoundedQueryPageConsumer<T = Record<string, unknown>> = (page: BoundedQueryPage<T>) => void | Promise<void>;
1594
+ /** Fulfilled only after every served page was accepted; errors/abort reject instead. */
1595
+ type BoundedQuerySummary = Omit<BoundedQueryResult<unknown>, 'items'>;
1596
+
1585
1597
  /**
1586
1598
  * Invoke one registry operation through its typed SDK method — the legacy
1587
1599
  * path (programmatic escape hatch). The mode is derived from the registry
@@ -1595,6 +1607,12 @@ declare function invoke(client: AutotaskClient, operation: string, args?: readon
1595
1607
  * refuses (reads have no dry run).
1596
1608
  */
1597
1609
  declare function invokeRead(client: AutotaskClient, operation: string, args?: readonly unknown[] | Record<string, unknown>, opts?: InvokeOptions): Promise<unknown>;
1610
+ /**
1611
+ * Consume a governed explicit bounded query, awaiting each served page.
1612
+ * Only primitive query reads with walk.maxRows are supported. Rejections,
1613
+ * including cancellation during the last sink, produce no terminal summary.
1614
+ */
1615
+ declare function invokeReadPages(client: AutotaskClient, operation: string, args: readonly unknown[] | Record<string, unknown> | null, onPage: BoundedQueryPageConsumer, opts?: InvokeOptions): Promise<BoundedQuerySummary>;
1598
1616
  /**
1599
1617
  * `autotask_write` (SDK form): route an `effect=write` operation, dry-run-
1600
1618
  * first (the governed `dryRun ?? true`). A read or destructive op refuses
@@ -1609,5 +1627,5 @@ declare function invokeWrite(client: AutotaskClient, operation: string, args?: r
1609
1627
  */
1610
1628
  declare function invokeDelete(client: AutotaskClient, operation: string, args?: readonly unknown[] | Record<string, unknown>, opts?: InvokeOptions): Promise<unknown>;
1611
1629
 
1612
- 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_CATALOG_HONESTY_NOTE, FieldCacheKind, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, RowNamesSummary, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, describeWrite, effectiveRequiredFields, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours };
1613
- export type { AggregateGroup, AggregateOptions, AggregateResult, ArAgingBuckets, ArAgingOptions, ArAgingResult, ArAgingRow, CreateGuidanceOptions, DateBucket, DerivationRule, DescribeWriteOptions, EffectiveRequiredFields, ExpandResourceNameRow, ExpandResourceNamesOptions, ExpandResourceNamesResult, FetchByIdsOptions, FetchManyItem, FetchManyItemError, FetchManyItemResult, FetchManyResult, FieldCatalogCompactFieldRow, FieldCatalogFieldRow, FieldCatalogOptions, FieldCatalogResult, FieldCatalogRow, FieldCatalogRowError, FieldCatalogTrimKind, FieldCatalogTruncation, FieldDerivation, InvokeMode, InvokeOptions, NonChargeableWorkAmount, NonChargeableWorkFigures, NonChargeableWorkGroupBy, NonChargeableWorkOptions, NonChargeableWorkResult, NonChargeableWorkRow, PortfolioMarginDimension, PortfolioMarginFigures, PortfolioMarginKey, PortfolioMarginOptions, PortfolioMarginResult, PortfolioMarginRow, RecurringRevenueOptions, RecurringRevenueResult, RecurringRevenueRow, RequiredFieldsRecord, RequiredFieldsSource, RequiredFieldsZoneFacts, ResolveAnyOptions, ResolveAnyResourceOutcome, ResolveAnyResult, ResolveStaffMatch, ResolveStaffOptions, ResolveStaffResult, RevenueRollupAmount, RevenueRollupDimension, RevenueRollupKey, RevenueRollupNonChargeable, RevenueRollupNonChargeableAmount, RevenueRollupOptions, RevenueRollupResult, RevenueRollupRow, SanitiseResult, SearchAcrossResourcesOptions, SearchAcrossResourcesResult, SearchAcrossResourcesRow, ServedCreateGuidanceReport, ServedCreateGuidanceRow, UiLinkEntity, UiLinkInput, UiLinkResult, UnpostedNonBillableTime, WipHoursFigures, WipHoursGroupBy, WipHoursOptions, WipHoursResult, WipHoursRow, WriteDescription };
1630
+ 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_CATALOG_HONESTY_NOTE, FieldCacheKind, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, RowNamesSummary, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, describeWrite, 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 };
1631
+ export type { AggregateGroup, AggregateOptions, AggregateResult, ArAgingBuckets, ArAgingOptions, ArAgingResult, ArAgingRow, BoundedQueryPage, BoundedQueryPageConsumer, BoundedQuerySummary, CreateGuidanceOptions, DateBucket, DerivationRule, DescribeWriteOptions, EffectiveRequiredFields, ExpandResourceNameRow, ExpandResourceNamesOptions, ExpandResourceNamesResult, FetchByIdsOptions, FetchManyItem, FetchManyItemError, FetchManyItemResult, FetchManyResult, FieldCatalogCompactFieldRow, FieldCatalogFieldRow, FieldCatalogOptions, FieldCatalogResult, FieldCatalogRow, FieldCatalogRowError, FieldCatalogTrimKind, FieldCatalogTruncation, FieldDerivation, InvokeMode, InvokeOptions, NonChargeableWorkAmount, NonChargeableWorkFigures, NonChargeableWorkGroupBy, NonChargeableWorkOptions, NonChargeableWorkResult, NonChargeableWorkRow, PortfolioMarginDimension, PortfolioMarginFigures, PortfolioMarginKey, PortfolioMarginOptions, PortfolioMarginResult, PortfolioMarginRow, RecurringRevenueOptions, RecurringRevenueResult, RecurringRevenueRow, RequiredFieldsRecord, RequiredFieldsSource, RequiredFieldsZoneFacts, ResolveAnyOptions, ResolveAnyResourceOutcome, ResolveAnyResult, ResolveStaffMatch, ResolveStaffOptions, ResolveStaffResult, RevenueRollupAmount, RevenueRollupDimension, RevenueRollupKey, RevenueRollupNonChargeable, RevenueRollupNonChargeableAmount, RevenueRollupOptions, RevenueRollupResult, RevenueRollupRow, SanitiseResult, SearchAcrossResourcesOptions, SearchAcrossResourcesResult, SearchAcrossResourcesRow, ServedCreateGuidanceReport, ServedCreateGuidanceRow, UiLinkEntity, UiLinkInput, UiLinkResult, UnpostedNonBillableTime, WipHoursFigures, WipHoursGroupBy, WipHoursOptions, WipHoursResult, WipHoursRow, WriteDescription };
@@ -1,4 +1,4 @@
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, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours } from '../chunk-QDBJCGQD.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-3RANR2RY.js';
2
2
  import '../chunk-SCFB5MF3.js';
3
3
  import { REDACTED } from '../chunk-7NKB4UXV.js';
4
4
 
package/dist/pool.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkDPRY3CUJ_cjs = require('./chunk-DPRY3CUJ.cjs');
4
- require('./chunk-24GRFW55.cjs');
5
- var chunkJLBSUZ5B_cjs = require('./chunk-JLBSUZ5B.cjs');
3
+ var chunkYQX45JBG_cjs = require('./chunk-YQX45JBG.cjs');
4
+ require('./chunk-GVP2WW47.cjs');
5
+ var chunkYRRTE2NF_cjs = require('./chunk-YRRTE2NF.cjs');
6
6
  require('./chunk-KAZE4WC7.cjs');
7
7
  require('./chunk-BD4AUGCJ.cjs');
8
8
  var crypto = require('crypto');
@@ -10,7 +10,7 @@ var crypto = require('crypto');
10
10
  function createClientPool(options = {}) {
11
11
  const maxSize = options.maxSize ?? 128;
12
12
  if (!Number.isInteger(maxSize) || maxSize < 1) {
13
- throw new chunkJLBSUZ5B_cjs.AutotaskConfigError(
13
+ throw new chunkYRRTE2NF_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 = chunkJLBSUZ5B_cjs.buildReadCache(config);
28
+ const created = chunkYRRTE2NF_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
- chunkJLBSUZ5B_cjs.suspendCompanyIndex(readCaches.get(oldest));
34
+ chunkYRRTE2NF_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 = chunkJLBSUZ5B_cjs.resolveCredentials(config);
46
+ const resolved = chunkYRRTE2NF_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) chunkJLBSUZ5B_cjs.suspendCompanyIndex(store);
74
+ if (store !== void 0) chunkYRRTE2NF_cjs.suspendCompanyIndex(store);
75
75
  entries.delete(oldest);
76
76
  }
77
77
  }
78
- const client = new chunkDPRY3CUJ_cjs.AutotaskClient(withSharedCache(config, sharedCacheFor(key, config)));
78
+ const client = new chunkYQX45JBG_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) chunkJLBSUZ5B_cjs.suspendCompanyIndex(store);
85
+ if (store !== void 0) chunkYRRTE2NF_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) chunkJLBSUZ5B_cjs.suspendCompanyIndex(store);
93
+ for (const store of stores) chunkYRRTE2NF_cjs.suspendCompanyIndex(store);
94
94
  entries.clear();
95
95
  readCaches.clear();
96
96
  },
package/dist/pool.js CHANGED
@@ -1,6 +1,6 @@
1
- import { AutotaskClient } from './chunk-2BB7OASJ.js';
2
- import './chunk-AH6WAGPS.js';
3
- import { AutotaskConfigError, suspendCompanyIndex, buildReadCache, resolveCredentials } from './chunk-QDBJCGQD.js';
1
+ import { AutotaskClient } from './chunk-TYUTIZWB.js';
2
+ import './chunk-MN5VLBCI.js';
3
+ import { AutotaskConfigError, suspendCompanyIndex, buildReadCache, resolveCredentials } from './chunk-3RANR2RY.js';
4
4
  import './chunk-SCFB5MF3.js';
5
5
  import './chunk-7NKB4UXV.js';
6
6
  import { createHash } from 'crypto';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-S5CH4H6H.cjs');
4
- var chunk24GRFW55_cjs = require('../chunk-24GRFW55.cjs');
5
- var chunkJLBSUZ5B_cjs = require('../chunk-JLBSUZ5B.cjs');
4
+ var chunkGVP2WW47_cjs = require('../chunk-GVP2WW47.cjs');
5
+ var chunkYRRTE2NF_cjs = require('../chunk-YRRTE2NF.cjs');
6
6
  require('../chunk-KAZE4WC7.cjs');
7
7
  require('../chunk-BD4AUGCJ.cjs');
8
8
 
@@ -10,97 +10,97 @@ require('../chunk-BD4AUGCJ.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "AuthenticateResource", {
12
12
  enumerable: true,
13
- get: function () { return chunk24GRFW55_cjs.AuthenticateResource; }
13
+ get: function () { return chunkGVP2WW47_cjs.AuthenticateResource; }
14
14
  });
15
15
  Object.defineProperty(exports, "ConfigurationItemsResource", {
16
16
  enumerable: true,
17
- get: function () { return chunk24GRFW55_cjs.ConfigurationItemsResource; }
17
+ get: function () { return chunkGVP2WW47_cjs.ConfigurationItemsResource; }
18
18
  });
19
19
  Object.defineProperty(exports, "ContactsResource", {
20
20
  enumerable: true,
21
- get: function () { return chunk24GRFW55_cjs.ContactsResource; }
21
+ get: function () { return chunkGVP2WW47_cjs.ContactsResource; }
22
22
  });
23
23
  Object.defineProperty(exports, "EntityInformationResource", {
24
24
  enumerable: true,
25
- get: function () { return chunk24GRFW55_cjs.EntityInformationResource; }
25
+ get: function () { return chunkGVP2WW47_cjs.EntityInformationResource; }
26
26
  });
27
27
  Object.defineProperty(exports, "InventoryProductsResource", {
28
28
  enumerable: true,
29
- get: function () { return chunk24GRFW55_cjs.InventoryProductsResource; }
29
+ get: function () { return chunkGVP2WW47_cjs.InventoryProductsResource; }
30
30
  });
31
31
  Object.defineProperty(exports, "ModulesResource", {
32
32
  enumerable: true,
33
- get: function () { return chunk24GRFW55_cjs.ModulesResource; }
33
+ get: function () { return chunkGVP2WW47_cjs.ModulesResource; }
34
34
  });
35
35
  Object.defineProperty(exports, "QuotesResource", {
36
36
  enumerable: true,
37
- get: function () { return chunk24GRFW55_cjs.QuotesResource; }
37
+ get: function () { return chunkGVP2WW47_cjs.QuotesResource; }
38
38
  });
39
39
  Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
40
40
  enumerable: true,
41
- get: function () { return chunk24GRFW55_cjs.ResourceTimeOffAdditionalResource; }
41
+ get: function () { return chunkGVP2WW47_cjs.ResourceTimeOffAdditionalResource; }
42
42
  });
43
43
  Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
44
44
  enumerable: true,
45
- get: function () { return chunk24GRFW55_cjs.ResourceTimeOffBalancesResource; }
45
+ get: function () { return chunkGVP2WW47_cjs.ResourceTimeOffBalancesResource; }
46
46
  });
47
47
  Object.defineProperty(exports, "ResourcesResource", {
48
48
  enumerable: true,
49
- get: function () { return chunk24GRFW55_cjs.ResourcesResource; }
49
+ get: function () { return chunkGVP2WW47_cjs.ResourcesResource; }
50
50
  });
51
51
  Object.defineProperty(exports, "ServiceCallsResource", {
52
52
  enumerable: true,
53
- get: function () { return chunk24GRFW55_cjs.ServiceCallsResource; }
53
+ get: function () { return chunkGVP2WW47_cjs.ServiceCallsResource; }
54
54
  });
55
55
  Object.defineProperty(exports, "ThresholdInformationResource", {
56
56
  enumerable: true,
57
- get: function () { return chunk24GRFW55_cjs.ThresholdInformationResource; }
57
+ get: function () { return chunkGVP2WW47_cjs.ThresholdInformationResource; }
58
58
  });
59
59
  Object.defineProperty(exports, "TicketChargesResource", {
60
60
  enumerable: true,
61
- get: function () { return chunk24GRFW55_cjs.TicketChargesResource; }
61
+ get: function () { return chunkGVP2WW47_cjs.TicketChargesResource; }
62
62
  });
63
63
  Object.defineProperty(exports, "TicketsResource", {
64
64
  enumerable: true,
65
- get: function () { return chunk24GRFW55_cjs.TicketsResource; }
65
+ get: function () { return chunkGVP2WW47_cjs.TicketsResource; }
66
66
  });
67
67
  Object.defineProperty(exports, "TimeOffRequestsResource", {
68
68
  enumerable: true,
69
- get: function () { return chunk24GRFW55_cjs.TimeOffRequestsResource; }
69
+ get: function () { return chunkGVP2WW47_cjs.TimeOffRequestsResource; }
70
70
  });
71
71
  Object.defineProperty(exports, "VersionInformationResource", {
72
72
  enumerable: true,
73
- get: function () { return chunk24GRFW55_cjs.VersionInformationResource; }
73
+ get: function () { return chunkGVP2WW47_cjs.VersionInformationResource; }
74
74
  });
75
75
  Object.defineProperty(exports, "VersionResource", {
76
76
  enumerable: true,
77
- get: function () { return chunk24GRFW55_cjs.VersionResource; }
77
+ get: function () { return chunkGVP2WW47_cjs.VersionResource; }
78
78
  });
79
79
  Object.defineProperty(exports, "ZoneInformationResource", {
80
80
  enumerable: true,
81
- get: function () { return chunk24GRFW55_cjs.ZoneInformationResource; }
81
+ get: function () { return chunkGVP2WW47_cjs.ZoneInformationResource; }
82
82
  });
83
83
  Object.defineProperty(exports, "CompaniesResource", {
84
84
  enumerable: true,
85
- get: function () { return chunkJLBSUZ5B_cjs.CompaniesResource; }
85
+ get: function () { return chunkYRRTE2NF_cjs.CompaniesResource; }
86
86
  });
87
87
  Object.defineProperty(exports, "ContractsResource", {
88
88
  enumerable: true,
89
- get: function () { return chunkJLBSUZ5B_cjs.ContractsResource; }
89
+ get: function () { return chunkYRRTE2NF_cjs.ContractsResource; }
90
90
  });
91
91
  Object.defineProperty(exports, "GenericResource", {
92
92
  enumerable: true,
93
- get: function () { return chunkJLBSUZ5B_cjs.GenericResource; }
93
+ get: function () { return chunkYRRTE2NF_cjs.GenericResource; }
94
94
  });
95
95
  Object.defineProperty(exports, "InvoicesResource", {
96
96
  enumerable: true,
97
- get: function () { return chunkJLBSUZ5B_cjs.InvoicesResource; }
97
+ get: function () { return chunkYRRTE2NF_cjs.InvoicesResource; }
98
98
  });
99
99
  Object.defineProperty(exports, "SIMPLE_RESOURCES", {
100
100
  enumerable: true,
101
- get: function () { return chunkJLBSUZ5B_cjs.SIMPLE_RESOURCES; }
101
+ get: function () { return chunkYRRTE2NF_cjs.SIMPLE_RESOURCES; }
102
102
  });
103
103
  Object.defineProperty(exports, "TimeEntriesResource", {
104
104
  enumerable: true,
105
- get: function () { return chunkJLBSUZ5B_cjs.TimeEntriesResource; }
105
+ get: function () { return chunkYRRTE2NF_cjs.TimeEntriesResource; }
106
106
  });
@@ -1,3 +1,3 @@
1
- export { c as AuthenticateResource, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, i as ContractsResource, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, Y as TimeEntriesResource, $ as TimeOffRequestsResource, a1 as VersionInformationResource, a2 as VersionResource, a4 as ZoneInformationResource } from '../index-WZ3A8nG6.cjs';
1
+ export { c as AuthenticateResource, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, i as ContractsResource, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, Y as TimeEntriesResource, $ as TimeOffRequestsResource, a1 as VersionInformationResource, a2 as VersionResource, a4 as ZoneInformationResource } from '../index-CGW80Uzc.cjs';
2
2
  import '../index-COQEG55Q.cjs';
3
3
  import '../logger-B1gYmFre.cjs';
@@ -1,3 +1,3 @@
1
- export { c as AuthenticateResource, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, i as ContractsResource, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, Y as TimeEntriesResource, $ as TimeOffRequestsResource, a1 as VersionInformationResource, a2 as VersionResource, a4 as ZoneInformationResource } from '../index-CxBU31jT.js';
1
+ export { c as AuthenticateResource, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, i as ContractsResource, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, Y as TimeEntriesResource, $ as TimeOffRequestsResource, a1 as VersionInformationResource, a2 as VersionResource, a4 as ZoneInformationResource } from '../index-By9Zw2Oc.js';
2
2
  import '../index-COQEG55Q.js';
3
3
  import '../logger-B1gYmFre.js';