node-autotask 0.69.1 → 0.70.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 +11 -0
- package/MCP_TOOL_CATALOG.json +1 -1
- package/README.md +6 -0
- package/capabilities.json +4 -4
- package/dist/capabilities-data.js +3 -3
- package/dist/{chunk-FK37JXSJ.js → chunk-3RANR2RY.js} +408 -161
- package/dist/{chunk-EWXRFHPP.cjs → chunk-GVP2WW47.cjs} +175 -175
- package/dist/{chunk-MMGO3SFL.js → chunk-MN5VLBCI.js} +1 -1
- package/dist/{chunk-64BMSXWT.js → chunk-TYUTIZWB.js} +2 -2
- package/dist/{chunk-WFVLF7EW.cjs → chunk-YQX45JBG.cjs} +30 -30
- package/dist/{chunk-CLHDTYWO.cjs → chunk-YRRTE2NF.cjs} +408 -160
- package/dist/{index-Coe7LFLY.d.ts → index-By9Zw2Oc.d.ts} +8 -2
- package/dist/{index-BT_0tTPS.d.cts → index-CGW80Uzc.d.cts} +8 -2
- package/dist/index.cjs +83 -83
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/operations/index.cjs +53 -49
- package/dist/operations/index.d.cts +22 -4
- package/dist/operations/index.d.ts +22 -4
- package/dist/operations/index.js +1 -1
- package/dist/pool.cjs +11 -11
- package/dist/pool.js +3 -3
- package/dist/resources/index.cjs +26 -26
- package/dist/resources/index.d.cts +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.js +2 -2
- package/docs/API.md +45 -0
- package/docs/N8N-ADAPTER.md +1 -1
- package/docs/performance-caching.md +92 -0
- package/docs/performance-reads.md +9 -1
- package/package.json +1 -1
|
@@ -281,11 +281,15 @@ declare class TtlCache {
|
|
|
281
281
|
private readonly loads;
|
|
282
282
|
private epochCounter;
|
|
283
283
|
constructor(ttlMs: number, options?: TtlCacheOptions);
|
|
284
|
+
private liveEntry;
|
|
284
285
|
/** The live value (a copy), or `undefined` when absent or expired. */
|
|
285
286
|
get(key: string): unknown;
|
|
287
|
+
private projectEntry;
|
|
288
|
+
private loadValue;
|
|
286
289
|
/** Store `value` under `key`. `epoch` is the value the caller read BEFORE its
|
|
287
290
|
* wire request: a read that straddled a `clear()` (a write) is dropped. */
|
|
288
291
|
set(key: string, value: unknown, epoch?: number): void;
|
|
292
|
+
private storeValue;
|
|
289
293
|
/** `{ hit, age }` without consuming or cloning the entry (age in ms since stored). */
|
|
290
294
|
peek(key: string): {
|
|
291
295
|
hit: boolean;
|
|
@@ -3340,6 +3344,7 @@ declare abstract class QueryBase<T = Record<string, unknown>> {
|
|
|
3340
3344
|
* Pure read; no mutation paths involved.
|
|
3341
3345
|
*/
|
|
3342
3346
|
queryBounded(params?: BoundedQueryParams): Promise<BoundedQueryResult<T>>;
|
|
3347
|
+
private boundedQueryResult;
|
|
3343
3348
|
/** `POST /V1.0/<E>/query/count` → `queryCount` unwrapped to a plain number —
|
|
3344
3349
|
* or, on a plan-pinned blind surface, the `{ count: 0, blindSurface }`
|
|
3345
3350
|
* typed sentinel (S12-C T10; see `BlindCountResult`). */
|
|
@@ -3409,6 +3414,7 @@ declare abstract class MetaBase<T = Record<string, unknown>> extends QueryBase<T
|
|
|
3409
3414
|
* entity's entries via the fieldCache's `invalidate` first — the trio
|
|
3410
3415
|
* keeps its no-arg surface (the registry/MCP arity pin). */
|
|
3411
3416
|
getUdfInfo(): Promise<Field[]>;
|
|
3417
|
+
private metadataRead;
|
|
3412
3418
|
/**
|
|
3413
3419
|
* Bounded read against another entity's global `query` endpoint (special-op
|
|
3414
3420
|
* compositions only; the primary surface stays the resource's own ops).
|
|
@@ -3812,5 +3818,5 @@ declare class GenericResource<T = Record<string, unknown>, TCreate extends objec
|
|
|
3812
3818
|
download(parentId: Identifier, id: Identifier): Promise<Buffer>;
|
|
3813
3819
|
}
|
|
3814
3820
|
|
|
3815
|
-
export { TimeOffRequestsResource as $, CompaniesResource as C, ThresholdInformationResource as D, EntityInformationResource as E, GenericResource as G, InventoryProductsResource as I, TicketChargesResource as J, TicketsResource as K, ModulesResource as M, QuotesResource as Q, ResourceTimeOffAdditionalResource as R, SIMPLE_RESOURCES as S, TimeEntriesResource as Y, AutotaskClient as a, TtlCache as a0, VersionInformationResource as a1, VersionResource as a2, ZONES as a3, ZoneInformationResource as a4, FIELD_CACHE_KINDS as
|
|
3816
|
-
export type { AutotaskConfig as A, SimpleResourceEntry as B, FuzzyCompanyRow as F, HelperFlags as H, TimeEntriesPostedCountResult as L, TimeEntriesPostedPagingOptions as N, OpsFlags as O, ProfitRateSource as P, TicketChangeStatusResult as T, TimeEntriesPostedWindowCountOptions as U, TimeEntriesPostedWindowListOptions as V, TimeEntriesPostedWindowOptions as W, TimeEntriesPostedWindowResult as X, TimeEntryReviewFields as Z, TimeEntryReviewResult as _, ZoneName as a5, RowNamesSummary as a6, BlindSurfaceInfo as a7, RelationshipResource as a8, CreateGuidanceValueRequirement as a9, CreateGuidanceRow as aa, CreateBlockerKind as ab, CreateGuidanceReport as ac, FieldCacheKind as ad, TicketChangeStatusNoChange as b, CompanyFuzzySearchOptions as d, CompanyFuzzySearchResult as e, ContractsProfitabilityResult as h, CostRateResolution as j, GenericResourceConfig as k, ProfitabilityActivityCategory as m, ProfitabilityDataQualityWarning as n, ProfitabilityHighestCostTicket as o, ProfitabilityLabourCostMethod as p, ProfitabilityMiscoding as q, ProfitabilityMonthlyRow as r, ProfitabilityOpenRenewalItem as s, ProfitabilityOptions as t, ProfitabilityPart as u, ProfitabilityPartDigest as v, ProfitabilityRevenueByType as w };
|
|
3821
|
+
export { TimeOffRequestsResource as $, CompaniesResource as C, ThresholdInformationResource as D, EntityInformationResource as E, GenericResource as G, InventoryProductsResource as I, TicketChargesResource as J, TicketsResource as K, ModulesResource as M, QuotesResource as Q, ResourceTimeOffAdditionalResource as R, SIMPLE_RESOURCES as S, TimeEntriesResource as Y, AutotaskClient as a, TtlCache as a0, VersionInformationResource as a1, VersionResource as a2, ZONES as a3, ZoneInformationResource as a4, FIELD_CACHE_KINDS as af, AuthenticateResource as c, ConfigurationItemsResource as f, ContactsResource as g, ContractsResource as i, InvoicesResource as l, ResourceTimeOffBalancesResource as x, ResourcesResource as y, ServiceCallsResource as z };
|
|
3822
|
+
export type { AutotaskConfig as A, SimpleResourceEntry as B, FuzzyCompanyRow as F, HelperFlags as H, TimeEntriesPostedCountResult as L, TimeEntriesPostedPagingOptions as N, OpsFlags as O, ProfitRateSource as P, TicketChangeStatusResult as T, TimeEntriesPostedWindowCountOptions as U, TimeEntriesPostedWindowListOptions as V, TimeEntriesPostedWindowOptions as W, TimeEntriesPostedWindowResult as X, TimeEntryReviewFields as Z, TimeEntryReviewResult as _, ZoneName as a5, RowNamesSummary as a6, BlindSurfaceInfo as a7, RelationshipResource as a8, CreateGuidanceValueRequirement as a9, CreateGuidanceRow as aa, CreateBlockerKind as ab, CreateGuidanceReport as ac, FieldCacheKind as ad, BoundedQueryResult as ae, TicketChangeStatusNoChange as b, CompanyFuzzySearchOptions as d, CompanyFuzzySearchResult as e, ContractsProfitabilityResult as h, CostRateResolution as j, GenericResourceConfig as k, ProfitabilityActivityCategory as m, ProfitabilityDataQualityWarning as n, ProfitabilityHighestCostTicket as o, ProfitabilityLabourCostMethod as p, ProfitabilityMiscoding as q, ProfitabilityMonthlyRow as r, ProfitabilityOpenRenewalItem as s, ProfitabilityOptions as t, ProfitabilityPart as u, ProfitabilityPartDigest as v, ProfitabilityRevenueByType as w };
|
|
@@ -281,11 +281,15 @@ declare class TtlCache {
|
|
|
281
281
|
private readonly loads;
|
|
282
282
|
private epochCounter;
|
|
283
283
|
constructor(ttlMs: number, options?: TtlCacheOptions);
|
|
284
|
+
private liveEntry;
|
|
284
285
|
/** The live value (a copy), or `undefined` when absent or expired. */
|
|
285
286
|
get(key: string): unknown;
|
|
287
|
+
private projectEntry;
|
|
288
|
+
private loadValue;
|
|
286
289
|
/** Store `value` under `key`. `epoch` is the value the caller read BEFORE its
|
|
287
290
|
* wire request: a read that straddled a `clear()` (a write) is dropped. */
|
|
288
291
|
set(key: string, value: unknown, epoch?: number): void;
|
|
292
|
+
private storeValue;
|
|
289
293
|
/** `{ hit, age }` without consuming or cloning the entry (age in ms since stored). */
|
|
290
294
|
peek(key: string): {
|
|
291
295
|
hit: boolean;
|
|
@@ -3340,6 +3344,7 @@ declare abstract class QueryBase<T = Record<string, unknown>> {
|
|
|
3340
3344
|
* Pure read; no mutation paths involved.
|
|
3341
3345
|
*/
|
|
3342
3346
|
queryBounded(params?: BoundedQueryParams): Promise<BoundedQueryResult<T>>;
|
|
3347
|
+
private boundedQueryResult;
|
|
3343
3348
|
/** `POST /V1.0/<E>/query/count` → `queryCount` unwrapped to a plain number —
|
|
3344
3349
|
* or, on a plan-pinned blind surface, the `{ count: 0, blindSurface }`
|
|
3345
3350
|
* typed sentinel (S12-C T10; see `BlindCountResult`). */
|
|
@@ -3409,6 +3414,7 @@ declare abstract class MetaBase<T = Record<string, unknown>> extends QueryBase<T
|
|
|
3409
3414
|
* entity's entries via the fieldCache's `invalidate` first — the trio
|
|
3410
3415
|
* keeps its no-arg surface (the registry/MCP arity pin). */
|
|
3411
3416
|
getUdfInfo(): Promise<Field[]>;
|
|
3417
|
+
private metadataRead;
|
|
3412
3418
|
/**
|
|
3413
3419
|
* Bounded read against another entity's global `query` endpoint (special-op
|
|
3414
3420
|
* compositions only; the primary surface stays the resource's own ops).
|
|
@@ -3812,5 +3818,5 @@ declare class GenericResource<T = Record<string, unknown>, TCreate extends objec
|
|
|
3812
3818
|
download(parentId: Identifier, id: Identifier): Promise<Buffer>;
|
|
3813
3819
|
}
|
|
3814
3820
|
|
|
3815
|
-
export { TimeOffRequestsResource as $, CompaniesResource as C, ThresholdInformationResource as D, EntityInformationResource as E, GenericResource as G, InventoryProductsResource as I, TicketChargesResource as J, TicketsResource as K, ModulesResource as M, QuotesResource as Q, ResourceTimeOffAdditionalResource as R, SIMPLE_RESOURCES as S, TimeEntriesResource as Y, AutotaskClient as a, TtlCache as a0, VersionInformationResource as a1, VersionResource as a2, ZONES as a3, ZoneInformationResource as a4, FIELD_CACHE_KINDS as
|
|
3816
|
-
export type { AutotaskConfig as A, SimpleResourceEntry as B, FuzzyCompanyRow as F, HelperFlags as H, TimeEntriesPostedCountResult as L, TimeEntriesPostedPagingOptions as N, OpsFlags as O, ProfitRateSource as P, TicketChangeStatusResult as T, TimeEntriesPostedWindowCountOptions as U, TimeEntriesPostedWindowListOptions as V, TimeEntriesPostedWindowOptions as W, TimeEntriesPostedWindowResult as X, TimeEntryReviewFields as Z, TimeEntryReviewResult as _, ZoneName as a5, RowNamesSummary as a6, BlindSurfaceInfo as a7, RelationshipResource as a8, CreateGuidanceValueRequirement as a9, CreateGuidanceRow as aa, CreateBlockerKind as ab, CreateGuidanceReport as ac, FieldCacheKind as ad, TicketChangeStatusNoChange as b, CompanyFuzzySearchOptions as d, CompanyFuzzySearchResult as e, ContractsProfitabilityResult as h, CostRateResolution as j, GenericResourceConfig as k, ProfitabilityActivityCategory as m, ProfitabilityDataQualityWarning as n, ProfitabilityHighestCostTicket as o, ProfitabilityLabourCostMethod as p, ProfitabilityMiscoding as q, ProfitabilityMonthlyRow as r, ProfitabilityOpenRenewalItem as s, ProfitabilityOptions as t, ProfitabilityPart as u, ProfitabilityPartDigest as v, ProfitabilityRevenueByType as w };
|
|
3821
|
+
export { TimeOffRequestsResource as $, CompaniesResource as C, ThresholdInformationResource as D, EntityInformationResource as E, GenericResource as G, InventoryProductsResource as I, TicketChargesResource as J, TicketsResource as K, ModulesResource as M, QuotesResource as Q, ResourceTimeOffAdditionalResource as R, SIMPLE_RESOURCES as S, TimeEntriesResource as Y, AutotaskClient as a, TtlCache as a0, VersionInformationResource as a1, VersionResource as a2, ZONES as a3, ZoneInformationResource as a4, FIELD_CACHE_KINDS as af, AuthenticateResource as c, ConfigurationItemsResource as f, ContactsResource as g, ContractsResource as i, InvoicesResource as l, ResourceTimeOffBalancesResource as x, ResourcesResource as y, ServiceCallsResource as z };
|
|
3822
|
+
export type { AutotaskConfig as A, SimpleResourceEntry as B, FuzzyCompanyRow as F, HelperFlags as H, TimeEntriesPostedCountResult as L, TimeEntriesPostedPagingOptions as N, OpsFlags as O, ProfitRateSource as P, TicketChangeStatusResult as T, TimeEntriesPostedWindowCountOptions as U, TimeEntriesPostedWindowListOptions as V, TimeEntriesPostedWindowOptions as W, TimeEntriesPostedWindowResult as X, TimeEntryReviewFields as Z, TimeEntryReviewResult as _, ZoneName as a5, RowNamesSummary as a6, BlindSurfaceInfo as a7, RelationshipResource as a8, CreateGuidanceValueRequirement as a9, CreateGuidanceRow as aa, CreateBlockerKind as ab, CreateGuidanceReport as ac, FieldCacheKind as ad, BoundedQueryResult as ae, TicketChangeStatusNoChange as b, CompanyFuzzySearchOptions as d, CompanyFuzzySearchResult as e, ContractsProfitabilityResult as h, CostRateResolution as j, GenericResourceConfig as k, ProfitabilityActivityCategory as m, ProfitabilityDataQualityWarning as n, ProfitabilityHighestCostTicket as o, ProfitabilityLabourCostMethod as p, ProfitabilityMiscoding as q, ProfitabilityMonthlyRow as r, ProfitabilityOpenRenewalItem as s, ProfitabilityOptions as t, ProfitabilityPart as u, ProfitabilityPartDigest as v, ProfitabilityRevenueByType as w };
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYQX45JBG_cjs = require('./chunk-YQX45JBG.cjs');
|
|
4
4
|
require('./chunk-S5CH4H6H.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkGVP2WW47_cjs = require('./chunk-GVP2WW47.cjs');
|
|
6
|
+
var chunkYRRTE2NF_cjs = require('./chunk-YRRTE2NF.cjs');
|
|
7
7
|
require('./chunk-KAZE4WC7.cjs');
|
|
8
8
|
var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
|
|
9
9
|
var fs = require('fs');
|
|
@@ -19,7 +19,7 @@ var ALIASES = {
|
|
|
19
19
|
AUTOTASK_USERNAME: ["AUTOTASK_USER"]
|
|
20
20
|
};
|
|
21
21
|
function presenceError(name, source) {
|
|
22
|
-
return new
|
|
22
|
+
return new chunkYRRTE2NF_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 chunkYRRTE2NF_cjs.AutotaskConfigError(
|
|
31
|
+
`${source}: ${name} ${chunkYRRTE2NF_cjs.CREDENTIAL_ENV_LOAD_ACTION} [${chunkYRRTE2NF_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 chunkYRRTE2NF_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 (chunkYRRTE2NF_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" && chunkYRRTE2NF_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 = chunkYRRTE2NF_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: chunkYRRTE2NF_cjs.DEFAULT_ZONE, baseUrlHost: new URL(chunkYRRTE2NF_cjs.zoneUrl(chunkYRRTE2NF_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 ${chunkYRRTE2NF_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 = chunkYRRTE2NF_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: chunkYRRTE2NF_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 chunkYRRTE2NF_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 (chunkYRRTE2NF_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 = chunkYRRTE2NF_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 = chunkYRRTE2NF_cjs.parseVendorErrors(vendorError);
|
|
399
399
|
return entries !== void 0 && entries.length > 0;
|
|
400
400
|
}
|
|
401
401
|
function classifyWriteOutcome(error) {
|
|
402
|
-
if (
|
|
402
|
+
if (chunkYRRTE2NF_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 = chunkYRRTE2NF_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 chunkYQX45JBG_cjs.AutotaskClient; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "AuthenticateResource", {
|
|
439
439
|
enumerable: true,
|
|
440
|
-
get: function () { return
|
|
440
|
+
get: function () { return chunkGVP2WW47_cjs.AuthenticateResource; }
|
|
441
441
|
});
|
|
442
442
|
Object.defineProperty(exports, "ConfigurationItemsResource", {
|
|
443
443
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
444
|
+
get: function () { return chunkGVP2WW47_cjs.ConfigurationItemsResource; }
|
|
445
445
|
});
|
|
446
446
|
Object.defineProperty(exports, "ContactsResource", {
|
|
447
447
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkGVP2WW47_cjs.ContactsResource; }
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(exports, "EntityInformationResource", {
|
|
451
451
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
452
|
+
get: function () { return chunkGVP2WW47_cjs.EntityInformationResource; }
|
|
453
453
|
});
|
|
454
454
|
Object.defineProperty(exports, "InventoryProductsResource", {
|
|
455
455
|
enumerable: true,
|
|
456
|
-
get: function () { return
|
|
456
|
+
get: function () { return chunkGVP2WW47_cjs.InventoryProductsResource; }
|
|
457
457
|
});
|
|
458
458
|
Object.defineProperty(exports, "ModulesResource", {
|
|
459
459
|
enumerable: true,
|
|
460
|
-
get: function () { return
|
|
460
|
+
get: function () { return chunkGVP2WW47_cjs.ModulesResource; }
|
|
461
461
|
});
|
|
462
462
|
Object.defineProperty(exports, "QuotesResource", {
|
|
463
463
|
enumerable: true,
|
|
464
|
-
get: function () { return
|
|
464
|
+
get: function () { return chunkGVP2WW47_cjs.QuotesResource; }
|
|
465
465
|
});
|
|
466
466
|
Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
|
|
467
467
|
enumerable: true,
|
|
468
|
-
get: function () { return
|
|
468
|
+
get: function () { return chunkGVP2WW47_cjs.ResourceTimeOffAdditionalResource; }
|
|
469
469
|
});
|
|
470
470
|
Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
|
|
471
471
|
enumerable: true,
|
|
472
|
-
get: function () { return
|
|
472
|
+
get: function () { return chunkGVP2WW47_cjs.ResourceTimeOffBalancesResource; }
|
|
473
473
|
});
|
|
474
474
|
Object.defineProperty(exports, "ResourcesResource", {
|
|
475
475
|
enumerable: true,
|
|
476
|
-
get: function () { return
|
|
476
|
+
get: function () { return chunkGVP2WW47_cjs.ResourcesResource; }
|
|
477
477
|
});
|
|
478
478
|
Object.defineProperty(exports, "ServiceCallsResource", {
|
|
479
479
|
enumerable: true,
|
|
480
|
-
get: function () { return
|
|
480
|
+
get: function () { return chunkGVP2WW47_cjs.ServiceCallsResource; }
|
|
481
481
|
});
|
|
482
482
|
Object.defineProperty(exports, "ThresholdInformationResource", {
|
|
483
483
|
enumerable: true,
|
|
484
|
-
get: function () { return
|
|
484
|
+
get: function () { return chunkGVP2WW47_cjs.ThresholdInformationResource; }
|
|
485
485
|
});
|
|
486
486
|
Object.defineProperty(exports, "TicketChargesResource", {
|
|
487
487
|
enumerable: true,
|
|
488
|
-
get: function () { return
|
|
488
|
+
get: function () { return chunkGVP2WW47_cjs.TicketChargesResource; }
|
|
489
489
|
});
|
|
490
490
|
Object.defineProperty(exports, "TicketsResource", {
|
|
491
491
|
enumerable: true,
|
|
492
|
-
get: function () { return
|
|
492
|
+
get: function () { return chunkGVP2WW47_cjs.TicketsResource; }
|
|
493
493
|
});
|
|
494
494
|
Object.defineProperty(exports, "TimeOffRequestsResource", {
|
|
495
495
|
enumerable: true,
|
|
496
|
-
get: function () { return
|
|
496
|
+
get: function () { return chunkGVP2WW47_cjs.TimeOffRequestsResource; }
|
|
497
497
|
});
|
|
498
498
|
Object.defineProperty(exports, "VersionInformationResource", {
|
|
499
499
|
enumerable: true,
|
|
500
|
-
get: function () { return
|
|
500
|
+
get: function () { return chunkGVP2WW47_cjs.VersionInformationResource; }
|
|
501
501
|
});
|
|
502
502
|
Object.defineProperty(exports, "VersionResource", {
|
|
503
503
|
enumerable: true,
|
|
504
|
-
get: function () { return
|
|
504
|
+
get: function () { return chunkGVP2WW47_cjs.VersionResource; }
|
|
505
505
|
});
|
|
506
506
|
Object.defineProperty(exports, "ZoneInformationResource", {
|
|
507
507
|
enumerable: true,
|
|
508
|
-
get: function () { return
|
|
508
|
+
get: function () { return chunkGVP2WW47_cjs.ZoneInformationResource; }
|
|
509
509
|
});
|
|
510
510
|
Object.defineProperty(exports, "AutotaskAbortError", {
|
|
511
511
|
enumerable: true,
|
|
512
|
-
get: function () { return
|
|
512
|
+
get: function () { return chunkYRRTE2NF_cjs.AutotaskAbortError; }
|
|
513
513
|
});
|
|
514
514
|
Object.defineProperty(exports, "AutotaskConfigError", {
|
|
515
515
|
enumerable: true,
|
|
516
|
-
get: function () { return
|
|
516
|
+
get: function () { return chunkYRRTE2NF_cjs.AutotaskConfigError; }
|
|
517
517
|
});
|
|
518
518
|
Object.defineProperty(exports, "AutotaskError", {
|
|
519
519
|
enumerable: true,
|
|
520
|
-
get: function () { return
|
|
520
|
+
get: function () { return chunkYRRTE2NF_cjs.AutotaskError; }
|
|
521
521
|
});
|
|
522
522
|
Object.defineProperty(exports, "AutotaskNetworkError", {
|
|
523
523
|
enumerable: true,
|
|
524
|
-
get: function () { return
|
|
524
|
+
get: function () { return chunkYRRTE2NF_cjs.AutotaskNetworkError; }
|
|
525
525
|
});
|
|
526
526
|
Object.defineProperty(exports, "AutotaskTimeoutError", {
|
|
527
527
|
enumerable: true,
|
|
528
|
-
get: function () { return
|
|
528
|
+
get: function () { return chunkYRRTE2NF_cjs.AutotaskTimeoutError; }
|
|
529
529
|
});
|
|
530
530
|
Object.defineProperty(exports, "CREDENTIAL_SHAPE_POINTER", {
|
|
531
531
|
enumerable: true,
|
|
532
|
-
get: function () { return
|
|
532
|
+
get: function () { return chunkYRRTE2NF_cjs.CREDENTIAL_SHAPE_POINTER; }
|
|
533
533
|
});
|
|
534
534
|
Object.defineProperty(exports, "CompaniesResource", {
|
|
535
535
|
enumerable: true,
|
|
536
|
-
get: function () { return
|
|
536
|
+
get: function () { return chunkYRRTE2NF_cjs.CompaniesResource; }
|
|
537
537
|
});
|
|
538
538
|
Object.defineProperty(exports, "ConfirmationRequiredError", {
|
|
539
539
|
enumerable: true,
|
|
540
|
-
get: function () { return
|
|
540
|
+
get: function () { return chunkYRRTE2NF_cjs.ConfirmationRequiredError; }
|
|
541
541
|
});
|
|
542
542
|
Object.defineProperty(exports, "ConflictError", {
|
|
543
543
|
enumerable: true,
|
|
544
|
-
get: function () { return
|
|
544
|
+
get: function () { return chunkYRRTE2NF_cjs.ConflictError; }
|
|
545
545
|
});
|
|
546
546
|
Object.defineProperty(exports, "ContractsResource", {
|
|
547
547
|
enumerable: true,
|
|
548
|
-
get: function () { return
|
|
548
|
+
get: function () { return chunkYRRTE2NF_cjs.ContractsResource; }
|
|
549
549
|
});
|
|
550
550
|
Object.defineProperty(exports, "DeleteBoundaryError", {
|
|
551
551
|
enumerable: true,
|
|
552
|
-
get: function () { return
|
|
552
|
+
get: function () { return chunkYRRTE2NF_cjs.DeleteBoundaryError; }
|
|
553
553
|
});
|
|
554
554
|
Object.defineProperty(exports, "EmptyResponseError", {
|
|
555
555
|
enumerable: true,
|
|
556
|
-
get: function () { return
|
|
556
|
+
get: function () { return chunkYRRTE2NF_cjs.EmptyResponseError; }
|
|
557
557
|
});
|
|
558
558
|
Object.defineProperty(exports, "GenericResource", {
|
|
559
559
|
enumerable: true,
|
|
560
|
-
get: function () { return
|
|
560
|
+
get: function () { return chunkYRRTE2NF_cjs.GenericResource; }
|
|
561
561
|
});
|
|
562
562
|
Object.defineProperty(exports, "HostPolicyDeniedError", {
|
|
563
563
|
enumerable: true,
|
|
564
|
-
get: function () { return
|
|
564
|
+
get: function () { return chunkYRRTE2NF_cjs.HostPolicyDeniedError; }
|
|
565
565
|
});
|
|
566
566
|
Object.defineProperty(exports, "InvoicesResource", {
|
|
567
567
|
enumerable: true,
|
|
568
|
-
get: function () { return
|
|
568
|
+
get: function () { return chunkYRRTE2NF_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 chunkYRRTE2NF_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 chunkYRRTE2NF_cjs.MaintenanceError; }
|
|
577
577
|
});
|
|
578
578
|
Object.defineProperty(exports, "MarkerUnsafeIdError", {
|
|
579
579
|
enumerable: true,
|
|
580
|
-
get: function () { return
|
|
580
|
+
get: function () { return chunkYRRTE2NF_cjs.MarkerUnsafeIdError; }
|
|
581
581
|
});
|
|
582
582
|
Object.defineProperty(exports, "MoveRefusedError", {
|
|
583
583
|
enumerable: true,
|
|
584
|
-
get: function () { return
|
|
584
|
+
get: function () { return chunkYRRTE2NF_cjs.MoveRefusedError; }
|
|
585
585
|
});
|
|
586
586
|
Object.defineProperty(exports, "NotFoundError", {
|
|
587
587
|
enumerable: true,
|
|
588
|
-
get: function () { return
|
|
588
|
+
get: function () { return chunkYRRTE2NF_cjs.NotFoundError; }
|
|
589
589
|
});
|
|
590
590
|
Object.defineProperty(exports, "OperationNotSupportedError", {
|
|
591
591
|
enumerable: true,
|
|
592
|
-
get: function () { return
|
|
592
|
+
get: function () { return chunkYRRTE2NF_cjs.OperationNotSupportedError; }
|
|
593
593
|
});
|
|
594
594
|
Object.defineProperty(exports, "PaginationLimitError", {
|
|
595
595
|
enumerable: true,
|
|
596
|
-
get: function () { return
|
|
596
|
+
get: function () { return chunkYRRTE2NF_cjs.PaginationLimitError; }
|
|
597
597
|
});
|
|
598
598
|
Object.defineProperty(exports, "QueryTooLongError", {
|
|
599
599
|
enumerable: true,
|
|
600
|
-
get: function () { return
|
|
600
|
+
get: function () { return chunkYRRTE2NF_cjs.QueryTooLongError; }
|
|
601
601
|
});
|
|
602
602
|
Object.defineProperty(exports, "RateLimitError", {
|
|
603
603
|
enumerable: true,
|
|
604
|
-
get: function () { return
|
|
604
|
+
get: function () { return chunkYRRTE2NF_cjs.RateLimitError; }
|
|
605
605
|
});
|
|
606
606
|
Object.defineProperty(exports, "RecoveryTruncatedError", {
|
|
607
607
|
enumerable: true,
|
|
608
|
-
get: function () { return
|
|
608
|
+
get: function () { return chunkYRRTE2NF_cjs.RecoveryTruncatedError; }
|
|
609
609
|
});
|
|
610
610
|
Object.defineProperty(exports, "ResolutionError", {
|
|
611
611
|
enumerable: true,
|
|
612
|
-
get: function () { return
|
|
612
|
+
get: function () { return chunkYRRTE2NF_cjs.ResolutionError; }
|
|
613
613
|
});
|
|
614
614
|
Object.defineProperty(exports, "ResponseRejectedError", {
|
|
615
615
|
enumerable: true,
|
|
616
|
-
get: function () { return
|
|
616
|
+
get: function () { return chunkYRRTE2NF_cjs.ResponseRejectedError; }
|
|
617
617
|
});
|
|
618
618
|
Object.defineProperty(exports, "SIMPLE_RESOURCES", {
|
|
619
619
|
enumerable: true,
|
|
620
|
-
get: function () { return
|
|
620
|
+
get: function () { return chunkYRRTE2NF_cjs.SIMPLE_RESOURCES; }
|
|
621
621
|
});
|
|
622
622
|
Object.defineProperty(exports, "ScopeRequiredError", {
|
|
623
623
|
enumerable: true,
|
|
624
|
-
get: function () { return
|
|
624
|
+
get: function () { return chunkYRRTE2NF_cjs.ScopeRequiredError; }
|
|
625
625
|
});
|
|
626
626
|
Object.defineProperty(exports, "StaleObjectError", {
|
|
627
627
|
enumerable: true,
|
|
628
|
-
get: function () { return
|
|
628
|
+
get: function () { return chunkYRRTE2NF_cjs.StaleObjectError; }
|
|
629
629
|
});
|
|
630
630
|
Object.defineProperty(exports, "TimeEntriesResource", {
|
|
631
631
|
enumerable: true,
|
|
632
|
-
get: function () { return
|
|
632
|
+
get: function () { return chunkYRRTE2NF_cjs.TimeEntriesResource; }
|
|
633
633
|
});
|
|
634
634
|
Object.defineProperty(exports, "TtlCache", {
|
|
635
635
|
enumerable: true,
|
|
636
|
-
get: function () { return
|
|
636
|
+
get: function () { return chunkYRRTE2NF_cjs.TtlCache; }
|
|
637
637
|
});
|
|
638
638
|
Object.defineProperty(exports, "UNSCOPED_WALK_THRESHOLD", {
|
|
639
639
|
enumerable: true,
|
|
640
|
-
get: function () { return
|
|
640
|
+
get: function () { return chunkYRRTE2NF_cjs.UNSCOPED_WALK_THRESHOLD; }
|
|
641
641
|
});
|
|
642
642
|
Object.defineProperty(exports, "UnexpectedContentTypeError", {
|
|
643
643
|
enumerable: true,
|
|
644
|
-
get: function () { return
|
|
644
|
+
get: function () { return chunkYRRTE2NF_cjs.UnexpectedContentTypeError; }
|
|
645
645
|
});
|
|
646
646
|
Object.defineProperty(exports, "ZONES", {
|
|
647
647
|
enumerable: true,
|
|
648
|
-
get: function () { return
|
|
648
|
+
get: function () { return chunkYRRTE2NF_cjs.ZONES; }
|
|
649
649
|
});
|
|
650
650
|
Object.defineProperty(exports, "credentialShapeProblem", {
|
|
651
651
|
enumerable: true,
|
|
652
|
-
get: function () { return
|
|
652
|
+
get: function () { return chunkYRRTE2NF_cjs.credentialShapeProblem; }
|
|
653
653
|
});
|
|
654
654
|
Object.defineProperty(exports, "credentialValueSummary", {
|
|
655
655
|
enumerable: true,
|
|
656
|
-
get: function () { return
|
|
656
|
+
get: function () { return chunkYRRTE2NF_cjs.credentialValueSummary; }
|
|
657
657
|
});
|
|
658
658
|
Object.defineProperty(exports, "errorFromStatus", {
|
|
659
659
|
enumerable: true,
|
|
660
|
-
get: function () { return
|
|
660
|
+
get: function () { return chunkYRRTE2NF_cjs.errorFromStatus; }
|
|
661
661
|
});
|
|
662
662
|
Object.defineProperty(exports, "formatVendorDetail", {
|
|
663
663
|
enumerable: true,
|
|
664
|
-
get: function () { return
|
|
664
|
+
get: function () { return chunkYRRTE2NF_cjs.formatVendorDetail; }
|
|
665
665
|
});
|
|
666
666
|
Object.defineProperty(exports, "isAutotaskError", {
|
|
667
667
|
enumerable: true,
|
|
668
|
-
get: function () { return
|
|
668
|
+
get: function () { return chunkYRRTE2NF_cjs.isAutotaskError; }
|
|
669
669
|
});
|
|
670
670
|
Object.defineProperty(exports, "isDeterministicVendor500", {
|
|
671
671
|
enumerable: true,
|
|
672
|
-
get: function () { return
|
|
672
|
+
get: function () { return chunkYRRTE2NF_cjs.isDeterministicVendor500; }
|
|
673
673
|
});
|
|
674
674
|
Object.defineProperty(exports, "mergeDetails", {
|
|
675
675
|
enumerable: true,
|
|
676
|
-
get: function () { return
|
|
676
|
+
get: function () { return chunkYRRTE2NF_cjs.mergeDetails; }
|
|
677
677
|
});
|
|
678
678
|
Object.defineProperty(exports, "nextActionFor", {
|
|
679
679
|
enumerable: true,
|
|
680
|
-
get: function () { return
|
|
680
|
+
get: function () { return chunkYRRTE2NF_cjs.nextActionFor; }
|
|
681
681
|
});
|
|
682
682
|
Object.defineProperty(exports, "parseVendorErrors", {
|
|
683
683
|
enumerable: true,
|
|
684
|
-
get: function () { return
|
|
684
|
+
get: function () { return chunkYRRTE2NF_cjs.parseVendorErrors; }
|
|
685
685
|
});
|
|
686
686
|
Object.defineProperty(exports, "NoopLogger", {
|
|
687
687
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-
|
|
2
|
-
export { c as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, h as ContractsProfitabilityResult, i as ContractsResource, j as CostRateResolution, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, P as ProfitRateSource, m as ProfitabilityActivityCategory, n as ProfitabilityDataQualityWarning, o as ProfitabilityHighestCostTicket, p as ProfitabilityLabourCostMethod, q as ProfitabilityMiscoding, r as ProfitabilityMonthlyRow, s as ProfitabilityOpenRenewalItem, t as ProfitabilityOptions, u as ProfitabilityPart, v as ProfitabilityPartDigest, w as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, L as TimeEntriesPostedCountResult, N as TimeEntriesPostedPagingOptions, U as TimeEntriesPostedWindowCountOptions, V as TimeEntriesPostedWindowListOptions, W as TimeEntriesPostedWindowOptions, X as TimeEntriesPostedWindowResult, Y as TimeEntriesResource, Z as TimeEntryReviewFields, _ as TimeEntryReviewResult, $ as TimeOffRequestsResource, a0 as TtlCache, a1 as VersionInformationResource, a2 as VersionResource, a3 as ZONES, a4 as ZoneInformationResource, a5 as ZoneName } from './index-
|
|
1
|
+
import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-CGW80Uzc.cjs';
|
|
2
|
+
export { c as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, h as ContractsProfitabilityResult, i as ContractsResource, j as CostRateResolution, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, P as ProfitRateSource, m as ProfitabilityActivityCategory, n as ProfitabilityDataQualityWarning, o as ProfitabilityHighestCostTicket, p as ProfitabilityLabourCostMethod, q as ProfitabilityMiscoding, r as ProfitabilityMonthlyRow, s as ProfitabilityOpenRenewalItem, t as ProfitabilityOptions, u as ProfitabilityPart, v as ProfitabilityPartDigest, w as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, L as TimeEntriesPostedCountResult, N as TimeEntriesPostedPagingOptions, U as TimeEntriesPostedWindowCountOptions, V as TimeEntriesPostedWindowListOptions, W as TimeEntriesPostedWindowOptions, X as TimeEntriesPostedWindowResult, Y as TimeEntriesResource, Z as TimeEntryReviewFields, _ as TimeEntryReviewResult, $ as TimeOffRequestsResource, a0 as TtlCache, a1 as VersionInformationResource, a2 as VersionResource, a3 as ZONES, a4 as ZoneInformationResource, a5 as ZoneName } from './index-CGW80Uzc.cjs';
|
|
3
3
|
import { A as AutotaskError, a as AutotaskErrorOptions, b as AutotaskConfigError } from './base-CHMATPq0.cjs';
|
|
4
4
|
export { E as ErrorCategory, c as ErrorIdRef, N as NextAction, i as isAutotaskError, n as nextActionFor } from './base-CHMATPq0.cjs';
|
|
5
5
|
export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-
|
|
2
|
-
export { c as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, h as ContractsProfitabilityResult, i as ContractsResource, j as CostRateResolution, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, P as ProfitRateSource, m as ProfitabilityActivityCategory, n as ProfitabilityDataQualityWarning, o as ProfitabilityHighestCostTicket, p as ProfitabilityLabourCostMethod, q as ProfitabilityMiscoding, r as ProfitabilityMonthlyRow, s as ProfitabilityOpenRenewalItem, t as ProfitabilityOptions, u as ProfitabilityPart, v as ProfitabilityPartDigest, w as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, L as TimeEntriesPostedCountResult, N as TimeEntriesPostedPagingOptions, U as TimeEntriesPostedWindowCountOptions, V as TimeEntriesPostedWindowListOptions, W as TimeEntriesPostedWindowOptions, X as TimeEntriesPostedWindowResult, Y as TimeEntriesResource, Z as TimeEntryReviewFields, _ as TimeEntryReviewResult, $ as TimeOffRequestsResource, a0 as TtlCache, a1 as VersionInformationResource, a2 as VersionResource, a3 as ZONES, a4 as ZoneInformationResource, a5 as ZoneName } from './index-
|
|
1
|
+
import { a as AutotaskClient, T as TicketChangeStatusResult, b as TicketChangeStatusNoChange } from './index-By9Zw2Oc.js';
|
|
2
|
+
export { c as AuthenticateResource, A as AutotaskConfig, C as CompaniesResource, d as CompanyFuzzySearchOptions, e as CompanyFuzzySearchResult, f as ConfigurationItemsResource, g as ContactsResource, h as ContractsProfitabilityResult, i as ContractsResource, j as CostRateResolution, E as EntityInformationResource, F as FuzzyCompanyRow, G as GenericResource, k as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, l as InvoicesResource, M as ModulesResource, O as OpsFlags, P as ProfitRateSource, m as ProfitabilityActivityCategory, n as ProfitabilityDataQualityWarning, o as ProfitabilityHighestCostTicket, p as ProfitabilityLabourCostMethod, q as ProfitabilityMiscoding, r as ProfitabilityMonthlyRow, s as ProfitabilityOpenRenewalItem, t as ProfitabilityOptions, u as ProfitabilityPart, v as ProfitabilityPartDigest, w as ProfitabilityRevenueByType, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, x as ResourceTimeOffBalancesResource, y as ResourcesResource, S as SIMPLE_RESOURCES, z as ServiceCallsResource, B as SimpleResourceEntry, D as ThresholdInformationResource, J as TicketChargesResource, K as TicketsResource, L as TimeEntriesPostedCountResult, N as TimeEntriesPostedPagingOptions, U as TimeEntriesPostedWindowCountOptions, V as TimeEntriesPostedWindowListOptions, W as TimeEntriesPostedWindowOptions, X as TimeEntriesPostedWindowResult, Y as TimeEntriesResource, Z as TimeEntryReviewFields, _ as TimeEntryReviewResult, $ as TimeOffRequestsResource, a0 as TtlCache, a1 as VersionInformationResource, a2 as VersionResource, a3 as ZONES, a4 as ZoneInformationResource, a5 as ZoneName } from './index-By9Zw2Oc.js';
|
|
3
3
|
import { A as AutotaskError, a as AutotaskErrorOptions, b as AutotaskConfigError } from './base-CHMATPq0.js';
|
|
4
4
|
export { E as ErrorCategory, c as ErrorIdRef, N as NextAction, i as isAutotaskError, n as nextActionFor } from './base-CHMATPq0.js';
|
|
5
5
|
export { N as NoopLogger, R as REDACTED } from './logger-B1gYmFre.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AutotaskClient } from './chunk-
|
|
1
|
+
export { AutotaskClient } from './chunk-TYUTIZWB.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-
|
|
3
|
+
export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from './chunk-MN5VLBCI.js';
|
|
4
|
+
import { credentialShapeProblem, zoneUrl, DEFAULT_ZONE, ZONES, isAutotaskError, AutotaskConfigError, CREDENTIAL_ENV_LOAD_ACTION, credentialValueSummary, parseVendorErrors, buildQueryRequest, RateLimitError } from './chunk-3RANR2RY.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-3RANR2RY.js';
|
|
6
6
|
import './chunk-SCFB5MF3.js';
|
|
7
7
|
export { NoopLogger, REDACTED } from './chunk-7NKB4UXV.js';
|
|
8
8
|
import { existsSync, readFileSync } from 'fs';
|