node-autotask 0.60.0 → 0.61.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 (39) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/MCP_TOOL_CATALOG.json +298 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +1035 -7
  5. package/dist/capabilities-data.js +1034 -6
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-MYLSBOZI.cjs → chunk-4SEIDMF6.cjs} +195 -11
  9. package/dist/{chunk-Y2SR6D2D.js → chunk-BSFJ5JYP.js} +190 -6
  10. package/dist/{chunk-VN3OZHC7.cjs → chunk-CWH2SLP2.cjs} +174 -174
  11. package/dist/{chunk-K722F7EM.js → chunk-GUXVYGBK.js} +3 -3
  12. package/dist/{chunk-XYWSPKCN.cjs → chunk-JTRC7XEH.cjs} +33 -31
  13. package/dist/{chunk-2GPQ55O6.js → chunk-NFTWRHUR.js} +4 -2
  14. package/dist/{chunk-XUPVX5MQ.js → chunk-O63FO5XC.js} +2 -2
  15. package/dist/{chunk-XP43NERF.cjs → chunk-TE7RUKU2.cjs} +3 -3
  16. package/dist/{index-cAntv7_A.d.ts → index-Bc3yX2Nc.d.ts} +4 -2
  17. package/dist/{index-D6bAO4ZV.d.cts → index-COQEG55Q.d.cts} +90 -1
  18. package/dist/{index-D6bAO4ZV.d.ts → index-COQEG55Q.d.ts} +90 -1
  19. package/dist/{index-BmaFIj42.d.cts → index-D1dW10iM.d.cts} +4 -2
  20. package/dist/index.cjs +84 -84
  21. package/dist/index.d.cts +3 -3
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.js +5 -5
  24. package/dist/operations/index.cjs +50 -50
  25. package/dist/operations/index.d.cts +4 -4
  26. package/dist/operations/index.d.ts +4 -4
  27. package/dist/operations/index.js +2 -2
  28. package/dist/pool.cjs +8 -8
  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 +4 -2
  39. package/package.json +5 -5
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkXP43NERF_cjs = require('./chunk-XP43NERF.cjs');
3
+ var chunkTE7RUKU2_cjs = require('./chunk-TE7RUKU2.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
8
8
  enumerable: true,
9
- get: function () { return chunkXP43NERF_cjs.CAPABILITY_PLAN_HASHES; }
9
+ get: function () { return chunkTE7RUKU2_cjs.CAPABILITY_PLAN_HASHES; }
10
10
  });
11
11
  Object.defineProperty(exports, "loadCapabilities", {
12
12
  enumerable: true,
13
- get: function () { return chunkXP43NERF_cjs.loadCapabilities; }
13
+ get: function () { return chunkTE7RUKU2_cjs.loadCapabilities; }
14
14
  });
15
15
  Object.defineProperty(exports, "loadCapabilityRecords", {
16
16
  enumerable: true,
17
- get: function () { return chunkXP43NERF_cjs.loadCapabilityRecords; }
17
+ get: function () { return chunkTE7RUKU2_cjs.loadCapabilityRecords; }
18
18
  });
@@ -1 +1 @@
1
- export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-K722F7EM.js';
1
+ export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-GUXVYGBK.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXP43NERF_cjs = require('./chunk-XP43NERF.cjs');
3
+ var chunkTE7RUKU2_cjs = require('./chunk-TE7RUKU2.cjs');
4
4
  var chunkBD4AUGCJ_cjs = require('./chunk-BD4AUGCJ.cjs');
5
5
  var crypto = require('crypto');
6
6
  var async_hooks = require('async_hooks');
