node-autotask 0.63.0 → 0.63.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.
@@ -16794,7 +16794,9 @@ var QueryBase = class {
16794
16794
  * reached with a live next cursor, or the 1000-page guard) →
16795
16795
  * LATEST_WINDOW_INCOMPLETE — a truncated enumeration's top-N-by-id is
16796
16796
  * unprovable, so the op refuses instead of returning a possibly-wrong
16797
- * answer.
16797
+ * answer. Exception (issue #435): a COUNT-only `unfiltered-blind` pin
16798
+ * (no query pin) re-probes with the filtered `count(id gt 0)`, which is
16799
+ * not blind, and takes branch 2 with that total.
16798
16800
  * `includeFields` always carries `id` (the P1 id-append,
16799
16801
  * `buildQueryRequest`), which `latest` sorts on. Pure read; no mutation
16800
16802
  * paths involved; every count probe goes to the wire (counts are never
@@ -16803,7 +16805,14 @@ var QueryBase = class {
16803
16805
  */
16804
16806
  async latestWalk(params, limit, latest) {
16805
16807
  const baseConds = normalizedConditions(params.filter) ?? [];
16806
- const total = await this.countGlobal({ filter: params.filter });
16808
+ let total = await this.countGlobal({ filter: params.filter });
16809
+ let probes = 1;
16810
+ const stamps = BLIND_SURFACE_STAMPS[this.config.key];
16811
+ if (typeof total === "object" && total !== null && total.blindSurface !== void 0 && stamps?.count?.kind === "unfiltered-blind" && stamps.query === void 0) {
16812
+ total = await this.countAboveId(baseConds, 0n);
16813
+ probes = 2;
16814
+ if (total === 0) return this.latestBlindWalk(params, limit, latest);
16815
+ }
16807
16816
  if (typeof total === "object" && total !== null) {
16808
16817
  const rec = total;
16809
16818
  if (rec.blindSurface !== void 0) {
@@ -16825,7 +16834,6 @@ var QueryBase = class {
16825
16834
  }
16826
16835
  return this.finishLatest(items2, latest, pages3);
16827
16836
  }
16828
- let probes = 1;
16829
16837
  const spend = () => {
16830
16838
  probes += 1;
16831
16839
  if (probes > LATEST_MAX_COUNT_PROBES) throw this.latestThresholdUnresolvedError();
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkXCNB4D6C_cjs = require('./chunk-XCNB4D6C.cjs');
4
- var chunkTRRB42W4_cjs = require('./chunk-TRRB42W4.cjs');
3
+ var chunkGH6WHIHE_cjs = require('./chunk-GH6WHIHE.cjs');
4
+ var chunkJ5O3FBYV_cjs = require('./chunk-J5O3FBYV.cjs');
5
5
 
6
6
  // src/client.ts
7
7
  var AutotaskClient = class {
@@ -154,34 +154,34 @@ var AutotaskClient = class {
154
154
  * anything is wired. Construction issues NO request.
155
155
  */
156
156
  constructor(options) {
157
- this.config = chunkTRRB42W4_cjs.resolveConfig(options);
158
- this.http = new chunkTRRB42W4_cjs.HttpClient(this.config);
157
+ this.config = chunkJ5O3FBYV_cjs.resolveConfig(options);
158
+ this.http = new chunkJ5O3FBYV_cjs.HttpClient(this.config);
159
159
  this.http.client = this;
160
- for (const entry of chunkTRRB42W4_cjs.SIMPLE_RESOURCES) {
161
- this[entry.accessor] = new chunkTRRB42W4_cjs.GenericResource(this.http, entry, this.config.pageSize);
160
+ for (const entry of chunkJ5O3FBYV_cjs.SIMPLE_RESOURCES) {
161
+ this[entry.accessor] = new chunkJ5O3FBYV_cjs.GenericResource(this.http, entry, this.config.pageSize);
162
162
  }
163
- this.companies = new chunkTRRB42W4_cjs.CompaniesResource(this.http, this.config.pageSize);
164
- this.configurationItems = new chunkXCNB4D6C_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
165
- this.contacts = new chunkXCNB4D6C_cjs.ContactsResource(this.http, this.config.pageSize);
166
- this.contracts = new chunkTRRB42W4_cjs.ContractsResource(this.http, this.config.pageSize);
167
- this.inventoryProducts = new chunkXCNB4D6C_cjs.InventoryProductsResource(this.http, this.config.pageSize);
168
- this.invoices = new chunkTRRB42W4_cjs.InvoicesResource(this.http, this.config.pageSize);
169
- this.quotes = new chunkXCNB4D6C_cjs.QuotesResource(this.http, this.config.pageSize);
170
- this.resourceTimeOffAdditional = new chunkXCNB4D6C_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
171
- this.resourceTimeOffBalances = new chunkXCNB4D6C_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
172
- this.resources = new chunkXCNB4D6C_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
173
- this.serviceCalls = new chunkXCNB4D6C_cjs.ServiceCallsResource(this.http, this.config.pageSize);
174
- this.ticketCharges = new chunkXCNB4D6C_cjs.TicketChargesResource(this.http, this.config.pageSize);
175
- this.tickets = new chunkXCNB4D6C_cjs.TicketsResource(this.http, this.config.pageSize);
176
- this.timeEntries = new chunkTRRB42W4_cjs.TimeEntriesResource(this.http, this.config.pageSize);
177
- this.timeOffRequests = new chunkXCNB4D6C_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
178
- this.authenticateResource = new chunkXCNB4D6C_cjs.AuthenticateResource(this.http);
179
- this.entityInformation = new chunkXCNB4D6C_cjs.EntityInformationResource(this.http);
180
- this.modules = new chunkXCNB4D6C_cjs.ModulesResource(this.http);
181
- this.thresholdInformation = new chunkXCNB4D6C_cjs.ThresholdInformationResource(this.http);
182
- this.version = new chunkXCNB4D6C_cjs.VersionResource(this.http);
183
- this.versionInformation = new chunkXCNB4D6C_cjs.VersionInformationResource(this.http);
184
- this.zoneInformation = new chunkXCNB4D6C_cjs.ZoneInformationResource(this.http);
163
+ this.companies = new chunkJ5O3FBYV_cjs.CompaniesResource(this.http, this.config.pageSize);
164
+ this.configurationItems = new chunkGH6WHIHE_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
165
+ this.contacts = new chunkGH6WHIHE_cjs.ContactsResource(this.http, this.config.pageSize);
166
+ this.contracts = new chunkJ5O3FBYV_cjs.ContractsResource(this.http, this.config.pageSize);
167
+ this.inventoryProducts = new chunkGH6WHIHE_cjs.InventoryProductsResource(this.http, this.config.pageSize);
168
+ this.invoices = new chunkJ5O3FBYV_cjs.InvoicesResource(this.http, this.config.pageSize);
169
+ this.quotes = new chunkGH6WHIHE_cjs.QuotesResource(this.http, this.config.pageSize);
170
+ this.resourceTimeOffAdditional = new chunkGH6WHIHE_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
171
+ this.resourceTimeOffBalances = new chunkGH6WHIHE_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
172
+ this.resources = new chunkGH6WHIHE_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
173
+ this.serviceCalls = new chunkGH6WHIHE_cjs.ServiceCallsResource(this.http, this.config.pageSize);
174
+ this.ticketCharges = new chunkGH6WHIHE_cjs.TicketChargesResource(this.http, this.config.pageSize);
175
+ this.tickets = new chunkGH6WHIHE_cjs.TicketsResource(this.http, this.config.pageSize);
176
+ this.timeEntries = new chunkJ5O3FBYV_cjs.TimeEntriesResource(this.http, this.config.pageSize);
177
+ this.timeOffRequests = new chunkGH6WHIHE_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
178
+ this.authenticateResource = new chunkGH6WHIHE_cjs.AuthenticateResource(this.http);
179
+ this.entityInformation = new chunkGH6WHIHE_cjs.EntityInformationResource(this.http);
180
+ this.modules = new chunkGH6WHIHE_cjs.ModulesResource(this.http);
181
+ this.thresholdInformation = new chunkGH6WHIHE_cjs.ThresholdInformationResource(this.http);
182
+ this.version = new chunkGH6WHIHE_cjs.VersionResource(this.http);
183
+ this.versionInformation = new chunkGH6WHIHE_cjs.VersionInformationResource(this.http);
184
+ this.zoneInformation = new chunkGH6WHIHE_cjs.ZoneInformationResource(this.http);
185
185
  }
186
186
  /**
187
187
  * `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
@@ -215,12 +215,12 @@ var AutotaskClient = class {
215
215
  * parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
216
216
  */
217
217
  withSignal(signal, fn) {
218
- return chunkTRRB42W4_cjs.runWithSignal(signal, fn);
218
+ return chunkJ5O3FBYV_cjs.runWithSignal(signal, fn);
219
219
  }
220
220
  async batch(fn, items, opts = {}) {
221
221
  const concurrency = opts.concurrency ?? this.config.maxConcurrent;
222
222
  if (!Number.isInteger(concurrency) || concurrency <= 0) {
223
- throw new chunkTRRB42W4_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
223
+ throw new chunkJ5O3FBYV_cjs.AutotaskConfigError("batch concurrency must be a positive integer");
224
224
  }
225
225
  const { signal, settle } = opts;
226
226
  const results = new Array(items.length);
@@ -235,7 +235,7 @@ var AutotaskClient = class {
235
235
  const i = next++;
236
236
  try {
237
237
  const item = items[i];
238
- const value = await (signal === void 0 ? fn(item) : chunkTRRB42W4_cjs.runWithSignal(signal, () => fn(item)));
238
+ const value = await (signal === void 0 ? fn(item) : chunkJ5O3FBYV_cjs.runWithSignal(signal, () => fn(item)));
239
239
  results[i] = settle ? { status: "fulfilled", value } : value;
240
240
  } catch (error) {
241
241
  if (settle) results[i] = { status: "rejected", reason: error };
@@ -1,5 +1,5 @@
1
- import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-WL7VSHPI.js';
2
- import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-LCZJ3STD.js';
1
+ import { ConfigurationItemsResource, ContactsResource, InventoryProductsResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, AuthenticateResource, EntityInformationResource, ModulesResource, ThresholdInformationResource, VersionResource, VersionInformationResource, ZoneInformationResource } from './chunk-BXTAL6LB.js';
2
+ import { resolveConfig, HttpClient, SIMPLE_RESOURCES, GenericResource, CompaniesResource, ContractsResource, InvoicesResource, TimeEntriesResource, runWithSignal, AutotaskConfigError } from './chunk-EUD4CCRR.js';
3
3
 
4
4
  // src/client.ts
5
5
  var AutotaskClient = class {
package/dist/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunk6WR7JMNK_cjs = require('./chunk-6WR7JMNK.cjs');
3
+ var chunkONN546JT_cjs = require('./chunk-ONN546JT.cjs');
4
4
  require('./chunk-S5CH4H6H.cjs');
5
- var chunkXCNB4D6C_cjs = require('./chunk-XCNB4D6C.cjs');
6
- var chunkTRRB42W4_cjs = require('./chunk-TRRB42W4.cjs');
5
+ var chunkGH6WHIHE_cjs = require('./chunk-GH6WHIHE.cjs');
6
+ var chunkJ5O3FBYV_cjs = require('./chunk-J5O3FBYV.cjs');
7
7
  require('./chunk-CY6T5SPE.cjs');
8
8
  var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
9
9
  var fs = require('fs');
@@ -19,7 +19,7 @@ var ALIASES = {
19
19
  AUTOTASK_USERNAME: ["AUTOTASK_USER"]
20
20
  };
21
21
  function presenceError(name, source) {
22
- return new chunkTRRB42W4_cjs.AutotaskConfigError(
22
+ return new chunkJ5O3FBYV_cjs.AutotaskConfigError(
23
23
  `${source}: ${name} is not set (or is empty after shell-equivalent loading)`,
24
24
  {
25
25
  suggestedAction: `Set ${name} before running (see the "Credentials & env files" section of the README).`
@@ -27,8 +27,8 @@ function presenceError(name, source) {
27
27
  );
28
28
  }
29
29
  function shapeError(name, value, source) {
30
- return new chunkTRRB42W4_cjs.AutotaskConfigError(
31
- `${source}: ${name} ${chunkTRRB42W4_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkTRRB42W4_cjs.credentialValueSummary(value)}]`,
30
+ return new chunkJ5O3FBYV_cjs.AutotaskConfigError(
31
+ `${source}: ${name} ${chunkJ5O3FBYV_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkJ5O3FBYV_cjs.credentialValueSummary(value)}]`,
32
32
  {
33
33
  code: "INVALID_CREDENTIAL_SHAPE",
34
34
  suggestedAction: "Load the credential file with the shell (`set -a; . ./.env; set +a`), use loadAutotaskCredentialEnvFile(path), or fix the quoted/contaminated value; no request was sent."
@@ -52,7 +52,7 @@ function parseCredentialEnvText(text) {
52
52
  }
53
53
  function readCredentialEnvFile(path) {
54
54
  if (!fs.existsSync(path)) {
55
- throw new chunkTRRB42W4_cjs.AutotaskConfigError(`credential env file not found: ${path}`, {
55
+ throw new chunkJ5O3FBYV_cjs.AutotaskConfigError(`credential env file not found: ${path}`, {
56
56
  suggestedAction: "Check the path, or create the file with the credentials your host needs."
57
57
  });
58
58
  }
@@ -98,7 +98,7 @@ function pickCredentials(values, names, source, canonical) {
98
98
  if (entry === void 0) continue;
99
99
  const value = normalizeCredentialValue(entry.raw);
100
100
  if (value.length === 0) throw presenceError(name, source);
101
- if (chunkTRRB42W4_cjs.credentialShapeProblem(value, { skipEdgeWhitespace: true }) !== void 0) {
101
+ if (chunkJ5O3FBYV_cjs.credentialShapeProblem(value, { skipEdgeWhitespace: true }) !== void 0) {
102
102
  throw shapeError(name, value, source);
103
103
  }
104
104
  out[name] = value;
@@ -122,7 +122,7 @@ var DOCTOR_ENTITIES = [
122
122
  { key: "resources", label: "Resources", path: "/V1.0/Resources" }
123
123
  ];
124
124
  var present = (v) => typeof v === "string" && v.trim().length > 0;
125
- var knownZone = (z) => typeof z === "string" && chunkTRRB42W4_cjs.ZONES.includes(z);
125
+ var knownZone = (z) => typeof z === "string" && chunkJ5O3FBYV_cjs.ZONES.includes(z);
126
126
  function doctorConfigStep(source, origin = "config") {
127
127
  const fields = ["apiIntegrationCode", "userName", "secret", "zone", "baseUrl", "impersonationResourceId"];
128
128
  const sources = {};
@@ -150,7 +150,7 @@ function doctorConfigStep(source, origin = "config") {
150
150
  } else if (knownZone(zone)) {
151
151
  let url;
152
152
  try {
153
- url = chunkTRRB42W4_cjs.zoneUrl(zone);
153
+ url = chunkJ5O3FBYV_cjs.zoneUrl(zone);
154
154
  zoneInfo = { provided: true, resolvable: true, zone, baseUrlHost: new URL(url).host };
155
155
  } catch {
156
156
  zoneInfo = { provided: true, resolvable: false, zone };
@@ -159,13 +159,13 @@ function doctorConfigStep(source, origin = "config") {
159
159
  zoneInfo = { provided: true, resolvable: false, zone };
160
160
  }
161
161
  } else {
162
- zoneInfo = { provided: false, resolvable: true, zone: chunkTRRB42W4_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkTRRB42W4_cjs.zoneUrl(chunkTRRB42W4_cjs.DEFAULT_ZONE)).host };
162
+ zoneInfo = { provided: false, resolvable: true, zone: chunkJ5O3FBYV_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkJ5O3FBYV_cjs.zoneUrl(chunkJ5O3FBYV_cjs.DEFAULT_ZONE)).host };
163
163
  }
164
164
  const problems = [];
165
165
  if (missing.length > 0) problems.push(`missing credential(s): ${missing.join(", ")}`);
166
166
  if (zoneInfo.provided && !zoneInfo.resolvable) {
167
167
  problems.push(
168
- source.baseUrl !== void 0 && present(source.baseUrl) ? "baseUrl is not a valid http(s) URL" : source.zone === "other" ? 'zone "other" requires a baseUrl' : `zone "${zone}" is not a known zone (the catalog has ${chunkTRRB42W4_cjs.ZONES.length} zones)`
168
+ source.baseUrl !== void 0 && present(source.baseUrl) ? "baseUrl is not a valid http(s) URL" : source.zone === "other" ? 'zone "other" requires a baseUrl' : `zone "${zone}" is not a known zone (the catalog has ${chunkJ5O3FBYV_cjs.ZONES.length} zones)`
169
169
  );
170
170
  }
171
171
  if (problems.length > 0) {
@@ -193,20 +193,20 @@ async function timeCheck(id, fn) {
193
193
  const out = await fn();
194
194
  return { check: { id, status: out.status, message: out.message, ...out.hint !== void 0 ? { hint: out.hint } : {}, durationMs: Date.now() - started }, value: out.value };
195
195
  } catch (err) {
196
- const code = chunkTRRB42W4_cjs.isAutotaskError(err) ? err.code : "UNEXPECTED";
196
+ const code = chunkJ5O3FBYV_cjs.isAutotaskError(err) ? err.code : "UNEXPECTED";
197
197
  return {
198
198
  check: {
199
199
  id,
200
200
  status: "fail",
201
201
  message: `check failed unexpectedly (machine code ${code})`,
202
- hint: chunkTRRB42W4_cjs.isAutotaskError(err) ? err.suggestedAction : void 0,
202
+ hint: chunkJ5O3FBYV_cjs.isAutotaskError(err) ? err.suggestedAction : void 0,
203
203
  durationMs: Date.now() - started
204
204
  }
205
205
  };
206
206
  }
207
207
  }
208
208
  function failFrom(err, what) {
209
- if (err instanceof chunkTRRB42W4_cjs.RateLimitError && (err.code === "RATE_LIMITED_COOLDOWN" || err.notSent === true)) {
209
+ if (err instanceof chunkJ5O3FBYV_cjs.RateLimitError && (err.code === "RATE_LIMITED_COOLDOWN" || err.notSent === true)) {
210
210
  return {
211
211
  status: "fail",
212
212
  message: `${what} \u2014 refused LOCALLY by the tenant 429 cooldown gate (the call was NOT sent)`,
@@ -245,7 +245,7 @@ function makeWire(run, timeoutMs) {
245
245
  });
246
246
  return { body };
247
247
  } catch (err) {
248
- if (chunkTRRB42W4_cjs.isAutotaskError(err)) return { error: err };
248
+ if (chunkJ5O3FBYV_cjs.isAutotaskError(err)) return { error: err };
249
249
  throw err;
250
250
  }
251
251
  };
@@ -304,7 +304,7 @@ async function checkReads(run, zoneUnavailable) {
304
304
  const id = `read.${entity.key}`;
305
305
  const result = await timeCheck(id, async () => {
306
306
  if (zoneUnavailable) return skip(ZONE_UNAVAILABLE_SKIP);
307
- const req = chunkTRRB42W4_cjs.buildQueryRequest(cfg.baseUrl, entity.path, { maxRecords: 1 });
307
+ const req = chunkJ5O3FBYV_cjs.buildQueryRequest(cfg.baseUrl, entity.path, { maxRecords: 1 });
308
308
  const out = await run.wire(req.method, req.path, `doctor.${id}`, { body: req.body, idempotent: req.idempotent });
309
309
  if (out.error) {
310
310
  const f = failFrom(out.error, `read access to ${entity.label}`);
@@ -388,11 +388,11 @@ function outcome(state, retryable, code, httpStatus) {
388
388
  return httpStatus === void 0 ? { state, retryable, code } : { state, retryable, code, httpStatus };
389
389
  }
390
390
  function vendorErrorsNonEmpty(vendorError) {
391
- const entries = chunkTRRB42W4_cjs.parseVendorErrors(vendorError);
391
+ const entries = chunkJ5O3FBYV_cjs.parseVendorErrors(vendorError);
392
392
  return entries !== void 0 && entries.length > 0;
393
393
  }
394
394
  function classifyWriteOutcome(error) {
395
- if (chunkTRRB42W4_cjs.isAutotaskError(error)) {
395
+ if (chunkJ5O3FBYV_cjs.isAutotaskError(error)) {
396
396
  const rawStatus = error.httpStatus;
397
397
  const httpStatus = typeof rawStatus === "number" ? rawStatus : void 0;
398
398
  const statusMalformed = rawStatus !== void 0 && httpStatus === void 0;
@@ -418,7 +418,7 @@ function classifyWriteOutcome(error) {
418
418
  return outcome("failed", error.retryable, error.code);
419
419
  }
420
420
  }
421
- const typed = chunkTRRB42W4_cjs.isAutotaskError(error);
421
+ const typed = chunkJ5O3FBYV_cjs.isAutotaskError(error);
422
422
  const status = typed && typeof error.httpStatus === "number" ? error.httpStatus : void 0;
423
423
  const code = typed ? error.code : error instanceof Error ? error.name : "UNKNOWN";
424
424
  return outcome("unknown", false, code, status);
@@ -426,255 +426,255 @@ function classifyWriteOutcome(error) {
426
426
 
427
427
  Object.defineProperty(exports, "AutotaskClient", {
428
428
  enumerable: true,
429
- get: function () { return chunk6WR7JMNK_cjs.AutotaskClient; }
429
+ get: function () { return chunkONN546JT_cjs.AutotaskClient; }
430
430
  });
431
431
  Object.defineProperty(exports, "AuthenticateResource", {
432
432
  enumerable: true,
433
- get: function () { return chunkXCNB4D6C_cjs.AuthenticateResource; }
433
+ get: function () { return chunkGH6WHIHE_cjs.AuthenticateResource; }
434
434
  });
435
435
  Object.defineProperty(exports, "ConfigurationItemsResource", {
436
436
  enumerable: true,
437
- get: function () { return chunkXCNB4D6C_cjs.ConfigurationItemsResource; }
437
+ get: function () { return chunkGH6WHIHE_cjs.ConfigurationItemsResource; }
438
438
  });
439
439
  Object.defineProperty(exports, "ContactsResource", {
440
440
  enumerable: true,
441
- get: function () { return chunkXCNB4D6C_cjs.ContactsResource; }
441
+ get: function () { return chunkGH6WHIHE_cjs.ContactsResource; }
442
442
  });
443
443
  Object.defineProperty(exports, "EntityInformationResource", {
444
444
  enumerable: true,
445
- get: function () { return chunkXCNB4D6C_cjs.EntityInformationResource; }
445
+ get: function () { return chunkGH6WHIHE_cjs.EntityInformationResource; }
446
446
  });
447
447
  Object.defineProperty(exports, "InventoryProductsResource", {
448
448
  enumerable: true,
449
- get: function () { return chunkXCNB4D6C_cjs.InventoryProductsResource; }
449
+ get: function () { return chunkGH6WHIHE_cjs.InventoryProductsResource; }
450
450
  });
451
451
  Object.defineProperty(exports, "ModulesResource", {
452
452
  enumerable: true,
453
- get: function () { return chunkXCNB4D6C_cjs.ModulesResource; }
453
+ get: function () { return chunkGH6WHIHE_cjs.ModulesResource; }
454
454
  });
455
455
  Object.defineProperty(exports, "QuotesResource", {
456
456
  enumerable: true,
457
- get: function () { return chunkXCNB4D6C_cjs.QuotesResource; }
457
+ get: function () { return chunkGH6WHIHE_cjs.QuotesResource; }
458
458
  });
459
459
  Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
460
460
  enumerable: true,
461
- get: function () { return chunkXCNB4D6C_cjs.ResourceTimeOffAdditionalResource; }
461
+ get: function () { return chunkGH6WHIHE_cjs.ResourceTimeOffAdditionalResource; }
462
462
  });
463
463
  Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
464
464
  enumerable: true,
465
- get: function () { return chunkXCNB4D6C_cjs.ResourceTimeOffBalancesResource; }
465
+ get: function () { return chunkGH6WHIHE_cjs.ResourceTimeOffBalancesResource; }
466
466
  });
467
467
  Object.defineProperty(exports, "ResourcesResource", {
468
468
  enumerable: true,
469
- get: function () { return chunkXCNB4D6C_cjs.ResourcesResource; }
469
+ get: function () { return chunkGH6WHIHE_cjs.ResourcesResource; }
470
470
  });
471
471
  Object.defineProperty(exports, "ServiceCallsResource", {
472
472
  enumerable: true,
473
- get: function () { return chunkXCNB4D6C_cjs.ServiceCallsResource; }
473
+ get: function () { return chunkGH6WHIHE_cjs.ServiceCallsResource; }
474
474
  });
475
475
  Object.defineProperty(exports, "ThresholdInformationResource", {
476
476
  enumerable: true,
477
- get: function () { return chunkXCNB4D6C_cjs.ThresholdInformationResource; }
477
+ get: function () { return chunkGH6WHIHE_cjs.ThresholdInformationResource; }
478
478
  });
479
479
  Object.defineProperty(exports, "TicketChargesResource", {
480
480
  enumerable: true,
481
- get: function () { return chunkXCNB4D6C_cjs.TicketChargesResource; }
481
+ get: function () { return chunkGH6WHIHE_cjs.TicketChargesResource; }
482
482
  });
483
483
  Object.defineProperty(exports, "TicketsResource", {
484
484
  enumerable: true,
485
- get: function () { return chunkXCNB4D6C_cjs.TicketsResource; }
485
+ get: function () { return chunkGH6WHIHE_cjs.TicketsResource; }
486
486
  });
487
487
  Object.defineProperty(exports, "TimeOffRequestsResource", {
488
488
  enumerable: true,
489
- get: function () { return chunkXCNB4D6C_cjs.TimeOffRequestsResource; }
489
+ get: function () { return chunkGH6WHIHE_cjs.TimeOffRequestsResource; }
490
490
  });
491
491
  Object.defineProperty(exports, "VersionInformationResource", {
492
492
  enumerable: true,
493
- get: function () { return chunkXCNB4D6C_cjs.VersionInformationResource; }
493
+ get: function () { return chunkGH6WHIHE_cjs.VersionInformationResource; }
494
494
  });
495
495
  Object.defineProperty(exports, "VersionResource", {
496
496
  enumerable: true,
497
- get: function () { return chunkXCNB4D6C_cjs.VersionResource; }
497
+ get: function () { return chunkGH6WHIHE_cjs.VersionResource; }
498
498
  });
499
499
  Object.defineProperty(exports, "ZoneInformationResource", {
500
500
  enumerable: true,
501
- get: function () { return chunkXCNB4D6C_cjs.ZoneInformationResource; }
501
+ get: function () { return chunkGH6WHIHE_cjs.ZoneInformationResource; }
502
502
  });
503
503
  Object.defineProperty(exports, "AutotaskAbortError", {
504
504
  enumerable: true,
505
- get: function () { return chunkTRRB42W4_cjs.AutotaskAbortError; }
505
+ get: function () { return chunkJ5O3FBYV_cjs.AutotaskAbortError; }
506
506
  });
507
507
  Object.defineProperty(exports, "AutotaskConfigError", {
508
508
  enumerable: true,
509
- get: function () { return chunkTRRB42W4_cjs.AutotaskConfigError; }
509
+ get: function () { return chunkJ5O3FBYV_cjs.AutotaskConfigError; }
510
510
  });
511
511
  Object.defineProperty(exports, "AutotaskError", {
512
512
  enumerable: true,
513
- get: function () { return chunkTRRB42W4_cjs.AutotaskError; }
513
+ get: function () { return chunkJ5O3FBYV_cjs.AutotaskError; }
514
514
  });
515
515
  Object.defineProperty(exports, "AutotaskNetworkError", {
516
516
  enumerable: true,
517
- get: function () { return chunkTRRB42W4_cjs.AutotaskNetworkError; }
517
+ get: function () { return chunkJ5O3FBYV_cjs.AutotaskNetworkError; }
518
518
  });
519
519
  Object.defineProperty(exports, "AutotaskTimeoutError", {
520
520
  enumerable: true,
521
- get: function () { return chunkTRRB42W4_cjs.AutotaskTimeoutError; }
521
+ get: function () { return chunkJ5O3FBYV_cjs.AutotaskTimeoutError; }
522
522
  });
523
523
  Object.defineProperty(exports, "CREDENTIAL_SHAPE_POINTER", {
524
524
  enumerable: true,
525
- get: function () { return chunkTRRB42W4_cjs.CREDENTIAL_SHAPE_POINTER; }
525
+ get: function () { return chunkJ5O3FBYV_cjs.CREDENTIAL_SHAPE_POINTER; }
526
526
  });
527
527
  Object.defineProperty(exports, "CompaniesResource", {
528
528
  enumerable: true,
529
- get: function () { return chunkTRRB42W4_cjs.CompaniesResource; }
529
+ get: function () { return chunkJ5O3FBYV_cjs.CompaniesResource; }
530
530
  });
531
531
  Object.defineProperty(exports, "ConfirmationRequiredError", {
532
532
  enumerable: true,
533
- get: function () { return chunkTRRB42W4_cjs.ConfirmationRequiredError; }
533
+ get: function () { return chunkJ5O3FBYV_cjs.ConfirmationRequiredError; }
534
534
  });
535
535
  Object.defineProperty(exports, "ConflictError", {
536
536
  enumerable: true,
537
- get: function () { return chunkTRRB42W4_cjs.ConflictError; }
537
+ get: function () { return chunkJ5O3FBYV_cjs.ConflictError; }
538
538
  });
539
539
  Object.defineProperty(exports, "ContractsResource", {
540
540
  enumerable: true,
541
- get: function () { return chunkTRRB42W4_cjs.ContractsResource; }
541
+ get: function () { return chunkJ5O3FBYV_cjs.ContractsResource; }
542
542
  });
543
543
  Object.defineProperty(exports, "DeleteBoundaryError", {
544
544
  enumerable: true,
545
- get: function () { return chunkTRRB42W4_cjs.DeleteBoundaryError; }
545
+ get: function () { return chunkJ5O3FBYV_cjs.DeleteBoundaryError; }
546
546
  });
547
547
  Object.defineProperty(exports, "EmptyResponseError", {
548
548
  enumerable: true,
549
- get: function () { return chunkTRRB42W4_cjs.EmptyResponseError; }
549
+ get: function () { return chunkJ5O3FBYV_cjs.EmptyResponseError; }
550
550
  });
551
551
  Object.defineProperty(exports, "GenericResource", {
552
552
  enumerable: true,
553
- get: function () { return chunkTRRB42W4_cjs.GenericResource; }
553
+ get: function () { return chunkJ5O3FBYV_cjs.GenericResource; }
554
554
  });
555
555
  Object.defineProperty(exports, "HostPolicyDeniedError", {
556
556
  enumerable: true,
557
- get: function () { return chunkTRRB42W4_cjs.HostPolicyDeniedError; }
557
+ get: function () { return chunkJ5O3FBYV_cjs.HostPolicyDeniedError; }
558
558
  });
559
559
  Object.defineProperty(exports, "InvoicesResource", {
560
560
  enumerable: true,
561
- get: function () { return chunkTRRB42W4_cjs.InvoicesResource; }
561
+ get: function () { return chunkJ5O3FBYV_cjs.InvoicesResource; }
562
562
  });
563
563
  Object.defineProperty(exports, "MIN_PREFIX_SUMMARY_LENGTH", {
564
564
  enumerable: true,
565
- get: function () { return chunkTRRB42W4_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
565
+ get: function () { return chunkJ5O3FBYV_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
566
566
  });
567
567
  Object.defineProperty(exports, "MaintenanceError", {
568
568
  enumerable: true,
569
- get: function () { return chunkTRRB42W4_cjs.MaintenanceError; }
569
+ get: function () { return chunkJ5O3FBYV_cjs.MaintenanceError; }
570
570
  });
571
571
  Object.defineProperty(exports, "MarkerUnsafeIdError", {
572
572
  enumerable: true,
573
- get: function () { return chunkTRRB42W4_cjs.MarkerUnsafeIdError; }
573
+ get: function () { return chunkJ5O3FBYV_cjs.MarkerUnsafeIdError; }
574
574
  });
575
575
  Object.defineProperty(exports, "MoveRefusedError", {
576
576
  enumerable: true,
577
- get: function () { return chunkTRRB42W4_cjs.MoveRefusedError; }
577
+ get: function () { return chunkJ5O3FBYV_cjs.MoveRefusedError; }
578
578
  });
579
579
  Object.defineProperty(exports, "NotFoundError", {
580
580
  enumerable: true,
581
- get: function () { return chunkTRRB42W4_cjs.NotFoundError; }
581
+ get: function () { return chunkJ5O3FBYV_cjs.NotFoundError; }
582
582
  });
583
583
  Object.defineProperty(exports, "OperationNotSupportedError", {
584
584
  enumerable: true,
585
- get: function () { return chunkTRRB42W4_cjs.OperationNotSupportedError; }
585
+ get: function () { return chunkJ5O3FBYV_cjs.OperationNotSupportedError; }
586
586
  });
587
587
  Object.defineProperty(exports, "PaginationLimitError", {
588
588
  enumerable: true,
589
- get: function () { return chunkTRRB42W4_cjs.PaginationLimitError; }
589
+ get: function () { return chunkJ5O3FBYV_cjs.PaginationLimitError; }
590
590
  });
591
591
  Object.defineProperty(exports, "QueryTooLongError", {
592
592
  enumerable: true,
593
- get: function () { return chunkTRRB42W4_cjs.QueryTooLongError; }
593
+ get: function () { return chunkJ5O3FBYV_cjs.QueryTooLongError; }
594
594
  });
595
595
  Object.defineProperty(exports, "RateLimitError", {
596
596
  enumerable: true,
597
- get: function () { return chunkTRRB42W4_cjs.RateLimitError; }
597
+ get: function () { return chunkJ5O3FBYV_cjs.RateLimitError; }
598
598
  });
599
599
  Object.defineProperty(exports, "RecoveryTruncatedError", {
600
600
  enumerable: true,
601
- get: function () { return chunkTRRB42W4_cjs.RecoveryTruncatedError; }
601
+ get: function () { return chunkJ5O3FBYV_cjs.RecoveryTruncatedError; }
602
602
  });
603
603
  Object.defineProperty(exports, "ResolutionError", {
604
604
  enumerable: true,
605
- get: function () { return chunkTRRB42W4_cjs.ResolutionError; }
605
+ get: function () { return chunkJ5O3FBYV_cjs.ResolutionError; }
606
606
  });
607
607
  Object.defineProperty(exports, "ResponseRejectedError", {
608
608
  enumerable: true,
609
- get: function () { return chunkTRRB42W4_cjs.ResponseRejectedError; }
609
+ get: function () { return chunkJ5O3FBYV_cjs.ResponseRejectedError; }
610
610
  });
611
611
  Object.defineProperty(exports, "SIMPLE_RESOURCES", {
612
612
  enumerable: true,
613
- get: function () { return chunkTRRB42W4_cjs.SIMPLE_RESOURCES; }
613
+ get: function () { return chunkJ5O3FBYV_cjs.SIMPLE_RESOURCES; }
614
614
  });
615
615
  Object.defineProperty(exports, "ScopeRequiredError", {
616
616
  enumerable: true,
617
- get: function () { return chunkTRRB42W4_cjs.ScopeRequiredError; }
617
+ get: function () { return chunkJ5O3FBYV_cjs.ScopeRequiredError; }
618
618
  });
619
619
  Object.defineProperty(exports, "StaleObjectError", {
620
620
  enumerable: true,
621
- get: function () { return chunkTRRB42W4_cjs.StaleObjectError; }
621
+ get: function () { return chunkJ5O3FBYV_cjs.StaleObjectError; }
622
622
  });
623
623
  Object.defineProperty(exports, "TimeEntriesResource", {
624
624
  enumerable: true,
625
- get: function () { return chunkTRRB42W4_cjs.TimeEntriesResource; }
625
+ get: function () { return chunkJ5O3FBYV_cjs.TimeEntriesResource; }
626
626
  });
627
627
  Object.defineProperty(exports, "TtlCache", {
628
628
  enumerable: true,
629
- get: function () { return chunkTRRB42W4_cjs.TtlCache; }
629
+ get: function () { return chunkJ5O3FBYV_cjs.TtlCache; }
630
630
  });
631
631
  Object.defineProperty(exports, "UNSCOPED_WALK_THRESHOLD", {
632
632
  enumerable: true,
633
- get: function () { return chunkTRRB42W4_cjs.UNSCOPED_WALK_THRESHOLD; }
633
+ get: function () { return chunkJ5O3FBYV_cjs.UNSCOPED_WALK_THRESHOLD; }
634
634
  });
635
635
  Object.defineProperty(exports, "UnexpectedContentTypeError", {
636
636
  enumerable: true,
637
- get: function () { return chunkTRRB42W4_cjs.UnexpectedContentTypeError; }
637
+ get: function () { return chunkJ5O3FBYV_cjs.UnexpectedContentTypeError; }
638
638
  });
639
639
  Object.defineProperty(exports, "ZONES", {
640
640
  enumerable: true,
641
- get: function () { return chunkTRRB42W4_cjs.ZONES; }
641
+ get: function () { return chunkJ5O3FBYV_cjs.ZONES; }
642
642
  });
643
643
  Object.defineProperty(exports, "credentialShapeProblem", {
644
644
  enumerable: true,
645
- get: function () { return chunkTRRB42W4_cjs.credentialShapeProblem; }
645
+ get: function () { return chunkJ5O3FBYV_cjs.credentialShapeProblem; }
646
646
  });
647
647
  Object.defineProperty(exports, "credentialValueSummary", {
648
648
  enumerable: true,
649
- get: function () { return chunkTRRB42W4_cjs.credentialValueSummary; }
649
+ get: function () { return chunkJ5O3FBYV_cjs.credentialValueSummary; }
650
650
  });
651
651
  Object.defineProperty(exports, "errorFromStatus", {
652
652
  enumerable: true,
653
- get: function () { return chunkTRRB42W4_cjs.errorFromStatus; }
653
+ get: function () { return chunkJ5O3FBYV_cjs.errorFromStatus; }
654
654
  });
655
655
  Object.defineProperty(exports, "formatVendorDetail", {
656
656
  enumerable: true,
657
- get: function () { return chunkTRRB42W4_cjs.formatVendorDetail; }
657
+ get: function () { return chunkJ5O3FBYV_cjs.formatVendorDetail; }
658
658
  });
659
659
  Object.defineProperty(exports, "isAutotaskError", {
660
660
  enumerable: true,
661
- get: function () { return chunkTRRB42W4_cjs.isAutotaskError; }
661
+ get: function () { return chunkJ5O3FBYV_cjs.isAutotaskError; }
662
662
  });
663
663
  Object.defineProperty(exports, "isDeterministicVendor500", {
664
664
  enumerable: true,
665
- get: function () { return chunkTRRB42W4_cjs.isDeterministicVendor500; }
665
+ get: function () { return chunkJ5O3FBYV_cjs.isDeterministicVendor500; }
666
666
  });
667
667
  Object.defineProperty(exports, "mergeDetails", {
668
668
  enumerable: true,
669
- get: function () { return chunkTRRB42W4_cjs.mergeDetails; }
669
+ get: function () { return chunkJ5O3FBYV_cjs.mergeDetails; }
670
670
  });
671
671
  Object.defineProperty(exports, "nextActionFor", {
672
672
  enumerable: true,
673
- get: function () { return chunkTRRB42W4_cjs.nextActionFor; }
673
+ get: function () { return chunkJ5O3FBYV_cjs.nextActionFor; }
674
674
  });
675
675
  Object.defineProperty(exports, "parseVendorErrors", {
676
676
  enumerable: true,
677
- get: function () { return chunkTRRB42W4_cjs.parseVendorErrors; }
677
+ get: function () { return chunkJ5O3FBYV_cjs.parseVendorErrors; }
678
678
  });
679
679
  Object.defineProperty(exports, "NoopLogger", {
680
680
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { AutotaskClient } from './chunk-ISCT6TLA.js';
1
+ export { AutotaskClient } from './chunk-URM33IGW.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-WL7VSHPI.js';
4
- import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-LCZJ3STD.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-LCZJ3STD.js';
3
+ export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-BXTAL6LB.js';
4
+ import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-EUD4CCRR.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-EUD4CCRR.js';
6
6
  import './chunk-X46S4BDG.js';
7
7
  export { NoopLogger, REDACTED } from './chunk-7NKB4UXV.js';
8
8
  import { existsSync, readFileSync } from 'fs';