node-autotask 0.72.0 → 0.73.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/MCP_TOOL_CATALOG.json +49 -8
  3. package/README.md +1 -1
  4. package/capabilities.json +139 -7
  5. package/dist/capabilities-data.js +138 -6
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-HJVTA7SI.cjs → chunk-CKIKNZEB.cjs} +30 -30
  9. package/dist/{chunk-KVC5DZAP.cjs → chunk-CWSXFVF2.cjs} +88 -16
  10. package/dist/{chunk-A4IRIYZ5.js → chunk-L4J5EDCU.js} +2 -2
  11. package/dist/{chunk-K33DPJFK.js → chunk-PNMEXWYR.js} +3 -3
  12. package/dist/{chunk-F2TYZKJS.js → chunk-RFH4VBMX.js} +126 -2
  13. package/dist/{chunk-V5UGW6KZ.cjs → chunk-STUQU7AX.cjs} +301 -177
  14. package/dist/{chunk-EGG2RGL5.js → chunk-VHN5B7OQ.js} +82 -12
  15. package/dist/{chunk-SPME362B.cjs → chunk-VHNWLON6.cjs} +3 -3
  16. package/dist/{index-BXnhBnhN.d.cts → index-CGp16Cdm.d.cts} +9 -20
  17. package/dist/{index-BXnhBnhN.d.ts → index-CGp16Cdm.d.ts} +9 -20
  18. package/dist/{index-DxfspQR1.d.ts → index-Dv8d9p_J.d.ts} +164 -4
  19. package/dist/{index-CqsY5YHt.d.cts → index-MUM-uBX1.d.cts} +164 -4
  20. package/dist/index.cjs +84 -84
  21. package/dist/index.d.cts +3 -5
  22. package/dist/index.d.ts +3 -5
  23. package/dist/index.js +5 -5
  24. package/dist/operations/index.cjs +51 -51
  25. package/dist/operations/index.d.cts +5 -6
  26. package/dist/operations/index.d.ts +5 -6
  27. package/dist/operations/index.js +2 -2
  28. package/dist/pool.cjs +12 -12
  29. package/dist/pool.d.cts +1 -1
  30. package/dist/pool.d.ts +1 -1
  31. package/dist/pool.js +4 -4
  32. package/dist/resources/index.cjs +27 -27
  33. package/dist/resources/index.d.cts +2 -2
  34. package/dist/resources/index.d.ts +2 -2
  35. package/dist/resources/index.js +3 -3
  36. package/dist/types/index.d.cts +1 -1
  37. package/dist/types/index.d.ts +1 -1
  38. package/docs/API.md +2 -2
  39. package/docs/N8N-ADAPTER.md +1 -1
  40. package/package.json +1 -1
  41. package/dist/base-CHMATPq0.d.cts +0 -145
  42. package/dist/base-CHMATPq0.d.ts +0 -145
@@ -1,4 +1,4 @@
1
- import { loadCapabilityRecords } from './chunk-K33DPJFK.js';
1
+ import { loadCapabilityRecords } from './chunk-PNMEXWYR.js';
2
2
  import { NoopLogger, REDACTED, deepMarkUntrusted, wrapUntrusted } from './chunk-7NKB4UXV.js';
3
3
  import { randomUUID, createHash } from 'crypto';
4
4
  import { AsyncLocalStorage } from 'async_hooks';
@@ -7130,6 +7130,25 @@ var RELATIONSHIP_MAP = {
7130
7130
  "update": false,
7131
7131
  "delete": false
7132
7132
  }
7133
+ },
7134
+ {
7135
+ "resource": "time_off_requests",
7136
+ "apiEntity": "TimeOffRequest",
7137
+ "parentField": "resourceID",
7138
+ "parentSegment": "TimeOffRequests",
7139
+ "tier": "extended",
7140
+ "workflowResource": false,
7141
+ "specialOps": [
7142
+ "approve",
7143
+ "reject"
7144
+ ],
7145
+ "searchCovers": null,
7146
+ "scopedOps": {
7147
+ "create": true,
7148
+ "query": true,
7149
+ "update": true,
7150
+ "delete": false
7151
+ }
7133
7152
  }
7134
7153
  ],
