node-autotask 0.66.0 → 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/MCP_TOOL_CATALOG.json +28 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +107 -8
  5. package/dist/capabilities-data.js +106 -7
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-4HJVHVPE.js → chunk-BF22HBNT.js} +2 -2
  9. package/dist/{chunk-XAJ7SBPE.cjs → chunk-CG6OPTFG.cjs} +31 -31
  10. package/dist/{chunk-KO36QZXN.js → chunk-DPJLN5BB.js} +2599 -2306
  11. package/dist/{chunk-QG3O5G4L.cjs → chunk-HFWOHUVF.cjs} +173 -173
  12. package/dist/{chunk-L5K2D2MZ.js → chunk-JCMXQUIC.js} +3 -3
  13. package/dist/{chunk-T5TI22K5.js → chunk-OUVUQQXH.js} +2 -2
  14. package/dist/{chunk-FLVMENXG.cjs → chunk-SGH7F2CH.cjs} +3 -3
  15. package/dist/{chunk-TIFJFCCN.cjs → chunk-V2GE763R.cjs} +2603 -2309
  16. package/dist/{index-BZ11hF8H.d.ts → index-DQ08uOH0.d.ts} +45 -5
  17. package/dist/{index-DnisYPlj.d.cts → index-mIsdpO5d.d.cts} +45 -5
  18. package/dist/index.cjs +84 -84
  19. package/dist/index.d.cts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +5 -5
  22. package/dist/operations/index.cjs +50 -50
  23. package/dist/operations/index.d.cts +2 -2
  24. package/dist/operations/index.d.ts +2 -2
  25. package/dist/operations/index.js +2 -2
  26. package/dist/pool.cjs +29 -11
  27. package/dist/pool.js +25 -7
  28. package/dist/resources/index.cjs +27 -27
  29. package/dist/resources/index.d.cts +1 -1
  30. package/dist/resources/index.d.ts +1 -1
  31. package/dist/resources/index.js +3 -3
  32. package/docs/API.md +3 -3
  33. package/docs/VENDOR-QUIRKS.md +32 -0
  34. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkXAJ7SBPE_cjs = require('./chunk-XAJ7SBPE.cjs');
3
+ var chunkCG6OPTFG_cjs = require('./chunk-CG6OPTFG.cjs');
4
4
  require('./chunk-S5CH4H6H.cjs');
5
- var chunkQG3O5G4L_cjs = require('./chunk-QG3O5G4L.cjs');
6
- var chunkTIFJFCCN_cjs = require('./chunk-TIFJFCCN.cjs');
7
- require('./chunk-FLVMENXG.cjs');
5
+ var chunkHFWOHUVF_cjs = require('./chunk-HFWOHUVF.cjs');
6
+ var chunkV2GE763R_cjs = require('./chunk-V2GE763R.cjs');
7
+ require('./chunk-SGH7F2CH.cjs');
8
8
  var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
9
9
  var fs = require('fs');
10
10
 
@@ -19,7 +19,7 @@ var ALIASES = {
19
19
  AUTOTASK_USERNAME: ["AUTOTASK_USER"]
20
20
  };
