node-autotask 0.77.0 → 0.79.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 +12 -0
- package/MCP_TOOL_CATALOG.json +265 -9
- package/README.md +1 -1
- package/capabilities.json +959 -7
- package/dist/capabilities-data.js +958 -6
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-6VBOBCWA.cjs → chunk-2YFX77XI.cjs} +312 -14
- package/dist/{chunk-5MH3MPLB.cjs → chunk-75TQWC3M.cjs} +32 -30
- package/dist/{chunk-NAI7XIX4.cjs → chunk-EEGAMP4D.cjs} +199 -199
- package/dist/{chunk-G2U6NHPO.js → chunk-GJU4DJ6H.js} +3 -3
- package/dist/{chunk-RLXUY4VM.js → chunk-MQ2DXOZW.js} +2 -2
- package/dist/{chunk-QTFK2HAO.js → chunk-XIPZDDZS.js} +4 -2
- package/dist/{chunk-3FZJJX5B.cjs → chunk-XJQS3FBA.cjs} +3 -3
- package/dist/{chunk-F5Y7WBWY.js → chunk-YK32RN77.js} +307 -9
- package/dist/{index-B-vNyiD_.d.cts → index-BGFWqM2_.d.cts} +89 -1
- package/dist/{index-B-vNyiD_.d.ts → index-BGFWqM2_.d.ts} +89 -1
- package/dist/{index-PLdAoAFJ.d.cts → index-DBz-dqAY.d.cts} +4 -2
- package/dist/{index-ecr6unv3.d.ts → index-DS3jnPiq.d.ts} +4 -2
- 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 +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 chunk75TQWC3M_cjs = require('./chunk-75TQWC3M.cjs');
|
|
4
4
|
require('./chunk-S5CH4H6H.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkEEGAMP4D_cjs = require('./chunk-EEGAMP4D.cjs');
|
|
6
|
+
var chunk2YFX77XI_cjs = require('./chunk-2YFX77XI.cjs');
|
|
7
|
+
require('./chunk-XJQS3FBA.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 chunk2YFX77XI_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 chunk2YFX77XI_cjs.AutotaskConfigError(
|
|
31
|
+
`${source}: ${name} ${chunk2YFX77XI_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunk2YFX77XI_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 chunk2YFX77XI_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 (chunk2YFX77XI_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" && chunk2YFX77XI_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 = chunk2YFX77XI_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: chunk2YFX77XI_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunk2YFX77XI_cjs.zoneUrl(chunk2YFX77XI_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 ${chunk2YFX77XI_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 = chunk2YFX77XI_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: chunk2YFX77XI_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 chunk2YFX77XI_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 (chunk2YFX77XI_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 = chunk2YFX77XI_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,11 +395,11 @@ 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 = chunk2YFX77XI_cjs.parseVendorErrors(vendorError);
|
|
399
399
|
return entries !== void 0 && entries.length > 0;
|
|
400
400
|
}
|
|
401
401
|
function classifyWriteOutcome(error) {
|
|
402
|
-
if (
|
|
402
|
+
if (chunk2YFX77XI_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;
|
|
@@ -425,7 +425,7 @@ function classifyWriteOutcome(error) {
|
|
|
425
425
|
return outcome("failed", error.retryable, error.code);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
const typed =
|
|
428
|
+
const typed = chunk2YFX77XI_cjs.isAutotaskError(error);
|
|
429
429
|
const status = typed && typeof error.httpStatus === "number" ? error.httpStatus : void 0;
|
|
430
430
|
const code = typed ? error.code : error instanceof Error ? error.name : "UNKNOWN";
|
|
431
431
|
return outcome("unknown", false, code, status);
|
|
@@ -433,255 +433,255 @@ function classifyWriteOutcome(error) {
|
|
|
433
433
|
|
|
434
434
|
Object.defineProperty(exports, "AutotaskClient", {
|
|
435
435
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunk75TQWC3M_cjs.AutotaskClient; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "AuthenticateResource", {
|
|
439
439
|
enumerable: true,
|
|
440
|
-
get: function () { return
|
|
440
|
+
get: function () { return chunkEEGAMP4D_cjs.AuthenticateResource; }
|
|
441
441
|
});
|
|
442
442
|
Object.defineProperty(exports, "ConfigurationItemsResource", {
|
|
443
443
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
444
|
+
get: function () { return chunkEEGAMP4D_cjs.ConfigurationItemsResource; }
|
|
445
445
|
});
|
|
446
446
|
Object.defineProperty(exports, "ContactsResource", {
|
|
447
447
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkEEGAMP4D_cjs.ContactsResource; }
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(exports, "EntityInformationResource", {
|
|
451
451
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
452
|
+
get: function () { return chunkEEGAMP4D_cjs.EntityInformationResource; }
|
|
453
453
|
});
|
|
454
454
|
Object.defineProperty(exports, "InventoryProductsResource", {
|
|
455
455
|
enumerable: true,
|
|
456
|
-
get: function () { return
|
|
456
|
+
get: function () { return chunkEEGAMP4D_cjs.InventoryProductsResource; }
|
|
457
457
|
});
|
|
458
458
|
Object.defineProperty(exports, "ModulesResource", {
|
|
459
459
|
enumerable: true,
|
|
460
|
-
get: function () { return
|
|
460
|
+
get: function () { return chunkEEGAMP4D_cjs.ModulesResource; }
|
|
461
461
|
});
|
|
462
462
|
Object.defineProperty(exports, "QuotesResource", {
|
|
463
463
|
enumerable: true,
|
|
464
|
-
get: function () { return
|
|
464
|
+
get: function () { return chunkEEGAMP4D_cjs.QuotesResource; }
|
|
465
465
|
});
|
|
466
466
|
Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
|
|
467
467
|
enumerable: true,
|
|
468
|
-
get: function () { return
|
|
468
|
+
get: function () { return chunkEEGAMP4D_cjs.ResourceTimeOffAdditionalResource; }
|
|
469
469
|
});
|
|
470
470
|
Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
|
|
471
471
|
enumerable: true,
|
|
472
|
-
get: function () { return
|
|
472
|
+
get: function () { return chunkEEGAMP4D_cjs.ResourceTimeOffBalancesResource; }
|
|
473
473
|
});
|
|
474
474
|
Object.defineProperty(exports, "ResourcesResource", {
|
|
475
475
|
enumerable: true,
|
|
476
|
-
get: function () { return
|
|
476
|
+
get: function () { return chunkEEGAMP4D_cjs.ResourcesResource; }
|
|
477
477
|
});
|
|
478
478
|
Object.defineProperty(exports, "ServiceCallsResource", {
|
|
479
479
|
enumerable: true,
|
|
480
|
-
get: function () { return
|
|
480
|
+
get: function () { return chunkEEGAMP4D_cjs.ServiceCallsResource; }
|
|
481
481
|
});
|
|
482
482
|
Object.defineProperty(exports, "ThresholdInformationResource", {
|
|
483
483
|
enumerable: true,
|
|
484
|
-
get: function () { return
|
|
484
|
+
get: function () { return chunkEEGAMP4D_cjs.ThresholdInformationResource; }
|
|
485
485
|
});
|
|
486
486
|
Object.defineProperty(exports, "TicketChargesResource", {
|
|
487
487
|
enumerable: true,
|
|
488
|
-
get: function () { return
|
|
488
|
+
get: function () { return chunkEEGAMP4D_cjs.TicketChargesResource; }
|
|
489
489
|
});
|
|
490
490
|
Object.defineProperty(exports, "TicketsResource", {
|
|
491
491
|
enumerable: true,
|
|
492
|
-
get: function () { return
|
|
492
|
+
get: function () { return chunkEEGAMP4D_cjs.TicketsResource; }
|
|
493
493
|
});
|
|
494
494
|
Object.defineProperty(exports, "TimeOffRequestsResource", {
|
|
495
495
|
enumerable: true,
|
|
496
|
-
get: function () { return
|
|
496
|
+
get: function () { return chunkEEGAMP4D_cjs.TimeOffRequestsResource; }
|
|
497
497
|
});
|
|
498
498
|
Object.defineProperty(exports, "VersionInformationResource", {
|
|
499
499
|
enumerable: true,
|
|
500
|
-
get: function () { return
|
|
500
|
+
get: function () { return chunkEEGAMP4D_cjs.VersionInformationResource; }
|
|
501
501
|
});
|
|
502
502
|
Object.defineProperty(exports, "VersionResource", {
|
|
503
503
|
enumerable: true,
|
|
504
|
-
get: function () { return
|
|
504
|
+
get: function () { return chunkEEGAMP4D_cjs.VersionResource; }
|
|
505
505
|
});
|
|
506
506
|
Object.defineProperty(exports, "ZoneInformationResource", {
|
|
507
507
|
enumerable: true,
|
|
508
|
-
get: function () { return
|
|
508
|
+
get: function () { return chunkEEGAMP4D_cjs.ZoneInformationResource; }
|
|
509
509
|
});
|
|
510
510
|
Object.defineProperty(exports, "AutotaskAbortError", {
|
|
511
511
|
enumerable: true,
|
|
512
|
-
get: function () { return
|
|
512
|
+
get: function () { return chunk2YFX77XI_cjs.AutotaskAbortError; }
|
|
513
513
|
});
|
|
514
514
|
Object.defineProperty(exports, "AutotaskConfigError", {
|
|
515
515
|
enumerable: true,
|
|
516
|
-
get: function () { return
|
|
516
|
+
get: function () { return chunk2YFX77XI_cjs.AutotaskConfigError; }
|
|
517
517
|
});
|
|
518
518
|
Object.defineProperty(exports, "AutotaskError", {
|
|
519
519
|
enumerable: true,
|
|
520
|
-
get: function () { return
|
|
520
|
+
get: function () { return chunk2YFX77XI_cjs.AutotaskError; }
|
|
521
521
|
});
|
|
522
522
|
Object.defineProperty(exports, "AutotaskNetworkError", {
|
|
523
523
|
enumerable: true,
|
|
524
|
-
get: function () { return
|
|
524
|
+
get: function () { return chunk2YFX77XI_cjs.AutotaskNetworkError; }
|
|
525
525
|
});
|
|
526
526
|
Object.defineProperty(exports, "AutotaskTimeoutError", {
|
|
527
527
|
enumerable: true,
|
|
528
|
-
get: function () { return
|
|
528
|
+
get: function () { return chunk2YFX77XI_cjs.AutotaskTimeoutError; }
|
|
529
529
|
});
|
|
530
530
|
Object.defineProperty(exports, "CREDENTIAL_SHAPE_POINTER", {
|
|
531
531
|
enumerable: true,
|
|
532
|
-
get: function () { return
|
|
532
|
+
get: function () { return chunk2YFX77XI_cjs.CREDENTIAL_SHAPE_POINTER; }
|
|
533
533
|
});
|
|
534
534
|
Object.defineProperty(exports, "CompaniesResource", {
|
|
535
535
|
enumerable: true,
|
|
536
|
-
get: function () { return
|
|
536
|
+
get: function () { return chunk2YFX77XI_cjs.CompaniesResource; }
|
|
537
537
|
});
|
|
538
538
|
Object.defineProperty(exports, "ConfirmationRequiredError", {
|
|
539
539
|
enumerable: true,
|
|
540
|
-
get: function () { return
|
|
540
|
+
get: function () { return chunk2YFX77XI_cjs.ConfirmationRequiredError; }
|
|
541
541
|
});
|
|
542
542
|
Object.defineProperty(exports, "ConflictError", {
|
|
543
543
|
enumerable: true,
|
|
544
|
-
get: function () { return
|
|
544
|
+
get: function () { return chunk2YFX77XI_cjs.ConflictError; }
|
|
545
545
|
});
|
|
546
546
|
Object.defineProperty(exports, "ContractsResource", {
|
|
547
547
|
enumerable: true,
|
|
548
|
-
get: function () { return
|
|
548
|
+
get: function () { return chunk2YFX77XI_cjs.ContractsResource; }
|
|
549
549
|
});
|
|
550
550
|
Object.defineProperty(exports, "DeleteBoundaryError", {
|
|
551
551
|
enumerable: true,
|
|
552
|
-
get: function () { return
|
|
552
|
+
get: function () { return chunk2YFX77XI_cjs.DeleteBoundaryError; }
|
|
553
553
|
});
|
|
554
554
|
Object.defineProperty(exports, "EmptyResponseError", {
|
|
555
555
|
enumerable: true,
|
|
556
|
-
get: function () { return
|
|
556
|
+
get: function () { return chunk2YFX77XI_cjs.EmptyResponseError; }
|
|
557
557
|
});
|
|
558
558
|
Object.defineProperty(exports, "GenericResource", {
|
|
559
559
|
enumerable: true,
|
|
560
|
-
get: function () { return
|
|
560
|
+
get: function () { return chunk2YFX77XI_cjs.GenericResource; }
|
|
561
561
|
});
|
|
562
562
|
Object.defineProperty(exports, "HostPolicyDeniedError", {
|
|
563
563
|
enumerable: true,
|
|
564
|
-
get: function () { return
|
|
564
|
+
get: function () { return chunk2YFX77XI_cjs.HostPolicyDeniedError; }
|
|
565
565
|
});
|
|
566
566
|
Object.defineProperty(exports, "InvoicesResource", {
|
|
567
567
|
enumerable: true,
|
|
568
|
-
get: function () { return
|
|
568
|
+
get: function () { return chunk2YFX77XI_cjs.InvoicesResource; }
|
|
569
569
|
});
|
|
570
570
|
Object.defineProperty(exports, "MIN_PREFIX_SUMMARY_LENGTH", {
|
|
571
571
|
enumerable: true,
|
|
572
|
-
get: function () { return
|
|
572
|
+
get: function () { return chunk2YFX77XI_cjs.MIN_PREFIX_SUMMARY_LENGTH; }
|
|
573
573
|
});
|
|
574
574
|
Object.defineProperty(exports, "MaintenanceError", {
|
|
575
575
|
enumerable: true,
|
|
576
|
-
get: function () { return
|
|
576
|
+
get: function () { return chunk2YFX77XI_cjs.MaintenanceError; }
|
|
577
577
|
});
|
|
578
578
|
Object.defineProperty(exports, "MarkerUnsafeIdError", {
|
|
579
579
|
enumerable: true,
|
|
580
|
-
get: function () { return
|
|
580
|
+
get: function () { return chunk2YFX77XI_cjs.MarkerUnsafeIdError; }
|
|
581
581
|
});
|
|
582
582
|
Object.defineProperty(exports, "MoveRefusedError", {
|
|
583
583
|
enumerable: true,
|
|
584
|
-
get: function () { return
|
|
584
|
+
get: function () { return chunk2YFX77XI_cjs.MoveRefusedError; }
|
|
585
585
|
});
|
|
586
586
|
Object.defineProperty(exports, "NotFoundError", {
|
|
587
587
|
enumerable: true,
|
|
588
|
-
get: function () { return
|
|
588
|
+
get: function () { return chunk2YFX77XI_cjs.NotFoundError; }
|
|
589
589
|
});
|
|
590
590
|
Object.defineProperty(exports, "OperationNotSupportedError", {
|
|
591
591
|
enumerable: true,
|
|
592
|
-
get: function () { return
|
|
592
|
+
get: function () { return chunk2YFX77XI_cjs.OperationNotSupportedError; }
|
|
593
593
|
});
|
|
594
594
|
Object.defineProperty(exports, "PaginationLimitError", {
|
|
595
595
|
enumerable: true,
|
|
596
|
-
get: function () { return
|
|
596
|
+
get: function () { return chunk2YFX77XI_cjs.PaginationLimitError; }
|
|
597
597
|
});
|
|
598
598
|
Object.defineProperty(exports, "QueryTooLongError", {
|
|
599
599
|
enumerable: true,
|
|
600
|
-
get: function () { return
|
|
600
|
+
get: function () { return chunk2YFX77XI_cjs.QueryTooLongError; }
|
|
601
601
|
});
|
|
602
602
|
Object.defineProperty(exports, "RateLimitError", {
|
|
603
603
|
enumerable: true,
|
|
604
|
-
get: function () { return
|
|
604
|
+
get: function () { return chunk2YFX77XI_cjs.RateLimitError; }
|
|
605
605
|
});
|
|
606
606
|
Object.defineProperty(exports, "RecoveryTruncatedError", {
|
|
607
607
|
enumerable: true,
|
|
608
|
-
get: function () { return
|
|
608
|
+
get: function () { return chunk2YFX77XI_cjs.RecoveryTruncatedError; }
|
|
609
609
|
});
|
|
610
610
|
Object.defineProperty(exports, "ResolutionError", {
|
|
611
611
|
enumerable: true,
|
|
612
|
-
get: function () { return
|
|
612
|
+
get: function () { return chunk2YFX77XI_cjs.ResolutionError; }
|
|
613
613
|
});
|
|
614
614
|
Object.defineProperty(exports, "ResponseRejectedError", {
|
|
615
615
|
enumerable: true,
|
|
616
|
-
get: function () { return
|
|
616
|
+
get: function () { return chunk2YFX77XI_cjs.ResponseRejectedError; }
|
|
617
617
|
});
|
|
618
618
|
Object.defineProperty(exports, "SIMPLE_RESOURCES", {
|
|
619
619
|
enumerable: true,
|
|
620
|
-
get: function () { return
|
|
620
|
+
get: function () { return chunk2YFX77XI_cjs.SIMPLE_RESOURCES; }
|
|
621
621
|
});
|
|
622
622
|
Object.defineProperty(exports, "ScopeRequiredError", {
|
|
623
623
|
enumerable: true,
|
|
624
|
-
get: function () { return
|
|
624
|
+
get: function () { return chunk2YFX77XI_cjs.ScopeRequiredError; }
|
|
625
625
|
});
|
|
626
626
|
Object.defineProperty(exports, "StaleObjectError", {
|
|
627
627
|
enumerable: true,
|
|
628
|
-
get: function () { return
|
|
628
|
+
get: function () { return chunk2YFX77XI_cjs.StaleObjectError; }
|
|
629
629
|
});
|
|
630
630
|
Object.defineProperty(exports, "TimeEntriesResource", {
|
|
631
631
|
enumerable: true,
|
|
632
|
-
get: function () { return
|
|
632
|
+
get: function () { return chunk2YFX77XI_cjs.TimeEntriesResource; }
|
|
633
633
|
});
|
|
634
634
|
Object.defineProperty(exports, "TtlCache", {
|
|
635
635
|
enumerable: true,
|
|
636
|
-
get: function () { return
|
|
636
|
+
get: function () { return chunk2YFX77XI_cjs.TtlCache; }
|
|
637
637
|
});
|
|
638
638
|
Object.defineProperty(exports, "UNSCOPED_WALK_THRESHOLD", {
|
|
639
639
|
enumerable: true,
|
|
640
|
-
get: function () { return
|
|
640
|
+
get: function () { return chunk2YFX77XI_cjs.UNSCOPED_WALK_THRESHOLD; }
|
|
641
641
|
});
|
|
642
642
|
Object.defineProperty(exports, "UnexpectedContentTypeError", {
|
|
643
643
|
enumerable: true,
|
|
644
|
-
get: function () { return
|
|
644
|
+
get: function () { return chunk2YFX77XI_cjs.UnexpectedContentTypeError; }
|
|
645
645
|
});
|
|
646
646
|
Object.defineProperty(exports, "ZONES", {
|
|
647
647
|
enumerable: true,
|
|
648
|
-
get: function () { return
|
|
648
|
+
get: function () { return chunk2YFX77XI_cjs.ZONES; }
|
|
649
649
|
});
|
|
650
650
|
Object.defineProperty(exports, "credentialShapeProblem", {
|
|
651
651
|
enumerable: true,
|
|
652
|
-
get: function () { return
|
|
652
|
+
get: function () { return chunk2YFX77XI_cjs.credentialShapeProblem; }
|
|
653
653
|
});
|
|
654
654
|
Object.defineProperty(exports, "credentialValueSummary", {
|
|
655
655
|
enumerable: true,
|
|
656
|
-
get: function () { return
|
|
656
|
+
get: function () { return chunk2YFX77XI_cjs.credentialValueSummary; }
|
|
657
657
|
});
|
|
658
658
|
Object.defineProperty(exports, "errorFromStatus", {
|
|
659
659
|
enumerable: true,
|
|
660
|
-
get: function () { return
|
|
660
|
+
get: function () { return chunk2YFX77XI_cjs.errorFromStatus; }
|
|
661
661
|
});
|
|
662
662
|
Object.defineProperty(exports, "formatVendorDetail", {
|
|
663
663
|
enumerable: true,
|
|
664
|
-
get: function () { return
|
|
664
|
+
get: function () { return chunk2YFX77XI_cjs.formatVendorDetail; }
|
|
665
665
|
});
|
|
666
666
|
Object.defineProperty(exports, "isAutotaskError", {
|
|
667
667
|
enumerable: true,
|
|
668
|
-
get: function () { return
|
|
668
|
+
get: function () { return chunk2YFX77XI_cjs.isAutotaskError; }
|
|
669
669
|
});
|
|
670
670
|
Object.defineProperty(exports, "isDeterministicVendor500", {
|
|
671
671
|
enumerable: true,
|
|
672
|
-
get: function () { return
|
|
672
|
+
get: function () { return chunk2YFX77XI_cjs.isDeterministicVendor500; }
|
|
673
673
|
});
|
|
674
674
|
Object.defineProperty(exports, "mergeDetails", {
|
|
675
675
|
enumerable: true,
|
|
676
|
-
get: function () { return
|
|
676
|
+
get: function () { return chunk2YFX77XI_cjs.mergeDetails; }
|
|
677
677
|
});
|
|
678
678
|
Object.defineProperty(exports, "nextActionFor", {
|
|
679
679
|
enumerable: true,
|
|
680
|
-
get: function () { return
|
|
680
|
+
get: function () { return chunk2YFX77XI_cjs.nextActionFor; }
|
|
681
681
|
});
|
|
682
682
|
Object.defineProperty(exports, "parseVendorErrors", {
|
|
683
683
|
enumerable: true,
|
|
684
|
-
get: function () { return
|
|
684
|
+
get: function () { return chunk2YFX77XI_cjs.parseVendorErrors; }
|
|
685
685
|
});
|
|
686
686
|
Object.defineProperty(exports, "NoopLogger", {
|
|
687
687
|
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-DBz-dqAY.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-DBz-dqAY.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-BGFWqM2_.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-DS3jnPiq.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-DS3jnPiq.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-BGFWqM2_.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-XIPZDDZS.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-MQ2DXOZW.js';
|
|
4
|
+
import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-YK32RN77.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-YK32RN77.js';
|
|
6
|
+
import './chunk-GJU4DJ6H.js';
|
|
7
7
|
export { NoopLogger, REDACTED } from './chunk-7NKB4UXV.js';
|
|
8
8
|
import { existsSync, readFileSync } from 'fs';
|
|
9
9
|
|