node-autotask 0.38.0 → 0.39.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 +14 -0
- package/MCP_TOOL_CATALOG.json +2 -2
- package/MCP_TOOL_MANIFEST.md +7 -7
- package/N8N_MCP_MANIFEST.json +2 -2
- package/N8N_MCP_MANIFEST.md +3 -3
- package/capabilities.json +1460 -1429
- package/capabilities.schema.json +2 -1
- package/dist/capabilities.cjs +2 -2
- package/dist/capabilities.d.cts +4 -4
- package/dist/capabilities.d.ts +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-U3K6IDKB.js → chunk-2KQS3RHQ.js} +1459 -1428
- package/dist/{chunk-IY5QZZVF.cjs → chunk-45PLS73K.cjs} +213 -135
- package/dist/{chunk-7FNKFNIJ.cjs → chunk-6ROB5KXB.cjs} +285 -285
- package/dist/{chunk-4QHGCYEI.js → chunk-FV5PJLIZ.js} +94 -16
- package/dist/{chunk-DCTUBUIZ.cjs → chunk-KSNK6UEW.cjs} +143 -143
- package/dist/{chunk-KPYXO7F5.js → chunk-LD5UPSDB.js} +2 -2
- package/dist/{chunk-IY3WCPCK.js → chunk-OKFTECIE.js} +2 -2
- package/dist/{chunk-73JMTV4O.cjs → chunk-RAZEXOLC.cjs} +1459 -1428
- package/dist/{index-BFbUB5YD.d.cts → index-BVOOHPvr.d.cts} +1 -1
- package/dist/{index-Q-4HQEEb.d.ts → index-Bmoiwhx2.d.ts} +1 -1
- package/dist/index.cjs +22 -22
- 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 +179 -177
- package/dist/operations/index.d.cts +62 -13
- package/dist/operations/index.d.ts +62 -13
- package/dist/operations/index.js +4 -2
- package/dist/pool.cjs +9 -9
- 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 +4 -4
- package/dist/resources/index.d.cts +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.js +3 -3
- package/docs/API.md +31 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CAPABILITIES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2KQS3RHQ.js";
|
|
4
4
|
import {
|
|
5
5
|
wrapUntrusted
|
|
6
6
|
} from "./chunk-5VHSLJMR.js";
|
|
@@ -17878,7 +17878,8 @@ var WORKFLOW_RESOURCES = [
|
|
|
17878
17878
|
// src/operations/fieldCatalog.ts
|
|
17879
17879
|
var MAX_FIELD_CATALOG_WIRE = 60;
|
|
17880
17880
|
var FIELD_CATALOG_HONESTY_NOTE = "Live field metadata reports the SHAPE of a field (existence, requiredness, type, maxLength, read-only, queryable, picklist-ness) as FLAGS and NAMES: picklist-ness as a flag (isPickList) and picklist field names (picklistFields). With the opt-in `labels: true`, picklist rows carry the vendor's exposed picklist VALUES (labels next to each value); without it the op serves no VALUES. It cannot resolve a picklist VALUE the vendor does not expose to this API user (the W-A4 wall \u2014 e.g. the attachments Type picklist): retrying the catalog will not surface a withheld value; that gap is vendor-side, not a client defect.";
|
|
17881
|
-
var
|
|
17881
|
+
var MIN_FIELD_CATALOG_MAX_BYTES = 4096;
|
|
17882
|
+
var FIELD_CATALOG_OPT_KEYS = ["resources", "include", "fresh", "fields", "labels", "compact", "maxBytes"];
|
|
17882
17883
|
function projectFieldRow(raw, labels = false, udf = false) {
|
|
17883
17884
|
const r = typeof raw === "object" && raw !== null ? raw : {};
|
|
17884
17885
|
const name = typeof r.name === "string" ? r.name : "";
|
|
@@ -17905,6 +17906,16 @@ function projectFieldRow(raw, labels = false, udf = false) {
|
|
|
17905
17906
|
...values !== void 0 ? { picklistValues: values } : {}
|
|
17906
17907
|
};
|
|
17907
17908
|
}
|
|
17909
|
+
function compactFieldRow(f, udf, keepValues) {
|
|
17910
|
+
return {
|
|
17911
|
+
name: f.name,
|
|
17912
|
+
type: f.type,
|
|
17913
|
+
isPickList: f.isPickList,
|
|
17914
|
+
isReference: f.referenceEntityType !== "",
|
|
17915
|
+
udf,
|
|
17916
|
+
...keepValues && f.picklistValues !== void 0 ? { picklistValues: f.picklistValues } : {}
|
|
17917
|
+
};
|
|
17918
|
+
}
|
|
17908
17919
|
function isObjectOrArrayType(type) {
|
|
17909
17920
|
const t = type.trim().toLowerCase();
|
|
17910
17921
|
return t === "object" || t === "array" || t === "collection" || t.endsWith("[]");
|
|
@@ -17972,7 +17983,7 @@ function apiEntityFor(rec) {
|
|
|
17972
17983
|
function validateCatalogOptsShape(opts) {
|
|
17973
17984
|
if (opts !== void 0 && (typeof opts !== "object" || opts === null || Array.isArray(opts))) {
|
|
17974
17985
|
throw new AutotaskConfigError(
|
|
17975
|
-
"fieldCatalog: opts must be an object { resources?: string[], include?: (info|fields|udf)[], fresh?: boolean, fields?: string[], labels?: boolean }"
|
|
17986
|
+
"fieldCatalog: opts must be an object { resources?: string[], include?: (info|fields|udf)[], fresh?: boolean, fields?: string[], labels?: boolean, compact?: boolean, maxBytes?: number }"
|
|
17976
17987
|
);
|
|
17977
17988
|
}
|
|
17978
17989
|
for (const key of Object.keys(opts ?? {})) {
|
|
@@ -18061,6 +18072,61 @@ function resolveLabels(opts) {
|
|
|
18061
18072
|
}
|
|
18062
18073
|
return opts?.labels === true;
|
|
18063
18074
|
}
|
|
18075
|
+
function resolveSizeOpts(opts) {
|
|
18076
|
+
if (opts?.compact !== void 0 && typeof opts.compact !== "boolean") {
|
|
18077
|
+
throw new AutotaskConfigError(`fieldCatalog: opts.compact must be a boolean (got ${typeof opts.compact})`);
|
|
18078
|
+
}
|
|
18079
|
+
const maxBytes = opts?.maxBytes;
|
|
18080
|
+
if (maxBytes !== void 0 && (typeof maxBytes !== "number" || !Number.isInteger(maxBytes) || maxBytes < MIN_FIELD_CATALOG_MAX_BYTES)) {
|
|
18081
|
+
throw new AutotaskConfigError(
|
|
18082
|
+
`fieldCatalog: opts.maxBytes must be an integer >= ${MIN_FIELD_CATALOG_MAX_BYTES} (got ${String(maxBytes)})`
|
|
18083
|
+
);
|
|
18084
|
+
}
|
|
18085
|
+
return { compact: opts?.compact === true, maxBytes };
|
|
18086
|
+
}
|
|
18087
|
+
var jsonBytes = (v) => Buffer.byteLength(JSON.stringify(v), "utf8");
|
|
18088
|
+
var TRIM_KINDS = ["udf", "fields", "picklistFields", "queryable", "readOnly", "required"];
|
|
18089
|
+
function applyMaxBytes(result, maxBytes) {
|
|
18090
|
+
const fullBytes = jsonBytes(result);
|
|
18091
|
+
if (fullBytes <= maxBytes) return;
|
|
18092
|
+
result.truncated = true;
|
|
18093
|
+
const omitted = /* @__PURE__ */ new Map();
|
|
18094
|
+
const truncation = { reason: "maxBytes", maxBytes, fullBytes, omitted: [], note: "" };
|
|
18095
|
+
result.truncation = truncation;
|
|
18096
|
+
const lists = [];
|
|
18097
|
+
for (const kind of TRIM_KINDS.slice(0, 2)) {
|
|
18098
|
+
for (let i = result.rows.length - 1; i >= 0; i--) {
|
|
18099
|
+
const row = result.rows[i];
|
|
18100
|
+
if (Array.isArray(row[kind])) lists.push({ resource: row.resource, kind, list: row[kind] });
|
|
18101
|
+
}
|
|
18102
|
+
}
|
|
18103
|
+
for (const kind of TRIM_KINDS.slice(2)) {
|
|
18104
|
+
for (let i = result.rows.length - 1; i >= 0; i--) lists.push({ resource: result.rows[i].resource, kind, list: result.rows[i][kind] });
|
|
18105
|
+
}
|
|
18106
|
+
for (; ; ) {
|
|
18107
|
+
truncation.omitted = [...omitted.values()];
|
|
18108
|
+
const rowsDropped = truncation.omitted.filter((o) => o.kind === "fields" || o.kind === "udf").reduce((a, o) => a + o.count, 0);
|
|
18109
|
+
const namesDropped = truncation.omitted.length > 0 && truncation.omitted.some((o) => o.kind !== "fields" && o.kind !== "udf");
|
|
18110
|
+
truncation.note = `${rowsDropped} field row(s) omitted to fit maxBytes ${maxBytes} (the full result is ${fullBytes} bytes); ` + (namesDropped ? "the row name lists were trimmed as well (see omitted). " : "the row name lists (required, readOnly, queryable, picklistFields) still name every field. ") + `Narrow with fields: [...], ${result.compact ? "" : "use compact: true, "}or raise maxBytes.`;
|
|
18111
|
+
let bytes = jsonBytes(result);
|
|
18112
|
+
if (bytes <= maxBytes) return;
|
|
18113
|
+
if (lists.every((l) => l.list.length === 0)) {
|
|
18114
|
+
throw new AutotaskConfigError(
|
|
18115
|
+
`fieldCatalog: maxBytes ${maxBytes} cannot hold this result: with every field row and name list dropped it is still ${bytes} bytes for ${result.rows.length} resource row(s); request fewer resources or raise maxBytes`
|
|
18116
|
+
);
|
|
18117
|
+
}
|
|
18118
|
+
for (const { resource, kind, list } of lists) {
|
|
18119
|
+
while (list.length > 0 && bytes > maxBytes) {
|
|
18120
|
+
bytes -= jsonBytes(list.pop()) + 1;
|
|
18121
|
+
const key = `${resource}:${kind}`;
|
|
18122
|
+
const entry = omitted.get(key) ?? { resource, kind, count: 0 };
|
|
18123
|
+
entry.count += 1;
|
|
18124
|
+
omitted.set(key, entry);
|
|
18125
|
+
}
|
|
18126
|
+
if (bytes <= maxBytes) break;
|
|
18127
|
+
}
|
|
18128
|
+
}
|
|
18129
|
+
}
|
|
18064
18130
|
function assertWithinWireCap(targetCount, kindCount) {
|
|
18065
18131
|
const cost = targetCount * kindCount;
|
|
18066
18132
|
if (cost > MAX_FIELD_CATALOG_WIRE) {
|
|
@@ -18142,11 +18208,16 @@ async function sweepResource(ctx, resource, tally) {
|
|
|
18142
18208
|
}
|
|
18143
18209
|
}
|
|
18144
18210
|
row.cache = allCached ? { hit: true, age: ages.length > 0 ? Math.max(...ages) : 0 } : { hit: false, age: null };
|
|
18211
|
+
if (ctx.compact) {
|
|
18212
|
+
const keepValues = labels && fieldsFilter !== void 0;
|
|
18213
|
+
if (row.fields !== void 0) row.fields = row.fields.map((f) => compactFieldRow(f, false, keepValues));
|
|
18214
|
+
if (Array.isArray(row.udf)) row.udf = row.udf.map((f) => compactFieldRow(f, true, keepValues));
|
|
18215
|
+
}
|
|
18145
18216
|
const declared = derivedFieldsFor(resource);
|
|
18146
18217
|
if (declared.length > 0) {
|
|
18147
18218
|
const byField = new Map(declared.map((d) => [d.field, d]));
|
|
18148
18219
|
row.derivedFields = declared;
|
|
18149
|
-
for (const field of row.fields ?? []) {
|
|
18220
|
+
for (const field of ctx.compact ? [] : row.fields ?? []) {
|
|
18150
18221
|
const derivation = byField.get(field.name);
|
|
18151
18222
|
if (derivation === void 0) continue;
|
|
18152
18223
|
field.derived = {
|
|
@@ -18164,21 +18235,23 @@ async function fieldCatalog(client, opts) {
|
|
|
18164
18235
|
const targets = resolveTargets(opts, fieldOps, allResources);
|
|
18165
18236
|
const fieldsFilter = resolveFieldsFilter(opts);
|
|
18166
18237
|
const labels = resolveLabels(opts);
|
|
18238
|
+
const { compact, maxBytes } = resolveSizeOpts(opts);
|
|
18167
18239
|
assertWithinWireCap(targets.length, include.length);
|
|
18168
18240
|
const cache = client.http.fieldCache;
|
|
18169
18241
|
const zone = client.config.zone ?? "unknown";
|
|
18170
18242
|
const rows = [];
|
|
18171
18243
|
const tally = { wireUsed: 0, anyPicklistValues: false };
|
|
18172
|
-
const ctx = { client, include, fieldsFilter, labels, fresh: opts?.fresh === true, fieldOps, udfCapable };
|
|
18244
|
+
const ctx = { client, include, fieldsFilter, labels, compact, fresh: opts?.fresh === true, fieldOps, udfCapable };
|
|
18173
18245
|
for (const resource of targets) {
|
|
18174
18246
|
const row = await sweepResource(ctx, resource, tally);
|
|
18175
18247
|
if (row !== void 0) rows.push(row);
|
|
18176
18248
|
}
|
|
18177
|
-
|
|
18249
|
+
const result = {
|
|
18178
18250
|
zone,
|
|
18179
18251
|
label: zone,
|
|
18180
18252
|
cached: cache !== void 0,
|
|
18181
18253
|
labels,
|
|
18254
|
+
compact,
|
|
18182
18255
|
ttlMs: cache?.ttlMs ?? null,
|
|
18183
18256
|
fetchedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
18184
18257
|
rows,
|
|
@@ -18196,6 +18269,8 @@ async function fieldCatalog(client, opts) {
|
|
|
18196
18269
|
note: FIELD_CATALOG_HONESTY_NOTE
|
|
18197
18270
|
}
|
|
18198
18271
|
};
|
|
18272
|
+
if (maxBytes !== void 0) applyMaxBytes(result, maxBytes);
|
|
18273
|
+
return result;
|
|
18199
18274
|
}
|
|
18200
18275
|
|
|
18201
18276
|
// src/field-sets.ts
|
|
@@ -20794,12 +20869,12 @@ function readNamesOpt(value, where) {
|
|
|
20794
20869
|
return value;
|
|
20795
20870
|
}
|
|
20796
20871
|
async function labelRows(client, resourceKey, rows) {
|
|
20797
|
-
const
|
|
20798
|
-
for (const row of rows) for (const
|
|
20799
|
-
if (
|
|
20872
|
+
const keys = /* @__PURE__ */ new Set();
|
|
20873
|
+
for (const row of rows) for (const k of Object.keys(row)) keys.add(k);
|
|
20874
|
+
if (keys.size === 0) return { rows: [...rows] };
|
|
20800
20875
|
let picklistFields = [];
|
|
20801
20876
|
const modelFields = MODEL_FIELD_SETS[resourceKey] ?? [];
|
|
20802
|
-
const candidates = [...
|
|
20877
|
+
const candidates = [...keys].filter((f) => f !== "id" && modelFields.includes(f) && ROW_FK_TABLES[f] === void 0 && !isResourceFkField(f));
|
|
20803
20878
|
if (candidates.length > 0) try {
|
|
20804
20879
|
const catalog = await fieldCatalog(client, { resources: [resourceKey], labels: true });
|
|
20805
20880
|
const fields = catalog.rows.find((r) => r.resource === resourceKey)?.fields ?? [];
|
|
@@ -20807,6 +20882,8 @@ async function labelRows(client, resourceKey, rows) {
|
|
|
20807
20882
|
} catch (err) {
|
|
20808
20883
|
if (!isAutotaskError(err) || err.code === "ABORTED") throw err;
|
|
20809
20884
|
}
|
|
20885
|
+
const labelled = (field) => picklistFields.includes(field) || ROW_FK_TABLES[field] !== void 0 || isResourceFkField(field);
|
|
20886
|
+
if (![...keys].some(labelled)) return { rows: [...rows] };
|
|
20810
20887
|
const builder = createNamePlan(picklistFields, resourceKey);
|
|
20811
20888
|
for (const row of rows) {
|
|
20812
20889
|
for (const [field, value] of Object.entries(row)) {
|
|
@@ -20817,20 +20894,20 @@ async function labelRows(client, resourceKey, rows) {
|
|
|
20817
20894
|
}
|
|
20818
20895
|
}
|
|
20819
20896
|
const plan = builder.plan();
|
|
20820
|
-
|
|
20821
|
-
const names = await resolveCompositeNames(client.http, plan);
|
|
20897
|
+
const names = plan.resourceIds.length === 0 && plan.recordFks.length === 0 && picklistFields.length === 0 ? void 0 : await resolveCompositeNames(client.http, plan);
|
|
20822
20898
|
const out = rows.map((row) => {
|
|
20823
20899
|
const r = { ...row };
|
|
20824
20900
|
for (const [field, value] of Object.entries(row)) {
|
|
20825
|
-
|
|
20826
|
-
if (picklistFields.includes(field)) r[`${field}Label`] = names.labelFor(field, value);
|
|
20901
|
+
const set = value !== null && value !== void 0 && value !== 0 && value !== "0" && names !== void 0;
|
|
20902
|
+
if (picklistFields.includes(field)) r[`${field}Label`] = set ? names.labelFor(field, value) : null;
|
|
20827
20903
|
const table = ROW_FK_TABLES[field];
|
|
20828
|
-
if (table !== void 0
|
|
20829
|
-
else if (isResourceFkField(field)
|
|
20904
|
+
if (table !== void 0) r[`${field}Name`] = set && isVendorId(value) ? untrustedName(names.recordName(table, value)) : null;
|
|
20905
|
+
else if (isResourceFkField(field)) r[`${field}Name`] = set && isVendorId(value) ? untrustedName(names.resourceName(value)) : null;
|
|
20830
20906
|
}
|
|
20831
20907
|
if (r["assignedResourceIDName"] !== void 0) r["assignedResourceName"] = r["assignedResourceIDName"];
|
|
20832
20908
|
return r;
|
|
20833
20909
|
});
|
|
20910
|
+
if (names === void 0) return { rows: out };
|
|
20834
20911
|
const capped = Object.values(names.section.rows).filter((row) => row.capped).length;
|
|
20835
20912
|
const reasons = names.section.reasons;
|
|
20836
20913
|
if (capped === 0 && Object.keys(reasons).length === 0) return { rows: out };
|
|
@@ -26528,6 +26605,7 @@ export {
|
|
|
26528
26605
|
WORKFLOW_RESOURCES,
|
|
26529
26606
|
MAX_FIELD_CATALOG_WIRE,
|
|
26530
26607
|
FIELD_CATALOG_HONESTY_NOTE,
|
|
26608
|
+
MIN_FIELD_CATALOG_MAX_BYTES,
|
|
26531
26609
|
fieldCatalog,
|
|
26532
26610
|
PICKLIST_VALUE_NOT_SERVED_NOTE,
|
|
26533
26611
|
TICKET_LABEL_FIELDS,
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
var
|
|
128
|
+
var _chunk6ROB5KXBcjs = require('./chunk-6ROB5KXB.cjs');
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
|
|
@@ -141,7 +141,7 @@ var _chunk7FNKFNIJcjs = require('./chunk-7FNKFNIJ.cjs');
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var
|
|
144
|
+
var _chunk45PLS73Kcjs = require('./chunk-45PLS73K.cjs');
|
|
145
145
|
|
|
146
146
|
// src/client.ts
|
|
147
147
|
var AutotaskClient = class {
|
|
@@ -292,145 +292,145 @@ var AutotaskClient = class {
|
|
|
292
292
|
* anything is wired. Construction issues NO request.
|
|
293
293
|
*/
|
|
294
294
|
constructor(options) {
|
|
295
|
-
this.config =
|
|
296
|
-
this.http = new (0,
|
|
295
|
+
this.config = _chunk45PLS73Kcjs.resolveConfig.call(void 0, options);
|
|
296
|
+
this.http = new (0, _chunk45PLS73Kcjs.HttpClient)(this.config);
|
|
297
297
|
this.http.client = this;
|
|
298
|
-
this.appointments = new (0,
|
|
299
|
-
this.authenticateResource = new (0,
|
|
300
|
-
this.billingCodes = new (0,
|
|
301
|
-
this.billingItemApprovalLevels = new (0,
|
|
302
|
-
this.billingItems = new (0,
|
|
303
|
-
this.changeRequestLinks = new (0,
|
|
304
|
-
this.checklistLibraries = new (0,
|
|
305
|
-
this.checklistLibraryChecklistItems = new (0,
|
|
306
|
-
this.classificationIcons = new (0,
|
|
307
|
-
this.companies = new (0,
|
|
308
|
-
this.companyAlerts = new (0,
|
|
309
|
-
this.companyLocations = new (0,
|
|
310
|
-
this.companyNotes = new (0,
|
|
311
|
-
this.companySiteConfigurations = new (0,
|
|
312
|
-
this.companyWebhooks = new (0,
|
|
313
|
-
this.configurationItemBillingProductAssociations = new (0,
|
|
314
|
-
this.configurationItemCategories = new (0,
|
|
315
|
-
this.configurationItemCategoryUdfAssociations = new (0,
|
|
316
|
-
this.configurationItemDnsRecords = new (0,
|
|
317
|
-
this.configurationItemNotes = new (0,
|
|
318
|
-
this.configurationItemRelatedItems = new (0,
|
|
319
|
-
this.configurationItems = new (0,
|
|
320
|
-
this.configurationItemSslSubjectAlternativeNames = new (0,
|
|
321
|
-
this.configurationItemTypes = new (0,
|
|
322
|
-
this.configurationItemWebhooks = new (0,
|
|
323
|
-
this.contactGroupContacts = new (0,
|
|
324
|
-
this.contactGroups = new (0,
|
|
325
|
-
this.contacts = new (0,
|
|
326
|
-
this.contactWebhooks = new (0,
|
|
327
|
-
this.contractBillingRules = new (0,
|
|
328
|
-
this.contractBlockHourFactors = new (0,
|
|
329
|
-
this.contractBlocks = new (0,
|
|
330
|
-
this.contractCharges = new (0,
|
|
331
|
-
this.contractExclusionBillingCodes = new (0,
|
|
332
|
-
this.contractExclusionRoles = new (0,
|
|
333
|
-
this.contractExclusionSetExcludedRoles = new (0,
|
|
334
|
-
this.contractExclusionSetExcludedWorkTypes = new (0,
|
|
335
|
-
this.contractExclusionSets = new (0,
|
|
336
|
-
this.contractMilestones = new (0,
|
|
337
|
-
this.contractNotes = new (0,
|
|
338
|
-
this.contractRates = new (0,
|
|
339
|
-
this.contractRetainers = new (0,
|
|
340
|
-
this.contractRoleCosts = new (0,
|
|
341
|
-
this.contractServiceAdjustments = new (0,
|
|
342
|
-
this.contractServiceBundleAdjustments = new (0,
|
|
343
|
-
this.contractServiceBundles = new (0,
|
|
344
|
-
this.contractServiceBundleUnits = new (0,
|
|
345
|
-
this.contractServices = new (0,
|
|
346
|
-
this.contractServiceUnits = new (0,
|
|
347
|
-
this.contracts = new (0,
|
|
348
|
-
this.contractTicketPurchases = new (0,
|
|
349
|
-
this.countries = new (0,
|
|
350
|
-
this.currencies = new (0,
|
|
351
|
-
this.departments = new (0,
|
|
352
|
-
this.domainRegistrars = new (0,
|
|
353
|
-
this.entityInformation = new (0,
|
|
354
|
-
this.expenseItemAttachments = new (0,
|
|
355
|
-
this.expenseItems = new (0,
|
|
356
|
-
this.expenseReports = new (0,
|
|
357
|
-
this.holidaySets = new (0,
|
|
358
|
-
this.holidays = new (0,
|
|
359
|
-
this.inventoryProducts = new (0,
|
|
360
|
-
this.invoices = new (0,
|
|
361
|
-
this.invoiceTemplates = new (0,
|
|
362
|
-
this.modules = new (0,
|
|
363
|
-
this.notificationHistory = new (0,
|
|
364
|
-
this.opportunities = new (0,
|
|
365
|
-
this.opportunityAttachments = new (0,
|
|
366
|
-
this.opportunityCategories = new (0,
|
|
367
|
-
this.organizationalLevel1s = new (0,
|
|
368
|
-
this.organizationalLevel2s = new (0,
|
|
369
|
-
this.organizationalLevelAssociations = new (0,
|
|
370
|
-
this.phases = new (0,
|
|
371
|
-
this.products = new (0,
|
|
372
|
-
this.productVendors = new (0,
|
|
373
|
-
this.projectCharges = new (0,
|
|
374
|
-
this.projectNotes = new (0,
|
|
375
|
-
this.projects = new (0,
|
|
376
|
-
this.purchaseApprovals = new (0,
|
|
377
|
-
this.purchaseOrderItemReceiving = new (0,
|
|
378
|
-
this.purchaseOrderItems = new (0,
|
|
379
|
-
this.purchaseOrders = new (0,
|
|
380
|
-
this.quoteItems = new (0,
|
|
381
|
-
this.quoteLocations = new (0,
|
|
382
|
-
this.quotes = new (0,
|
|
383
|
-
this.quoteTemplates = new (0,
|
|
384
|
-
this.resourceRoleQueues = new (0,
|
|
385
|
-
this.resourceRoles = new (0,
|
|
386
|
-
this.resourceSkills = new (0,
|
|
387
|
-
this.resources = new (0,
|
|
388
|
-
this.resourceTimeOffAdditional = new (0,
|
|
389
|
-
this.resourceTimeOffApprovers = new (0,
|
|
390
|
-
this.resourceTimeOffBalances = new (0,
|
|
391
|
-
this.roles = new (0,
|
|
392
|
-
this.salesOrders = new (0,
|
|
393
|
-
this.serviceCalls = new (0,
|
|
394
|
-
this.serviceCallTaskResources = new (0,
|
|
395
|
-
this.serviceCallTasks = new (0,
|
|
396
|
-
this.serviceCallTicketResources = new (0,
|
|
397
|
-
this.serviceCallTickets = new (0,
|
|
398
|
-
this.serviceLevelAgreementResults = new (0,
|
|
399
|
-
this.services = new (0,
|
|
400
|
-
this.skills = new (0,
|
|
401
|
-
this.subscriptionPeriods = new (0,
|
|
402
|
-
this.subscriptions = new (0,
|
|
403
|
-
this.surveyResults = new (0,
|
|
404
|
-
this.surveys = new (0,
|
|
405
|
-
this.tagAliases = new (0,
|
|
406
|
-
this.tagGroups = new (0,
|
|
407
|
-
this.tags = new (0,
|
|
408
|
-
this.taskSecondaryResources = new (0,
|
|
409
|
-
this.tasks = new (0,
|
|
410
|
-
this.taxRegions = new (0,
|
|
411
|
-
this.thresholdInformation = new (0,
|
|
412
|
-
this.ticketAdditionalConfigurationItems = new (0,
|
|
413
|
-
this.ticketAdditionalContacts = new (0,
|
|
414
|
-
this.ticketAttachments = new (0,
|
|
415
|
-
this.ticketCategories = new (0,
|
|
416
|
-
this.ticketCategoryFieldDefaults = new (0,
|
|
417
|
-
this.ticketChangeRequestApprovals = new (0,
|
|
418
|
-
this.ticketCharges = new (0,
|
|
419
|
-
this.ticketChecklistItems = new (0,
|
|
420
|
-
this.ticketChecklistLibraries = new (0,
|
|
421
|
-
this.ticketHistory = new (0,
|
|
422
|
-
this.ticketNoteAttachments = new (0,
|
|
423
|
-
this.ticketNotes = new (0,
|
|
424
|
-
this.ticketNoteWebhooks = new (0,
|
|
425
|
-
this.ticketSecondaryResources = new (0,
|
|
426
|
-
this.tickets = new (0,
|
|
427
|
-
this.ticketWebhooks = new (0,
|
|
428
|
-
this.timeEntries = new (0,
|
|
429
|
-
this.timeEntryAttachments = new (0,
|
|
430
|
-
this.timeOffRequests = new (0,
|
|
431
|
-
this.versionInformation = new (0,
|
|
432
|
-
this.version = new (0,
|
|
433
|
-
this.zoneInformation = new (0,
|
|
298
|
+
this.appointments = new (0, _chunk6ROB5KXBcjs.AppointmentsResource)(this.http, this.config.pageSize);
|
|
299
|
+
this.authenticateResource = new (0, _chunk6ROB5KXBcjs.AuthenticateResource)(this.http);
|
|
300
|
+
this.billingCodes = new (0, _chunk45PLS73Kcjs.BillingCodesResource)(this.http, this.config.pageSize);
|
|
301
|
+
this.billingItemApprovalLevels = new (0, _chunk6ROB5KXBcjs.BillingItemApprovalLevelsResource)(this.http, this.config.pageSize);
|
|
302
|
+
this.billingItems = new (0, _chunk45PLS73Kcjs.BillingItemsResource)(this.http, this.config.pageSize);
|
|
303
|
+
this.changeRequestLinks = new (0, _chunk6ROB5KXBcjs.ChangeRequestLinksResource)(this.http, this.config.pageSize);
|
|
304
|
+
this.checklistLibraries = new (0, _chunk6ROB5KXBcjs.ChecklistLibrariesResource)(this.http, this.config.pageSize);
|
|
305
|
+
this.checklistLibraryChecklistItems = new (0, _chunk6ROB5KXBcjs.ChecklistLibraryChecklistItemsResource)(this.http, this.config.pageSize);
|
|
306
|
+
this.classificationIcons = new (0, _chunk6ROB5KXBcjs.ClassificationIconsResource)(this.http, this.config.pageSize);
|
|
307
|
+
this.companies = new (0, _chunk45PLS73Kcjs.CompaniesResource)(this.http, this.config.pageSize);
|
|
308
|
+
this.companyAlerts = new (0, _chunk6ROB5KXBcjs.CompanyAlertsResource)(this.http, this.config.pageSize);
|
|
309
|
+
this.companyLocations = new (0, _chunk6ROB5KXBcjs.CompanyLocationsResource)(this.http, this.config.pageSize);
|
|
310
|
+
this.companyNotes = new (0, _chunk6ROB5KXBcjs.CompanyNotesResource)(this.http, this.config.pageSize);
|
|
311
|
+
this.companySiteConfigurations = new (0, _chunk6ROB5KXBcjs.CompanySiteConfigurationsResource)(this.http, this.config.pageSize);
|
|
312
|
+
this.companyWebhooks = new (0, _chunk6ROB5KXBcjs.CompanyWebhooksResource)(this.http, this.config.pageSize);
|
|
313
|
+
this.configurationItemBillingProductAssociations = new (0, _chunk6ROB5KXBcjs.ConfigurationItemBillingProductAssociationsResource)(this.http, this.config.pageSize);
|
|
314
|
+
this.configurationItemCategories = new (0, _chunk6ROB5KXBcjs.ConfigurationItemCategoriesResource)(this.http, this.config.pageSize);
|
|
315
|
+
this.configurationItemCategoryUdfAssociations = new (0, _chunk6ROB5KXBcjs.ConfigurationItemCategoryUdfAssociationsResource)(this.http, this.config.pageSize);
|
|
316
|
+
this.configurationItemDnsRecords = new (0, _chunk6ROB5KXBcjs.ConfigurationItemDnsRecordsResource)(this.http, this.config.pageSize);
|
|
317
|
+
this.configurationItemNotes = new (0, _chunk6ROB5KXBcjs.ConfigurationItemNotesResource)(this.http, this.config.pageSize);
|
|
318
|
+
this.configurationItemRelatedItems = new (0, _chunk6ROB5KXBcjs.ConfigurationItemRelatedItemsResource)(this.http, this.config.pageSize);
|
|
319
|
+
this.configurationItems = new (0, _chunk6ROB5KXBcjs.ConfigurationItemsResource)(this.http, this.config.pageSize);
|
|
320
|
+
this.configurationItemSslSubjectAlternativeNames = new (0, _chunk6ROB5KXBcjs.ConfigurationItemSslSubjectAlternativeNamesResource)(this.http, this.config.pageSize);
|
|
321
|
+
this.configurationItemTypes = new (0, _chunk6ROB5KXBcjs.ConfigurationItemTypesResource)(this.http, this.config.pageSize);
|
|
322
|
+
this.configurationItemWebhooks = new (0, _chunk6ROB5KXBcjs.ConfigurationItemWebhooksResource)(this.http, this.config.pageSize);
|
|
323
|
+
this.contactGroupContacts = new (0, _chunk6ROB5KXBcjs.ContactGroupContactsResource)(this.http, this.config.pageSize);
|
|
324
|
+
this.contactGroups = new (0, _chunk6ROB5KXBcjs.ContactGroupsResource)(this.http, this.config.pageSize);
|
|
325
|
+
this.contacts = new (0, _chunk6ROB5KXBcjs.ContactsResource)(this.http, this.config.pageSize);
|
|
326
|
+
this.contactWebhooks = new (0, _chunk6ROB5KXBcjs.ContactWebhooksResource)(this.http, this.config.pageSize);
|
|
327
|
+
this.contractBillingRules = new (0, _chunk6ROB5KXBcjs.ContractBillingRulesResource)(this.http, this.config.pageSize);
|
|
328
|
+
this.contractBlockHourFactors = new (0, _chunk6ROB5KXBcjs.ContractBlockHourFactorsResource)(this.http, this.config.pageSize);
|
|
329
|
+
this.contractBlocks = new (0, _chunk6ROB5KXBcjs.ContractBlocksResource)(this.http, this.config.pageSize);
|
|
330
|
+
this.contractCharges = new (0, _chunk6ROB5KXBcjs.ContractChargesResource)(this.http, this.config.pageSize);
|
|
331
|
+
this.contractExclusionBillingCodes = new (0, _chunk6ROB5KXBcjs.ContractExclusionBillingCodesResource)(this.http, this.config.pageSize);
|
|
332
|
+
this.contractExclusionRoles = new (0, _chunk6ROB5KXBcjs.ContractExclusionRolesResource)(this.http, this.config.pageSize);
|
|
333
|
+
this.contractExclusionSetExcludedRoles = new (0, _chunk6ROB5KXBcjs.ContractExclusionSetExcludedRolesResource)(this.http, this.config.pageSize);
|
|
334
|
+
this.contractExclusionSetExcludedWorkTypes = new (0, _chunk6ROB5KXBcjs.ContractExclusionSetExcludedWorkTypesResource)(this.http, this.config.pageSize);
|
|
335
|
+
this.contractExclusionSets = new (0, _chunk6ROB5KXBcjs.ContractExclusionSetsResource)(this.http, this.config.pageSize);
|
|
336
|
+
this.contractMilestones = new (0, _chunk6ROB5KXBcjs.ContractMilestonesResource)(this.http, this.config.pageSize);
|
|
337
|
+
this.contractNotes = new (0, _chunk6ROB5KXBcjs.ContractNotesResource)(this.http, this.config.pageSize);
|
|
338
|
+
this.contractRates = new (0, _chunk6ROB5KXBcjs.ContractRatesResource)(this.http, this.config.pageSize);
|
|
339
|
+
this.contractRetainers = new (0, _chunk6ROB5KXBcjs.ContractRetainersResource)(this.http, this.config.pageSize);
|
|
340
|
+
this.contractRoleCosts = new (0, _chunk6ROB5KXBcjs.ContractRoleCostsResource)(this.http, this.config.pageSize);
|
|
341
|
+
this.contractServiceAdjustments = new (0, _chunk6ROB5KXBcjs.ContractServiceAdjustmentsResource)(this.http, this.config.pageSize);
|
|
342
|
+
this.contractServiceBundleAdjustments = new (0, _chunk6ROB5KXBcjs.ContractServiceBundleAdjustmentsResource)(this.http, this.config.pageSize);
|
|
343
|
+
this.contractServiceBundles = new (0, _chunk6ROB5KXBcjs.ContractServiceBundlesResource)(this.http, this.config.pageSize);
|
|
344
|
+
this.contractServiceBundleUnits = new (0, _chunk6ROB5KXBcjs.ContractServiceBundleUnitsResource)(this.http, this.config.pageSize);
|
|
345
|
+
this.contractServices = new (0, _chunk6ROB5KXBcjs.ContractServicesResource)(this.http, this.config.pageSize);
|
|
346
|
+
this.contractServiceUnits = new (0, _chunk6ROB5KXBcjs.ContractServiceUnitsResource)(this.http, this.config.pageSize);
|
|
347
|
+
this.contracts = new (0, _chunk45PLS73Kcjs.ContractsResource)(this.http, this.config.pageSize);
|
|
348
|
+
this.contractTicketPurchases = new (0, _chunk6ROB5KXBcjs.ContractTicketPurchasesResource)(this.http, this.config.pageSize);
|
|
349
|
+
this.countries = new (0, _chunk6ROB5KXBcjs.CountriesResource)(this.http, this.config.pageSize);
|
|
350
|
+
this.currencies = new (0, _chunk6ROB5KXBcjs.CurrenciesResource)(this.http, this.config.pageSize);
|
|
351
|
+
this.departments = new (0, _chunk6ROB5KXBcjs.DepartmentsResource)(this.http, this.config.pageSize);
|
|
352
|
+
this.domainRegistrars = new (0, _chunk6ROB5KXBcjs.DomainRegistrarsResource)(this.http, this.config.pageSize);
|
|
353
|
+
this.entityInformation = new (0, _chunk6ROB5KXBcjs.EntityInformationResource)(this.http);
|
|
354
|
+
this.expenseItemAttachments = new (0, _chunk6ROB5KXBcjs.ExpenseItemAttachmentsResource)(this.http, this.config.pageSize);
|
|
355
|
+
this.expenseItems = new (0, _chunk6ROB5KXBcjs.ExpenseItemsResource)(this.http, this.config.pageSize);
|
|
356
|
+
this.expenseReports = new (0, _chunk6ROB5KXBcjs.ExpenseReportsResource)(this.http, this.config.pageSize);
|
|
357
|
+
this.holidaySets = new (0, _chunk6ROB5KXBcjs.HolidaySetsResource)(this.http, this.config.pageSize);
|
|
358
|
+
this.holidays = new (0, _chunk6ROB5KXBcjs.HolidaysResource)(this.http, this.config.pageSize);
|
|
359
|
+
this.inventoryProducts = new (0, _chunk6ROB5KXBcjs.InventoryProductsResource)(this.http, this.config.pageSize);
|
|
360
|
+
this.invoices = new (0, _chunk45PLS73Kcjs.InvoicesResource)(this.http, this.config.pageSize);
|
|
361
|
+
this.invoiceTemplates = new (0, _chunk6ROB5KXBcjs.InvoiceTemplatesResource)(this.http, this.config.pageSize);
|
|
362
|
+
this.modules = new (0, _chunk6ROB5KXBcjs.ModulesResource)(this.http);
|
|
363
|
+
this.notificationHistory = new (0, _chunk6ROB5KXBcjs.NotificationHistoryResource)(this.http, this.config.pageSize);
|
|
364
|
+
this.opportunities = new (0, _chunk6ROB5KXBcjs.OpportunitiesResource)(this.http, this.config.pageSize);
|
|
365
|
+
this.opportunityAttachments = new (0, _chunk6ROB5KXBcjs.OpportunityAttachmentsResource)(this.http, this.config.pageSize);
|
|
366
|
+
this.opportunityCategories = new (0, _chunk6ROB5KXBcjs.OpportunityCategoriesResource)(this.http, this.config.pageSize);
|
|
367
|
+
this.organizationalLevel1s = new (0, _chunk45PLS73Kcjs.OrganizationalLevel1sResource)(this.http, this.config.pageSize);
|
|
368
|
+
this.organizationalLevel2s = new (0, _chunk45PLS73Kcjs.OrganizationalLevel2sResource)(this.http, this.config.pageSize);
|
|
369
|
+
this.organizationalLevelAssociations = new (0, _chunk45PLS73Kcjs.OrganizationalLevelAssociationsResource)(this.http, this.config.pageSize);
|
|
370
|
+
this.phases = new (0, _chunk6ROB5KXBcjs.PhasesResource)(this.http, this.config.pageSize);
|
|
371
|
+
this.products = new (0, _chunk6ROB5KXBcjs.ProductsResource)(this.http, this.config.pageSize);
|
|
372
|
+
this.productVendors = new (0, _chunk6ROB5KXBcjs.ProductVendorsResource)(this.http, this.config.pageSize);
|
|
373
|
+
this.projectCharges = new (0, _chunk6ROB5KXBcjs.ProjectChargesResource)(this.http, this.config.pageSize);
|
|
374
|
+
this.projectNotes = new (0, _chunk6ROB5KXBcjs.ProjectNotesResource)(this.http, this.config.pageSize);
|
|
375
|
+
this.projects = new (0, _chunk6ROB5KXBcjs.ProjectsResource)(this.http, this.config.pageSize);
|
|
376
|
+
this.purchaseApprovals = new (0, _chunk6ROB5KXBcjs.PurchaseApprovalsResource)(this.http, this.config.pageSize);
|
|
377
|
+
this.purchaseOrderItemReceiving = new (0, _chunk6ROB5KXBcjs.PurchaseOrderItemReceivingResource)(this.http, this.config.pageSize);
|
|
378
|
+
this.purchaseOrderItems = new (0, _chunk6ROB5KXBcjs.PurchaseOrderItemsResource)(this.http, this.config.pageSize);
|
|
379
|
+
this.purchaseOrders = new (0, _chunk6ROB5KXBcjs.PurchaseOrdersResource)(this.http, this.config.pageSize);
|
|
380
|
+
this.quoteItems = new (0, _chunk6ROB5KXBcjs.QuoteItemsResource)(this.http, this.config.pageSize);
|
|
381
|
+
this.quoteLocations = new (0, _chunk6ROB5KXBcjs.QuoteLocationsResource)(this.http, this.config.pageSize);
|
|
382
|
+
this.quotes = new (0, _chunk6ROB5KXBcjs.QuotesResource)(this.http, this.config.pageSize);
|
|
383
|
+
this.quoteTemplates = new (0, _chunk6ROB5KXBcjs.QuoteTemplatesResource)(this.http, this.config.pageSize);
|
|
384
|
+
this.resourceRoleQueues = new (0, _chunk6ROB5KXBcjs.ResourceRoleQueuesResource)(this.http, this.config.pageSize);
|
|
385
|
+
this.resourceRoles = new (0, _chunk6ROB5KXBcjs.ResourceRolesResource)(this.http, this.config.pageSize);
|
|
386
|
+
this.resourceSkills = new (0, _chunk6ROB5KXBcjs.ResourceSkillsResource)(this.http, this.config.pageSize);
|
|
387
|
+
this.resources = new (0, _chunk45PLS73Kcjs.ResourcesResource)(this.http, this.config, this.config.pageSize);
|
|
388
|
+
this.resourceTimeOffAdditional = new (0, _chunk6ROB5KXBcjs.ResourceTimeOffAdditionalResource)(this.http, this.config.pageSize);
|
|
389
|
+
this.resourceTimeOffApprovers = new (0, _chunk6ROB5KXBcjs.ResourceTimeOffApproversResource)(this.http, this.config.pageSize);
|
|
390
|
+
this.resourceTimeOffBalances = new (0, _chunk6ROB5KXBcjs.ResourceTimeOffBalancesResource)(this.http, this.config.pageSize);
|
|
391
|
+
this.roles = new (0, _chunk6ROB5KXBcjs.RolesResource)(this.http, this.config.pageSize);
|
|
392
|
+
this.salesOrders = new (0, _chunk6ROB5KXBcjs.SalesOrdersResource)(this.http, this.config.pageSize);
|
|
393
|
+
this.serviceCalls = new (0, _chunk6ROB5KXBcjs.ServiceCallsResource)(this.http, this.config.pageSize);
|
|
394
|
+
this.serviceCallTaskResources = new (0, _chunk6ROB5KXBcjs.ServiceCallTaskResourcesResource)(this.http, this.config.pageSize);
|
|
395
|
+
this.serviceCallTasks = new (0, _chunk6ROB5KXBcjs.ServiceCallTasksResource)(this.http, this.config.pageSize);
|
|
396
|
+
this.serviceCallTicketResources = new (0, _chunk6ROB5KXBcjs.ServiceCallTicketResourcesResource)(this.http, this.config.pageSize);
|
|
397
|
+
this.serviceCallTickets = new (0, _chunk6ROB5KXBcjs.ServiceCallTicketsResource)(this.http, this.config.pageSize);
|
|
398
|
+
this.serviceLevelAgreementResults = new (0, _chunk6ROB5KXBcjs.ServiceLevelAgreementResultsResource)(this.http, this.config.pageSize);
|
|
399
|
+
this.services = new (0, _chunk6ROB5KXBcjs.ServicesResource)(this.http, this.config.pageSize);
|
|
400
|
+
this.skills = new (0, _chunk6ROB5KXBcjs.SkillsResource)(this.http, this.config.pageSize);
|
|
401
|
+
this.subscriptionPeriods = new (0, _chunk6ROB5KXBcjs.SubscriptionPeriodsResource)(this.http, this.config.pageSize);
|
|
402
|
+
this.subscriptions = new (0, _chunk6ROB5KXBcjs.SubscriptionsResource)(this.http, this.config.pageSize);
|
|
403
|
+
this.surveyResults = new (0, _chunk6ROB5KXBcjs.SurveyResultsResource)(this.http, this.config.pageSize);
|
|
404
|
+
this.surveys = new (0, _chunk6ROB5KXBcjs.SurveysResource)(this.http, this.config.pageSize);
|
|
405
|
+
this.tagAliases = new (0, _chunk6ROB5KXBcjs.TagAliasesResource)(this.http, this.config.pageSize);
|
|
406
|
+
this.tagGroups = new (0, _chunk6ROB5KXBcjs.TagGroupsResource)(this.http, this.config.pageSize);
|
|
407
|
+
this.tags = new (0, _chunk6ROB5KXBcjs.TagsResource)(this.http, this.config.pageSize);
|
|
408
|
+
this.taskSecondaryResources = new (0, _chunk6ROB5KXBcjs.TaskSecondaryResourcesResource)(this.http, this.config.pageSize);
|
|
409
|
+
this.tasks = new (0, _chunk6ROB5KXBcjs.TasksResource)(this.http, this.config.pageSize);
|
|
410
|
+
this.taxRegions = new (0, _chunk6ROB5KXBcjs.TaxRegionsResource)(this.http, this.config.pageSize);
|
|
411
|
+
this.thresholdInformation = new (0, _chunk6ROB5KXBcjs.ThresholdInformationResource)(this.http);
|
|
412
|
+
this.ticketAdditionalConfigurationItems = new (0, _chunk6ROB5KXBcjs.TicketAdditionalConfigurationItemsResource)(this.http, this.config.pageSize);
|
|
413
|
+
this.ticketAdditionalContacts = new (0, _chunk6ROB5KXBcjs.TicketAdditionalContactsResource)(this.http, this.config.pageSize);
|
|
414
|
+
this.ticketAttachments = new (0, _chunk6ROB5KXBcjs.TicketAttachmentsResource)(this.http, this.config.pageSize);
|
|
415
|
+
this.ticketCategories = new (0, _chunk6ROB5KXBcjs.TicketCategoriesResource)(this.http, this.config.pageSize);
|
|
416
|
+
this.ticketCategoryFieldDefaults = new (0, _chunk6ROB5KXBcjs.TicketCategoryFieldDefaultsResource)(this.http, this.config.pageSize);
|
|
417
|
+
this.ticketChangeRequestApprovals = new (0, _chunk6ROB5KXBcjs.TicketChangeRequestApprovalsResource)(this.http, this.config.pageSize);
|
|
418
|
+
this.ticketCharges = new (0, _chunk6ROB5KXBcjs.TicketChargesResource)(this.http, this.config.pageSize);
|
|
419
|
+
this.ticketChecklistItems = new (0, _chunk6ROB5KXBcjs.TicketChecklistItemsResource)(this.http, this.config.pageSize);
|
|
420
|
+
this.ticketChecklistLibraries = new (0, _chunk6ROB5KXBcjs.TicketChecklistLibrariesResource)(this.http, this.config.pageSize);
|
|
421
|
+
this.ticketHistory = new (0, _chunk6ROB5KXBcjs.TicketHistoryResource)(this.http, this.config.pageSize);
|
|
422
|
+
this.ticketNoteAttachments = new (0, _chunk6ROB5KXBcjs.TicketNoteAttachmentsResource)(this.http, this.config.pageSize);
|
|
423
|
+
this.ticketNotes = new (0, _chunk6ROB5KXBcjs.TicketNotesResource)(this.http, this.config.pageSize);
|
|
424
|
+
this.ticketNoteWebhooks = new (0, _chunk6ROB5KXBcjs.TicketNoteWebhooksResource)(this.http, this.config.pageSize);
|
|
425
|
+
this.ticketSecondaryResources = new (0, _chunk6ROB5KXBcjs.TicketSecondaryResourcesResource)(this.http, this.config.pageSize);
|
|
426
|
+
this.tickets = new (0, _chunk6ROB5KXBcjs.TicketsResource)(this.http, this.config.pageSize);
|
|
427
|
+
this.ticketWebhooks = new (0, _chunk6ROB5KXBcjs.TicketWebhooksResource)(this.http, this.config.pageSize);
|
|
428
|
+
this.timeEntries = new (0, _chunk45PLS73Kcjs.TimeEntriesResource)(this.http, this.config.pageSize);
|
|
429
|
+
this.timeEntryAttachments = new (0, _chunk6ROB5KXBcjs.TimeEntryAttachmentsResource)(this.http, this.config.pageSize);
|
|
430
|
+
this.timeOffRequests = new (0, _chunk6ROB5KXBcjs.TimeOffRequestsResource)(this.http, this.config.pageSize);
|
|
431
|
+
this.versionInformation = new (0, _chunk6ROB5KXBcjs.VersionInformationResource)(this.http);
|
|
432
|
+
this.version = new (0, _chunk6ROB5KXBcjs.VersionResource)(this.http);
|
|
433
|
+
this.zoneInformation = new (0, _chunk6ROB5KXBcjs.ZoneInformationResource)(this.http);
|
|
434
434
|
}
|
|
435
435
|
/**
|
|
436
436
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -464,12 +464,12 @@ var AutotaskClient = class {
|
|
|
464
464
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
465
465
|
*/
|
|
466
466
|
withSignal(signal, fn) {
|
|
467
|
-
return
|
|
467
|
+
return _chunk45PLS73Kcjs.runWithSignal.call(void 0, signal, fn);
|
|
468
468
|
}
|
|
469
469
|
async batch(fn, items, opts = {}) {
|
|
470
470
|
const concurrency = _nullishCoalesce(opts.concurrency, () => ( this.config.maxConcurrent));
|
|
471
471
|
if (!Number.isInteger(concurrency) || concurrency <= 0) {
|
|
472
|
-
throw new (0,
|
|
472
|
+
throw new (0, _chunk45PLS73Kcjs.AutotaskConfigError)("batch concurrency must be a positive integer");
|
|
473
473
|
}
|
|
474
474
|
const { signal, settle } = opts;
|
|
475
475
|
const results = new Array(items.length);
|
|
@@ -484,7 +484,7 @@ var AutotaskClient = class {
|
|
|
484
484
|
const i = next++;
|
|
485
485
|
try {
|
|
486
486
|
const item = items[i];
|
|
487
|
-
const value = await (signal === void 0 ? fn(item) :
|
|
487
|
+
const value = await (signal === void 0 ? fn(item) : _chunk45PLS73Kcjs.runWithSignal.call(void 0, signal, () => fn(item)));
|
|
488
488
|
results[i] = settle ? { status: "fulfilled", value } : value;
|
|
489
489
|
} catch (error) {
|
|
490
490
|
if (settle) results[i] = { status: "rejected", reason: error };
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
unwrapItems,
|
|
31
31
|
unwrapOperation,
|
|
32
32
|
vendorId
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FV5PJLIZ.js";
|
|
34
34
|
import {
|
|
35
35
|
CAPABILITIES
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2KQS3RHQ.js";
|
|
37
37
|
|
|
38
38
|
// src/resources/appointments.ts
|
|
39
39
|
var AppointmentsResource = class extends BaseResource {
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
VersionInformationResource,
|
|
126
126
|
VersionResource,
|
|
127
127
|
ZoneInformationResource
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-LD5UPSDB.js";
|
|
129
129
|
import {
|
|
130
130
|
AutotaskConfigError,
|
|
131
131
|
BillingCodesResource,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
TimeEntriesResource,
|
|
142
142
|
resolveConfig,
|
|
143
143
|
runWithSignal
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-FV5PJLIZ.js";
|
|
145
145
|
|
|
146
146
|
// src/client.ts
|
|
147
147
|
var AutotaskClient = class {
|