node-autotask 0.89.0 → 0.91.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 +10 -0
- package/MCP_TOOL_CATALOG.json +217 -9
- package/README.md +1 -1
- package/capabilities.json +873 -53
- package/dist/capabilities-data.js +872 -52
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-OVIYLMGB.js → chunk-2GP7W6QB.js} +113 -12
- package/dist/{chunk-ZADTVF6M.js → chunk-43ADHLZJ.js} +3 -3
- package/dist/{chunk-4MPQ5CDB.cjs → chunk-5PUHGPKG.cjs} +200 -200
- package/dist/{chunk-SHJ7EOBW.cjs → chunk-KRYDLTY3.cjs} +3 -3
- package/dist/{chunk-YAXEPESA.cjs → chunk-RXXITZH4.cjs} +118 -17
- package/dist/{chunk-4EIN7AZJ.js → chunk-WAHRZDV4.js} +2 -2
- package/dist/{chunk-2PWAWWWM.js → chunk-Y2KXGSWM.js} +4 -2
- package/dist/{chunk-BRU7TZOD.cjs → chunk-YFC5VAKK.cjs} +32 -30
- package/dist/{index-CoTtEn8U.d.cts → index-BfGOllfY.d.cts} +4 -2
- package/dist/{index-Wh6bLfv_.d.ts → index-C3jXvpXZ.d.ts} +4 -2
- package/dist/{index-4jmitXBs.d.cts → index-Dy92Xbpv.d.cts} +75 -1
- package/dist/{index-4jmitXBs.d.ts → index-Dy92Xbpv.d.ts} +75 -1
- package/dist/index.cjs +85 -85
- 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 +51 -51
- 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 +12 -12
- 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/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYFC5VAKK_cjs = require('./chunk-YFC5VAKK.cjs');
|
|
4
4
|
require('./chunk-S5CH4H6H.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunk5PUHGPKG_cjs = require('./chunk-5PUHGPKG.cjs');
|
|
6
|
+
var chunkRXXITZH4_cjs = require('./chunk-RXXITZH4.cjs');
|
|
7
|
+
require('./chunk-KRYDLTY3.cjs');
|
|
8
8
|
var chunkCM5O672I_cjs = require('./chunk-CM5O672I.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 chunkRXXITZH4_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 chunkRXXITZH4_cjs.AutotaskConfigError(
|
|
31
|
+
`${source}: ${name} ${chunkRXXITZH4_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkRXXITZH4_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 chunkRXXITZH4_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 (chunkRXXITZH4_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" && chunkRXXITZH4_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 = chunkRXXITZH4_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: chunkRXXITZH4_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkRXXITZH4_cjs.zoneUrl(chunkRXXITZH4_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 ${chunkRXXITZH4_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 = chunkRXXITZH4_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: chunkRXXITZH4_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 chunkRXXITZH4_cjs.RateLimitError && err.code === "RATE_LIMITED_COOLDOWN") {
|
|
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)`,
|
|
@@ -252,7 +252,7 @@ function makeWire(run, timeoutMs) {
|
|
|
252
252
|
});
|
|
253
253
|
return { body };
|
|
254
254
|
} catch (err) {
|
|
255
|
-
if (
|
|
255
|
+
if (chunkRXXITZH4_cjs.isAutotaskError(err)) return { error: err };
|
|
256
256
|
throw err;
|
|
257
257
|
}
|
|
258
258
|
};
|
|
@@ -311,7 +311,7 @@ async function checkReads(run, zoneUnavailable) {
|
|
|
311
311
|
const id = `read.${entity.key}`;
|
|
312
312
|
const result = await timeCheck(id, async () => {
|
|
313
313
|
if (zoneUnavailable) return skip(ZONE_UNAVAILABLE_SKIP);
|
|
314
|
-
const req =
|
|
314
|
+
const req = chunkRXXITZH4_cjs.buildQueryRequest(cfg.baseUrl, entity.path, { maxRecords: 1 });
|
|
315
315
|
const out = await run.wire(req.method, req.path, `doctor.${id}`, { body: req.body, idempotent: req.idempotent });
|
|
316
316
|
if (out.error) {
|
|
317
317
|
const f = failFrom(out.error, `read access to ${entity.label}`);
|
|
@@ -395,18 +395,18 @@ function outcome(state, retryable, code, httpStatus) {
|
|
|
395
395
|
return httpStatus === void 0 ? { state, retryable, code } : { state, retryable, code, httpStatus };
|
|
396
396
|
}
|
|
397
397
|
function vendorErrorsNonEmpty(vendorError) {
|
|
398
|
-
const entries =
|
|
398
|
+
const entries = chunkRXXITZH4_cjs.parseVendorErrors(vendorError);
|
|
399
399
|
return entries !== void 0 && entries.length > 0;
|
|
400
400
|
}
|
|
401
401
|
function classifyWriteOutcome(error) {
|
|
402
|
-
if (
|
|
402
|
+
if (chunkRXXITZH4_cjs.isAutotaskError(error)) {
|
|
403
403
|
const rawStatus = error.httpStatus;
|
|
404
404
|
const httpStatus = typeof rawStatus === "number" ? rawStatus : void 0;
|
|
405
405
|
const statusMalformed = rawStatus !== void 0 && httpStatus === void 0;
|
|
406
406
|
if (error.notSent === true) {
|
|
407
407
|
return outcome("failed", error.retryable, error.code, httpStatus);
|
|
408
408
|
}
|
|
409
|
-
if (error instanceof
|
|
409
|
+
if (error instanceof chunkRXXITZH4_cjs.MaintenanceError && httpStatus !== void 0 && !error.retryable) {
|
|
410
410
|
return outcome("unknown", false, error.code, httpStatus);
|
|
411
411
|
}
|
|
412
412
|
if (httpStatus !== void 0 && httpStatus >= 400 && httpStatus <= 499) {
|
|
@@ -428,7 +428,7 @@ function classifyWriteOutcome(error) {
|
|
|
428
428
|
return outcome("failed", error.retryable, error.code);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
const typed =
|
|
431
|
+
const typed = chunkRXXITZH4_cjs.isAutotaskError(error);
|
|
432
432
|
const status = typed && typeof error.httpStatus === "number" ? error.httpStatus : void 0;
|
|
433
433
|
const code = typed ? error.code : error instanceof Error ? error.name : "UNKNOWN";
|
|
434
434
|
return outcome("unknown", false, code, status);
|
|
@@ -436,255 +436,255 @@ function classifyWriteOutcome(error) {
|
|
|
436
436
|
|
|
437
437
|
Object.defineProperty(exports, "AutotaskClient", {
|
|
438
438
|
enumerable: true,
|
|
439
|
-
get: function () { return
|
|
439
|
+
get: function () { return chunkYFC5VAKK_cjs.AutotaskClient; }
|
|
440
440
|
});
|
|
441
441
|
Object.defineProperty(exports, "AuthenticateResource", {
|
|
442
442
|
enumerable: true,
|
|
443
|
-
get: function () { return
|
|
443
|
+
get: function () { return chunk5PUHGPKG_cjs.AuthenticateResource; }
|
|
444
444
|
});
|
|
445
445
|
Object.defineProperty(exports, "ConfigurationItemsResource", {
|
|
446
446
|
enumerable: true,
|
|
447
|
-
get: function () { return
|
|
447
|
+
get: function () { return chunk5PUHGPKG_cjs.ConfigurationItemsResource; }
|
|
448
448
|
});
|
|
449
449
|
Object.defineProperty(exports, "ContactsResource", {
|
|
450
450
|
enumerable: true,
|
|
451
|
-
get: function () { return
|
|
451
|
+
get: function () { return chunk5PUHGPKG_cjs.ContactsResource; }
|
|
452
452
|
});
|
|
453
453
|
Object.defineProperty(exports, "EntityInformationResource", {
|
|
454
454
|
enumerable: true,
|
|
455
|
-
get: function () { return
|
|
455
|
+
get: function () { return chunk5PUHGPKG_cjs.EntityInformationResource; }
|
|
456
456
|
});
|
|
457
457
|
Object.defineProperty(exports, "InventoryProductsResource", {
|
|
458
458
|
enumerable: true,
|
|
459
|
-
get: function () { return
|
|
459
|
+
get: function () { return chunk5PUHGPKG_cjs.InventoryProductsResource; }
|
|
460
460
|
});
|
|
461
461
|
Object.defineProperty(exports, "ModulesResource", {
|
|
462
462
|
enumerable: true,
|
|
463
|
-
get: function () { return
|
|
463
|
+
get: function () { return chunk5PUHGPKG_cjs.ModulesResource; }
|
|
464
464
|
});
|
|
465
465
|
Object.defineProperty(exports, "QuotesResource", {
|
|
466
466
|
enumerable: true,
|
|
467
|
-
get: function () { return
|
|
467
|
+
get: function () { return chunk5PUHGPKG_cjs.QuotesResource; }
|
|
468
468
|
});
|
|
469
469
|
Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
|
|
470
470
|
enumerable: true,
|
|
471
|
-
get: function () { return
|
|
471
|
+
get: function () { return chunk5PUHGPKG_cjs.ResourceTimeOffAdditionalResource; }
|
|
472
472
|
});
|
|
473
473
|
Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
|
|
474
474
|
enumerable: true,
|
|
475
|
-
get: function () { return
|
|
475
|
+
get: function () { return chunk5PUHGPKG_cjs.ResourceTimeOffBalancesResource; }
|
|
476
476
|
});
|
|
477
477
|
Object.defineProperty(exports, "ResourcesResource", {
|
|
478
478
|
enumerable: true,
|
|
479
|
-
get: function () { return
|
|
479
|
+
get: function () { return chunk5PUHGPKG_cjs.ResourcesResource; }
|
|
480
480
|
});
|
|
481
481
|
Object.defineProperty(exports, "ServiceCallsResource", {
|
|
482
482
|
enumerable: true,
|
|
483
|
-
get: function () { return
|
|
483
|
+
get: function () { return chunk5PUHGPKG_cjs.ServiceCallsResource; }
|
|
484
484
|
});
|
|
485
485
|
Object.defineProperty(exports, "ThresholdInformationResource", {
|
|
486
486
|
enumerable: true,
|
|
487
|
-
get: function () { return
|
|
487
|
+
get: function () { return chunk5PUHGPKG_cjs.ThresholdInformationResource; }
|
|
488
488
|
});
|
|
489
489
|
Object.defineProperty(exports, "TicketChargesResource", {
|
|
490
490
|
enumerable: true,
|
|
491
|
-
get: function () { return
|
|
491
|
+
get: function () { return chunk5PUHGPKG_cjs.TicketChargesResource; }
|
|
492
492
|
});
|
|
493
493
|
Object.defineProperty(exports, "TicketsResource", {
|
|
494
494
|
enumerable: true,
|
|
495
|
-
get: function () { return
|
|
495
|
+
get: function () { return chunk5PUHGPKG_cjs.TicketsResource; }
|
|
496
496
|
});
|
|
497
497
|
Object.defineProperty(exports, "TimeOffRequestsResource", {
|
|
498
498
|
enumerable: true,
|
|
499
|
-
get: function () { return
|
|
499
|
+
get: function () { return chunk5PUHGPKG_cjs.TimeOffRequestsResource; }
|
|
500
500
|
});
|
|
501
501
|
Object.defineProperty(exports, "VersionInformationResource", {
|
|
502
502
|
enumerable: true,
|
|
503
|
-
get: function () { return
|
|
503
|
+
get: function () { return chunk5PUHGPKG_cjs.VersionInformationResource; }
|
|
504
504
|
});
|
|
505
505
|
Object.defineProperty(exports, "VersionResource", {
|
|
506
506
|
enumerable: true,
|
|
507
|
-
get: function () { return
|
|
507
|
+
get: function () { return chunk5PUHGPKG_cjs.VersionResource; }
|
|
508
508
|
});
|
|
509
509
|
Object.defineProperty(exports, "ZoneInformationResource", {
|
|
510
510
|
enumerable: true,
|
|
511
|
-
get: function () { return
|
|
511
|
+
get: function () { return chunk5PUHGPKG_cjs.ZoneInformationResource; }
|
|
512
512
|
});
|
|
513
513
|
Object.defineProperty(exports, "AutotaskAbortError", {
|
|
514
514
|
enumerable: true,
|
|
515
|
-
get: function () { return
|
|
515
|
+
get: function () { return chunkRXXITZH4_cjs.AutotaskAbortError; }
|
|
516
516
|
});
|
|
517
517
|
Object.defineProperty(exports, "AutotaskConfigError", {
|
|
518
518
|
enumerable: true,
|
|
519
|
-
get: function () { return
|
|
519
|
+
get: function () { return chunkRXXITZH4_cjs.AutotaskConfigError; }
|
|
520
520
|
});
|
|
521
521
|
Object.defineProperty(exports, "AutotaskError", {
|
|
522
522
|
enumerable: true,
|
|
523
|
-
get: function () { return
|
|
523
|
+
get: function () { return chunkRXXITZH4_cjs.AutotaskError; }
|
|
524
524
|
});
|
|
525
525
|
Object.defineProperty(exports, "AutotaskNetworkError", {
|
|
526
526
|
enumerable: true,
|
|
527
|
-
get: function () { return
|
|
527
|
+
get: function () { return chunkRXXITZH4_cjs.AutotaskNetworkError; }
|
|
528
528
|
});
|
|
529
529
|
Object.defineProperty(exports, "AutotaskTimeoutError", {
|
|
530
530
|
enumerable: true,
|
|
531
|
-
get: function () { return
|
|
531
|
+
get: function () { return chunkRXXITZH4_cjs.AutotaskTimeoutError; }
|
|
532
532
|
});
|
|
533
533
|
Object.defineProperty(exports, "CREDENTIAL_SHAPE_POINTER", {
|
|
534
534
|
enumerable: true,
|
|
535
|
-
get: function () { return
|
|
535
|
+
get: function () { return chunkRXXITZH4_cjs.CREDENTIAL_SHAPE_POINTER; }
|
|
536
536
|
});
|
|
537
537
|
Object.defineProperty(exports, "CompaniesResource", {
|
|
538
538
|
enumerable: true,
|
|
539
|
-
get: function () { return
|
|
539
|
+
get: function () { return chunkRXXITZH4_cjs.CompaniesResource; }
|
|
540
540
|
});
|
|
541
541
|
Object.defineProperty(exports, "ConfirmationRequiredError", {
|
|
542
542
|
enumerable: true,
|
|
543
|
-
get: function () { return
|
|
543
|
+
get: function () { return chunkRXXITZH4_cjs.ConfirmationRequiredError; }
|
|
544
544
|
});
|
|
545
545
|
Object.defineProperty(exports, "ConflictError", {
|
|
546
546
|
enumerable: true,
|
|
547
|
-
get: function () { return
|
|
547
|
+
get: function () { return chunkRXXITZH4_cjs.ConflictError; }
|
|
548
548
|
});
|
|
549
549
|
Object.defineProperty(exports, "ContractsResource", {
|
|
550
550
|
enumerable: true,
|
|
551
|
-
get: function () { return
|
|
551
|
+
get: function () { return chunkRXXITZH4_cjs.ContractsResource; }
|
|
552
552
|
});
|
|
553
553
|
Object.defineProperty(exports, "DeleteBoundaryError", {
|
|
554
554
|
enumerable: true,
|
|
555
|
-
get: function () { return
|
|
555
|
+
get: function () { return chunkRXXITZH4_cjs.DeleteBoundaryError; }
|
|
556
556
|
});
|
|
557
557
|
Object.defineProperty(exports, "EmptyResponseError", {
|
|
558
558
|
enumerable: true,
|
|
559
|
-
get: function () { return
|
|
559
|
+
get: function () { return chunkRXXITZH4_cjs.EmptyResponseError; }
|
|
560
560
|
});
|
|
561
561
|
Object.defineProperty(exports, "GenericResource", {
|
|
562
562
|
enumerable: true,
|
|
563
|
-
get: function () { return
|
|
563
|
+
get: function () { return chunkRXXITZH4_cjs.GenericResource; }
|
|
564
564
|
});
|
|
565
565
|
Object.defineProperty(exports, "HostPolicyDeniedError", {
|
|
566
566
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
567
|
+
get: function () { return chunkRXXITZH4_cjs.HostPolicyDeniedError; }
|
|
568
568
|
});
|
|
569
569
|
Object.defineProperty(exports, "InvoicesResource", {
|
|
570
570
|
enumerable: true,
|
|
571
|
-
get: function () { return
|
|
571
|
+
get: function () { return chunkRXXITZH4_cjs.InvoicesResource; }
|
|
572
572
|
});
|
|
573
573
|
Object.defineProperty(exports, "MIN_PREFIX_SUMMARY_LENGTH", {
|
|
574
574
|
enumerable: true,
|
|
575
|
-
get: function () { return
|
|
575
|
+
get: function () { return chunkRXXITZH4_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
|
|
576
576
|
});
|
|
577
577
|
Object.defineProperty(exports, "MaintenanceError", {
|
|
578
578
|
enumerable: true,
|
|
579
|
-
get: function () { return
|
|
579
|
+
get: function () { return chunkRXXITZH4_cjs.MaintenanceError; }
|
|
580
580
|
});
|
|
581
581
|
Object.defineProperty(exports, "MarkerUnsafeIdError", {
|
|
582
582
|
enumerable: true,
|
|
583
|
-
get: function () { return
|
|
583
|
+
get: function () { return chunkRXXITZH4_cjs.MarkerUnsafeIdError; }
|
|
584
584
|
});
|
|
585
585
|
Object.defineProperty(exports, "MoveRefusedError", {
|
|
586
586
|
enumerable: true,
|
|
587
|
-
get: function () { return
|
|
587
|
+
get: function () { return chunkRXXITZH4_cjs.MoveRefusedError; }
|
|
588
588
|
});
|
|
589
589
|
Object.defineProperty(exports, "NotFoundError", {
|
|
590
590
|
enumerable: true,
|
|
591
|
-
get: function () { return
|
|
591
|
+
get: function () { return chunkRXXITZH4_cjs.NotFoundError; }
|
|
592
592
|
});
|
|
593
593
|
Object.defineProperty(exports, "OperationNotSupportedError", {
|
|
594
594
|
enumerable: true,
|
|
595
|
-
get: function () { return
|
|
595
|
+
get: function () { return chunkRXXITZH4_cjs.OperationNotSupportedError; }
|
|
596
596
|
});
|
|
597
597
|
Object.defineProperty(exports, "PaginationLimitError", {
|
|
598
598
|
enumerable: true,
|
|
599
|
-
get: function () { return
|
|
599
|
+
get: function () { return chunkRXXITZH4_cjs.PaginationLimitError; }
|
|
600
600
|
});
|
|
601
601
|
Object.defineProperty(exports, "QueryTooLongError", {
|
|
602
602
|
enumerable: true,
|
|
603
|
-
get: function () { return
|
|
603
|
+
get: function () { return chunkRXXITZH4_cjs.QueryTooLongError; }
|
|
604
604
|
});
|
|
605
605
|
Object.defineProperty(exports, "RateLimitError", {
|
|
606
606
|
enumerable: true,
|
|
607
|
-
get: function () { return
|
|
607
|
+
get: function () { return chunkRXXITZH4_cjs.RateLimitError; }
|
|
608
608
|
});
|
|
609
609
|
Object.defineProperty(exports, "RecoveryTruncatedError", {
|
|
610
610
|
enumerable: true,
|
|
611
|
-
get: function () { return
|
|
611
|
+
get: function () { return chunkRXXITZH4_cjs.RecoveryTruncatedError; }
|
|
612
612
|
});
|
|
613
613
|
Object.defineProperty(exports, "ResolutionError", {
|
|
614
614
|
enumerable: true,
|
|
615
|
-
get: function () { return
|
|
615
|
+
get: function () { return chunkRXXITZH4_cjs.ResolutionError; }
|
|
616
616
|
});
|
|
617
617
|
Object.defineProperty(exports, "ResponseRejectedError", {
|
|
618
618
|
enumerable: true,
|
|
619
|
-
get: function () { return
|
|
619
|
+
get: function () { return chunkRXXITZH4_cjs.ResponseRejectedError; }
|
|
620
620
|
});
|
|
621
621
|
Object.defineProperty(exports, "SIMPLE_RESOURCES", {
|
|
622
622
|
enumerable: true,
|
|
623
|
-
get: function () { return
|
|
623
|
+
get: function () { return chunkRXXITZH4_cjs.SIMPLE_RESOURCES; }
|
|
624
624
|
});
|
|
625
625
|
Object.defineProperty(exports, "ScopeRequiredError", {
|
|
626
626
|
enumerable: true,
|
|
627
|
-
get: function () { return
|
|
627
|
+
get: function () { return chunkRXXITZH4_cjs.ScopeRequiredError; }
|
|
628
628
|
});
|
|
629
629
|
Object.defineProperty(exports, "StaleObjectError", {
|
|
630
630
|
enumerable: true,
|
|
631
|
-
get: function () { return
|
|
631
|
+
get: function () { return chunkRXXITZH4_cjs.StaleObjectError; }
|
|
632
632
|
});
|
|
633
633
|
Object.defineProperty(exports, "TimeEntriesResource", {
|
|
634
634
|
enumerable: true,
|
|
635
|
-
get: function () { return
|
|
635
|
+
get: function () { return chunkRXXITZH4_cjs.TimeEntriesResource; }
|
|
636
636
|
});
|
|
637
637
|
Object.defineProperty(exports, "TtlCache", {
|
|
638
638
|
enumerable: true,
|
|
639
|
-
get: function () { return
|
|
639
|
+
get: function () { return chunkRXXITZH4_cjs.TtlCache; }
|
|
640
640
|
});
|
|
641
641
|
Object.defineProperty(exports, "UNSCOPED_WALK_THRESHOLD", {
|
|
642
642
|
enumerable: true,
|
|
643
|
-
get: function () { return
|
|
643
|
+
get: function () { return chunkRXXITZH4_cjs.UNSCOPED_WALK_THRESHOLD; }
|
|
644
644
|
});
|
|
645
645
|
Object.defineProperty(exports, "UnexpectedContentTypeError", {
|
|
646
646
|
enumerable: true,
|
|
647
|
-
get: function () { return
|
|
647
|
+
get: function () { return chunkRXXITZH4_cjs.UnexpectedContentTypeError; }
|
|
648
648
|
});
|
|
649
649
|
Object.defineProperty(exports, "ZONES", {
|
|
650
650
|
enumerable: true,
|
|
651
|
-
get: function () { return
|
|
651
|
+
get: function () { return chunkRXXITZH4_cjs.ZONES; }
|
|
652
652
|
});
|
|
653
653
|
Object.defineProperty(exports, "credentialShapeProblem", {
|
|
654
654
|
enumerable: true,
|
|
655
|
-
get: function () { return
|
|
655
|
+
get: function () { return chunkRXXITZH4_cjs.credentialShapeProblem; }
|
|
656
656
|
});
|
|
657
657
|
Object.defineProperty(exports, "credentialValueSummary", {
|
|
658
658
|
enumerable: true,
|
|
659
|
-
get: function () { return
|
|
659
|
+
get: function () { return chunkRXXITZH4_cjs.credentialValueSummary; }
|
|
660
660
|
});
|
|
661
661
|
Object.defineProperty(exports, "errorFromStatus", {
|
|
662
662
|
enumerable: true,
|
|
663
|
-
get: function () { return
|
|
663
|
+
get: function () { return chunkRXXITZH4_cjs.errorFromStatus; }
|
|
664
664
|
});
|
|
665
665
|
Object.defineProperty(exports, "formatVendorDetail", {
|
|
666
666
|
enumerable: true,
|
|
667
|
-
get: function () { return
|
|
667
|
+
get: function () { return chunkRXXITZH4_cjs.formatVendorDetail; }
|
|
668
668
|
});
|
|
669
669
|
Object.defineProperty(exports, "isAutotaskError", {
|
|
670
670
|
enumerable: true,
|
|
671
|
-
get: function () { return
|
|
671
|
+
get: function () { return chunkRXXITZH4_cjs.isAutotaskError; }
|
|
672
672
|
});
|
|
673
673
|
Object.defineProperty(exports, "isDeterministicVendor500", {
|
|
674
674
|
enumerable: true,
|
|
675
|
-
get: function () { return
|
|
675
|
+
get: function () { return chunkRXXITZH4_cjs.isDeterministicVendor500; }
|
|
676
676
|
});
|
|
677
677
|
Object.defineProperty(exports, "mergeDetails", {
|
|
678
678
|
enumerable: true,
|
|
679
|
-
get: function () { return
|
|
679
|
+
get: function () { return chunkRXXITZH4_cjs.mergeDetails; }
|
|
680
680
|
});
|
|
681
681
|
Object.defineProperty(exports, "nextActionFor", {
|
|
682
682
|
enumerable: true,
|
|
683
|
-
get: function () { return
|
|
683
|
+
get: function () { return chunkRXXITZH4_cjs.nextActionFor; }
|
|
684
684
|
});
|
|
685
685
|
Object.defineProperty(exports, "parseVendorErrors", {
|
|
686
686
|
enumerable: true,
|
|
687
|
-
get: function () { return
|
|
687
|
+
get: function () { return chunkRXXITZH4_cjs.parseVendorErrors; }
|
|
688
688
|
});
|
|
689
689
|
Object.defineProperty(exports, "NoopLogger", {
|
|
690
690
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-
|
|
2
|
-
export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-
|
|
1
|
+
import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-BfGOllfY.cjs';
|
|
2
|
+
export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-BfGOllfY.cjs';
|
|
3
3
|
export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.cjs';
|
|
4
|
-
export { A as AuditEvent, Q as QueryParams } from './index-
|
|
4
|
+
export { A as AuditEvent, Q as QueryParams } from './index-Dy92Xbpv.cjs';
|
|
5
5
|
|
|
6
6
|
declare class AutotaskNetworkError extends AutotaskError {
|
|
7
7
|
constructor(message: string, options?: AutotaskErrorOptions);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-
|
|
2
|
-
export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-
|
|
1
|
+
import { b as AutotaskError, c as AutotaskErrorOptions, d as AutotaskConfigError, a as AutotaskClient, T as TicketChangeStatusResult, e as TicketChangeStatusNoChange } from './index-C3jXvpXZ.js';
|
|
2
|
+
export { f as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, g as CompanyFuzzySearchOptions, h as CompanyFuzzySearchResult, i as ConfigurationItemsResource, j as ContactsResource, k as ContractsProfitabilityResult, l as ContractsResource, m as CostRateResolution, E as EntityInformationResource, n as ErrorCategory, o as ErrorIdRef, F as FuzzyCompanyRow, G as GenericResource, p as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, q as InvoicesResource, M as ModulesResource, N as NextAction, O as OpsFlags, P as ProfitRateSource, r as ProfitabilityActivityCategory, s as ProfitabilityDataQualityWarning, t as ProfitabilityHighestCostTicket, u as ProfitabilityLabourCostMethod, v as ProfitabilityMiscoding, w as ProfitabilityMonthlyRow, x as ProfitabilityOpenRenewalItem, y as ProfitabilityOptions, z as ProfitabilityPart, B as ProfitabilityPartDigest, D as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, J as ResourceTimeOffBalancesResource, K as ResourcesResource, S as SIMPLE_RESOURCES, L as ServiceCallsResource, U as SimpleResourceEntry, V as ThresholdInformationResource, W as TicketChargesResource, X as TicketsResource, Y as TimeEntriesPostedCountResult, Z as TimeEntriesPostedPagingOptions, _ as TimeEntriesPostedWindowCountOptions, $ as TimeEntriesPostedWindowListOptions, a0 as TimeEntriesPostedWindowOptions, a1 as TimeEntriesPostedWindowResult, a2 as TimeEntriesResource, a3 as TimeEntryReviewFields, a4 as TimeEntryReviewResult, a5 as TimeOffRequestsResource, a6 as TtlCache, a7 as VersionInformationResource, a8 as VersionResource, a9 as ZONES, aa as ZoneInformationResource, ab as ZoneName, ac as isAutotaskError, ad as nextActionFor } from './index-C3jXvpXZ.js';
|
|
3
3
|
export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.js';
|
|
4
|
-
export { A as AuditEvent, Q as QueryParams } from './index-
|
|
4
|
+
export { A as AuditEvent, Q as QueryParams } from './index-Dy92Xbpv.js';
|
|
5
5
|
|
|
6
6
|
declare class AutotaskNetworkError extends AutotaskError {
|
|
7
7
|
constructor(message: string, options?: AutotaskErrorOptions);
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { AutotaskClient } from './chunk-
|
|
1
|
+
export { AutotaskClient } from './chunk-Y2KXGSWM.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, MaintenanceError, 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-WAHRZDV4.js';
|
|
4
|
+
import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, MaintenanceError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-2GP7W6QB.js';
|
|
5
|
+
export { AutotaskAbortError, AutotaskConfigError, AutotaskError, AutotaskNetworkError, AutotaskTimeoutError, CREDENTIAL_SHAPE_POINTER, CompaniesResource, ConfirmationRequiredError, ConflictError, ContractsResource, DeleteBoundaryError, EmptyResponseError, GenericResource, HostPolicyDeniedError, InvoicesResource, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PaginationLimitError, QueryTooLongError, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, SIMPLE_RESOURCES, ScopeRequiredError, StaleObjectError, TimeEntriesResource, TtlCache, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, ZONES, credentialShapeProblem, credentialValueSummary, errorFromStatus, formatVendorDetail, isAutotaskError, isDeterministicVendor500, mergeDetails, nextActionFor, parseVendorErrors } from './chunk-2GP7W6QB.js';
|
|
6
|
+
import './chunk-43ADHLZJ.js';
|
|
7
7
|
export { NoopLogger, REDACTED } from './chunk-X6VWD6WW.js';
|
|
8
8
|
import { existsSync, readFileSync } from 'fs';
|
|
9
9
|
|