node-autotask 0.60.1 → 0.62.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/CHANGELOG.md +30 -0
- package/MCP_TOOL_CATALOG.json +298 -9
- package/README.md +3 -3
- package/capabilities.json +1047 -7
- package/dist/capabilities-data.js +1046 -6
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-XYWSPKCN.cjs → chunk-LFEMZVOV.cjs} +33 -31
- package/dist/{chunk-2GPQ55O6.js → chunk-O6SYTORL.js} +4 -2
- package/dist/{chunk-XP43NERF.cjs → chunk-ODPM4YVG.cjs} +3 -3
- package/dist/{chunk-VN3OZHC7.cjs → chunk-QHM6ROAE.cjs} +174 -174
- package/dist/{chunk-XUPVX5MQ.js → chunk-S4YR3RLJ.js} +2 -2
- package/dist/{chunk-Y2SR6D2D.js → chunk-TGCFJCWN.js} +237 -8
- package/dist/{chunk-MYLSBOZI.cjs → chunk-VDYUG6RK.cjs} +242 -13
- package/dist/{chunk-K722F7EM.js → chunk-XJNNCMBS.js} +3 -3
- package/dist/{index-BmaFIj42.d.cts → index-BXJOPL7w.d.cts} +4 -2
- package/dist/{index-cAntv7_A.d.ts → index-C4wZRw9N.d.ts} +4 -2
- package/dist/{index-D6bAO4ZV.d.cts → index-COQEG55Q.d.cts} +90 -1
- package/dist/{index-D6bAO4ZV.d.ts → index-COQEG55Q.d.ts} +90 -1
- package/dist/index.cjs +84 -84
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +50 -50
- package/dist/operations/index.d.cts +4 -4
- package/dist/operations/index.d.ts +4 -4
- package/dist/operations/index.js +2 -2
- package/dist/pool.cjs +8 -8
- package/dist/pool.d.cts +1 -1
- package/dist/pool.d.ts +1 -1
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +27 -27
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/docs/API.md +4 -2
- package/docs/VENDOR-QUIRKS.md +18 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLFEMZVOV_cjs = require('./chunk-LFEMZVOV.cjs');
|
|
4
4
|
require('./chunk-S5CH4H6H.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkQHM6ROAE_cjs = require('./chunk-QHM6ROAE.cjs');
|
|
6
|
+
var chunkVDYUG6RK_cjs = require('./chunk-VDYUG6RK.cjs');
|
|
7
|
+
require('./chunk-ODPM4YVG.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
|
|
22
|
+
return new chunkVDYUG6RK_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
|
|
31
|
-
`${source}: ${name} ${
|
|
30
|
+
return new chunkVDYUG6RK_cjs.AutotaskConfigError(
|
|
31
|
+
`${source}: ${name} ${chunkVDYUG6RK_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkVDYUG6RK_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
|
|
55
|
+
throw new chunkVDYUG6RK_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 (
|
|
101
|
+
if (chunkVDYUG6RK_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" &&
|
|
125
|
+
var knownZone = (z) => typeof z === "string" && chunkVDYUG6RK_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 =
|
|
153
|
+
url = chunkVDYUG6RK_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:
|
|
162
|
+
zoneInfo = { provided: false, resolvable: true, zone: chunkVDYUG6RK_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkVDYUG6RK_cjs.zoneUrl(chunkVDYUG6RK_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 ${
|
|
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 ${chunkVDYUG6RK_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 =
|
|
196
|
+
const code = chunkVDYUG6RK_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:
|
|
202
|
+
hint: chunkVDYUG6RK_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
|
|
209
|
+
if (err instanceof chunkVDYUG6RK_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 (
|
|
248
|
+
if (chunkVDYUG6RK_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 =
|
|
307
|
+
const req = chunkVDYUG6RK_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 =
|
|
391
|
+
const entries = chunkVDYUG6RK_cjs.parseVendorErrors(vendorError);
|
|
392
392
|
return entries !== void 0 && entries.length > 0;
|
|
393
393
|
}
|
|
394
394
|
function classifyWriteOutcome(error) {
|
|
395
|
-
if (
|
|
395
|
+
if (chunkVDYUG6RK_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 =
|
|
421
|
+
const typed = chunkVDYUG6RK_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
|
|
429
|
+
get: function () { return chunkLFEMZVOV_cjs.AutotaskClient; }
|
|
430
430
|
});
|
|
431
431
|
Object.defineProperty(exports, "AuthenticateResource", {
|
|
432
432
|
enumerable: true,
|
|
433
|
-
get: function () { return
|
|
433
|
+
get: function () { return chunkQHM6ROAE_cjs.AuthenticateResource; }
|
|
434
434
|
});
|
|
435
435
|
Object.defineProperty(exports, "ConfigurationItemsResource", {
|
|
436
436
|
enumerable: true,
|
|
437
|
-
get: function () { return
|
|
437
|
+
get: function () { return chunkQHM6ROAE_cjs.ConfigurationItemsResource; }
|
|
438
438
|
});
|
|
439
439
|
Object.defineProperty(exports, "ContactsResource", {
|
|
440
440
|
enumerable: true,
|
|
441
|
-
get: function () { return
|
|
441
|
+
get: function () { return chunkQHM6ROAE_cjs.ContactsResource; }
|
|
442
442
|
});
|
|
443
443
|
Object.defineProperty(exports, "EntityInformationResource", {
|
|
444
444
|
enumerable: true,
|
|
445
|
-
get: function () { return
|
|
445
|
+
get: function () { return chunkQHM6ROAE_cjs.EntityInformationResource; }
|
|
446
446
|
});
|
|
447
447
|
Object.defineProperty(exports, "InventoryProductsResource", {
|
|
448
448
|
enumerable: true,
|
|
449
|
-
get: function () { return
|
|
449
|
+
get: function () { return chunkQHM6ROAE_cjs.InventoryProductsResource; }
|
|
450
450
|
});
|
|
451
451
|
Object.defineProperty(exports, "ModulesResource", {
|
|
452
452
|
enumerable: true,
|
|
453
|
-
get: function () { return
|
|
453
|
+
get: function () { return chunkQHM6ROAE_cjs.ModulesResource; }
|
|
454
454
|
});
|
|
455
455
|
Object.defineProperty(exports, "QuotesResource", {
|
|
456
456
|
enumerable: true,
|
|
457
|
-
get: function () { return
|
|
457
|
+
get: function () { return chunkQHM6ROAE_cjs.QuotesResource; }
|
|
458
458
|
});
|
|
459
459
|
Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
|
|
460
460
|
enumerable: true,
|
|
461
|
-
get: function () { return
|
|
461
|
+
get: function () { return chunkQHM6ROAE_cjs.ResourceTimeOffAdditionalResource; }
|
|
462
462
|
});
|
|
463
463
|
Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
|
|
464
464
|
enumerable: true,
|
|
465
|
-
get: function () { return
|
|
465
|
+
get: function () { return chunkQHM6ROAE_cjs.ResourceTimeOffBalancesResource; }
|
|
466
466
|
});
|
|
467
467
|
Object.defineProperty(exports, "ResourcesResource", {
|
|
468
468
|
enumerable: true,
|
|
469
|
-
get: function () { return
|
|
469
|
+
get: function () { return chunkQHM6ROAE_cjs.ResourcesResource; }
|
|
470
470
|
});
|
|
471
471
|
Object.defineProperty(exports, "ServiceCallsResource", {
|
|
472
472
|
enumerable: true,
|
|
473
|
-
get: function () { return
|
|
473
|
+
get: function () { return chunkQHM6ROAE_cjs.ServiceCallsResource; }
|
|
474
474
|
});
|
|
475
475
|
Object.defineProperty(exports, "ThresholdInformationResource", {
|
|
476
476
|
enumerable: true,
|
|
477
|
-
get: function () { return
|
|
477
|
+
get: function () { return chunkQHM6ROAE_cjs.ThresholdInformationResource; }
|
|
478
478
|
});
|
|
479
479
|
Object.defineProperty(exports, "TicketChargesResource", {
|
|
480
480
|
enumerable: true,
|
|
481
|
-
get: function () { return
|
|
481
|
+
get: function () { return chunkQHM6ROAE_cjs.TicketChargesResource; }
|
|
482
482
|
});
|
|
483
483
|
Object.defineProperty(exports, "TicketsResource", {
|
|
484
484
|
enumerable: true,
|
|
485
|
-
get: function () { return
|
|
485
|
+
get: function () { return chunkQHM6ROAE_cjs.TicketsResource; }
|
|
486
486
|
});
|
|
487
487
|
Object.defineProperty(exports, "TimeOffRequestsResource", {
|
|
488
488
|
enumerable: true,
|
|
489
|
-
get: function () { return
|
|
489
|
+
get: function () { return chunkQHM6ROAE_cjs.TimeOffRequestsResource; }
|
|
490
490
|
});
|
|
491
491
|
Object.defineProperty(exports, "VersionInformationResource", {
|
|
492
492
|
enumerable: true,
|
|
493
|
-
get: function () { return
|
|
493
|
+
get: function () { return chunkQHM6ROAE_cjs.VersionInformationResource; }
|
|
494
494
|
});
|
|
495
495
|
Object.defineProperty(exports, "VersionResource", {
|
|
496
496
|
enumerable: true,
|
|
497
|
-
get: function () { return
|
|
497
|
+
get: function () { return chunkQHM6ROAE_cjs.VersionResource; }
|
|
498
498
|
});
|
|
499
499
|
Object.defineProperty(exports, "ZoneInformationResource", {
|
|
500
500
|
enumerable: true,
|
|
501
|
-
get: function () { return
|
|
501
|
+
get: function () { return chunkQHM6ROAE_cjs.ZoneInformationResource; }
|
|
502
502
|
});
|
|
503
503
|
Object.defineProperty(exports, "AutotaskAbortError", {
|
|
504
504
|
enumerable: true,
|
|
505
|
-
get: function () { return
|
|
505
|
+
get: function () { return chunkVDYUG6RK_cjs.AutotaskAbortError; }
|
|
506
506
|
});
|
|
507
507
|
Object.defineProperty(exports, "AutotaskConfigError", {
|
|
508
508
|
enumerable: true,
|
|
509
|
-
get: function () { return
|
|
509
|
+
get: function () { return chunkVDYUG6RK_cjs.AutotaskConfigError; }
|
|
510
510
|
});
|
|
511
511
|
Object.defineProperty(exports, "AutotaskError", {
|
|
512
512
|
enumerable: true,
|
|
513
|
-
get: function () { return
|
|
513
|
+
get: function () { return chunkVDYUG6RK_cjs.AutotaskError; }
|
|
514
514
|
});
|
|
515
515
|
Object.defineProperty(exports, "AutotaskNetworkError", {
|
|
516
516
|
enumerable: true,
|
|
517
|
-
get: function () { return
|
|
517
|
+
get: function () { return chunkVDYUG6RK_cjs.AutotaskNetworkError; }
|
|
518
518
|
});
|
|
519
519
|
Object.defineProperty(exports, "AutotaskTimeoutError", {
|
|
520
520
|
enumerable: true,
|
|
521
|
-
get: function () { return
|
|
521
|
+
get: function () { return chunkVDYUG6RK_cjs.AutotaskTimeoutError; }
|
|
522
522
|
});
|
|
523
523
|
Object.defineProperty(exports, "CREDENTIAL_SHAPE_POINTER", {
|
|
524
524
|
enumerable: true,
|
|
525
|
-
get: function () { return
|
|
525
|
+
get: function () { return chunkVDYUG6RK_cjs.CREDENTIAL_SHAPE_POINTER; }
|
|
526
526
|
});
|
|
527
527
|
Object.defineProperty(exports, "CompaniesResource", {
|
|
528
528
|
enumerable: true,
|
|
529
|
-
get: function () { return
|
|
529
|
+
get: function () { return chunkVDYUG6RK_cjs.CompaniesResource; }
|
|
530
530
|
});
|
|
531
531
|
Object.defineProperty(exports, "ConfirmationRequiredError", {
|
|
532
532
|
enumerable: true,
|
|
533
|
-
get: function () { return
|
|
533
|
+
get: function () { return chunkVDYUG6RK_cjs.ConfirmationRequiredError; }
|
|
534
534
|
});
|
|
535
535
|
Object.defineProperty(exports, "ConflictError", {
|
|
536
536
|
enumerable: true,
|
|
537
|
-
get: function () { return
|
|
537
|
+
get: function () { return chunkVDYUG6RK_cjs.ConflictError; }
|
|
538
538
|
});
|
|
539
539
|
Object.defineProperty(exports, "ContractsResource", {
|
|
540
540
|
enumerable: true,
|
|
541
|
-
get: function () { return
|
|
541
|
+
get: function () { return chunkVDYUG6RK_cjs.ContractsResource; }
|
|
542
542
|
});
|
|
543
543
|
Object.defineProperty(exports, "DeleteBoundaryError", {
|
|
544
544
|
enumerable: true,
|
|
545
|
-
get: function () { return
|
|
545
|
+
get: function () { return chunkVDYUG6RK_cjs.DeleteBoundaryError; }
|
|
546
546
|
});
|
|
547
547
|
Object.defineProperty(exports, "EmptyResponseError", {
|
|
548
548
|
enumerable: true,
|
|
549
|
-
get: function () { return
|
|
549
|
+
get: function () { return chunkVDYUG6RK_cjs.EmptyResponseError; }
|
|
550
550
|
});
|
|
551
551
|
Object.defineProperty(exports, "GenericResource", {
|
|
552
552
|
enumerable: true,
|
|
553
|
-
get: function () { return
|
|
553
|
+
get: function () { return chunkVDYUG6RK_cjs.GenericResource; }
|
|
554
554
|
});
|
|
555
555
|
Object.defineProperty(exports, "HostPolicyDeniedError", {
|
|
556
556
|
enumerable: true,
|
|
557
|
-
get: function () { return
|
|
557
|
+
get: function () { return chunkVDYUG6RK_cjs.HostPolicyDeniedError; }
|
|
558
558
|
});
|
|
559
559
|
Object.defineProperty(exports, "InvoicesResource", {
|
|
560
560
|
enumerable: true,
|
|
561
|
-
get: function () { return
|
|
561
|
+
get: function () { return chunkVDYUG6RK_cjs.InvoicesResource; }
|
|
562
562
|
});
|
|
563
563
|
Object.defineProperty(exports, "MIN_PREFIX_SUMMARY_LENGTH", {
|
|
564
564
|
enumerable: true,
|
|
565
|
-
get: function () { return
|
|
565
|
+
get: function () { return chunkVDYUG6RK_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
|
|
566
566
|
});
|
|
567
567
|
Object.defineProperty(exports, "MaintenanceError", {
|
|
568
568
|
enumerable: true,
|
|
569
|
-
get: function () { return
|
|
569
|
+
get: function () { return chunkVDYUG6RK_cjs.MaintenanceError; }
|
|
570
570
|
});
|
|
571
571
|
Object.defineProperty(exports, "MarkerUnsafeIdError", {
|
|
572
572
|
enumerable: true,
|
|
573
|
-
get: function () { return
|
|
573
|
+
get: function () { return chunkVDYUG6RK_cjs.MarkerUnsafeIdError; }
|
|
574
574
|
});
|
|
575
575
|
Object.defineProperty(exports, "MoveRefusedError", {
|
|
576
576
|
enumerable: true,
|
|
577
|
-
get: function () { return
|
|
577
|
+
get: function () { return chunkVDYUG6RK_cjs.MoveRefusedError; }
|
|
578
578
|
});
|
|
579
579
|
Object.defineProperty(exports, "NotFoundError", {
|
|
580
580
|
enumerable: true,
|
|
581
|
-
get: function () { return
|
|
581
|
+
get: function () { return chunkVDYUG6RK_cjs.NotFoundError; }
|
|
582
582
|
});
|
|
583
583
|
Object.defineProperty(exports, "OperationNotSupportedError", {
|
|
584
584
|
enumerable: true,
|
|
585
|
-
get: function () { return
|
|
585
|
+
get: function () { return chunkVDYUG6RK_cjs.OperationNotSupportedError; }
|
|
586
586
|
});
|
|
587
587
|
Object.defineProperty(exports, "PaginationLimitError", {
|
|
588
588
|
enumerable: true,
|
|
589
|
-
get: function () { return
|
|
589
|
+
get: function () { return chunkVDYUG6RK_cjs.PaginationLimitError; }
|
|
590
590
|
});
|
|
591
591
|
Object.defineProperty(exports, "QueryTooLongError", {
|
|
592
592
|
enumerable: true,
|
|
593
|
-
get: function () { return
|
|
593
|
+
get: function () { return chunkVDYUG6RK_cjs.QueryTooLongError; }
|
|
594
594
|
});
|
|
595
595
|
Object.defineProperty(exports, "RateLimitError", {
|
|
596
596
|
enumerable: true,
|
|
597
|
-
get: function () { return
|
|
597
|
+
get: function () { return chunkVDYUG6RK_cjs.RateLimitError; }
|
|
598
598
|
});
|
|
599
599
|
Object.defineProperty(exports, "RecoveryTruncatedError", {
|
|
600
600
|
enumerable: true,
|
|
601
|
-
get: function () { return
|
|
601
|
+
get: function () { return chunkVDYUG6RK_cjs.RecoveryTruncatedError; }
|
|
602
602
|
});
|
|
603
603
|
Object.defineProperty(exports, "ResolutionError", {
|
|
604
604
|
enumerable: true,
|
|
605
|
-
get: function () { return
|
|
605
|
+
get: function () { return chunkVDYUG6RK_cjs.ResolutionError; }
|
|
606
606
|
});
|
|
607
607
|
Object.defineProperty(exports, "ResponseRejectedError", {
|
|
608
608
|
enumerable: true,
|
|
609
|
-
get: function () { return
|
|
609
|
+
get: function () { return chunkVDYUG6RK_cjs.ResponseRejectedError; }
|
|
610
610
|
});
|
|
611
611
|
Object.defineProperty(exports, "SIMPLE_RESOURCES", {
|
|
612
612
|
enumerable: true,
|
|
613
|
-
get: function () { return
|
|
613
|
+
get: function () { return chunkVDYUG6RK_cjs.SIMPLE_RESOURCES; }
|
|
614
614
|
});
|
|
615
615
|
Object.defineProperty(exports, "ScopeRequiredError", {
|
|
616
616
|
enumerable: true,
|
|
617
|
-
get: function () { return
|
|
617
|
+
get: function () { return chunkVDYUG6RK_cjs.ScopeRequiredError; }
|
|
618
618
|
});
|
|
619
619
|
Object.defineProperty(exports, "StaleObjectError", {
|
|
620
620
|
enumerable: true,
|
|
621
|
-
get: function () { return
|
|
621
|
+
get: function () { return chunkVDYUG6RK_cjs.StaleObjectError; }
|
|
622
622
|
});
|
|
623
623
|
Object.defineProperty(exports, "TimeEntriesResource", {
|
|
624
624
|
enumerable: true,
|
|
625
|
-
get: function () { return
|
|
625
|
+
get: function () { return chunkVDYUG6RK_cjs.TimeEntriesResource; }
|
|
626
626
|
});
|
|
627
627
|
Object.defineProperty(exports, "TtlCache", {
|
|
628
628
|
enumerable: true,
|
|
629
|
-
get: function () { return
|
|
629
|
+
get: function () { return chunkVDYUG6RK_cjs.TtlCache; }
|
|
630
630
|
});
|
|
631
631
|
Object.defineProperty(exports, "UNSCOPED_WALK_THRESHOLD", {
|
|
632
632
|
enumerable: true,
|
|
633
|
-
get: function () { return
|
|
633
|
+
get: function () { return chunkVDYUG6RK_cjs.UNSCOPED_WALK_THRESHOLD; }
|
|
634
634
|
});
|
|
635
635
|
Object.defineProperty(exports, "UnexpectedContentTypeError", {
|
|
636
636
|
enumerable: true,
|
|
637
|
-
get: function () { return
|
|
637
|
+
get: function () { return chunkVDYUG6RK_cjs.UnexpectedContentTypeError; }
|
|
638
638
|
});
|
|
639
639
|
Object.defineProperty(exports, "ZONES", {
|
|
640
640
|
enumerable: true,
|
|
641
|
-
get: function () { return
|
|
641
|
+
get: function () { return chunkVDYUG6RK_cjs.ZONES; }
|
|
642
642
|
});
|
|
643
643
|
Object.defineProperty(exports, "credentialShapeProblem", {
|
|
644
644
|
enumerable: true,
|
|
645
|
-
get: function () { return
|
|
645
|
+
get: function () { return chunkVDYUG6RK_cjs.credentialShapeProblem; }
|
|
646
646
|
});
|
|
647
647
|
Object.defineProperty(exports, "credentialValueSummary", {
|
|
648
648
|
enumerable: true,
|
|
649
|
-
get: function () { return
|
|
649
|
+
get: function () { return chunkVDYUG6RK_cjs.credentialValueSummary; }
|
|
650
650
|
});
|
|
651
651
|
Object.defineProperty(exports, "errorFromStatus", {
|
|
652
652
|
enumerable: true,
|
|
653
|
-
get: function () { return
|
|
653
|
+
get: function () { return chunkVDYUG6RK_cjs.errorFromStatus; }
|
|
654
654
|
});
|
|
655
655
|
Object.defineProperty(exports, "formatVendorDetail", {
|
|
656
656
|
enumerable: true,
|
|
657
|
-
get: function () { return
|
|
657
|
+
get: function () { return chunkVDYUG6RK_cjs.formatVendorDetail; }
|
|
658
658
|
});
|
|
659
659
|
Object.defineProperty(exports, "isAutotaskError", {
|
|
660
660
|
enumerable: true,
|
|
661
|
-
get: function () { return
|
|
661
|
+
get: function () { return chunkVDYUG6RK_cjs.isAutotaskError; }
|
|
662
662
|
});
|
|
663
663
|
Object.defineProperty(exports, "isDeterministicVendor500", {
|
|
664
664
|
enumerable: true,
|
|
665
|
-
get: function () { return
|
|
665
|
+
get: function () { return chunkVDYUG6RK_cjs.isDeterministicVendor500; }
|
|
666
666
|
});
|
|
667
667
|
Object.defineProperty(exports, "mergeDetails", {
|
|
668
668
|
enumerable: true,
|
|
669
|
-
get: function () { return
|
|
669
|
+
get: function () { return chunkVDYUG6RK_cjs.mergeDetails; }
|
|
670
670
|
});
|
|
671
671
|
Object.defineProperty(exports, "nextActionFor", {
|
|
672
672
|
enumerable: true,
|
|
673
|
-
get: function () { return
|
|
673
|
+
get: function () { return chunkVDYUG6RK_cjs.nextActionFor; }
|
|
674
674
|
});
|
|
675
675
|
Object.defineProperty(exports, "parseVendorErrors", {
|
|
676
676
|
enumerable: true,
|
|
677
|
-
get: function () { return
|
|
677
|
+
get: function () { return chunkVDYUG6RK_cjs.parseVendorErrors; }
|
|
678
678
|
});
|
|
679
679
|
Object.defineProperty(exports, "NoopLogger", {
|
|
680
680
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-
|
|
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-
|
|
1
|
+
import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-BXJOPL7w.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-BXJOPL7w.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';
|
|
6
|
-
export { A as AuditEvent, Q as QueryParams } from './index-
|
|
6
|
+
export { A as AuditEvent, Q as QueryParams } from './index-COQEG55Q.cjs';
|
|
7
7
|
|
|
8
8
|
declare class AutotaskNetworkError extends AutotaskError {
|
|
9
9
|
constructor(message: string, options?: AutotaskErrorOptions);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-
|
|
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-
|
|
1
|
+
import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-C4wZRw9N.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-C4wZRw9N.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';
|
|
6
|
-
export { A as AuditEvent, Q as QueryParams } from './index-
|
|
6
|
+
export { A as AuditEvent, Q as QueryParams } from './index-COQEG55Q.js';
|
|
7
7
|
|
|
8
8
|
declare class AutotaskNetworkError extends AutotaskError {
|
|
9
9
|
constructor(message: string, options?: AutotaskErrorOptions);
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { AutotaskClient } from './chunk-
|
|
1
|
+
export { AutotaskClient } from './chunk-O6SYTORL.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-
|
|
4
|
-
import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-
|
|
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-
|
|
6
|
-
import './chunk-
|
|
3
|
+
export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-S4YR3RLJ.js';
|
|
4
|
+
import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-TGCFJCWN.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-TGCFJCWN.js';
|
|
6
|
+
import './chunk-XJNNCMBS.js';
|
|
7
7
|
export { NoopLogger, REDACTED } from './chunk-7NKB4UXV.js';
|
|
8
8
|
import { existsSync, readFileSync } from 'fs';
|
|
9
9
|
|