@@ -1422,7 +1422,7 @@ async function capabilitySets() {
1422
1422
  const fieldOps = /* @__PURE__ */ new Map();
1423
1423
  const udfCapable = /* @__PURE__ */ new Set();
1424
1424
  const resources = /* @__PURE__ */ new Set();
1425
- for (const rec of await chunkXP43NERF_cjs.loadCapabilityRecords()) {
1425
+ for (const rec of await chunkTE7RUKU2_cjs.loadCapabilityRecords()) {
1426
1426
  if (rec.resource === "operations") continue;
1427
1427
  resources.add(rec.resource);
1428
1428
  if (rec.operation === "getFieldInfo") fieldOps.set(rec.resource, rec);
@@ -1433,7 +1433,7 @@ async function capabilitySets() {
1433
1433
  var derivedIndexPromise = null;
1434
1434
  function derivedIndexLoad() {
1435
1435
  if (derivedIndexPromise === null) {
1436
- derivedIndexPromise = chunkXP43NERF_cjs.loadCapabilityRecords().then((records) => {
1436
+ derivedIndexPromise = chunkTE7RUKU2_cjs.loadCapabilityRecords().then((records) => {
1437
1437
  const index = /* @__PURE__ */ new Map();
1438
1438
  for (const rec of records) {
1439
1439
  const declared = rec.metadata?.derivedFields;
@@ -9131,6 +9131,113 @@ var RELATIONSHIP_MAP = {
9131
9131
  "deleteBoundary": null,
9132
9132
  "markerField": null
9133
9133
  },
9134
+ "user_defined_field_definitions": {
9135
+ "resource": "user_defined_field_definitions",
9136
+ "apiEntity": "UserDefinedFieldDefinition",
9137
+ "kind": "entity",
9138
+ "path": "UserDefinedFieldDefinitions",
9139
+ "parentScoped": false,
9140
+ "tier": "advanced",
9141
+ "workflowResource": false,
9142
+ "group": "B",
9143
+ "parent": null,
9144
+ "children": [
9145
+ {
9146
+ "resource": "user_defined_field_list_items",
9147
+ "apiEntity": "UserDefinedFieldListItem",
9148
+ "parentField": "udfFieldId",
9149
+ "parentSegment": "ListItems",
9150
+ "tier": "extended",
9151
+ "workflowResource": false,
9152
+ "specialOps": [],
9153
+ "searchCovers": null,
9154
+ "scopedOps": {
9155
+ "create": true,
9156
+ "query": true,
9157
+ "update": true,
9158
+ "delete": false
9159
+ }
9160
+ }
9161
+ ],
9162
+ "naturalKeys": {
9163
+ "hasSearch": false,
9164
+ "searchCovers": null,
9165
+ "findBy": []
9166
+ },
9167
+ "blindSurfaces": null,
9168
+ "zoneFacts": {
9169
+ "createGuidance": {
9170
+ "createOp": "user_defined_field_definitions.create",
9171
+ "parentScoped": false,
9172
+ "liveProvenPrefix": [],
9173
+ "unproven": true,
9174
+ "blocker": {
9175
+ "kind": "unknown",
9176
+ "message": "No create has been attempted against a tenant, so acceptance of the model body is unverified. The vendor documents the model body and answers OperationResultModel.",
9177
+ "remedy": "Attempt one create in a non-production tenant (dry run first); a refusal arrives as a vendor 500 whose errors[] text names the failing field."
9178
+ },
9179
+ "vendorEvidence": [
9180
+ "api-docs.json: POST /V1.0/UserDefinedFieldDefinitions consumes definitions.UserDefinedFieldDefinitionModel and answers OperationResultModel \u2014 the entity defines no DELETE path."
9181
+ ],
9182
+ "deleteBoundary": {
9183
+ "available": false,
9184
+ "note": "the vendor defines no DELETE for user_defined_field_definitions (spec-derived) \u2014 a UDF definition cannot be removed or corrected through the API; deactivation is via isActive; hard cleanup is UI-only."
9185
+ }
9186
+ }
9187
+ },
9188
+ "deleteBoundary": {
9189
+ "note": "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.",
9190
+ "proof": "spec-derived"
9191
+ },
9192
+ "markerField": null
9193
+ },
9194
+ "user_defined_field_list_items": {
9195
+ "resource": "user_defined_field_list_items",
9196
+ "apiEntity": "UserDefinedFieldListItem",
9197
+ "kind": "entity",
9198
+ "path": "UserDefinedFieldListItems",
9199
+ "parentScoped": true,
9200
+ "tier": "extended",
9201
+ "workflowResource": false,
9202
+ "group": "B",
9203
+ "parent": {
9204
+ "resource": "user_defined_field_definitions",
9205
+ "segment": "ListItems",
9206
+ "field": "udfFieldId"
9207
+ },
9208
+ "children": [],
9209
+ "naturalKeys": {
9210
+ "hasSearch": false,
9211
+ "searchCovers": null,
9212
+ "findBy": []
9213
+ },
9214
+ "blindSurfaces": null,
9215
+ "zoneFacts": {
9216
+ "createGuidance": {
9217
+ "createOp": "user_defined_field_list_items.create",
9218
+ "parentScoped": true,
9219
+ "liveProvenPrefix": [],
9220
+ "unproven": true,
9221
+ "blocker": {
9222
+ "kind": "unknown",
9223
+ "message": "No create has been attempted against a tenant, so acceptance of the model body is unverified. The vendor documents the model body and answers OperationResultModel.",
9224
+ "remedy": "Attempt one create in a non-production tenant (dry run first); a refusal arrives as a vendor 500 whose errors[] text names the failing field."
9225
+ },
9226
+ "vendorEvidence": [
9227
+ "api-docs.json: POST /V1.0/UserDefinedFields/{parentId}/ListItems consumes definitions.UserDefinedFieldListItemModel and answers OperationResultModel \u2014 the standalone UserDefinedFieldListItems path is read-only and no ListItems path defines DELETE."
9228
+ ],
9229
+ "deleteBoundary": {
9230
+ "available": false,
9231
+ "note": "the vendor defines no DELETE for user_defined_field_list_items (spec-derived) \u2014 a picklist value cannot be removed or corrected through the API; deactivation is via isActive; hard cleanup is UI-only."
9232
+ }
9233
+ }
9234
+ },
9235
+ "deleteBoundary": {
9236
+ "note": "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.",
9237
+ "proof": "spec-derived"
9238
+ },
9239
+ "markerField": null
9240
+ },
9134
9241
  "version": {
9135
9242
  "resource": "version",
9136
9243
  "apiEntity": null,
@@ -9347,7 +9454,9 @@ var DELETE_BOUNDARY_NOTES = {
9347
9454
  "tax_regions": "the vendor defines no DELETE for tax_regions (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.",
9348
9455
  "ticket_checklist_libraries": "the vendor defines no DELETE for ticket_checklist_libraries (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.",
9349
9456
  "ticket_notes": "the vendor defines no DELETE for ticket_notes (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.",
9350
- "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."
9457
+ "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.",
9458
+ "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.",
9459
+ "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."
9351
9460
  };
9352
9461
  var RESPONSE_DRIFT_MARKERS = {
9353
9462
  "ticket_checklist_libraries": {
@@ -13223,10 +13332,48 @@ var CREATE_GUIDANCE = {
13223
13332
  "available": true,
13224
13333
  "note": null
13225
13334
  }
13335
+ },
13336
+ {
13337
+ "resource": "user_defined_field_definitions",
13338
+ "createOp": "user_defined_field_definitions.create",
13339
+ "parentScoped": false,
13340
+ "liveProvenPrefix": [],
13341
+ "unproven": true,
13342
+ "blocker": {
13343
+ "kind": "unknown",
13344
+ "message": "No create has been attempted against a tenant, so acceptance of the model body is unverified. The vendor documents the model body and answers OperationResultModel.",
13345
+ "remedy": "Attempt one create in a non-production tenant (dry run first); a refusal arrives as a vendor 500 whose errors[] text names the failing field."
13346
+ },
13347
+ "vendorEvidence": [
13348
+ "api-docs.json: POST /V1.0/UserDefinedFieldDefinitions consumes definitions.UserDefinedFieldDefinitionModel and answers OperationResultModel \u2014 the entity defines no DELETE path."
13349
+ ],
13350
+ "deleteBoundary": {
13351
+ "available": false,
13352
+ "note": "the vendor defines no DELETE for user_defined_field_definitions (spec-derived) \u2014 a UDF definition cannot be removed or corrected through the API; deactivation is via isActive; hard cleanup is UI-only."
13353
+ }
13354
+ },
13355
+ {
13356
+ "resource": "user_defined_field_list_items",
13357
+ "createOp": "user_defined_field_list_items.create",
13358
+ "parentScoped": true,
13359
+ "liveProvenPrefix": [],
13360
+ "unproven": true,
13361
+ "blocker": {
13362
+ "kind": "unknown",
13363
+ "message": "No create has been attempted against a tenant, so acceptance of the model body is unverified. The vendor documents the model body and answers OperationResultModel.",
13364
+ "remedy": "Attempt one create in a non-production tenant (dry run first); a refusal arrives as a vendor 500 whose errors[] text names the failing field."
13365
+ },
13366
+ "vendorEvidence": [
13367
+ "api-docs.json: POST /V1.0/UserDefinedFields/{parentId}/ListItems consumes definitions.UserDefinedFieldListItemModel and answers OperationResultModel \u2014 the standalone UserDefinedFieldListItems path is read-only and no ListItems path defines DELETE."
13368
+ ],
13369
+ "deleteBoundary": {
13370
+ "available": false,
13371
+ "note": "the vendor defines no DELETE for user_defined_field_list_items (spec-derived) \u2014 a picklist value cannot be removed or corrected through the API; deactivation is via isActive; hard cleanup is UI-only."
13372
+ }
13226
13373
  }
13227
13374
  ],
13228
13375
  "counts": {
13229
- "total": 97,
13376
+ "total": 99,
13230
13377
  "byKind": {
13231
13378
  "ok": 39,
13232
13379
  "blind-reference": 16,
@@ -13236,7 +13383,7 @@ var CREATE_GUIDANCE = {
13236
13383
  "resource-role-pair": 2,
13237
13384
  "delete-absent": 0,
13238
13385
  "non-mutable": 0,
13239
- "unknown": 17
13386
+ "unknown": 19
13240
13387
  }
13241
13388
  }
13242
13389
  };
@@ -13944,6 +14091,15 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
13944
14091
  ],
13945
14092
  "inventory_products": [
13946
14093
  "bin"
14094
+ ],
14095
+ "user_defined_field_definitions": [
14096
+ "description",
14097
+ "mergeVariableName",
14098
+ "name"
14099
+ ],
14100
+ "user_defined_field_list_items": [
14101
+ "valueForDisplay",
14102
+ "valueForExport"
13947
14103
  ]
13948
14104
  };
13949
14105
 
@@ -15888,7 +16044,9 @@ var MODEL_FIELD_SETS = {
15888
16044
  "tickets": ["id", "apiVendorID", "assignedResourceID", "assignedResourceRoleID", "billingCodeID", "changeApprovalBoard", "changeApprovalStatus", "changeApprovalType", "changeInfoField1", "changeInfoField2", "changeInfoField3", "changeInfoField4", "changeInfoField5", "companyID", "companyLocationID", "completedByResourceID", "completedDate", "configurationItemID", "contactID", "contractID", "contractServiceBundleID", "contractServiceID", "createDate", "createdByContactID", "creatorResourceID", "creatorType", "currentServiceThermometerRating", "description", "dueDateTime", "estimatedHours", "externalID", "firstResponseAssignedResourceID", "firstResponseDateTime", "firstResponseDueDateTime", "firstResponseInitiatingResourceID", "hoursToBeScheduled", "impersonatorCreatorResourceID", "isAssignedToComanaged", "issueType", "isVisibleToComanaged", "lastActivityDate", "lastActivityPersonType", "lastActivityResourceID", "lastCustomerNotificationDateTime", "lastCustomerVisibleActivityDateTime", "lastTrackedModificationDateTime", "monitorID", "monitorTypeID", "opportunityID", "organizationalLevelAssociationID", "previousServiceThermometerRating", "priority", "problemTicketId", "projectID", "purchaseOrderNumber", "queueID", "resolution", "resolutionPlanDateTime", "resolutionPlanDueDateTime", "resolvedDateTime", "resolvedDueDateTime", "rmaStatus", "rmaType", "rmmAlertID", "serviceLevelAgreementHasBeenMet", "serviceLevelAgreementID", "serviceLevelAgreementPausedNextEventHours", "serviceThermometerTemperature", "source", "status", "subIssueType", "ticketCategory", "ticketNumber", "ticketType", "title", "userDefinedFields"],
15889
16045
  "time_entries": ["id", "billingApprovalDateTime", "billingApprovalLevelMostRecent", "billingApprovalResourceID", "billingCodeID", "contractID", "contractServiceBundleID", "contractServiceID", "createDateTime", "creatorUserID", "dateWorked", "endDateTime", "hoursToBill", "hoursWorked", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "internalBillingCodeID", "internalNotes", "isInternalNotesVisibleToComanaged", "isNonBillable", "lastModifiedDateTime", "lastModifiedUserID", "offsetHours", "resourceID", "roleID", "showOnInvoice", "startDateTime", "summaryNotes", "taskID", "ticketID", "timeEntryType"],
15890
16046
  "time_entry_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "taskID", "ticketID", "timeEntryID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
15891
- "time_off_requests": ["id", "approvedDateTime", "approveRejectResourceID", "createdByResourceID", "createDateTime", "endTime", "hours", "impersonatorApproveRejectResourceID", "lastModifiedByResourceID", "lastModifiedDateTime", "lastApprovedLevel", "reason", "rejectReason", "requestDate", "resourceID", "startTime", "status", "timeOffRequestType", "soapParentPropertyId"]
16047
+ "time_off_requests": ["id", "approvedDateTime", "approveRejectResourceID", "createdByResourceID", "createDateTime", "endTime", "hours", "impersonatorApproveRejectResourceID", "lastModifiedByResourceID", "lastModifiedDateTime", "lastApprovedLevel", "reason", "rejectReason", "requestDate", "resourceID", "startTime", "status", "timeOffRequestType", "soapParentPropertyId"],
16048
+ "user_defined_field_definitions": ["id", "createDate", "crmToProjectUdfId", "dataType", "defaultValue", "description", "displayFormat", "isActive", "isEncrypted", "isFieldMapping", "isPrivate", "isProtected", "isRequired", "isVisibleToClientPortal", "mergeVariableName", "name", "numberOfDecimalPlaces", "sortOrder", "udfType"],
16049
+ "user_defined_field_list_items": ["id", "createDate", "isActive", "udfFieldId", "valueForDisplay", "valueForExport", "soapParentPropertyId"]
15892
16050
  };
15893
16051
  var MODEL_DATE_FIELDS = {
15894
16052
  "appointments": ["createDateTime", "endDateTime", "startDateTime", "updateDateTime"],
@@ -15950,7 +16108,9 @@ var MODEL_DATE_FIELDS = {
15950
16108
  "tickets": ["completedDate", "createDate", "dueDateTime", "firstResponseDateTime", "firstResponseDueDateTime", "lastActivityDate", "lastCustomerNotificationDateTime", "lastCustomerVisibleActivityDateTime", "lastTrackedModificationDateTime", "resolutionPlanDateTime", "resolutionPlanDueDateTime", "resolvedDateTime", "resolvedDueDateTime"],
15951
16109
  "time_entries": ["billingApprovalDateTime", "createDateTime", "dateWorked", "endDateTime", "lastModifiedDateTime", "startDateTime"],
15952
16110
  "time_entry_attachments": ["attachDate"],
15953
- "time_off_requests": ["approvedDateTime", "createDateTime", "endTime", "lastModifiedDateTime", "requestDate", "startTime"]
16111
+ "time_off_requests": ["approvedDateTime", "createDateTime", "endTime", "lastModifiedDateTime", "requestDate", "startTime"],
16112
+ "user_defined_field_definitions": ["createDate"],
16113
+ "user_defined_field_list_items": ["createDate"]
15954
16114
  };
15955
16115
 
15956
16116
  // src/resources/special/_shared/bounded-part.ts
@@ -19421,6 +19581,30 @@ var SIMPLE_RESOURCES = [
19421
19581
  ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
19422
19582
  helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19423
19583
  opForms: { get: "scoped", create: "scoped", delete: "scoped" }
19584
+ },
19585
+ {
19586
+ key: "user_defined_field_definitions",
19587
+ accessor: "userDefinedFieldDefinitions",
19588
+ resourcePath: "/V1.0/UserDefinedFieldDefinitions",
19589
+ deletable: false,
19590
+ udfCapable: false,
19591
+ collectionUpdate: true,
19592
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: true, delete: false, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
19593
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19594
+ opForms: { get: "global", create: "global", update: "global" }
19595
+ },
19596
+ {
19597
+ key: "user_defined_field_list_items",
19598
+ accessor: "userDefinedFieldListItems",
19599
+ resourcePath: "/V1.0/UserDefinedFieldListItems",
19600
+ parentScopedPath: "/V1.0/UserDefinedFields/{parentId}/ListItems",
19601
+ parentPath: "/V1.0/UserDefinedFieldDefinitions",
19602
+ parentField: "udfFieldId",
19603
+ deletable: false,
19604
+ udfCapable: false,
19605
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: true, delete: false, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
19606
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19607
+ opForms: { get: "scoped", create: "scoped", update: "scoped" }
19424
19608
  }
19425
19609
  ];
19426
19610
  var GenericResource = class extends BaseResource {
@@ -21353,7 +21537,7 @@ function dateBucketLabel(value, bucket) {
21353
21537
  var queryResourceKeysPromise = null;
21354
21538
  function queryResourceKeys() {
21355
21539
  if (queryResourceKeysPromise === null) {
21356
- queryResourceKeysPromise = chunkXP43NERF_cjs.loadCapabilityRecords().then((records) => {
21540
+ queryResourceKeysPromise = chunkTE7RUKU2_cjs.loadCapabilityRecords().then((records) => {
21357
21541
  const s = /* @__PURE__ */ new Set();
21358
21542
  for (const rec of records) if (rec.operation === "query") s.add(rec.resource);
21359
21543
  return s;
@@ -21475,7 +21659,7 @@ function parseTopAndLimit(opts, problems) {
21475
21659
  return { top, limit };
21476
21660
  }
21477
21661
  async function checkFieldNames(resourceKey, conditions, opts, problems) {
21478
- const records = resourceKey === void 0 ? [] : await chunkXP43NERF_cjs.loadCapabilityRecords();
21662
+ const records = resourceKey === void 0 ? [] : await chunkTE7RUKU2_cjs.loadCapabilityRecords();
21479
21663
  const record = resourceKey === void 0 ? void 0 : records.find((r) => r.resource === resourceKey && r.operation === "query");
21480
21664
  if (record === void 0) return void 0;
21481
21665
  const strings = (v) => Array.isArray(v) ? v.filter((f) => typeof f === "string" && f.trim() !== "") : [];
@@ -22115,7 +22299,7 @@ async function uiLink(client, input) {
22115
22299
  var indexPromise = null;
22116
22300
  function operationIndex() {
22117
22301
  if (indexPromise === null) {
22118
- indexPromise = chunkXP43NERF_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
22302
+ indexPromise = chunkTE7RUKU2_cjs.loadCapabilityRecords().then((records) => new Map(records.map((r) => [r.id, r])));
22119
22303
  }
22120
22304
  return indexPromise;
22121
22305
  }
@@ -1,4 +1,4 @@
1
- import { loadCapabilityRecords } from './chunk-K722F7EM.js';
1
+ import { loadCapabilityRecords } from './chunk-GUXVYGBK.js';
2
2
  import { NoopLogger, REDACTED, deepMarkUntrusted, wrapUntrusted } from './chunk-7NKB4UXV.js';
3
3
  import { randomUUID } from 'crypto';
4
4
  import { AsyncLocalStorage } from 'async_hooks';
@@ -9129,6 +9129,113 @@ var RELATIONSHIP_MAP = {
9129
9129
  "deleteBoundary": null,
9130
9130
  "markerField": null
9131
9131
  },
9132
+ "user_defined_field_definitions": {
9133
+ "resource": "user_defined_field_definitions",
9134
+ "apiEntity": "UserDefinedFieldDefinition",
9135
+ "kind": "entity",
9136
+ "path": "UserDefinedFieldDefinitions",
9137
+ "parentScoped": false,
9138
+ "tier": "advanced",
9139
+ "workflowResource": false,
9140
+ "group": "B",
9141
+ "parent": null,
9142
+ "children": [
9143
+ {
9144
+ "resource": "user_defined_field_list_items",
9145
+ "apiEntity": "UserDefinedFieldListItem",
9146
+ "parentField": "udfFieldId",
9147
+ "parentSegment": "ListItems",
9148
+ "tier": "extended",
9149
+ "workflowResource": false,
9150
+ "specialOps": [],
9151
+ "searchCovers": null,
9152
+ "scopedOps": {
9153
+ "create": true,
9154
+ "query": true,
9155
+ "update": true,
9156
+ "delete": false
9157
+ }
9158
+ }
9159
+ ],
9160
+ "naturalKeys": {
9161
+ "hasSearch": false,
9162
+ "searchCovers": null,
9163
+ "findBy": []
9164
+ },
9165
+ "blindSurfaces": null,
9166
+ "zoneFacts": {
9167
+ "createGuidance": {
9168
+ "createOp": "user_defined_field_definitions.create",
9169
+ "parentScoped": false,
9170
+ "liveProvenPrefix": [],
9171
+ "unproven": true,
9172
+ "blocker": {
9173
+ "kind": "unknown",
9174
+ "message": "No create has been attempted against a tenant, so acceptance of the model body is unverified. The vendor documents the model body and answers OperationResultModel.",
9175
+ "remedy": "Attempt one create in a non-production tenant (dry run first); a refusal arrives as a vendor 500 whose errors[] text names the failing field."
9176
+ },
9177
+ "vendorEvidence": [
9178
+ "api-docs.json: POST /V1.0/UserDefinedFieldDefinitions consumes definitions.UserDefinedFieldDefinitionModel and answers OperationResultModel \u2014 the entity defines no DELETE path."
9179
+ ],
9180
+ "deleteBoundary": {
9181
+ "available": false,
9182
+ "note": "the vendor defines no DELETE for user_defined_field_definitions (spec-derived) \u2014 a UDF definition cannot be removed or corrected through the API; deactivation is via isActive; hard cleanup is UI-only."
9183
+ }
9184
+ }
9185
+ },
9186
+ "deleteBoundary": {
9187
+ "note": "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.",
9188
+ "proof": "spec-derived"
9189
+ },
9190
+ "markerField": null
9191
+ },
9192
+ "user_defined_field_list_items": {
9193
+ "resource": "user_defined_field_list_items",
9194
+ "apiEntity": "UserDefinedFieldListItem",
9195
+ "kind": "entity",
9196
+ "path": "UserDefinedFieldListItems",
9197
+ "parentScoped": true,
9198
+ "tier": "extended",
9199
+ "workflowResource": false,
9200
+ "group": "B",
9201
+ "parent": {
9202
+ "resource": "user_defined_field_definitions",
9203
+ "segment": "ListItems",
9204
+ "field": "udfFieldId"
9205
+ },
9206
+ "children": [],
9207
+ "naturalKeys": {
9208
+ "hasSearch": false,
9209
+ "searchCovers": null,
9210
+ "findBy": []
9211
+ },
9212
+ "blindSurfaces": null,
9213
+ "zoneFacts": {
9214
+ "createGuidance": {
9215
+ "createOp": "user_defined_field_list_items.create",
9216
+ "parentScoped": true,
9217
+ "liveProvenPrefix": [],
9218
+ "unproven": true,
9219
+ "blocker": {
9220
+ "kind": "unknown",
9221
+ "message": "No create has been attempted against a tenant, so acceptance of the model body is unverified. The vendor documents the model body and answers OperationResultModel.",
9222
+ "remedy": "Attempt one create in a non-production tenant (dry run first); a refusal arrives as a vendor 500 whose errors[] text names the failing field."
9223
+ },
9224
+ "vendorEvidence": [
9225
+ "api-docs.json: POST /V1.0/UserDefinedFields/{parentId}/ListItems consumes definitions.UserDefinedFieldListItemModel and answers OperationResultModel \u2014 the standalone UserDefinedFieldListItems path is read-only and no ListItems path defines DELETE."
9226
+ ],
9227
+ "deleteBoundary": {
9228
+ "available": false,
9229
+ "note": "the vendor defines no DELETE for user_defined_field_list_items (spec-derived) \u2014 a picklist value cannot be removed or corrected through the API; deactivation is via isActive; hard cleanup is UI-only."
9230
+ }
9231
+ }
9232
+ },
9233
+ "deleteBoundary": {
9234
+ "note": "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.",
9235
+ "proof": "spec-derived"
9236
+ },
9237
+ "markerField": null
9238
+ },
9132
9239
  "version": {
9133
9240
  "resource": "version",
9134
9241
  "apiEntity": null,
@@ -9345,7 +9452,9 @@ var DELETE_BOUNDARY_NOTES = {
9345
9452
  "tax_regions": "the vendor defines no DELETE for tax_regions (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.",
9346
9453
  "ticket_checklist_libraries": "the vendor defines no DELETE for ticket_checklist_libraries (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.",
9347
9454
  "ticket_notes": "the vendor defines no DELETE for ticket_notes (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.",
9348
- "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."
9455
+ "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.",
9456
+ "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.",
9457
+ "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."
9349
9458
  };
9350
9459
  var RESPONSE_DRIFT_MARKERS = {
9351
9460
  "ticket_checklist_libraries": {
@@ -13221,10 +13330,48 @@ var CREATE_GUIDANCE = {
13221
13330
  "available": true,
13222
13331
  "note": null
13223
13332
  }
13333
+ },
13334
+ {
13335
+ "resource": "user_defined_field_definitions",
13336
+ "createOp": "user_defined_field_definitions.create",
13337
+ "parentScoped": false,
13338
+ "liveProvenPrefix": [],
13339
+ "unproven": true,
13340
+ "blocker": {
13341
+ "kind": "unknown",
13342
+ "message": "No create has been attempted against a tenant, so acceptance of the model body is unverified. The vendor documents the model body and answers OperationResultModel.",
13343
+ "remedy": "Attempt one create in a non-production tenant (dry run first); a refusal arrives as a vendor 500 whose errors[] text names the failing field."
13344
+ },
13345
+ "vendorEvidence": [
13346
+ "api-docs.json: POST /V1.0/UserDefinedFieldDefinitions consumes definitions.UserDefinedFieldDefinitionModel and answers OperationResultModel \u2014 the entity defines no DELETE path."
13347
+ ],
13348
+ "deleteBoundary": {
13349
+ "available": false,
13350
+ "note": "the vendor defines no DELETE for user_defined_field_definitions (spec-derived) \u2014 a UDF definition cannot be removed or corrected through the API; deactivation is via isActive; hard cleanup is UI-only."
13351
+ }
13352
+ },
13353
+ {
13354
+ "resource": "user_defined_field_list_items",
13355
+ "createOp": "user_defined_field_list_items.create",
13356
+ "parentScoped": true,
13357
+ "liveProvenPrefix": [],
13358
+ "unproven": true,
13359
+ "blocker": {
13360
+ "kind": "unknown",
13361
+ "message": "No create has been attempted against a tenant, so acceptance of the model body is unverified. The vendor documents the model body and answers OperationResultModel.",
13362
+ "remedy": "Attempt one create in a non-production tenant (dry run first); a refusal arrives as a vendor 500 whose errors[] text names the failing field."
13363
+ },
13364
+ "vendorEvidence": [
13365
+ "api-docs.json: POST /V1.0/UserDefinedFields/{parentId}/ListItems consumes definitions.UserDefinedFieldListItemModel and answers OperationResultModel \u2014 the standalone UserDefinedFieldListItems path is read-only and no ListItems path defines DELETE."
13366
+ ],
13367
+ "deleteBoundary": {
13368
+ "available": false,
13369
+ "note": "the vendor defines no DELETE for user_defined_field_list_items (spec-derived) \u2014 a picklist value cannot be removed or corrected through the API; deactivation is via isActive; hard cleanup is UI-only."
13370
+ }
13224
13371
  }
13225
13372
  ],
13226
13373
  "counts": {
13227
- "total": 97,
13374
+ "total": 99,
13228
13375
  "byKind": {
13229
13376
  "ok": 39,
13230
13377
  "blind-reference": 16,
@@ -13234,7 +13381,7 @@ var CREATE_GUIDANCE = {
13234
13381
  "resource-role-pair": 2,
13235
13382
  "delete-absent": 0,
13236
13383
  "non-mutable": 0,
13237
- "unknown": 17
13384
+ "unknown": 19
13238
13385
  }
13239
13386
  }
13240
13387
  };
@@ -13942,6 +14089,15 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
13942
14089
  ],
13943
14090
  "inventory_products": [
13944
14091
  "bin"
14092
+ ],
14093
+ "user_defined_field_definitions": [
14094
+ "description",
14095
+ "mergeVariableName",
14096
+ "name"
14097
+ ],
14098
+ "user_defined_field_list_items": [
14099
+ "valueForDisplay",
14100
+ "valueForExport"
13945
14101
  ]
13946
14102
  };
13947
14103
 
@@ -15886,7 +16042,9 @@ var MODEL_FIELD_SETS = {
15886
16042
  "tickets": ["id", "apiVendorID", "assignedResourceID", "assignedResourceRoleID", "billingCodeID", "changeApprovalBoard", "changeApprovalStatus", "changeApprovalType", "changeInfoField1", "changeInfoField2", "changeInfoField3", "changeInfoField4", "changeInfoField5", "companyID", "companyLocationID", "completedByResourceID", "completedDate", "configurationItemID", "contactID", "contractID", "contractServiceBundleID", "contractServiceID", "createDate", "createdByContactID", "creatorResourceID", "creatorType", "currentServiceThermometerRating", "description", "dueDateTime", "estimatedHours", "externalID", "firstResponseAssignedResourceID", "firstResponseDateTime", "firstResponseDueDateTime", "firstResponseInitiatingResourceID", "hoursToBeScheduled", "impersonatorCreatorResourceID", "isAssignedToComanaged", "issueType", "isVisibleToComanaged", "lastActivityDate", "lastActivityPersonType", "lastActivityResourceID", "lastCustomerNotificationDateTime", "lastCustomerVisibleActivityDateTime", "lastTrackedModificationDateTime", "monitorID", "monitorTypeID", "opportunityID", "organizationalLevelAssociationID", "previousServiceThermometerRating", "priority", "problemTicketId", "projectID", "purchaseOrderNumber", "queueID", "resolution", "resolutionPlanDateTime", "resolutionPlanDueDateTime", "resolvedDateTime", "resolvedDueDateTime", "rmaStatus", "rmaType", "rmmAlertID", "serviceLevelAgreementHasBeenMet", "serviceLevelAgreementID", "serviceLevelAgreementPausedNextEventHours", "serviceThermometerTemperature", "source", "status", "subIssueType", "ticketCategory", "ticketNumber", "ticketType", "title", "userDefinedFields"],
15887
16043
  "time_entries": ["id", "billingApprovalDateTime", "billingApprovalLevelMostRecent", "billingApprovalResourceID", "billingCodeID", "contractID", "contractServiceBundleID", "contractServiceID", "createDateTime", "creatorUserID", "dateWorked", "endDateTime", "hoursToBill", "hoursWorked", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "internalBillingCodeID", "internalNotes", "isInternalNotesVisibleToComanaged", "isNonBillable", "lastModifiedDateTime", "lastModifiedUserID", "offsetHours", "resourceID", "roleID", "showOnInvoice", "startDateTime", "summaryNotes", "taskID", "ticketID", "timeEntryType"],
15888
16044
  "time_entry_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "taskID", "ticketID", "timeEntryID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
15889
- "time_off_requests": ["id", "approvedDateTime", "approveRejectResourceID", "createdByResourceID", "createDateTime", "endTime", "hours", "impersonatorApproveRejectResourceID", "lastModifiedByResourceID", "lastModifiedDateTime", "lastApprovedLevel", "reason", "rejectReason", "requestDate", "resourceID", "startTime", "status", "timeOffRequestType", "soapParentPropertyId"]
16045
+ "time_off_requests": ["id", "approvedDateTime", "approveRejectResourceID", "createdByResourceID", "createDateTime", "endTime", "hours", "impersonatorApproveRejectResourceID", "lastModifiedByResourceID", "lastModifiedDateTime", "lastApprovedLevel", "reason", "rejectReason", "requestDate", "resourceID", "startTime", "status", "timeOffRequestType", "soapParentPropertyId"],
16046
+ "user_defined_field_definitions": ["id", "createDate", "crmToProjectUdfId", "dataType", "defaultValue", "description", "displayFormat", "isActive", "isEncrypted", "isFieldMapping", "isPrivate", "isProtected", "isRequired", "isVisibleToClientPortal", "mergeVariableName", "name", "numberOfDecimalPlaces", "sortOrder", "udfType"],
16047
+ "user_defined_field_list_items": ["id", "createDate", "isActive", "udfFieldId", "valueForDisplay", "valueForExport", "soapParentPropertyId"]
15890
16048
  };
15891
16049
  var MODEL_DATE_FIELDS = {
15892
16050
  "appointments": ["createDateTime", "endDateTime", "startDateTime", "updateDateTime"],
@@ -15948,7 +16106,9 @@ var MODEL_DATE_FIELDS = {
15948
16106
  "tickets": ["completedDate", "createDate", "dueDateTime", "firstResponseDateTime", "firstResponseDueDateTime", "lastActivityDate", "lastCustomerNotificationDateTime", "lastCustomerVisibleActivityDateTime", "lastTrackedModificationDateTime", "resolutionPlanDateTime", "resolutionPlanDueDateTime", "resolvedDateTime", "resolvedDueDateTime"],
15949
16107
  "time_entries": ["billingApprovalDateTime", "createDateTime", "dateWorked", "endDateTime", "lastModifiedDateTime", "startDateTime"],
15950
16108
  "time_entry_attachments": ["attachDate"],
15951
- "time_off_requests": ["approvedDateTime", "createDateTime", "endTime", "lastModifiedDateTime", "requestDate", "startTime"]
16109
+ "time_off_requests": ["approvedDateTime", "createDateTime", "endTime", "lastModifiedDateTime", "requestDate", "startTime"],
16110
+ "user_defined_field_definitions": ["createDate"],
16111
+ "user_defined_field_list_items": ["createDate"]
15952
16112
  };
15953
16113
 
15954
16114
  // src/resources/special/_shared/bounded-part.ts
@@ -19419,6 +19579,30 @@ var SIMPLE_RESOURCES = [
19419
19579
  ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
19420
19580
  helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19421
19581
  opForms: { get: "scoped", create: "scoped", delete: "scoped" }
19582
+ },
19583
+ {
19584
+ key: "user_defined_field_definitions",
19585
+ accessor: "userDefinedFieldDefinitions",
19586
+ resourcePath: "/V1.0/UserDefinedFieldDefinitions",
19587
+ deletable: false,
19588
+ udfCapable: false,
19589
+ collectionUpdate: true,
19590
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: true, delete: false, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
19591
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19592
+ opForms: { get: "global", create: "global", update: "global" }
19593
+ },
19594
+ {
19595
+ key: "user_defined_field_list_items",
19596
+ accessor: "userDefinedFieldListItems",
19597
+ resourcePath: "/V1.0/UserDefinedFieldListItems",
19598
+ parentScopedPath: "/V1.0/UserDefinedFields/{parentId}/ListItems",
19599
+ parentPath: "/V1.0/UserDefinedFieldDefinitions",
19600
+ parentField: "udfFieldId",
19601
+ deletable: false,
19602
+ udfCapable: false,
19603
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: true, delete: false, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
19604
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19605
+ opForms: { get: "scoped", create: "scoped", update: "scoped" }
19422
19606
  }
19423
19607
  ];
19424
19608
  var GenericResource = class extends BaseResource {