21
21
  function presenceError(name, source) {
22
- return new chunkTIFJFCCN_cjs.AutotaskConfigError(
22
+ return new chunkV2GE763R_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 chunkTIFJFCCN_cjs.AutotaskConfigError(
31
- `${source}: ${name} ${chunkTIFJFCCN_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkTIFJFCCN_cjs.credentialValueSummary(value)}]`,
30
+ return new chunkV2GE763R_cjs.AutotaskConfigError(
31
+ `${source}: ${name} ${chunkV2GE763R_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkV2GE763R_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 chunkTIFJFCCN_cjs.AutotaskConfigError(`credential env file not found: ${path}`, {
55
+ throw new chunkV2GE763R_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 (chunkTIFJFCCN_cjs.credentialShapeProblem(value, { skipEdgeWhitespace: true }) !== void 0) {
101
+ if (chunkV2GE763R_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" && chunkTIFJFCCN_cjs.ZONES.includes(z);
125
+ var knownZone = (z) => typeof z === "string" && chunkV2GE763R_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 = chunkTIFJFCCN_cjs.zoneUrl(zone);
153
+ url = chunkV2GE763R_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: chunkTIFJFCCN_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkTIFJFCCN_cjs.zoneUrl(chunkTIFJFCCN_cjs.DEFAULT_ZONE)).host };
162
+ zoneInfo = { provided: false, resolvable: true, zone: chunkV2GE763R_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkV2GE763R_cjs.zoneUrl(chunkV2GE763R_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 ${chunkTIFJFCCN_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 ${chunkV2GE763R_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 = chunkTIFJFCCN_cjs.isAutotaskError(err) ? err.code : "UNEXPECTED";
196
+ const code = chunkV2GE763R_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: chunkTIFJFCCN_cjs.isAutotaskError(err) ? err.suggestedAction : void 0,
202
+ hint: chunkV2GE763R_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 chunkTIFJFCCN_cjs.RateLimitError && (err.code === "RATE_LIMITED_COOLDOWN" || err.notSent === true)) {
209
+ if (err instanceof chunkV2GE763R_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 (chunkTIFJFCCN_cjs.isAutotaskError(err)) return { error: err };
248
+ if (chunkV2GE763R_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 = chunkTIFJFCCN_cjs.buildQueryRequest(cfg.baseUrl, entity.path, { maxRecords: 1 });
307
+ const req = chunkV2GE763R_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 = chunkTIFJFCCN_cjs.parseVendorErrors(vendorError);
391
+ const entries = chunkV2GE763R_cjs.parseVendorErrors(vendorError);
392
392
  return entries !== void 0 && entries.length > 0;
393
393
  }
394
394
  function classifyWriteOutcome(error) {
395
- if (chunkTIFJFCCN_cjs.isAutotaskError(error)) {
395
+ if (chunkV2GE763R_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 = chunkTIFJFCCN_cjs.isAutotaskError(error);
421
+ const typed = chunkV2GE763R_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 chunkXAJ7SBPE_cjs.AutotaskClient; }
429
+ get: function () { return chunkCG6OPTFG_cjs.AutotaskClient; }
430
430
  });
431
431
  Object.defineProperty(exports, "AuthenticateResource", {
432
432
  enumerable: true,
433
- get: function () { return chunkQG3O5G4L_cjs.AuthenticateResource; }
433
+ get: function () { return chunkHFWOHUVF_cjs.AuthenticateResource; }
434
434
  });
435
435
  Object.defineProperty(exports, "ConfigurationItemsResource", {
436
436
  enumerable: true,
437
- get: function () { return chunkQG3O5G4L_cjs.ConfigurationItemsResource; }
437
+ get: function () { return chunkHFWOHUVF_cjs.ConfigurationItemsResource; }
438
438
  });
439
439
  Object.defineProperty(exports, "ContactsResource", {
440
440
  enumerable: true,
441
- get: function () { return chunkQG3O5G4L_cjs.ContactsResource; }
441
+ get: function () { return chunkHFWOHUVF_cjs.ContactsResource; }
442
442
  });
443
443
  Object.defineProperty(exports, "EntityInformationResource", {
444
444
  enumerable: true,
445
- get: function () { return chunkQG3O5G4L_cjs.EntityInformationResource; }
445
+ get: function () { return chunkHFWOHUVF_cjs.EntityInformationResource; }
446
446
  });
447
447
  Object.defineProperty(exports, "InventoryProductsResource", {
448
448
  enumerable: true,
449
- get: function () { return chunkQG3O5G4L_cjs.InventoryProductsResource; }
449
+ get: function () { return chunkHFWOHUVF_cjs.InventoryProductsResource; }
450
450
  });
451
451
  Object.defineProperty(exports, "ModulesResource", {
452
452
  enumerable: true,
453
- get: function () { return chunkQG3O5G4L_cjs.ModulesResource; }
453
+ get: function () { return chunkHFWOHUVF_cjs.ModulesResource; }
454
454
  });
455
455
  Object.defineProperty(exports, "QuotesResource", {
456
456
  enumerable: true,
457
- get: function () { return chunkQG3O5G4L_cjs.QuotesResource; }
457
+ get: function () { return chunkHFWOHUVF_cjs.QuotesResource; }
458
458
  });
459
459
  Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
460
460
  enumerable: true,
461
- get: function () { return chunkQG3O5G4L_cjs.ResourceTimeOffAdditionalResource; }
461
+ get: function () { return chunkHFWOHUVF_cjs.ResourceTimeOffAdditionalResource; }
462
462
  });
463
463
  Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
464
464
  enumerable: true,
465
- get: function () { return chunkQG3O5G4L_cjs.ResourceTimeOffBalancesResource; }
465
+ get: function () { return chunkHFWOHUVF_cjs.ResourceTimeOffBalancesResource; }
466
466
  });
467
467
  Object.defineProperty(exports, "ResourcesResource", {
468
468
  enumerable: true,
469
- get: function () { return chunkQG3O5G4L_cjs.ResourcesResource; }
469
+ get: function () { return chunkHFWOHUVF_cjs.ResourcesResource; }
470
470
  });
471
471
  Object.defineProperty(exports, "ServiceCallsResource", {
472
472
  enumerable: true,
473
- get: function () { return chunkQG3O5G4L_cjs.ServiceCallsResource; }
473
+ get: function () { return chunkHFWOHUVF_cjs.ServiceCallsResource; }
474
474
  });
475
475
  Object.defineProperty(exports, "ThresholdInformationResource", {
476
476
  enumerable: true,
477
- get: function () { return chunkQG3O5G4L_cjs.ThresholdInformationResource; }
477
+ get: function () { return chunkHFWOHUVF_cjs.ThresholdInformationResource; }
478
478
  });
479
479
  Object.defineProperty(exports, "TicketChargesResource", {
480
480
  enumerable: true,
481
- get: function () { return chunkQG3O5G4L_cjs.TicketChargesResource; }
481
+ get: function () { return chunkHFWOHUVF_cjs.TicketChargesResource; }
482
482
  });
483
483
  Object.defineProperty(exports, "TicketsResource", {
484
484
  enumerable: true,
485
- get: function () { return chunkQG3O5G4L_cjs.TicketsResource; }
485
+ get: function () { return chunkHFWOHUVF_cjs.TicketsResource; }
486
486
  });
487
487
  Object.defineProperty(exports, "TimeOffRequestsResource", {
488
488
  enumerable: true,
489
- get: function () { return chunkQG3O5G4L_cjs.TimeOffRequestsResource; }
489
+ get: function () { return chunkHFWOHUVF_cjs.TimeOffRequestsResource; }
490
490
  });
491
491
  Object.defineProperty(exports, "VersionInformationResource", {
492
492
  enumerable: true,
493
- get: function () { return chunkQG3O5G4L_cjs.VersionInformationResource; }
493
+ get: function () { return chunkHFWOHUVF_cjs.VersionInformationResource; }
494
494
  });
495
495
  Object.defineProperty(exports, "VersionResource", {
496
496
  enumerable: true,
497
- get: function () { return chunkQG3O5G4L_cjs.VersionResource; }
497
+ get: function () { return chunkHFWOHUVF_cjs.VersionResource; }
498
498
  });
499
499
  Object.defineProperty(exports, "ZoneInformationResource", {
500
500
  enumerable: true,
501
- get: function () { return chunkQG3O5G4L_cjs.ZoneInformationResource; }
501
+ get: function () { return chunkHFWOHUVF_cjs.ZoneInformationResource; }
502
502
  });
503
503
  Object.defineProperty(exports, "AutotaskAbortError", {
504
504
  enumerable: true,
505
- get: function () { return chunkTIFJFCCN_cjs.AutotaskAbortError; }
505
+ get: function () { return chunkV2GE763R_cjs.AutotaskAbortError; }
506
506
  });
507
507
  Object.defineProperty(exports, "AutotaskConfigError", {
508
508
  enumerable: true,
509
- get: function () { return chunkTIFJFCCN_cjs.AutotaskConfigError; }
509
+ get: function () { return chunkV2GE763R_cjs.AutotaskConfigError; }
510
510
  });
511
511
  Object.defineProperty(exports, "AutotaskError", {
512
512
  enumerable: true,
513
- get: function () { return chunkTIFJFCCN_cjs.AutotaskError; }
513
+ get: function () { return chunkV2GE763R_cjs.AutotaskError; }
514
514
  });
515
515
  Object.defineProperty(exports, "AutotaskNetworkError", {
516
516
  enumerable: true,
517
- get: function () { return chunkTIFJFCCN_cjs.AutotaskNetworkError; }
517
+ get: function () { return chunkV2GE763R_cjs.AutotaskNetworkError; }
518
518
  });
519
519
  Object.defineProperty(exports, "AutotaskTimeoutError", {
520
520
  enumerable: true,
521
- get: function () { return chunkTIFJFCCN_cjs.AutotaskTimeoutError; }
521
+ get: function () { return chunkV2GE763R_cjs.AutotaskTimeoutError; }
522
522
  });
523
523
  Object.defineProperty(exports, "CREDENTIAL_SHAPE_POINTER", {
524
524
  enumerable: true,
525
- get: function () { return chunkTIFJFCCN_cjs.CREDENTIAL_SHAPE_POINTER; }
525
+ get: function () { return chunkV2GE763R_cjs.CREDENTIAL_SHAPE_POINTER; }
526
526
  });
527
527
  Object.defineProperty(exports, "CompaniesResource", {
528
528
  enumerable: true,
529
- get: function () { return chunkTIFJFCCN_cjs.CompaniesResource; }
529
+ get: function () { return chunkV2GE763R_cjs.CompaniesResource; }
530
530
  });
531
531
  Object.defineProperty(exports, "ConfirmationRequiredError", {
532
532
  enumerable: true,
533
- get: function () { return chunkTIFJFCCN_cjs.ConfirmationRequiredError; }
533
+ get: function () { return chunkV2GE763R_cjs.ConfirmationRequiredError; }
534
534
  });
535
535
  Object.defineProperty(exports, "ConflictError", {
536
536
  enumerable: true,
537
- get: function () { return chunkTIFJFCCN_cjs.ConflictError; }
537
+ get: function () { return chunkV2GE763R_cjs.ConflictError; }
538
538
  });
539
539
  Object.defineProperty(exports, "ContractsResource", {
540
540
  enumerable: true,
541
- get: function () { return chunkTIFJFCCN_cjs.ContractsResource; }
541
+ get: function () { return chunkV2GE763R_cjs.ContractsResource; }
542
542
  });
543
543
  Object.defineProperty(exports, "DeleteBoundaryError", {
544
544
  enumerable: true,
545
- get: function () { return chunkTIFJFCCN_cjs.DeleteBoundaryError; }
545
+ get: function () { return chunkV2GE763R_cjs.DeleteBoundaryError; }
546
546
  });
547
547
  Object.defineProperty(exports, "EmptyResponseError", {
548
548
  enumerable: true,
549
- get: function () { return chunkTIFJFCCN_cjs.EmptyResponseError; }
549
+ get: function () { return chunkV2GE763R_cjs.EmptyResponseError; }
550
550
  });
551
551
  Object.defineProperty(exports, "GenericResource", {
552
552
  enumerable: true,
553
- get: function () { return chunkTIFJFCCN_cjs.GenericResource; }
553
+ get: function () { return chunkV2GE763R_cjs.GenericResource; }
554
554
  });
555
555
  Object.defineProperty(exports, "HostPolicyDeniedError", {
556
556
  enumerable: true,
557
- get: function () { return chunkTIFJFCCN_cjs.HostPolicyDeniedError; }
557
+ get: function () { return chunkV2GE763R_cjs.HostPolicyDeniedError; }
558
558
  });
559
559
  Object.defineProperty(exports, "InvoicesResource", {
560
560
  enumerable: true,
561
- get: function () { return chunkTIFJFCCN_cjs.InvoicesResource; }
561
+ get: function () { return chunkV2GE763R_cjs.InvoicesResource; }
562
562
  });
563
563
  Object.defineProperty(exports, "MIN_PREFIX_SUMMARY_LENGTH", {
564
564
  enumerable: true,
565
- get: function () { return chunkTIFJFCCN_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
565
+ get: function () { return chunkV2GE763R_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
566
566
  });
567
567
  Object.defineProperty(exports, "MaintenanceError", {
568
568
  enumerable: true,
569
- get: function () { return chunkTIFJFCCN_cjs.MaintenanceError; }
569
+ get: function () { return chunkV2GE763R_cjs.MaintenanceError; }
570
570
  });
571
571
  Object.defineProperty(exports, "MarkerUnsafeIdError", {
572
572
  enumerable: true,
573
- get: function () { return chunkTIFJFCCN_cjs.MarkerUnsafeIdError; }
573
+ get: function () { return chunkV2GE763R_cjs.MarkerUnsafeIdError; }
574
574
  });
575
575
  Object.defineProperty(exports, "MoveRefusedError", {
576
576
  enumerable: true,
577
- get: function () { return chunkTIFJFCCN_cjs.MoveRefusedError; }
577
+ get: function () { return chunkV2GE763R_cjs.MoveRefusedError; }
578
578
  });
579
579
  Object.defineProperty(exports, "NotFoundError", {
580
580
  enumerable: true,
581
- get: function () { return chunkTIFJFCCN_cjs.NotFoundError; }
581
+ get: function () { return chunkV2GE763R_cjs.NotFoundError; }
582
582
  });
583
583
  Object.defineProperty(exports, "OperationNotSupportedError", {
584
584
  enumerable: true,
585
- get: function () { return chunkTIFJFCCN_cjs.OperationNotSupportedError; }
585
+ get: function () { return chunkV2GE763R_cjs.OperationNotSupportedError; }
586
586
  });
587
587
  Object.defineProperty(exports, "PaginationLimitError", {
588
588
  enumerable: true,
589
- get: function () { return chunkTIFJFCCN_cjs.PaginationLimitError; }
589
+ get: function () { return chunkV2GE763R_cjs.PaginationLimitError; }
590
590
  });
591
591
  Object.defineProperty(exports, "QueryTooLongError", {
592
592
  enumerable: true,
593
- get: function () { return chunkTIFJFCCN_cjs.QueryTooLongError; }
593
+ get: function () { return chunkV2GE763R_cjs.QueryTooLongError; }
594
594
  });
595
595
  Object.defineProperty(exports, "RateLimitError", {
596
596
  enumerable: true,
597
- get: function () { return chunkTIFJFCCN_cjs.RateLimitError; }
597
+ get: function () { return chunkV2GE763R_cjs.RateLimitError; }
598
598
  });
599
599
  Object.defineProperty(exports, "RecoveryTruncatedError", {
600
600
  enumerable: true,
601
- get: function () { return chunkTIFJFCCN_cjs.RecoveryTruncatedError; }
601
+ get: function () { return chunkV2GE763R_cjs.RecoveryTruncatedError; }
602
602
  });
603
603
  Object.defineProperty(exports, "ResolutionError", {
604
604
  enumerable: true,
605
- get: function () { return chunkTIFJFCCN_cjs.ResolutionError; }
605
+ get: function () { return chunkV2GE763R_cjs.ResolutionError; }
606
606
  });
607
607
  Object.defineProperty(exports, "ResponseRejectedError", {
608
608
  enumerable: true,
609
- get: function () { return chunkTIFJFCCN_cjs.ResponseRejectedError; }
609
+ get: function () { return chunkV2GE763R_cjs.ResponseRejectedError; }
610
610
  });
611
611
  Object.defineProperty(exports, "SIMPLE_RESOURCES", {
612
612
  enumerable: true,
613
- get: function () { return chunkTIFJFCCN_cjs.SIMPLE_RESOURCES; }
613
+ get: function () { return chunkV2GE763R_cjs.SIMPLE_RESOURCES; }
614
614
  });
615
615
  Object.defineProperty(exports, "ScopeRequiredError", {
616
616
  enumerable: true,
617
- get: function () { return chunkTIFJFCCN_cjs.ScopeRequiredError; }
617
+ get: function () { return chunkV2GE763R_cjs.ScopeRequiredError; }
618
618
  });
619
619
  Object.defineProperty(exports, "StaleObjectError", {
620
620
  enumerable: true,
621
- get: function () { return chunkTIFJFCCN_cjs.StaleObjectError; }
621
+ get: function () { return chunkV2GE763R_cjs.StaleObjectError; }
622
622
  });
623
623
  Object.defineProperty(exports, "TimeEntriesResource", {
624
624
  enumerable: true,
625
- get: function () { return chunkTIFJFCCN_cjs.TimeEntriesResource; }
625
+ get: function () { return chunkV2GE763R_cjs.TimeEntriesResource; }
626
626
  });
627
627
  Object.defineProperty(exports, "TtlCache", {
628
628
  enumerable: true,
629
- get: function () { return chunkTIFJFCCN_cjs.TtlCache; }
629
+ get: function () { return chunkV2GE763R_cjs.TtlCache; }
630
630
  });
631
631
  Object.defineProperty(exports, "UNSCOPED_WALK_THRESHOLD", {
632
632
  enumerable: true,
633
- get: function () { return chunkTIFJFCCN_cjs.UNSCOPED_WALK_THRESHOLD; }
633
+ get: function () { return chunkV2GE763R_cjs.UNSCOPED_WALK_THRESHOLD; }
634
634
  });
635
635
  Object.defineProperty(exports, "UnexpectedContentTypeError", {
636
636
  enumerable: true,
637
- get: function () { return chunkTIFJFCCN_cjs.UnexpectedContentTypeError; }
637
+ get: function () { return chunkV2GE763R_cjs.UnexpectedContentTypeError; }
638
638
  });
639
639
  Object.defineProperty(exports, "ZONES", {
640
640
  enumerable: true,
641
- get: function () { return chunkTIFJFCCN_cjs.ZONES; }
641
+ get: function () { return chunkV2GE763R_cjs.ZONES; }
642
642
  });
643
643
  Object.defineProperty(exports, "credentialShapeProblem", {
644
644
  enumerable: true,
645
- get: function () { return chunkTIFJFCCN_cjs.credentialShapeProblem; }
645
+ get: function () { return chunkV2GE763R_cjs.credentialShapeProblem; }
646
646
  });
647
647
  Object.defineProperty(exports, "credentialValueSummary", {
648
648
  enumerable: true,
649
- get: function () { return chunkTIFJFCCN_cjs.credentialValueSummary; }
649
+ get: function () { return chunkV2GE763R_cjs.credentialValueSummary; }
650
650
  });
651
651
  Object.defineProperty(exports, "errorFromStatus", {
652
652
  enumerable: true,
653
- get: function () { return chunkTIFJFCCN_cjs.errorFromStatus; }
653
+ get: function () { return chunkV2GE763R_cjs.errorFromStatus; }
654
654
  });
655
655
  Object.defineProperty(exports, "formatVendorDetail", {
656
656
  enumerable: true,
657
- get: function () { return chunkTIFJFCCN_cjs.formatVendorDetail; }
657
+ get: function () { return chunkV2GE763R_cjs.formatVendorDetail; }
658
658
  });
659
659
  Object.defineProperty(exports, "isAutotaskError", {
660
660
  enumerable: true,
661
- get: function () { return chunkTIFJFCCN_cjs.isAutotaskError; }
661
+ get: function () { return chunkV2GE763R_cjs.isAutotaskError; }
662
662
  });
663
663
  Object.defineProperty(exports, "isDeterministicVendor500", {
664
664
  enumerable: true,
665
- get: function () { return chunkTIFJFCCN_cjs.isDeterministicVendor500; }
665
+ get: function () { return chunkV2GE763R_cjs.isDeterministicVendor500; }
666
666
  });
667
667
  Object.defineProperty(exports, "mergeDetails", {
668
668
  enumerable: true,
669
- get: function () { return chunkTIFJFCCN_cjs.mergeDetails; }
669
+ get: function () { return chunkV2GE763R_cjs.mergeDetails; }
670
670
  });
671
671
  Object.defineProperty(exports, "nextActionFor", {
672
672
  enumerable: true,
673
- get: function () { return chunkTIFJFCCN_cjs.nextActionFor; }
673
+ get: function () { return chunkV2GE763R_cjs.nextActionFor; }
674
674
  });
675
675
  Object.defineProperty(exports, "parseVendorErrors", {
676
676
  enumerable: true,
677
- get: function () { return chunkTIFJFCCN_cjs.parseVendorErrors; }
677
+ get: function () { return chunkV2GE763R_cjs.parseVendorErrors; }
678
678
  });
679
679
  Object.defineProperty(exports, "NoopLogger", {
680
680
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-DnisYPlj.cjs';
2
- export { c as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, d as ConfigurationItemsResource, e as ContactsResource, f as ContractsProfitabilityResult, g as ContractsResource, h as CostRateResolution, E as EntityInformationResource, G as GenericResource, i as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, j as InvoicesResource, M as ModulesResource, O as OpsFlags, P as ProfitRateSource, k as ProfitabilityActivityCategory, l as ProfitabilityDataQualityWarning, m as ProfitabilityHighestCostTicket, n as ProfitabilityLabourCostMethod, o as ProfitabilityMiscoding, p as ProfitabilityMonthlyRow, q as ProfitabilityOpenRenewalItem, r as ProfitabilityOptions, s as ProfitabilityPart, t as ProfitabilityPartDigest, u as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, v as ResourceTimeOffBalancesResource, w as ResourcesResource, S as SIMPLE_RESOURCES, x as ServiceCallsResource, y as SimpleResourceEntry, z as ThresholdInformationResource, B as TicketChargesResource, D as TicketsResource, F as TimeEntriesPostedCountResult, J as TimeEntriesPostedPagingOptions, K as TimeEntriesPostedWindowCountOptions, L as TimeEntriesPostedWindowListOptions, N as TimeEntriesPostedWindowOptions, U as TimeEntriesPostedWindowResult, V as TimeEntriesResource, W as TimeEntryReviewFields, X as TimeEntryReviewResult, Y as TimeOffRequestsResource, Z as TtlCache, _ as VersionInformationResource, $ as VersionResource, a0 as ZONES, a1 as ZoneInformationResource, a2 as ZoneName } from './index-DnisYPlj.cjs';
1
+ import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-mIsdpO5d.cjs';
2
+ export { c as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, h as ContractsProfitabilityResult, i as ContractsResource, j as CostRateResolution, 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, P as ProfitRateSource, m as ProfitabilityActivityCategory, n as ProfitabilityDataQualityWarning, o as ProfitabilityHighestCostTicket, p as ProfitabilityLabourCostMethod, q as ProfitabilityMiscoding, r as ProfitabilityMonthlyRow, s as ProfitabilityOpenRenewalItem, t as ProfitabilityOptions, u as ProfitabilityPart, v as ProfitabilityPartDigest, w as ProfitabilityRevenueByType, 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, L as TimeEntriesPostedCountResult, N as TimeEntriesPostedPagingOptions, U as TimeEntriesPostedWindowCountOptions, V as TimeEntriesPostedWindowListOptions, W as TimeEntriesPostedWindowOptions, X as TimeEntriesPostedWindowResult, Y as TimeEntriesResource, Z as TimeEntryReviewFields, _ as TimeEntryReviewResult, $ as TimeOffRequestsResource, a0 as TtlCache, a1 as VersionInformationResource, a2 as VersionResource, a3 as ZONES, a4 as ZoneInformationResource, a5 as ZoneName } from './index-mIsdpO5d.cjs';
3
3
  import { A as AutotaskError, a as AutotaskErrorOptions, b as AutotaskConfigError } from './base-CHMATPq0.cjs';
4
4
  export { E as ErrorCategory, c as ErrorIdRef, N as NextAction, i as isAutotaskError, n as nextActionFor } from './base-CHMATPq0.cjs';
5
5
  export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-BZ11hF8H.js';
2
- export { c as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, d as ConfigurationItemsResource, e as ContactsResource, f as ContractsProfitabilityResult, g as ContractsResource, h as CostRateResolution, E as EntityInformationResource, G as GenericResource, i as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, j as InvoicesResource, M as ModulesResource, O as OpsFlags, P as ProfitRateSource, k as ProfitabilityActivityCategory, l as ProfitabilityDataQualityWarning, m as ProfitabilityHighestCostTicket, n as ProfitabilityLabourCostMethod, o as ProfitabilityMiscoding, p as ProfitabilityMonthlyRow, q as ProfitabilityOpenRenewalItem, r as ProfitabilityOptions, s as ProfitabilityPart, t as ProfitabilityPartDigest, u as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, v as ResourceTimeOffBalancesResource, w as ResourcesResource, S as SIMPLE_RESOURCES, x as ServiceCallsResource, y as SimpleResourceEntry, z as ThresholdInformationResource, B as TicketChargesResource, D as TicketsResource, F as TimeEntriesPostedCountResult, J as TimeEntriesPostedPagingOptions, K as TimeEntriesPostedWindowCountOptions, L as TimeEntriesPostedWindowListOptions, N as TimeEntriesPostedWindowOptions, U as TimeEntriesPostedWindowResult, V as TimeEntriesResource, W as TimeEntryReviewFields, X as TimeEntryReviewResult, Y as TimeOffRequestsResource, Z as TtlCache, _ as VersionInformationResource, $ as VersionResource, a0 as ZONES, a1 as ZoneInformationResource, a2 as ZoneName } from './index-BZ11hF8H.js';
1
+ import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-DQ08uOH0.js';
2
+ export { c as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, h as ContractsProfitabilityResult, i as ContractsResource, j as CostRateResolution, 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, P as ProfitRateSource, m as ProfitabilityActivityCategory, n as ProfitabilityDataQualityWarning, o as ProfitabilityHighestCostTicket, p as ProfitabilityLabourCostMethod, q as ProfitabilityMiscoding, r as ProfitabilityMonthlyRow, s as ProfitabilityOpenRenewalItem, t as ProfitabilityOptions, u as ProfitabilityPart, v as ProfitabilityPartDigest, w as ProfitabilityRevenueByType, 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, L as TimeEntriesPostedCountResult, N as TimeEntriesPostedPagingOptions, U as TimeEntriesPostedWindowCountOptions, V as TimeEntriesPostedWindowListOptions, W as TimeEntriesPostedWindowOptions, X as TimeEntriesPostedWindowResult, Y as TimeEntriesResource, Z as TimeEntryReviewFields, _ as TimeEntryReviewResult, $ as TimeOffRequestsResource, a0 as TtlCache, a1 as VersionInformationResource, a2 as VersionResource, a3 as ZONES, a4 as ZoneInformationResource, a5 as ZoneName } from './index-DQ08uOH0.js';
3
3
  import { A as AutotaskError, a as AutotaskErrorOptions, b as AutotaskConfigError } from './base-CHMATPq0.js';
4
4
  export { E as ErrorCategory, c as ErrorIdRef, N as NextAction, i as isAutotaskError, n as nextActionFor } from './base-CHMATPq0.js';
5
5
  export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.js';
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- export { AutotaskClient } from './chunk-4HJVHVPE.js';
1
+ export { AutotaskClient } from './chunk-BF22HBNT.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-T5TI22K5.js';
4
- import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-KO36QZXN.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-KO36QZXN.js';
6
- import './chunk-L5K2D2MZ.js';
3
+ export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-OUVUQQXH.js';
4
+ import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-DPJLN5BB.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-DPJLN5BB.js';
6
+ import './chunk-JCMXQUIC.js';
7
7
  export { NoopLogger, REDACTED } from './chunk-7NKB4UXV.js';
8
8
  import { existsSync, readFileSync } from 'fs';
9
9