7135
7154
  "naturalKeys": {
@@ -9195,11 +9214,15 @@ var RELATIONSHIP_MAP = {
9195
9214
  "apiEntity": "TimeOffRequest",
9196
9215
  "kind": "entity",
9197
9216
  "path": "TimeOffRequests",
9198
- "parentScoped": false,
9217
+ "parentScoped": true,
9199
9218
  "tier": "extended",
9200
9219
  "workflowResource": false,
9201
9220
  "group": "B",
9202
- "parent": null,
9221
+ "parent": {
9222
+ "resource": "resources",
9223
+ "segment": "TimeOffRequests",
9224
+ "field": "resourceID"
9225
+ },
9203
9226
  "children": [],
9204
9227
  "naturalKeys": {
9205
9228
  "hasSearch": false,
@@ -9207,8 +9230,31 @@ var RELATIONSHIP_MAP = {
9207
9230
  "findBy": []
9208
9231
  },
9209
9232
  "blindSurfaces": null,
9210
- "zoneFacts": null,
9211
- "deleteBoundary": null,
9233
+ "zoneFacts": {
9234
+ "createGuidance": {
9235
+ "createOp": "time_off_requests.create",
9236
+ "parentScoped": true,
9237
+ "liveProvenPrefix": [],
9238
+ "unproven": true,
9239
+ "blocker": {
9240
+ "kind": "unknown",
9241
+ "message": "Submission is documented but has not been verified; the status must resolve uniquely to Submitted in exposed field metadata. Permissions and request fields remain subject to vendor validation.",
9242
+ "remedy": "Read time_off_requests.getFieldInfo to select Submitted, then preview with a known resource and valid leave request fields."
9243
+ },
9244
+ "vendorEvidence": [
9245
+ "Specification: POST /V1.0/Resources/{parentId}/TimeOffRequests returns OperationResultModel.",
9246
+ "Official TimeOffRequests entity documentation: create accepts Submitted only; https://autotask.net/help/developerhelp/Content/APIs/REST/Entities/TimeOffRequestsEntity.htm. No live validation performed."
9247
+ ],
9248
+ "deleteBoundary": {
9249
+ "available": false,
9250
+ "note": "The vendor defines no DELETE for time-off requests; cancel through time_off_requests.update using the Canceled status from exposed field metadata. Cancellation is leave management, not timesheet unposting."
9251
+ }
9252
+ }
9253
+ },
9254
+ "deleteBoundary": {
9255
+ "note": "The vendor defines no DELETE for time-off requests; cancel through time_off_requests.update using the Canceled status from exposed field metadata. Cancellation is leave management, not timesheet unposting.",
9256
+ "proof": "spec-derived"
9257
+ },
9212
9258
  "markerField": null
9213
9259
  },
9214
9260
  "inventory_products": {
@@ -9837,7 +9883,8 @@ var DELETE_BOUNDARY_NOTES = {
9837
9883
  "tickets": "the vendor defines no DELETE for tickets (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a create cannot be undone through the API; cleanup is UI-only.",
9838
9884
  "user_defined_field_definitions": "the vendor defines no DELETE for user_defined_field_definitions (spec-derived: the vendored api-docs.json defines no DELETE on the entity's paths) \u2014 a UDF definition cannot be deleted through the API; deactivation is via isActive (vendor soft-removal); hard cleanup is UI-only.",
9839
9885
  "user_defined_field_list_items": "the vendor defines no DELETE for user_defined_field_list_items (spec-derived: the vendored api-docs.json defines no DELETE on the standalone or parent-scoped ListItems paths) \u2014 a picklist value cannot be deleted through the API; deactivation is via isActive (vendor soft-removal); hard cleanup is UI-only.",
9840
- "task_notes": "The vendor defines no DELETE for task_notes (spec-derived); a created task note cannot be removed through the public API."
9886
+ "task_notes": "The vendor defines no DELETE for task_notes (spec-derived); a created task note cannot be removed through the public API.",
9887
+ "time_off_requests": "The vendor defines no DELETE for time-off requests; cancel through time_off_requests.update using the Canceled status from exposed field metadata. Cancellation is leave management, not timesheet unposting."
9841
9888
  };
9842
9889
  var RESPONSE_DRIFT_MARKERS = {
9843
9890
  "ticket_checklist_libraries": {
@@ -13788,6 +13835,26 @@ var CREATE_GUIDANCE = {
13788
13835
  "note": null
13789
13836
  }
13790
13837
  },
13838
+ {
13839
+ "resource": "time_off_requests",
13840
+ "createOp": "time_off_requests.create",
13841
+ "parentScoped": true,
13842
+ "liveProvenPrefix": [],
13843
+ "unproven": true,
13844
+ "blocker": {
13845
+ "kind": "unknown",
13846
+ "message": "Submission is documented but has not been verified; the status must resolve uniquely to Submitted in exposed field metadata. Permissions and request fields remain subject to vendor validation.",
13847
+ "remedy": "Read time_off_requests.getFieldInfo to select Submitted, then preview with a known resource and valid leave request fields."
13848
+ },
13849
+ "vendorEvidence": [
13850
+ "Specification: POST /V1.0/Resources/{parentId}/TimeOffRequests returns OperationResultModel.",
13851
+ "Official TimeOffRequests entity documentation: create accepts Submitted only; https://autotask.net/help/developerhelp/Content/APIs/REST/Entities/TimeOffRequestsEntity.htm. No live validation performed."
13852
+ ],
13853
+ "deleteBoundary": {
13854
+ "available": false,
13855
+ "note": "The vendor defines no DELETE for time-off requests; cancel through time_off_requests.update using the Canceled status from exposed field metadata. Cancellation is leave management, not timesheet unposting."
13856
+ }
13857
+ },
13791
13858
  {
13792
13859
  "resource": "user_defined_field_definitions",
13793
13860
  "createOp": "user_defined_field_definitions.create",
@@ -13837,7 +13904,7 @@ var CREATE_GUIDANCE = {
13837
13904
  }
13838
13905
  ],
13839
13906
  "counts": {
13840
- "total": 102,
13907
+ "total": 103,
13841
13908
  "byKind": {
13842
13909
  "ok": 41,
13843
13910
  "blind-reference": 16,
@@ -13847,7 +13914,7 @@ var CREATE_GUIDANCE = {
13847
13914
  "resource-role-pair": 2,
13848
13915
  "delete-absent": 0,
13849
13916
  "non-mutable": 0,
13850
- "unknown": 26
13917
+ "unknown": 27
13851
13918
  }
13852
13919
  }
13853
13920
  };
@@ -19629,6 +19696,9 @@ var MutationBase = class extends MetaBase {
19629
19696
  checks.push({ name: "duplicate-detection", ok: existingId === void 0 });
19630
19697
  }
19631
19698
  const warnings = existingId !== void 0 ? [`duplicate match on ${dedupFields.join(", ")} (id ${existingId}); the create would be skipped`] : [];
19699
+ const wouldCreate = existingId === void 0 && checks.every((check) => check.ok);
19700
+ const deleteBoundaryNote = wouldCreate ? DELETE_BOUNDARY_NOTES[this.config.key] : void 0;
19701
+ if (deleteBoundaryNote !== void 0) warnings.push(deleteBoundaryNote);
19632
19702
  return buildDryRunResult({
19633
19703
  operation: `${this.config.key}.createIfNotExists`,
19634
19704
  method: "POST",
@@ -19636,7 +19706,7 @@ var MutationBase = class extends MetaBase {
19636
19706
  ids: existingId !== void 0 ? [existingId] : [],
19637
19707
  checks,
19638
19708
  warnings,
19639
- impact: { affected: 1, scope: "single-record", reversible: true },
19709
+ impact: { affected: 1, scope: "single-record", reversible: !wouldCreate || this.config.deletable !== false && DELETE_BOUNDARY_NOTES[this.config.key] === void 0 },
19640
19710
  data
19641
19711
  }, { redactPersonalData: this.http.redactPersonalData });
19642
19712
  }
@@ -19748,7 +19818,7 @@ var MutationBase = class extends MetaBase {
19748
19818
  path,
19749
19819
  ids: [],
19750
19820
  checks,
19751
- impact: { affected: 1, scope: "single-record", reversible: true },
19821
+ impact: { affected: 1, scope: "single-record", reversible: !checks.every((check) => check.ok) || this.config.deletable !== false && deleteBoundaryNote === void 0 },
19752
19822
  warnings,
19753
19823
  data
19754
19824
  }, { redactPersonalData: this.http.redactPersonalData });
@@ -23868,7 +23938,7 @@ function validateFetchManyItems(items, cap, opName = "fetchByIds", capRef = `FET
23868
23938
  continue;
23869
23939
  }
23870
23940
  const rel = RELATIONSHIP_MAP[resourceKey];
23871
- if (rel !== void 0 && rel.parentScoped) {
23941
+ if (rel !== void 0 && rel.parentScoped && resourceKey !== "time_off_requests") {
23872
23942
  problems.push(
23873
23943
  `${at}.resource: "${resourceKey}" is a parent-scoped child \u2014 its get needs (parentId, id); ${opName} takes single numeric ids of TOP-LEVEL records (scoped reads: client.${camelKey(resourceKey)}.get(parentId, id))`
23874
23944
  );
@@ -28751,4 +28821,4 @@ var ContractsResource = class extends GenericResource {
28751
28821
  }
28752
28822
  };
28753
28823
 
28754
- export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, AutotaskAbortError, AutotaskConfigError, AutotaskError, AutotaskNetworkError, AutotaskTimeoutError, CREATE_BLOCKER_KINDS, CREDENTIAL_ENV_LOAD_ACTION, CREDENTIAL_SHAPE_POINTER, CompaniesResource, ConfirmationRequiredError, ConflictError, ContractsResource, DEFAULT_ZONE, DeleteBoundaryError, EXPAND_RESOURCE_NAMES_MAX_IDS, EmptyResponseError, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FIELD_CACHE_KINDS, FIELD_CATALOG_HONESTY_NOTE, GenericResource, HostPolicyDeniedError, HttpClient, INVOKE_OPTION_KEYS, InvoicesResource, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PARAMS_BAG_KEYS, PICKLIST_VALUE_NOT_SERVED_NOTE, PaginationLimitError, QueryTooLongError, RELATIONSHIP_MAP, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, SIMPLE_RESOURCES, ScopeRequiredError, StaleObjectError, TICKET_LABEL_FIELDS, TimeEntriesResource, TtlCache, UI_LINK_ENTITIES, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, WORKFLOW_RESOURCES, ZONES, addLabelSibling, addNameSibling, aggregate, arAging, buildDryRunResult, buildQueryRequest, buildReadCache, buildUiLink, cachedRecordGet, clientOf, compositePart, compositePartLimit, createGuidance, createNamePlan, credentialShapeProblem, credentialValueSummary, cursorToPath, dateBucketLabel, effectiveRequiredFields, errorFromStatus, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, formatVendorDetail, invoke, invokeDelete, invokeRead, invokeReadPages, invokeWrite, isAutotaskError, isClosedStatus, isDeterministicVendor500, joinedCompositePart, mergeDetails, mergePartialBody, needsConfirmation, nextActionFor, nonChargeableWork, notPersistedFields, openStatusFilter, openTicketsOfPart, parseIdentifier, parseVendorErrors, portfolioMargin, queryRows, readTasks, recurringRevenue, refuse2 as refuse, relationshipMap, resolveAny, resolveCompositeNames, resolveConfig, resolveCredentials, resolveLineOfBusinessChain, resolveStaff, resolveTicketStatusSemantics, revenueRollup, runBounded, runMove, runWithSignal, sanitiseResult, searchAcrossResources, suspendCompanyIndex, uiLink, uiLinkFor, unknownKeysRefusal, unwrapItem, unwrapItems, unwrapOperation, validateDispatchArgs, validateInvokeOptions, validateParamsBag, vendorId, wipHours, zoneUrl };
28824
+ export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, AutotaskAbortError, AutotaskConfigError, AutotaskError, AutotaskNetworkError, AutotaskTimeoutError, CREATE_BLOCKER_KINDS, CREDENTIAL_ENV_LOAD_ACTION, CREDENTIAL_SHAPE_POINTER, CompaniesResource, ConfirmationRequiredError, ConflictError, ContractsResource, DEFAULT_ZONE, DeleteBoundaryError, EXPAND_RESOURCE_NAMES_MAX_IDS, EmptyResponseError, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FIELD_CACHE_KINDS, FIELD_CATALOG_HONESTY_NOTE, GenericResource, HostPolicyDeniedError, HttpClient, INVOKE_OPTION_KEYS, InvoicesResource, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, MIN_PREFIX_SUMMARY_LENGTH, MaintenanceError, MarkerUnsafeIdError, MoveRefusedError, NotFoundError, OperationNotSupportedError, PARAMS_BAG_KEYS, PICKLIST_VALUE_NOT_SERVED_NOTE, PaginationLimitError, QueryTooLongError, RELATIONSHIP_MAP, RateLimitError, RecoveryTruncatedError, ResolutionError, ResponseRejectedError, SIMPLE_RESOURCES, ScopeRequiredError, StaleObjectError, TICKET_LABEL_FIELDS, TimeEntriesResource, TtlCache, UI_LINK_ENTITIES, UNSCOPED_WALK_THRESHOLD, UnexpectedContentTypeError, WORKFLOW_RESOURCES, ZONES, addLabelSibling, addNameSibling, aggregate, arAging, buildDryRunResult, buildQueryRequest, buildReadCache, buildUiLink, cachedRecordGet, clientOf, compositePart, compositePartLimit, createGuidance, createNamePlan, credentialShapeProblem, credentialValueSummary, cursorToPath, dateBucketLabel, effectiveRequiredFields, errorFromStatus, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, formatVendorDetail, invoke, invokeDelete, invokeRead, invokeReadPages, invokeWrite, isAutotaskError, isClosedStatus, isDateYMD, isDeterministicVendor500, isRecord2 as isRecord, joinedCompositePart, mergeDetails, mergePartialBody, needsConfirmation, nextActionFor, nonChargeableWork, notPersistedFields, openStatusFilter, openTicketsOfPart, parseIdentifier, parseVendorErrors, portfolioMargin, queryRows, readTasks, recurringRevenue, refuse2 as refuse, relationshipMap, resolveAny, resolveCompositeNames, resolveConfig, resolveCredentials, resolveLineOfBusinessChain, resolveStaff, resolveTicketStatusSemantics, revenueRollup, runBounded, runMove, runWithSignal, sanitiseResult, searchAcrossResources, suspendCompanyIndex, uiLink, uiLinkFor, unknownKeysRefusal, unwrapItem, unwrapItems, unwrapOperation, validateDispatchArgs, validateInvokeOptions, validateParamsBag, vendorId, wipHours, zoneUrl };
@@ -2,9 +2,9 @@
2
2
 
3
3
  // src/capabilities.ts
4
4
  var CAPABILITY_PLAN_HASHES = {
5
- "B": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
6
- "A": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25",
7
- "operations": "79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25"
5
+ "B": "3dfaa99bd81e843635bafd242e5229270f259de68c6a32d483a6640402f3b187",
6
+ "A": "3dfaa99bd81e843635bafd242e5229270f259de68c6a32d483a6640402f3b187",
7
+ "operations": "3dfaa99bd81e843635bafd242e5229270f259de68c6a32d483a6640402f3b187"
8
8
  };
9
9
  var cached = null;
10
10
  function loadCapabilities() {
@@ -5382,29 +5382,18 @@ interface TimeOffRequest {
5382
5382
  timeOffRequestType?: number;
5383
5383
  soapParentPropertyId?: unknown;
5384
5384
  }
5385
- /** Create input for TimeOffRequest (writable fields; accepts id or itemId). */
5385
+ /** Submission input for TimeOffRequest; record ids are assigned by the API. */
5386
5386
  interface TimeOffRequestCreate {
5387
- id?: number;
5388
- approvedDateTime?: string;
5389
- approveRejectResourceID?: number;
5390
- createdByResourceID?: number;
5391
- createDateTime?: string;
5392
- endTime?: string;
5393
- hours?: number;
5394
- impersonatorApproveRejectResourceID?: number;
5395
- lastModifiedByResourceID?: number;
5396
- lastModifiedDateTime?: string;
5397
- lastApprovedLevel?: number;
5398
- reason?: string;
5399
- rejectReason?: string;
5400
- requestDate?: string;
5387
+ hours: number;
5388
+ requestDate: string;
5401
5389
  resourceID?: number;
5402
- startTime?: string;
5403
- status?: number;
5404
- timeOffRequestType?: number;
5390
+ status: number;
5391
+ timeOffRequestType: number;
5392
+ }
5393
+ /** Cancellation only: status must resolve to Canceled in field metadata. */
5394
+ interface TimeOffRequestUpdate {
5395
+ status: number;
5405
5396
  }
5406
- /** Update input (same writable surface; id identifies the record in the path). */
5407
- type TimeOffRequestUpdate = TimeOffRequestCreate;
5408
5397
  /** Compact helper shape for TimeOffRequest (resolve/search/getContext): structural alias of the
5409
5398
  * full record — the registry outputSchema names the fields the MCP projection keeps.
5410
5399
  */
@@ -5382,29 +5382,18 @@ interface TimeOffRequest {
5382
5382
  timeOffRequestType?: number;
5383
5383
  soapParentPropertyId?: unknown;
5384
5384
  }
5385
- /** Create input for TimeOffRequest (writable fields; accepts id or itemId). */
5385
+ /** Submission input for TimeOffRequest; record ids are assigned by the API. */
5386
5386
  interface TimeOffRequestCreate {
5387
- id?: number;
5388
- approvedDateTime?: string;
5389
- approveRejectResourceID?: number;
5390
- createdByResourceID?: number;
5391
- createDateTime?: string;
5392
- endTime?: string;
5393
- hours?: number;
5394
- impersonatorApproveRejectResourceID?: number;
5395
- lastModifiedByResourceID?: number;
5396
- lastModifiedDateTime?: string;
5397
- lastApprovedLevel?: number;
5398
- reason?: string;
5399
- rejectReason?: string;
5400
- requestDate?: string;
5387
+ hours: number;
5388
+ requestDate: string;
5401
5389
  resourceID?: number;
5402
- startTime?: string;
5403
- status?: number;
5404
- timeOffRequestType?: number;
5390
+ status: number;
5391
+ timeOffRequestType: number;
5392
+ }
5393
+ /** Cancellation only: status must resolve to Canceled in field metadata. */
5394
+ interface TimeOffRequestUpdate {
5395
+ status: number;
5405
5396
  }
5406
- /** Update input (same writable surface; id identifies the record in the path). */
5407
- type TimeOffRequestUpdate = TimeOffRequestCreate;
5408
5397
  /** Compact helper shape for TimeOffRequest (resolve/search/getContext): structural alias of the
5409
5398
  * full record — the registry outputSchema names the fields the MCP projection keeps.
5410
5399
  */
@@ -1,4 +1,4 @@
1
- import { A as AuditEvent, R as ResolutionCaps, b as AuthTokenResultModel, C as Company, I as Identifier, O as OrganizationalLevelAssociation, c as OrganizationalLevel2, d as OrganizationalLevel1, e as CompanyLocation, f as Contact, g as CompanyNote, T as Ticket, h as Project, i as CompositeNamesSection, B as BillingItems, j as TimeEntry, k as CompanyCreate, l as CompanyUpdate, m as CompanyContext, n as ConfigurationItem, o as ConfigurationItemType, p as ConfigurationItemCategory, q as ConfigurationItemNote, r as ConfigurationItemRelatedItem, s as ConfigurationItemBillingProductAssociations, t as ConfigurationItemCreate, u as ConfigurationItemUpdate, v as ConfigurationItemContext, w as ConfigurationItemSummary, D as DryRunResult, x as ContactCreate, y as ContactUpdate, z as ContactContext, F as ContactSummary, G as Contract, H as ContractService, J as ContractBillingRule, K as ContractCharge, L as ContractServiceUnit, E as EmptyReasonInfo, M as ContractRoleCosts, N as ContractRate, S as ContractBlock, U as Invoice, V as Resource, W as ExpenseItem, X as Subscription, Y as ContractCreate, Z as ContractUpdate, _ as ContractSummary, $ as GlobalEntityInformationResultModel, a0 as InventoryProduct, a1 as InventoryProductCreate, a2 as InventoryProductUpdate, a3 as InventoryStockedItemAdd, a4 as OperationResult, a5 as InventoryStockedItemRemove, a6 as InventoryStockedItemTransfer, a7 as InvoiceCreate, a8 as InvoiceUpdate, a9 as ModuleAccessResultModel, aa as Quote, ab as QuoteItem, ac as QuoteCreate, ad as QuoteUpdate, ae as QuoteSummary, af as TicketCreate, ag as TicketUpdate, ah as TicketContext, ai as TicketSummary, aj as ServiceCallTaskResource, ak as ServiceCallTask, al as ResourceTimeOffBalance, am as TimeOffRequest, an as ResourceCreate, ao as ResourceUpdate, ap as ResourceSummary, aq as ResourceTimeOffAdditional, ar as ResourceTimeOffAdditionalCreate, as as ResourceTimeOffAdditionalUpdate, at as ResourceTimeOffBalanceCreate, au as ResourceTimeOffBalanceUpdate, av as ServiceCall, aw as ServiceCallTicket, ax as ServiceCallCreate, ay as ServiceCallUpdate, az as ThresholdStatusResultModel, aA as TicketCharge, aB as TicketChargeCreate, aC as TicketChargeUpdate, aD as TicketChargeSummary, aE as TimeEntryUpdate, aF as TimeEntryCreate, aG as TimeOffRequestCreate, aH as TimeOffRequestUpdate, aI as AutotaskVersionResultModel, aJ as ApiVersionResultModel, aK as ZoneInformationResultModel, aL as Appointment, aM as AppointmentCreate, aN as AppointmentUpdate, aO as AttachmentInfo, aP as AttachmentInfoCreate, aQ as AttachmentInfoUpdate, aR as BillingCode, aS as BillingCodeCreate, aT as BillingCodeUpdate, aU as BillingItemApprovalLevel, aV as BillingItemApprovalLevelCreate, aW as BillingItemApprovalLevelUpdate, aX as BillingItemsCreate, aY as BillingItemsUpdate, aZ as ChangeRequestLink, a_ as ChangeRequestLinkCreate, a$ as ChangeRequestLinkUpdate, b0 as ChecklistLibrary, b1 as ChecklistLibraryCreate, b2 as ChecklistLibraryUpdate, b3 as ChecklistLibraryChecklistItem, b4 as ChecklistLibraryChecklistItemCreate, b5 as ChecklistLibraryChecklistItemUpdate, b6 as ClassificationIcon, b7 as ClassificationIconCreate, b8 as ClassificationIconUpdate, b9 as CompanyAlert, ba as CompanyAlertCreate, bb as CompanyAlertUpdate, bc as CompanyAttachment, bd as CompanyAttachmentCreate, be as CompanyAttachmentUpdate, bf as CompanyLocationCreate, bg as CompanyLocationUpdate, bh as CompanyNoteAttachment, bi as CompanyNoteAttachmentCreate, bj as CompanyNoteAttachmentUpdate, bk as CompanyNoteCreate, bl as CompanyNoteUpdate, bm as CompanySiteConfigurations, bn as CompanySiteConfigurationsCreate, bo as CompanySiteConfigurationsUpdate, bp as CompanyWebhook, bq as CompanyWebhookCreate, br as CompanyWebhookUpdate, bs as ConfigurationItemBillingProductAssociationsCreate, bt as ConfigurationItemBillingProductAssociationsUpdate, bu as ConfigurationItemCategoryCreate, bv as ConfigurationItemCategoryUpdate, bw as ConfigurationItemCategoryUdfAssociation, bx as ConfigurationItemCategoryUdfAssociationCreate, by as ConfigurationItemCategoryUdfAssociationUpdate, bz as ConfigurationItemDnsRecord, bA as ConfigurationItemDnsRecordCreate, bB as ConfigurationItemDnsRecordUpdate, bC as ConfigurationItemNoteCreate, bD as ConfigurationItemNoteUpdate, bE as ConfigurationItemRelatedItemCreate, bF as ConfigurationItemRelatedItemUpdate, bG as ConfigurationItemSslSubjectAlternativeName, bH as ConfigurationItemSslSubjectAlternativeNameCreate, bI as ConfigurationItemSslSubjectAlternativeNameUpdate, bJ as ConfigurationItemTypeCreate, bK as ConfigurationItemTypeUpdate, bL as ConfigurationItemWebhook, bM as ConfigurationItemWebhookCreate, bN as ConfigurationItemWebhookUpdate, bO as ContactGroupContacts, bP as ContactGroupContactsCreate, bQ as ContactGroupContactsUpdate, bR as ContactGroups, bS as ContactGroupsCreate, bT as ContactGroupsUpdate, bU as ContactWebhook, bV as ContactWebhookCreate, bW as ContactWebhookUpdate, bX as ContractBillingRuleCreate, bY as ContractBillingRuleUpdate, bZ as ContractBlockHourFactor, b_ as ContractBlockHourFactorCreate, b$ as ContractBlockHourFactorUpdate, c0 as ContractBlockCreate, c1 as ContractBlockUpdate, c2 as ContractChargeCreate, c3 as ContractChargeUpdate, c4 as ContractExclusionBillingCode, c5 as ContractExclusionBillingCodeCreate, c6 as ContractExclusionBillingCodeUpdate, c7 as ContractExclusionRoles, c8 as ContractExclusionRolesCreate, c9 as ContractExclusionRolesUpdate, ca as ContractExclusionSetExcludedRoles, cb as ContractExclusionSetExcludedRolesCreate, cc as ContractExclusionSetExcludedRolesUpdate, cd as ContractExclusionSetExcludedWorkTypes, ce as ContractExclusionSetExcludedWorkTypesCreate, cf as ContractExclusionSetExcludedWorkTypesUpdate, cg as ContractExclusionSets, ch as ContractExclusionSetsCreate, ci as ContractExclusionSetsUpdate, cj as ContractMilestone, ck as ContractMilestoneCreate, cl as ContractMilestoneUpdate, cm as ContractNote, cn as ContractNoteCreate, co as ContractNoteUpdate, cp as ContractRateCreate, cq as ContractRateUpdate, cr as ContractRetainers, cs as ContractRetainersCreate, ct as ContractRetainersUpdate, cu as ContractRoleCostsCreate, cv as ContractRoleCostsUpdate, cw as ContractServiceAdjustment, cx as ContractServiceAdjustmentCreate, cy as ContractServiceAdjustmentUpdate, cz as ContractServiceBundleAdjustment, cA as ContractServiceBundleAdjustmentCreate, cB as ContractServiceBundleAdjustmentUpdate, cC as ContractServiceBundle, cD as ContractServiceBundleCreate, cE as ContractServiceBundleUpdate, cF as ContractServiceBundleUnit, cG as ContractServiceBundleUnitCreate, cH as ContractServiceBundleUnitUpdate, cI as ContractServiceCreate, cJ as ContractServiceUpdate, cK as ContractServiceUnitCreate, cL as ContractServiceUnitUpdate, cM as ContractTicketPurchases, cN as ContractTicketPurchasesCreate, cO as ContractTicketPurchasesUpdate, cP as Country, cQ as CountryCreate, cR as CountryUpdate, cS as Currency, cT as CurrencyCreate, cU as CurrencyUpdate, cV as Department, cW as DepartmentCreate, cX as DepartmentUpdate, cY as DomainRegistrar, cZ as DomainRegistrarCreate, c_ as DomainRegistrarUpdate, c$ as ExpenseItemAttachment, d0 as ExpenseItemAttachmentCreate, d1 as ExpenseItemAttachmentUpdate, d2 as ExpenseItemCreate, d3 as ExpenseItemUpdate, d4 as ExpenseReport, d5 as ExpenseReportCreate, d6 as ExpenseReportUpdate, d7 as Holiday, d8 as HolidayCreate, d9 as HolidayUpdate, da as HolidaySet, db as HolidaySetCreate, dc as HolidaySetUpdate, dd as InvoiceTemplate, de as InvoiceTemplateCreate, df as InvoiceTemplateUpdate, dg as NotificationHistory, dh as NotificationHistoryCreate, di as NotificationHistoryUpdate, dj as Opportunity, dk as OpportunityCreate, dl as OpportunityUpdate, dm as OpportunityAttachment, dn as OpportunityAttachmentCreate, dp as OpportunityAttachmentUpdate, dq as OpportunityCategory, dr as OpportunityCategoryCreate, ds as OpportunityCategoryUpdate, dt as OrganizationalLevel1Create, du as OrganizationalLevel1Update, dv as OrganizationalLevel2Create, dw as OrganizationalLevel2Update, dx as OrganizationalLevelAssociationCreate, dy as OrganizationalLevelAssociationUpdate, dz as Phase, dA as PhaseCreate, dB as PhaseUpdate, dC as Product, dD as ProductCreate, dE as ProductUpdate, dF as ProductVendors, dG as ProductVendorsCreate, dH as ProductVendorsUpdate, dI as ProjectCharge, dJ as ProjectChargeCreate, dK as ProjectChargeUpdate, dL as ProjectNote, dM as ProjectNoteCreate, dN as ProjectNoteUpdate, dO as ProjectCreate, dP as ProjectUpdate, dQ as ProjectContext, dR as PurchaseApprovals, dS as PurchaseApprovalsCreate, dT as PurchaseApprovalsUpdate, dU as PurchaseOrderItemReceiving, dV as PurchaseOrderItemReceivingCreate, dW as PurchaseOrderItemReceivingUpdate, dX as PurchaseOrderItems, dY as PurchaseOrderItemsCreate, dZ as PurchaseOrderItemsUpdate, d_ as PurchaseOrders, d$ as PurchaseOrdersCreate, e0 as PurchaseOrdersUpdate, e1 as QuoteItemCreate, e2 as QuoteItemUpdate, e3 as QuoteLocation, e4 as QuoteLocationCreate, e5 as QuoteLocationUpdate, e6 as QuoteTemplate, e7 as QuoteTemplateCreate, e8 as QuoteTemplateUpdate, e9 as ResourceRoleQueue, ea as ResourceRoleQueueCreate, eb as ResourceRoleQueueUpdate, ec as ResourceRole, ed as ResourceRoleCreate, ee as ResourceRoleUpdate, ef as ResourceSkill, eg as ResourceSkillCreate, eh as ResourceSkillUpdate, ei as ResourceTimeOffApprover, ej as ResourceTimeOffApproverCreate, ek as ResourceTimeOffApproverUpdate, el as Role, em as RoleCreate, en as RoleUpdate, eo as SalesOrder, ep as SalesOrderCreate, eq as SalesOrderUpdate, er as ServiceCallTaskResourceCreate, es as ServiceCallTaskResourceUpdate, et as ServiceCallTaskCreate, eu as ServiceCallTaskUpdate, ev as ServiceCallTicketResource, ew as ServiceCallTicketResourceCreate, ex as ServiceCallTicketResourceUpdate, ey as ServiceCallTicketCreate, ez as ServiceCallTicketUpdate, eA as ServiceLevelAgreementResults, eB as ServiceLevelAgreementResultsCreate, eC as ServiceLevelAgreementResultsUpdate, eD as Service, eE as ServiceCreate, eF as ServiceUpdate, eG as Skill, eH as SkillCreate, eI as SkillUpdate, eJ as SubscriptionPeriod, eK as SubscriptionPeriodCreate, eL as SubscriptionPeriodUpdate, eM as SubscriptionCreate, eN as SubscriptionUpdate, eO as SurveyResults, eP as SurveyResultsCreate, eQ as SurveyResultsUpdate, eR as Survey, eS as SurveyCreate, eT as SurveyUpdate, eU as TagAlias, eV as TagAliasCreate, eW as TagAliasUpdate, eX as TagGroup, eY as TagGroupCreate, eZ as TagGroupUpdate, e_ as Tag, e$ as TagCreate, f0 as TagUpdate, f1 as TaskNote, f2 as TaskNoteCreate, f3 as TaskNoteUpdate, f4 as Task, f5 as TaskCreate, f6 as TaskUpdate, f7 as TaskSecondaryResource, f8 as TaskSecondaryResourceCreate, f9 as TaskSecondaryResourceUpdate, fa as TaxRegion, fb as TaxRegionCreate, fc as TaxRegionUpdate, fd as TicketAdditionalConfigurationItem, fe as TicketAdditionalConfigurationItemCreate, ff as TicketAdditionalConfigurationItemUpdate, fg as TicketAdditionalContact, fh as TicketAdditionalContactCreate, fi as TicketAdditionalContactUpdate, fj as TicketAttachment, fk as TicketAttachmentCreate, fl as TicketAttachmentUpdate, fm as TicketCategory, fn as TicketCategoryCreate, fo as TicketCategoryUpdate, fp as TicketCategoryFieldDefault, fq as TicketCategoryFieldDefaultCreate, fr as TicketCategoryFieldDefaultUpdate, fs as TicketChangeRequestApproval, ft as TicketChangeRequestApprovalCreate, fu as TicketChangeRequestApprovalUpdate, fv as TicketChecklistItem, fw as TicketChecklistItemCreate, fx as TicketChecklistItemUpdate, fy as TicketChecklistLibrary, fz as TicketChecklistLibraryCreate, fA as TicketChecklistLibraryUpdate, fB as TicketHistory, fC as TicketHistoryCreate, fD as TicketHistoryUpdate, fE as TicketNoteAttachment, fF as TicketNoteAttachmentCreate, fG as TicketNoteAttachmentUpdate, fH as TicketNote, fI as TicketNoteCreate, fJ as TicketNoteUpdate, fK as TicketNoteWebhook, fL as TicketNoteWebhookCreate, fM as TicketNoteWebhookUpdate, fN as TicketSecondaryResource, fO as TicketSecondaryResourceCreate, fP as TicketSecondaryResourceUpdate, fQ as TicketWebhook, fR as TicketWebhookCreate, fS as TicketWebhookUpdate, fT as TimeEntryAttachment, fU as TimeEntryAttachmentCreate, fV as TimeEntryAttachmentUpdate, fW as UserDefinedFieldDefinition, fX as UserDefinedFieldDefinitionCreate, fY as UserDefinedFieldDefinitionUpdate, fZ as UserDefinedFieldListItem, f_ as UserDefinedFieldListItemCreate, f$ as UserDefinedFieldListItemUpdate, Q as QueryParams, g0 as Resolution, g1 as Page, g2 as EntityInformationModel, g3 as FieldInformationModel, g4 as Field, g5 as FilterCondition, g6 as CompositeNameTable, g7 as CompositeContextOptions } from './index-BXnhBnhN.js';
1
+ import { A as AuditEvent, R as ResolutionCaps, b as AuthTokenResultModel, C as Company, I as Identifier, O as OrganizationalLevelAssociation, c as OrganizationalLevel2, d as OrganizationalLevel1, e as CompanyLocation, f as Contact, g as CompanyNote, T as Ticket, h as Project, i as CompositeNamesSection, B as BillingItems, j as TimeEntry, k as CompanyCreate, l as CompanyUpdate, m as CompanyContext, n as ConfigurationItem, o as ConfigurationItemType, p as ConfigurationItemCategory, q as ConfigurationItemNote, r as ConfigurationItemRelatedItem, s as ConfigurationItemBillingProductAssociations, t as ConfigurationItemCreate, u as ConfigurationItemUpdate, v as ConfigurationItemContext, w as ConfigurationItemSummary, D as DryRunResult, x as ContactCreate, y as ContactUpdate, z as ContactContext, F as ContactSummary, G as Contract, H as ContractService, J as ContractBillingRule, K as ContractCharge, L as ContractServiceUnit, E as EmptyReasonInfo, M as ContractRoleCosts, N as ContractRate, S as ContractBlock, U as Invoice, V as Resource, W as ExpenseItem, X as Subscription, Y as ContractCreate, Z as ContractUpdate, _ as ContractSummary, $ as GlobalEntityInformationResultModel, a0 as InventoryProduct, a1 as InventoryProductCreate, a2 as InventoryProductUpdate, a3 as InventoryStockedItemAdd, a4 as OperationResult, a5 as InventoryStockedItemRemove, a6 as InventoryStockedItemTransfer, a7 as InvoiceCreate, a8 as InvoiceUpdate, a9 as ModuleAccessResultModel, aa as Quote, ab as QuoteItem, ac as QuoteCreate, ad as QuoteUpdate, ae as QuoteSummary, af as TicketCreate, ag as TicketUpdate, ah as TicketContext, ai as TicketSummary, aj as ServiceCallTaskResource, ak as ServiceCallTask, al as ResourceTimeOffBalance, am as TimeOffRequest, an as ResourceCreate, ao as ResourceUpdate, ap as ResourceSummary, aq as ResourceTimeOffAdditional, ar as ResourceTimeOffAdditionalCreate, as as ResourceTimeOffAdditionalUpdate, at as ResourceTimeOffBalanceCreate, au as ResourceTimeOffBalanceUpdate, av as ServiceCall, aw as ServiceCallTicket, ax as ServiceCallCreate, ay as ServiceCallUpdate, az as ThresholdStatusResultModel, aA as TicketCharge, aB as TicketChargeCreate, aC as TicketChargeUpdate, aD as TicketChargeSummary, aE as TimeEntryUpdate, aF as TimeEntryCreate, aG as TimeOffRequestCreate, aH as TimeOffRequestUpdate, aI as AutotaskVersionResultModel, aJ as ApiVersionResultModel, aK as ZoneInformationResultModel, aL as Appointment, aM as AppointmentCreate, aN as AppointmentUpdate, aO as AttachmentInfo, aP as AttachmentInfoCreate, aQ as AttachmentInfoUpdate, aR as BillingCode, aS as BillingCodeCreate, aT as BillingCodeUpdate, aU as BillingItemApprovalLevel, aV as BillingItemApprovalLevelCreate, aW as BillingItemApprovalLevelUpdate, aX as BillingItemsCreate, aY as BillingItemsUpdate, aZ as ChangeRequestLink, a_ as ChangeRequestLinkCreate, a$ as ChangeRequestLinkUpdate, b0 as ChecklistLibrary, b1 as ChecklistLibraryCreate, b2 as ChecklistLibraryUpdate, b3 as ChecklistLibraryChecklistItem, b4 as ChecklistLibraryChecklistItemCreate, b5 as ChecklistLibraryChecklistItemUpdate, b6 as ClassificationIcon, b7 as ClassificationIconCreate, b8 as ClassificationIconUpdate, b9 as CompanyAlert, ba as CompanyAlertCreate, bb as CompanyAlertUpdate, bc as CompanyAttachment, bd as CompanyAttachmentCreate, be as CompanyAttachmentUpdate, bf as CompanyLocationCreate, bg as CompanyLocationUpdate, bh as CompanyNoteAttachment, bi as CompanyNoteAttachmentCreate, bj as CompanyNoteAttachmentUpdate, bk as CompanyNoteCreate, bl as CompanyNoteUpdate, bm as CompanySiteConfigurations, bn as CompanySiteConfigurationsCreate, bo as CompanySiteConfigurationsUpdate, bp as CompanyWebhook, bq as CompanyWebhookCreate, br as CompanyWebhookUpdate, bs as ConfigurationItemBillingProductAssociationsCreate, bt as ConfigurationItemBillingProductAssociationsUpdate, bu as ConfigurationItemCategoryCreate, bv as ConfigurationItemCategoryUpdate, bw as ConfigurationItemCategoryUdfAssociation, bx as ConfigurationItemCategoryUdfAssociationCreate, by as ConfigurationItemCategoryUdfAssociationUpdate, bz as ConfigurationItemDnsRecord, bA as ConfigurationItemDnsRecordCreate, bB as ConfigurationItemDnsRecordUpdate, bC as ConfigurationItemNoteCreate, bD as ConfigurationItemNoteUpdate, bE as ConfigurationItemRelatedItemCreate, bF as ConfigurationItemRelatedItemUpdate, bG as ConfigurationItemSslSubjectAlternativeName, bH as ConfigurationItemSslSubjectAlternativeNameCreate, bI as ConfigurationItemSslSubjectAlternativeNameUpdate, bJ as ConfigurationItemTypeCreate, bK as ConfigurationItemTypeUpdate, bL as ConfigurationItemWebhook, bM as ConfigurationItemWebhookCreate, bN as ConfigurationItemWebhookUpdate, bO as ContactGroupContacts, bP as ContactGroupContactsCreate, bQ as ContactGroupContactsUpdate, bR as ContactGroups, bS as ContactGroupsCreate, bT as ContactGroupsUpdate, bU as ContactWebhook, bV as ContactWebhookCreate, bW as ContactWebhookUpdate, bX as ContractBillingRuleCreate, bY as ContractBillingRuleUpdate, bZ as ContractBlockHourFactor, b_ as ContractBlockHourFactorCreate, b$ as ContractBlockHourFactorUpdate, c0 as ContractBlockCreate, c1 as ContractBlockUpdate, c2 as ContractChargeCreate, c3 as ContractChargeUpdate, c4 as ContractExclusionBillingCode, c5 as ContractExclusionBillingCodeCreate, c6 as ContractExclusionBillingCodeUpdate, c7 as ContractExclusionRoles, c8 as ContractExclusionRolesCreate, c9 as ContractExclusionRolesUpdate, ca as ContractExclusionSetExcludedRoles, cb as ContractExclusionSetExcludedRolesCreate, cc as ContractExclusionSetExcludedRolesUpdate, cd as ContractExclusionSetExcludedWorkTypes, ce as ContractExclusionSetExcludedWorkTypesCreate, cf as ContractExclusionSetExcludedWorkTypesUpdate, cg as ContractExclusionSets, ch as ContractExclusionSetsCreate, ci as ContractExclusionSetsUpdate, cj as ContractMilestone, ck as ContractMilestoneCreate, cl as ContractMilestoneUpdate, cm as ContractNote, cn as ContractNoteCreate, co as ContractNoteUpdate, cp as ContractRateCreate, cq as ContractRateUpdate, cr as ContractRetainers, cs as ContractRetainersCreate, ct as ContractRetainersUpdate, cu as ContractRoleCostsCreate, cv as ContractRoleCostsUpdate, cw as ContractServiceAdjustment, cx as ContractServiceAdjustmentCreate, cy as ContractServiceAdjustmentUpdate, cz as ContractServiceBundleAdjustment, cA as ContractServiceBundleAdjustmentCreate, cB as ContractServiceBundleAdjustmentUpdate, cC as ContractServiceBundle, cD as ContractServiceBundleCreate, cE as ContractServiceBundleUpdate, cF as ContractServiceBundleUnit, cG as ContractServiceBundleUnitCreate, cH as ContractServiceBundleUnitUpdate, cI as ContractServiceCreate, cJ as ContractServiceUpdate, cK as ContractServiceUnitCreate, cL as ContractServiceUnitUpdate, cM as ContractTicketPurchases, cN as ContractTicketPurchasesCreate, cO as ContractTicketPurchasesUpdate, cP as Country, cQ as CountryCreate, cR as CountryUpdate, cS as Currency, cT as CurrencyCreate, cU as CurrencyUpdate, cV as Department, cW as DepartmentCreate, cX as DepartmentUpdate, cY as DomainRegistrar, cZ as DomainRegistrarCreate, c_ as DomainRegistrarUpdate, c$ as ExpenseItemAttachment, d0 as ExpenseItemAttachmentCreate, d1 as ExpenseItemAttachmentUpdate, d2 as ExpenseItemCreate, d3 as ExpenseItemUpdate, d4 as ExpenseReport, d5 as ExpenseReportCreate, d6 as ExpenseReportUpdate, d7 as Holiday, d8 as HolidayCreate, d9 as HolidayUpdate, da as HolidaySet, db as HolidaySetCreate, dc as HolidaySetUpdate, dd as InvoiceTemplate, de as InvoiceTemplateCreate, df as InvoiceTemplateUpdate, dg as NotificationHistory, dh as NotificationHistoryCreate, di as NotificationHistoryUpdate, dj as Opportunity, dk as OpportunityCreate, dl as OpportunityUpdate, dm as OpportunityAttachment, dn as OpportunityAttachmentCreate, dp as OpportunityAttachmentUpdate, dq as OpportunityCategory, dr as OpportunityCategoryCreate, ds as OpportunityCategoryUpdate, dt as OrganizationalLevel1Create, du as OrganizationalLevel1Update, dv as OrganizationalLevel2Create, dw as OrganizationalLevel2Update, dx as OrganizationalLevelAssociationCreate, dy as OrganizationalLevelAssociationUpdate, dz as Phase, dA as PhaseCreate, dB as PhaseUpdate, dC as Product, dD as ProductCreate, dE as ProductUpdate, dF as ProductVendors, dG as ProductVendorsCreate, dH as ProductVendorsUpdate, dI as ProjectCharge, dJ as ProjectChargeCreate, dK as ProjectChargeUpdate, dL as ProjectNote, dM as ProjectNoteCreate, dN as ProjectNoteUpdate, dO as ProjectCreate, dP as ProjectUpdate, dQ as ProjectContext, dR as PurchaseApprovals, dS as PurchaseApprovalsCreate, dT as PurchaseApprovalsUpdate, dU as PurchaseOrderItemReceiving, dV as PurchaseOrderItemReceivingCreate, dW as PurchaseOrderItemReceivingUpdate, dX as PurchaseOrderItems, dY as PurchaseOrderItemsCreate, dZ as PurchaseOrderItemsUpdate, d_ as PurchaseOrders, d$ as PurchaseOrdersCreate, e0 as PurchaseOrdersUpdate, e1 as QuoteItemCreate, e2 as QuoteItemUpdate, e3 as QuoteLocation, e4 as QuoteLocationCreate, e5 as QuoteLocationUpdate, e6 as QuoteTemplate, e7 as QuoteTemplateCreate, e8 as QuoteTemplateUpdate, e9 as ResourceRoleQueue, ea as ResourceRoleQueueCreate, eb as ResourceRoleQueueUpdate, ec as ResourceRole, ed as ResourceRoleCreate, ee as ResourceRoleUpdate, ef as ResourceSkill, eg as ResourceSkillCreate, eh as ResourceSkillUpdate, ei as ResourceTimeOffApprover, ej as ResourceTimeOffApproverCreate, ek as ResourceTimeOffApproverUpdate, el as Role, em as RoleCreate, en as RoleUpdate, eo as SalesOrder, ep as SalesOrderCreate, eq as SalesOrderUpdate, er as ServiceCallTaskResourceCreate, es as ServiceCallTaskResourceUpdate, et as ServiceCallTaskCreate, eu as ServiceCallTaskUpdate, ev as ServiceCallTicketResource, ew as ServiceCallTicketResourceCreate, ex as ServiceCallTicketResourceUpdate, ey as ServiceCallTicketCreate, ez as ServiceCallTicketUpdate, eA as ServiceLevelAgreementResults, eB as ServiceLevelAgreementResultsCreate, eC as ServiceLevelAgreementResultsUpdate, eD as Service, eE as ServiceCreate, eF as ServiceUpdate, eG as Skill, eH as SkillCreate, eI as SkillUpdate, eJ as SubscriptionPeriod, eK as SubscriptionPeriodCreate, eL as SubscriptionPeriodUpdate, eM as SubscriptionCreate, eN as SubscriptionUpdate, eO as SurveyResults, eP as SurveyResultsCreate, eQ as SurveyResultsUpdate, eR as Survey, eS as SurveyCreate, eT as SurveyUpdate, eU as TagAlias, eV as TagAliasCreate, eW as TagAliasUpdate, eX as TagGroup, eY as TagGroupCreate, eZ as TagGroupUpdate, e_ as Tag, e$ as TagCreate, f0 as TagUpdate, f1 as TaskNote, f2 as TaskNoteCreate, f3 as TaskNoteUpdate, f4 as Task, f5 as TaskCreate, f6 as TaskUpdate, f7 as TaskSecondaryResource, f8 as TaskSecondaryResourceCreate, f9 as TaskSecondaryResourceUpdate, fa as TaxRegion, fb as TaxRegionCreate, fc as TaxRegionUpdate, fd as TicketAdditionalConfigurationItem, fe as TicketAdditionalConfigurationItemCreate, ff as TicketAdditionalConfigurationItemUpdate, fg as TicketAdditionalContact, fh as TicketAdditionalContactCreate, fi as TicketAdditionalContactUpdate, fj as TicketAttachment, fk as TicketAttachmentCreate, fl as TicketAttachmentUpdate, fm as TicketCategory, fn as TicketCategoryCreate, fo as TicketCategoryUpdate, fp as TicketCategoryFieldDefault, fq as TicketCategoryFieldDefaultCreate, fr as TicketCategoryFieldDefaultUpdate, fs as TicketChangeRequestApproval, ft as TicketChangeRequestApprovalCreate, fu as TicketChangeRequestApprovalUpdate, fv as TicketChecklistItem, fw as TicketChecklistItemCreate, fx as TicketChecklistItemUpdate, fy as TicketChecklistLibrary, fz as TicketChecklistLibraryCreate, fA as TicketChecklistLibraryUpdate, fB as TicketHistory, fC as TicketHistoryCreate, fD as TicketHistoryUpdate, fE as TicketNoteAttachment, fF as TicketNoteAttachmentCreate, fG as TicketNoteAttachmentUpdate, fH as TicketNote, fI as TicketNoteCreate, fJ as TicketNoteUpdate, fK as TicketNoteWebhook, fL as TicketNoteWebhookCreate, fM as TicketNoteWebhookUpdate, fN as TicketSecondaryResource, fO as TicketSecondaryResourceCreate, fP as TicketSecondaryResourceUpdate, fQ as TicketWebhook, fR as TicketWebhookCreate, fS as TicketWebhookUpdate, fT as TimeEntryAttachment, fU as TimeEntryAttachmentCreate, fV as TimeEntryAttachmentUpdate, fW as UserDefinedFieldDefinition, fX as UserDefinedFieldDefinitionCreate, fY as UserDefinedFieldDefinitionUpdate, fZ as UserDefinedFieldListItem, f_ as UserDefinedFieldListItemCreate, f$ as UserDefinedFieldListItemUpdate, Q as QueryParams, g0 as Resolution, g1 as Page, g2 as EntityInformationModel, g3 as FieldInformationModel, g4 as Field, g5 as FilterCondition, g6 as CompositeNameTable, g7 as CompositeContextOptions } from './index-CGp16Cdm.js';
2
2
  import { L as Logger } from './logger-B1gYmFre.js';
3
3
 
4
4
  /**
@@ -32,7 +32,7 @@ import { L as Logger } from './logger-B1gYmFre.js';
32
32
  * queryBounded noteChars free-text cap (issue #61 — response-side only);
33
33
  * - docs/VENDOR-QUIRKS.md §11.7/§11.8/§11.9/§11.10/§11.11/§11.12 render the same facts.
34
34
  *
35
- * planHash: 79f3968f072705fbc7b479dba6863a27bde47deee7b85885eda8d019302f9c25
35
+ * planHash: 3dfaa99bd81e843635bafd242e5229270f259de68c6a32d483a6640402f3b187
36
36
  */
37
37
 
38
38
  /** One pinned blind-surface stamp (the result-time sentinel object). */
@@ -882,6 +882,149 @@ declare class HttpClient {
882
882
  request<T>(opts: RequestOptions): Promise<T>;
883
883
  }
884
884
 
885
+ /**
886
+ * AutotaskError hierarchy (ARCHITECTURE section 10).
887
+ *
888
+ * Every error carries the structured contract: `code` (stable SCREAMING_SNAKE
889
+ * machine code), `category`, `retryable`, plus `operation`, `httpStatus`,
890
+ * `vendorError` (the vendor payload under a documented key, deep-redacted —
891
+ * the INV-A1 hotfix), `resourceIds` (the LEGACY unlabeled id list — the
892
+ * stamp sites name records of several vendor entities and say nothing about
893
+ * which; every SDK stamp site that sets it also sets `details.idRefs`, the
894
+ * labeled `{ entity, id }` companion — issue #116),
895
+ * `suggestedAction` (deterministic next step only), `correlationId` and `url`.
896
+ *
897
+ * `item: null` on a single GET (HTTP 200) is a NOT FOUND, not a success — the
898
+ * vendor's not-found signal (G1 envelope.md). The vendor documents no error
899
+ * bodies; the shape `{ errors: [{ message, field?, code? }] }` is pinned from
900
+ * the node's errorHandler and parsed defensively here.
901
+ */
902
+ type ErrorCategory = 'auth' | 'not_found' | 'validation' | 'conflict' | 'rate_limit' | 'server' | 'network' | 'timeout' | 'resolution' | 'policy';
903
+ /**
904
+ * The deterministic next step a consumer should take after catching the
905
+ * error (issue #296, 1g). The server (iit-mcp-autotask #254) maps this to
906
+ * its `next` envelope value; the SDK computes it from the error's code,
907
+ * category and retryability so the server can delete its code→next body.
908
+ *
909
+ * - `choose_candidate` — the resolution is ambiguous; the consumer picks one.
910
+ * - `supply_input` — the caller's input is missing or wrong; fix and re-send.
911
+ * - `retry` — the failure is transient; re-send the same call.
912
+ * - `stop` — the failure is permanent; do not re-send.
913
+ */
914
+ type NextAction = 'supply_input' | 'retry' | 'stop' | 'choose_candidate';
915
+ /**
916
+ * Compute the `nextAction` for an error from its code, category and
917
+ * retryability (issue #296, 1g). ONE function — the base constructor calls
918
+ * it when `options.nextAction` is absent; per-throw-site override stays
919
+ * possible via the options field.
920
+ *
921
+ * The mapping mirrors the server's `classifyError` (iit-mcp-autotask
922
+ * `src/tools/reasons.ts`), restricted to the 4-value enum:
923
+ * - RESOLUTION_AMBIGUOUS → choose_candidate
924
+ * - category validation / not_found, SCOPE_REQUIRED, MARKER_UNSAFE_ID,
925
+ * PAGINATION_LIMIT, QUERY_TOO_LONG, BUDGET_EXCEEDED, LATEST_WINDOW_INCOMPLETE,
926
+ * LATEST_THRESHOLD_UNRESOLVED, RESOLUTION_TRUNCATED → supply_input
927
+ * - RATE_LIMITED / RATE_LIMITED_COOLDOWN / ABORTED → retry
928
+ * - category auth, MAINTENANCE, HOST_POLICY_DENIED → stop
929
+ * - generic: retryable → retry, non-retryable → stop
930
+ */
931
+ declare function nextActionFor(code: string, opts?: {
932
+ category?: ErrorCategory;
933
+ retryable?: boolean;
934
+ httpStatus?: number;
935
+ }): NextAction;
936
+ /**
937
+ * A labeled id reference (issue #116). The legacy `resourceIds` field reads
938
+ * as Autotask **Resource** (staff) ids, but the special ops stamp ids of
939
+ * many other entities into it (ticket / company / contact / billing-code /
940
+ * the failed record's own id on a generic `get`), unlabeled — so feeding an
941
+ * error's `resourceIds` to `operations.expandResourceNames` (whose only wire
942
+ * verb is `GET /V1.0/Resources/{id}`) resolves a colliding non-staff id to
943
+ * an unrelated person's name. Every SDK stamp site that sets `resourceIds`
944
+ * now also sets `details.idRefs` — the same ids, each labeled with the vendor entity
945
+ * it identifies — so consumers can resolve against the entity the error
946
+ * actually names instead of parsing the message.
947
+ *
948
+ * `entity` is the vendor entity name (singular snake_case — `company`,
949
+ * `ticket`, `contact`, `billing_code`, `resource`, ...; the de-pluralized
950
+ * vendor table name — the same word the error message uses; the SDK
951
+ * resource key is the same word plural). `resource` (staff) is the ONLY
952
+ * entity `operations.expandResourceNames` resolves — a ref of any other
953
+ * entity must NOT be fed to it.
954
+ */
955
+ interface ErrorIdRef {
956
+ /** The vendor entity the id identifies (singular snake_case, e.g. `company`, `ticket`, `resource` = staff). */
957
+ entity: string;
958
+ /** The value that addresses the record at that entity's endpoint: the
959
+ * vendor id (a safe integer, or the canonical integer-string form) —
960
+ * except `resource_time_off_balances.getByYear`, where the endpoint's
961
+ * path key is the YEAR (the vendor defines no record-id read for this
962
+ * entity). */
963
+ id: number | string;
964
+ }
965
+ interface AutotaskErrorOptions {
966
+ code?: string;
967
+ category?: ErrorCategory;
968
+ operation?: string;
969
+ httpStatus?: number;
970
+ vendorError?: unknown;
971
+ /**
972
+ * The ids the error is about. LEGACY, unlabeled: reads as Resource
973
+ * (staff) ids but the stamp sites name records of several entities
974
+ * (issue #116). Kept for compatibility; the labeled form rides on
975
+ * `details.idRefs` (`ErrorIdRef[]`) and is what consumers should use.
976
+ * The pairing above is a guarantee of the SDK stamp sites — an error you
977
+ * construct yourself may set `resourceIds` without `details.idRefs`.
978
+ */
979
+ resourceIds?: (number | string)[];
980
+ suggestedAction?: string;
981
+ correlationId?: string;
982
+ retryable?: boolean;
983
+ url?: string;
984
+ /**
985
+ * The deterministic next step a consumer should take (issue #296, 1g).
986
+ * Computed by `nextActionFor` in the base constructor when absent; a
987
+ * throw site may override it.
988
+ */
989
+ nextAction?: NextAction;
990
+ /**
991
+ * The structured, deterministic extras that ride on the error WITHOUT
992
+ * changing its contract: issue #9 — the recovery refusals' payload
993
+ * (`{ resource, reason/note, ... }` on DELETE_BOUNDARY /
994
+ * MARKER_UNSAFE_ID / RECOVERY_TRUNCATED); issue #14 — `emptyReason`
995
+ * (the typed reason a miss / drift carries — { kind, note, authority,
996
+ * remedy }) and `pointerNote` (the known-unusable-op pointer sentence);
997
+ * issue #116 — `idRefs` (`ErrorIdRef[]`, the labeled `{ entity, id }`
998
+ * companion of the legacy `resourceIds` — every SDK stamp site that sets
999
+ * `resourceIds` also sets it). Additive only — the status, code, message
1000
+ * and retryability are never derived from it.
1001
+ */
1002
+ details?: Record<string, unknown>;
1003
+ }
1004
+ declare class AutotaskError extends Error {
1005
+ code: string;
1006
+ category: ErrorCategory;
1007
+ operation?: string;
1008
+ httpStatus?: number;
1009
+ vendorError?: unknown;
1010
+ /** Legacy unlabeled id list (issue #116) — see `AutotaskErrorOptions.resourceIds`; the labeled companion rides on `details.idRefs`. */
1011
+ resourceIds?: (number | string)[];
1012
+ suggestedAction?: string;
1013
+ correlationId?: string;
1014
+ retryable: boolean;
1015
+ url?: string;
1016
+ /** The deterministic next step a consumer should take (issue #296, 1g). */
1017
+ nextAction: NextAction;
1018
+ /** Issue #9/#14: the additive structured extras (recovery refusal payload; emptyReason / pointerNote) — never changes the error contract. */
1019
+ details?: Record<string, unknown>;
1020
+ constructor(message: string, options?: AutotaskErrorOptions);
1021
+ }
1022
+ declare class AutotaskConfigError extends AutotaskError {
1023
+ constructor(message: string, options?: AutotaskErrorOptions);
1024
+ }
1025
+ /** Type guard for the hierarchy. */
1026
+ declare function isAutotaskError(err: unknown): err is AutotaskError;
1027
+
885
1028
  /**
886
1029
  * AuthenticateResource — integration endpoint (G5 batch B, plan key 'authenticate').
887
1030
  *
@@ -2695,6 +2838,23 @@ declare class TimeEntriesResource extends GenericResource<TimeEntry, TimeEntryCr
2695
2838
 
2696
2839
  declare class TimeOffRequestsResource extends GenericResource<TimeOffRequest, TimeOffRequestCreate, TimeOffRequestUpdate> {
2697
2840
  constructor(http: HttpClient, pageSize: number);
2841
+ get(id: Identifier, opts?: {
2842
+ fresh?: boolean;
2843
+ } | null): Promise<TimeOffRequest>;
2844
+ get(parentId: Identifier, id: Identifier, opts?: {
2845
+ fresh?: boolean;
2846
+ } | null): Promise<never>;
2847
+ create(data: TimeOffRequestCreate, opts?: CreateOpts): Promise<never>;
2848
+ create(parentId: Identifier, data: TimeOffRequestCreate, opts?: CreateOpts): Promise<OperationResult | DryRunResult<TimeOffRequestCreate>>;
2849
+ update(id: Identifier, data: TimeOffRequestUpdate, opts?: MutationOpts): Promise<never>;
2850
+ update(parentId: Identifier, id: Identifier, data: TimeOffRequestUpdate, opts?: MutationOpts): Promise<OperationResult | DryRunResult<TimeOffRequestUpdate>>;
2851
+ protected getScopedRaw(parentId: Identifier, id: Identifier, fresh?: boolean): Promise<TimeOffRequest>;
2852
+ createIfNotExists(..._args: unknown[]): Promise<never>;
2853
+ protected putFallbackEligible(_err: unknown): _err is AutotaskError;
2854
+ private writeError;
2855
+ private writePayload;
2856
+ private guardWriteStatus;
2857
+ private guardChoice;
2698
2858
  /** Node-parity special op (hand-written in src/resources/special/time_off_requests.ts). */
2699
2859
  approve(id: Identifier, opts?: MutationOpts): Promise<OperationResult | DryRunResult<Record<string, unknown>>>;
2700
2860
  /** Node-parity special op (hand-written in src/resources/special/time_off_requests.ts). */
@@ -3823,5 +3983,5 @@ declare class GenericResource<T = Record<string, unknown>, TCreate extends objec
3823
3983
  download(parentId: Identifier, id: Identifier): Promise<Buffer>;
3824
3984
  }
3825
3985
 
3826
- 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 };
3827
- 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 };
3986
+ export { CompaniesResource as C, EntityInformationResource as E, GenericResource as G, InventoryProductsResource as I, ResourceTimeOffBalancesResource as J, ResourcesResource as K, ServiceCallsResource as L, ModulesResource as M, QuotesResource as Q, ResourceTimeOffAdditionalResource as R, SIMPLE_RESOURCES as S, ThresholdInformationResource as V, TicketChargesResource as W, TicketsResource as X, AutotaskClient as a, TimeEntriesResource as a2, TimeOffRequestsResource as a5, TtlCache as a6, VersionInformationResource as a7, VersionResource as a8, ZONES as a9, ZoneInformationResource as aa, isAutotaskError as ac, nextActionFor as ad, FIELD_CACHE_KINDS as an, AutotaskError as b, AutotaskConfigError as d, AuthenticateResource as f, ConfigurationItemsResource as i, ContactsResource as j, ContractsResource as l, InvoicesResource as q };
3987
+ export type { TimeEntriesPostedWindowListOptions as $, AutotaskConfig as A, ProfitabilityPartDigest as B, ProfitabilityRevenueByType as D, FuzzyCompanyRow as F, HelperFlags as H, NextAction as N, OpsFlags as O, ProfitRateSource as P, TicketChangeStatusResult as T, SimpleResourceEntry as U, TimeEntriesPostedCountResult as Y, TimeEntriesPostedPagingOptions as Z, TimeEntriesPostedWindowCountOptions as _, TimeEntriesPostedWindowOptions as a0, TimeEntriesPostedWindowResult as a1, TimeEntryReviewFields as a3, TimeEntryReviewResult as a4, ZoneName as ab, RowNamesSummary as ae, BlindSurfaceInfo as af, RelationshipResource as ag, CreateGuidanceValueRequirement as ah, CreateGuidanceRow as ai, CreateBlockerKind as aj, CreateGuidanceReport as ak, FieldCacheKind as al, BoundedQueryResult as am, AutotaskErrorOptions as c, TicketChangeStatusNoChange as e, CompanyFuzzySearchOptions as g, CompanyFuzzySearchResult as h, ContractsProfitabilityResult as k, CostRateResolution as m, ErrorCategory as n, ErrorIdRef as o, GenericResourceConfig as p, ProfitabilityActivityCategory as r, ProfitabilityDataQualityWarning as s, ProfitabilityHighestCostTicket as t, ProfitabilityLabourCostMethod as u, ProfitabilityMiscoding as v, ProfitabilityMonthlyRow as w, ProfitabilityOpenRenewalItem as x, ProfitabilityOptions as y, ProfitabilityPart as z };