node-autotask 0.70.0 → 0.71.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 (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/MCP_TOOL_CATALOG.json +369 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +1697 -392
  5. package/dist/capabilities-data.js +1696 -391
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-YQX45JBG.cjs → chunk-4DSLRDIF.cjs} +33 -30
  9. package/dist/{chunk-3RANR2RY.js → chunk-4OR3XBIP.js} +291 -7
  10. package/dist/{chunk-MN5VLBCI.js → chunk-5COLIVBE.js} +2 -2
  11. package/dist/{chunk-KAZE4WC7.cjs → chunk-JLCHKCEB.cjs} +3 -3
  12. package/dist/{chunk-SCFB5MF3.js → chunk-LKJA57CH.js} +3 -3
  13. package/dist/{chunk-GVP2WW47.cjs → chunk-QJ327YI6.cjs} +177 -177
  14. package/dist/{chunk-YRRTE2NF.cjs → chunk-QQFF7X67.cjs} +296 -12
  15. package/dist/{chunk-TYUTIZWB.js → chunk-YKQ2KNQO.js} +5 -2
  16. package/dist/{index-CGW80Uzc.d.cts → index-CAXT5ZKT.d.cts} +6 -2
  17. package/dist/{index-COQEG55Q.d.cts → index-CM_SRgtH.d.cts} +209 -1
  18. package/dist/{index-COQEG55Q.d.ts → index-CM_SRgtH.d.ts} +209 -1
  19. package/dist/{index-By9Zw2Oc.d.ts → index-lGpxr4gY.d.ts} +6 -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 +51 -51
  25. package/dist/operations/index.d.cts +5 -5
  26. package/dist/operations/index.d.ts +5 -5
  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 +63 -2
  39. package/docs/RELEASING.md +11 -3
  40. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkKAZE4WC7_cjs = require('./chunk-KAZE4WC7.cjs');
3
+ var chunkJLCHKCEB_cjs = require('./chunk-JLCHKCEB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
8
8
  enumerable: true,
9
- get: function () { return chunkKAZE4WC7_cjs.CAPABILITY_PLAN_HASHES; }
9
+ get: function () { return chunkJLCHKCEB_cjs.CAPABILITY_PLAN_HASHES; }
10
10
  });
11
11
  Object.defineProperty(exports, "loadCapabilities", {
12
12
  enumerable: true,
13
- get: function () { return chunkKAZE4WC7_cjs.loadCapabilities; }
13
+ get: function () { return chunkJLCHKCEB_cjs.loadCapabilities; }
14
14
  });
15
15
  Object.defineProperty(exports, "loadCapabilityRecords", {
16
16
  enumerable: true,
17
- get: function () { return chunkKAZE4WC7_cjs.loadCapabilityRecords; }
17
+ get: function () { return chunkJLCHKCEB_cjs.loadCapabilityRecords; }
18
18
  });
@@ -1 +1 @@
1
- export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-SCFB5MF3.js';
1
+ export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-LKJA57CH.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkGVP2WW47_cjs = require('./chunk-GVP2WW47.cjs');
4
- var chunkYRRTE2NF_cjs = require('./chunk-YRRTE2NF.cjs');
3
+ var chunkQJ327YI6_cjs = require('./chunk-QJ327YI6.cjs');
4
+ var chunkQQFF7X67_cjs = require('./chunk-QQFF7X67.cjs');
5
5
 
6
6
  // src/client.ts
7
7
  var AutotaskClient = class {
@@ -11,6 +11,7 @@ var AutotaskClient = class {
11
11
  http;
12
12
  // [GENERATED:RESOURCE_ACCESSORS:START]
13
13
  appointments;
14
+ attachmentInfo;
14
15
  authenticateResource;
15
16
  billingCodes;
16
17
  billingItemApprovalLevels;
@@ -21,7 +22,9 @@ var AutotaskClient = class {
21
22
  classificationIcons;
22
23
  companies;
23
24
  companyAlerts;
25
+ companyAttachments;
24
26
  companyLocations;
27
+ companyNoteAttachments;
25
28
  companyNotes;
26
29
  companySiteConfigurations;
27
30
  companyWebhooks;
@@ -154,34 +157,34 @@ var AutotaskClient = class {
154
157
  * anything is wired. Construction issues NO request.
155
158
  */
156
159
  constructor(options) {
157
- this.config = chunkYRRTE2NF_cjs.resolveConfig(options);
158
- this.http = new chunkYRRTE2NF_cjs.HttpClient(this.config);
160
+ this.config = chunkQQFF7X67_cjs.resolveConfig(options);
161
+ this.http = new chunkQQFF7X67_cjs.HttpClient(this.config);
159
162
  this.http.client = this;
160
- for (const entry of chunkYRRTE2NF_cjs.SIMPLE_RESOURCES) {
161
- this[entry.accessor] = new chunkYRRTE2NF_cjs.GenericResource(this.http, entry, this.config.pageSize);
163
+ for (const entry of chunkQQFF7X67_cjs.SIMPLE_RESOURCES) {
164
+ this[entry.accessor] = new chunkQQFF7X67_cjs.GenericResource(this.http, entry, this.config.pageSize);
162
165
  }
163
- this.companies = new chunkYRRTE2NF_cjs.CompaniesResource(this.http, this.config.pageSize);
164
- this.configurationItems = new chunkGVP2WW47_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
165
- this.contacts = new chunkGVP2WW47_cjs.ContactsResource(this.http, this.config.pageSize);
166
- this.contracts = new chunkYRRTE2NF_cjs.ContractsResource(this.http, this.config.pageSize);
167
- this.inventoryProducts = new chunkGVP2WW47_cjs.InventoryProductsResource(this.http, this.config.pageSize);
168
- this.invoices = new chunkYRRTE2NF_cjs.InvoicesResource(this.http, this.config.pageSize);
169
- this.quotes = new chunkGVP2WW47_cjs.QuotesResource(this.http, this.config.pageSize);
170
- this.resourceTimeOffAdditional = new chunkGVP2WW47_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
171
- this.resourceTimeOffBalances = new chunkGVP2WW47_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
172
- this.resources = new chunkGVP2WW47_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
173
- this.serviceCalls = new chunkGVP2WW47_cjs.ServiceCallsResource(this.http, this.config.pageSize);
174
- this.ticketCharges = new chunkGVP2WW47_cjs.TicketChargesResource(this.http, this.config.pageSize);
175
- this.tickets = new chunkGVP2WW47_cjs.TicketsResource(this.http, this.config.pageSize);
176
- this.timeEntries = new chunkYRRTE2NF_cjs.TimeEntriesResource(this.http, this.config.pageSize);
177
- this.timeOffRequests = new chunkGVP2WW47_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
178
- this.authenticateResource = new chunkGVP2WW47_cjs.AuthenticateResource(this.http);
179
- this.entityInformation = new chunkGVP2WW47_cjs.EntityInformationResource(this.http);
180
- this.modules = new chunkGVP2WW47_cjs.ModulesResource(this.http);
181
- this.thresholdInformation = new chunkGVP2WW47_cjs.ThresholdInformationResource(this.http);
182
- this.version = new chunkGVP2WW47_cjs.VersionResource(this.http);
183
- this.versionInformation = new chunkGVP2WW47_cjs.VersionInformationResource(this.http);
184
- this.zoneInformation = new chunkGVP2WW47_cjs.ZoneInformationResource(this.http);
166
+ this.companies = new chunkQQFF7X67_cjs.CompaniesResource(this.http, this.config.pageSize);
167
+ this.configurationItems = new chunkQJ327YI6_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
168
+ this.contacts = new chunkQJ327YI6_cjs.ContactsResource(this.http, this.config.pageSize);
169
+ this.contracts = new chunkQQFF7X67_cjs.ContractsResource(this.http, this.config.pageSize);
170
+ this.inventoryProducts = new chunkQJ327YI6_cjs.InventoryProductsResource(this.http, this.config.pageSize);
171
+ this.invoices = new chunkQQFF7X67_cjs.InvoicesResource(this.http, this.config.pageSize);
172
+ this.quotes = new chunkQJ327YI6_cjs.QuotesResource(this.http, this.config.pageSize);
173
+ this.resourceTimeOffAdditional = new chunkQJ327YI6_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
174
+ this.resourceTimeOffBalances = new chunkQJ327YI6_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
175
+ this.resources = new chunkQJ327YI6_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
176
+ this.serviceCalls = new chunkQJ327YI6_cjs.ServiceCallsResource(this.http, this.config.pageSize);
177
+ this.ticketCharges = new chunkQJ327YI6_cjs.TicketChargesResource(this.http, this.config.pageSize);
178
+ this.tickets = new chunkQJ327YI6_cjs.TicketsResource(this.http, this.config.pageSize);
179
+ this.timeEntries = new chunkQQFF7X67_cjs.TimeEntriesResource(this.http, this.config.pageSize);
180
+ this.timeOffRequests = new chunkQJ327YI6_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
181
+ this.authenticateResource = new chunkQJ327YI6_cjs.AuthenticateResource(this.http);
182
+ this.entityInformation = new chunkQJ327YI6_cjs.EntityInformationResource(this.http);
183
+ this.modules = new chunkQJ327YI6_cjs.ModulesResource(this.http);
184
+ this.thresholdInformation = new chunkQJ327YI6_cjs.ThresholdInformationResource(this.http);
185
+ this.version = new chunkQJ327YI6_cjs.VersionResource(this.http);
186
+ this.versionInformation = new chunkQJ327YI6_cjs.VersionInformationResource(this.http);
187
+ this.zoneInformation = new chunkQJ327YI6_cjs.ZoneInformationResource(this.http);
185
188
  }
186
189
  /**
187
190
  * `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
@@ -215,10 +218,10 @@ var AutotaskClient = class {
215
218
  * parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
216
219
  */
217
220
  withSignal(signal, fn) {
218
- return chunkYRRTE2NF_cjs.runWithSignal(signal, fn);
221
+ return chunkQQFF7X67_cjs.runWithSignal(signal, fn);
219
222
  }
220
223
  async batch(fn, items, opts = {}) {
221
- return chunkYRRTE2NF_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
224
+ return chunkQQFF7X67_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
222
225
  }
223
226
  };
224
227
 
@@ -1,4 +1,4 @@
1
- import { loadCapabilityRecords } from './chunk-SCFB5MF3.js';
1
+ import { loadCapabilityRecords } from './chunk-LKJA57CH.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';
@@ -2395,6 +2395,22 @@ var RELATIONSHIP_MAP = {
2395
2395
  "delete": true
2396
2396
  }
2397
2397
  },
2398
+ {
2399
+ "resource": "company_attachments",
2400
+ "apiEntity": "CompanyAttachment",
2401
+ "parentField": "companyID",
2402
+ "parentSegment": "Attachments",
2403
+ "tier": "extended",
2404
+ "workflowResource": false,
2405
+ "specialOps": [],
2406
+ "searchCovers": null,
2407
+ "scopedOps": {
2408
+ "create": true,
2409
+ "query": true,
2410
+ "update": false,
2411
+ "delete": true
2412
+ }
2413
+ },
2398
2414
  {
2399
2415
  "resource": "company_locations",
2400
2416
  "apiEntity": "CompanyLocation",
@@ -2676,7 +2692,24 @@ var RELATIONSHIP_MAP = {
2676
2692
  "segment": "Notes",
2677
2693
  "field": "companyID"
2678
2694
  },
2679
- "children": [],
2695
+ "children": [
2696
+ {
2697
+ "resource": "company_note_attachments",
2698
+ "apiEntity": "CompanyNoteAttachment",
2699
+ "parentField": "companyNoteID",
2700
+ "parentSegment": "Attachments",
2701
+ "tier": "extended",
2702
+ "workflowResource": false,
2703
+ "specialOps": [],
2704
+ "searchCovers": null,
2705
+ "scopedOps": {
2706
+ "create": true,
2707
+ "query": true,
2708
+ "update": false,
2709
+ "delete": true
2710
+ }
2711
+ }
2712
+ ],
2680
2713
  "naturalKeys": {
2681
2714
  "hasSearch": true,
2682
2715
  "searchCovers": "name only (contains)",
@@ -2963,7 +2996,7 @@ var RELATIONSHIP_MAP = {
2963
2996
  "parent": {
2964
2997
  "resource": "configuration_items",
2965
2998
  "segment": "DnsRecords",
2966
- "field": "configurationItemID"
2999
+ "field": "installedProductID"
2967
3000
  },
2968
3001
  "children": [],
2969
3002
  "naturalKeys": {
@@ -3233,7 +3266,7 @@ var RELATIONSHIP_MAP = {
3233
3266
  {
3234
3267
  "resource": "configuration_item_dns_records",
3235
3268
  "apiEntity": "ConfigurationItemDnsRecord",
3236
- "parentField": "configurationItemID",
3269
+ "parentField": "installedProductID",
3237
3270
  "parentSegment": "DnsRecords",
3238
3271
  "tier": "extended",
3239
3272
  "workflowResource": false,
@@ -9500,6 +9533,137 @@ var RELATIONSHIP_MAP = {
9500
9533
  "zoneFacts": null,
9501
9534
  "deleteBoundary": null,
9502
9535
  "markerField": null
9536
+ },
9537
+ "attachment_info": {
9538
+ "resource": "attachment_info",
9539
+ "apiEntity": "AttachmentInfo",
9540
+ "kind": "entity",
9541
+ "path": "AttachmentInfo",
9542
+ "parentScoped": false,
9543
+ "tier": "extended",
9544
+ "workflowResource": false,
9545
+ "group": "A",
9546
+ "parent": null,
9547
+ "children": [],
9548
+ "naturalKeys": {
9549
+ "hasSearch": false,
9550
+ "searchCovers": null,
9551
+ "findBy": []
9552
+ },
9553
+ "blindSurfaces": null,
9554
+ "zoneFacts": null,
9555
+ "deleteBoundary": null,
9556
+ "markerField": null
9557
+ },
9558
+ "company_attachments": {
9559
+ "resource": "company_attachments",
9560
+ "apiEntity": "CompanyAttachment",
9561
+ "kind": "entity",
9562
+ "path": "CompanyAttachments",
9563
+ "parentScoped": true,
9564
+ "tier": "extended",
9565
+ "workflowResource": false,
9566
+ "group": "A",
9567
+ "parent": {
9568
+ "resource": "companies",
9569
+ "segment": "Attachments",
9570
+ "field": "companyID"
9571
+ },
9572
+ "children": [],
9573
+ "naturalKeys": {
9574
+ "hasSearch": false,
9575
+ "searchCovers": null,
9576
+ "findBy": []
9577
+ },
9578
+ "blindSurfaces": null,
9579
+ "zoneFacts": {
9580
+ "createGuidance": {
9581
+ "createOp": "company_attachments.create",
9582
+ "parentScoped": true,
9583
+ "liveProvenPrefix": [],
9584
+ "unproven": true,
9585
+ "blocker": {
9586
+ "kind": "unknown",
9587
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
9588
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying."
9589
+ },
9590
+ "requiresByValue": [
9591
+ {
9592
+ "field": "attachmentType",
9593
+ "value": "FILE_ATTACHMENT",
9594
+ "requires": {
9595
+ "allOf": [
9596
+ "data"
9597
+ ]
9598
+ }
9599
+ }
9600
+ ],
9601
+ "vendorEvidence": [
9602
+ "Specification: POST /V1.0/Companies/{parentId}/Attachments returns OperationResultModel. Official attachment guidance requires base64 data for FILE_ATTACHMENT. No live create was performed."
9603
+ ],
9604
+ "deleteBoundary": {
9605
+ "available": true,
9606
+ "note": null
9607
+ }
9608
+ }
9609
+ },
9610
+ "deleteBoundary": null,
9611
+ "markerField": null
9612
+ },
9613
+ "company_note_attachments": {
9614
+ "resource": "company_note_attachments",
9615
+ "apiEntity": "CompanyNoteAttachment",
9616
+ "kind": "entity",
9617
+ "path": "CompanyNoteAttachments",
9618
+ "parentScoped": true,
9619
+ "tier": "extended",
9620
+ "workflowResource": false,
9621
+ "group": "A",
9622
+ "parent": {
9623
+ "resource": "company_notes",
9624
+ "segment": "Attachments",
9625
+ "field": "companyNoteID"
9626
+ },
9627
+ "children": [],
9628
+ "naturalKeys": {
9629
+ "hasSearch": false,
9630
+ "searchCovers": null,
9631
+ "findBy": []
9632
+ },
9633
+ "blindSurfaces": null,
9634
+ "zoneFacts": {
9635
+ "createGuidance": {
9636
+ "createOp": "company_note_attachments.create",
9637
+ "parentScoped": true,
9638
+ "liveProvenPrefix": [],
9639
+ "unproven": true,
9640
+ "blocker": {
9641
+ "kind": "unknown",
9642
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
9643
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying."
9644
+ },
9645
+ "requiresByValue": [
9646
+ {
9647
+ "field": "attachmentType",
9648
+ "value": "FILE_ATTACHMENT",
9649
+ "requires": {
9650
+ "allOf": [
9651
+ "data"
9652
+ ]
9653
+ }
9654
+ }
9655
+ ],
9656
+ "vendorEvidence": [
9657
+ "Specification: POST /V1.0/CompanyNotes/{parentId}/Attachments returns OperationResultModel. Official attachment guidance requires base64 data for FILE_ATTACHMENT. No live create was performed."
9658
+ ],
9659
+ "deleteBoundary": {
9660
+ "available": true,
9661
+ "note": null
9662
+ }
9663
+ }
9664
+ },
9665
+ "deleteBoundary": null,
9666
+ "markerField": null
9503
9667
  }
9504
9668
  };
9505
9669
  var BLIND_SURFACE_STAMPS = {
@@ -11207,6 +11371,36 @@ var CREATE_GUIDANCE = {
11207
11371
  "note": null
11208
11372
  }
11209
11373
  },
11374
+ {
11375
+ "resource": "company_attachments",
11376
+ "createOp": "company_attachments.create",
11377
+ "parentScoped": true,
11378
+ "liveProvenPrefix": [],
11379
+ "unproven": true,
11380
+ "blocker": {
11381
+ "kind": "unknown",
11382
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
11383
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying."
11384
+ },
11385
+ "vendorEvidence": [
11386
+ "Specification: POST /V1.0/Companies/{parentId}/Attachments returns OperationResultModel. Official attachment guidance requires base64 data for FILE_ATTACHMENT. No live create was performed."
11387
+ ],
11388
+ "deleteBoundary": {
11389
+ "available": true,
11390
+ "note": null
11391
+ },
11392
+ "requiresByValue": [
11393
+ {
11394
+ "field": "attachmentType",
11395
+ "value": "FILE_ATTACHMENT",
11396
+ "requires": {
11397
+ "allOf": [
11398
+ "data"
11399
+ ]
11400
+ }
11401
+ }
11402
+ ]
11403
+ },
11210
11404
  {
11211
11405
  "resource": "company_locations",
11212
11406
  "createOp": "company_locations.create",
@@ -11224,6 +11418,36 @@ var CREATE_GUIDANCE = {
11224
11418
  "note": null
11225
11419
  }
11226
11420
  },
11421
+ {
11422
+ "resource": "company_note_attachments",
11423
+ "createOp": "company_note_attachments.create",
11424
+ "parentScoped": true,
11425
+ "liveProvenPrefix": [],
11426
+ "unproven": true,
11427
+ "blocker": {
11428
+ "kind": "unknown",
11429
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
11430
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying."
11431
+ },
11432
+ "vendorEvidence": [
11433
+ "Specification: POST /V1.0/CompanyNotes/{parentId}/Attachments returns OperationResultModel. Official attachment guidance requires base64 data for FILE_ATTACHMENT. No live create was performed."
11434
+ ],
11435
+ "deleteBoundary": {
11436
+ "available": true,
11437
+ "note": null
11438
+ },
11439
+ "requiresByValue": [
11440
+ {
11441
+ "field": "attachmentType",
11442
+ "value": "FILE_ATTACHMENT",
11443
+ "requires": {
11444
+ "allOf": [
11445
+ "data"
11446
+ ]
11447
+ }
11448
+ }
11449
+ ]
11450
+ },
11227
11451
  {
11228
11452
  "resource": "company_notes",
11229
11453
  "createOp": "company_notes.create",
@@ -13530,7 +13754,7 @@ var CREATE_GUIDANCE = {
13530
13754
  }
13531
13755
  ],
13532
13756
  "counts": {
13533
- "total": 99,
13757
+ "total": 101,
13534
13758
  "byKind": {
13535
13759
  "ok": 41,
13536
13760
  "blind-reference": 16,
@@ -13540,7 +13764,7 @@ var CREATE_GUIDANCE = {
13540
13764
  "resource-role-pair": 2,
13541
13765
  "delete-absent": 0,
13542
13766
  "non-mutable": 0,
13543
- "unknown": 23
13767
+ "unknown": 25
13544
13768
  }
13545
13769
  }
13546
13770
  };
@@ -14257,6 +14481,15 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
14257
14481
  "user_defined_field_list_items": [
14258
14482
  "valueForDisplay",
14259
14483
  "valueForExport"
14484
+ ],
14485
+ "attachment_info": [
14486
+ "title"
14487
+ ],
14488
+ "company_attachments": [
14489
+ "title"
14490
+ ],
14491
+ "company_note_attachments": [
14492
+ "title"
14260
14493
  ]
14261
14494
  };
14262
14495
 
@@ -17245,6 +17478,7 @@ function cachedMetadataGet(http, resource, kind, path, operation, unwrap, fresh
17245
17478
  // src/field-sets.ts
17246
17479
  var MODEL_FIELD_SETS = {
17247
17480
  "appointments": ["id", "createDateTime", "creatorResourceID", "description", "endDateTime", "resourceID", "startDateTime", "title", "updateDateTime"],
17481
+ "attachment_info": ["id", "articleID", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "companyID", "companyNoteID", "configurationItemID", "configurationItemNoteID", "contentType", "contractID", "contractNoteID", "creatorType", "documentID", "expenseItemID", "expenseReportID", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentAttachmentID", "parentID", "parentType", "projectID", "projectNoteID", "publish", "resourceID", "salesOrderID", "taskID", "taskNoteID", "ticketID", "ticketNoteID", "timeEntryID", "title", "soapParentPropertyId"],
17248
17482
  "billing_codes": ["id", "afterHoursWorkType", "billingCodeType", "department", "description", "externalNumber", "generalLedgerAccount", "isActive", "isExcludedFromNewContracts", "markupRate", "name", "taxCategoryID", "unitCost", "unitPrice", "useType"],
17249
17483
  "billing_item_approval_levels": ["id", "approvalDateTime", "approvalLevel", "approvalResourceID", "timeEntryID"],
17250
17484
  "billing_items": ["id", "accountManagerWhenApprovedID", "billingCodeID", "billingItemType", "companyID", "configurationItemID", "contractBlockID", "contractChargeID", "contractID", "contractServiceAdjustmentID", "contractServiceBundleAdjustmentID", "contractServiceBundleID", "contractServiceBundlePeriodID", "contractServiceID", "contractServicePeriodID", "description", "expenseItemID", "extendedPrice", "internalCurrencyExtendedPrice", "internalCurrencyRate", "internalCurrencyTaxDollars", "internalCurrencyTotalAmount", "invoiceID", "itemApproverID", "itemDate", "itemName", "lineItemFullDescription", "lineItemGroupDescription", "milestoneID", "nonBillable", "organizationalLevelAssociationID", "ourCost", "postedDate", "postedOnTime", "projectChargeID", "projectID", "purchaseOrderNumber", "quantity", "rate", "roleID", "serviceBundleID", "serviceID", "sortOrderID", "subType", "taskID", "taxDollars", "ticketChargeID", "ticketID", "timeEntryID", "totalAmount", "vendorID", "webServiceDate"],
@@ -17254,7 +17488,9 @@ var MODEL_FIELD_SETS = {
17254
17488
  "classification_icons": ["id", "description", "isActive", "isSystem", "name", "relativeUrl"],
17255
17489
  "companies": ["id", "additionalAddressInformation", "address1", "address2", "alternatePhone1", "alternatePhone2", "apiVendorID", "assetValue", "billToCompanyLocationID", "billToAdditionalAddressInformation", "billingAddress1", "billingAddress2", "billToAddressToUse", "billToAttention", "billToCity", "billToCountryID", "billToState", "billToZipCode", "city", "classification", "companyCategoryID", "companyName", "companyNumber", "companyType", "competitorID", "countryID", "createDate", "createdByResourceID", "currencyID", "fax", "impersonatorCreatorResourceID", "invoiceEmailMessageID", "invoiceMethod", "invoiceNonContractItemsToParentCompany", "invoiceTemplateID", "isActive", "isClientPortalActive", "isEnabledForComanaged", "isSample", "isTaskFireActive", "isTaxExempt", "lastActivityDate", "lastTrackedModifiedDateTime", "marketSegmentID", "ownerResourceID", "parentCompanyID", "phone", "postalCode", "purchaseOrderTemplateID", "quoteEmailMessageID", "quoteTemplateID", "sicCode", "state", "stockMarket", "stockSymbol", "surveyCompanyRating", "taxID", "taxRegionID", "territoryID", "webAddress", "userDefinedFields"],
17256
17490
  "company_alerts": ["id", "alertText", "alertTypeID", "companyID", "soapParentPropertyId"],
17491
+ "company_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "companyID", "companyNoteID", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentAttachmentID", "parentID", "publish", "salesOrderID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
17257
17492
  "company_locations": ["id", "address1", "address2", "alternatePhone1", "alternatePhone2", "city", "companyID", "countryID", "description", "fax", "isActive", "isPrimary", "isTaxExempt", "overrideCompanyTaxSettings", "name", "phone", "postalCode", "roundtripDistance", "state", "taxRegionID", "soapParentPropertyId"],
17493
+ "company_note_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "companyID", "companyNoteID", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "salesOrderID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
17258
17494
  "company_notes": ["id", "actionType", "assignedResourceID", "companyID", "completedDateTime", "contactID", "createDateTime", "endDateTime", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "lastModifiedDate", "name", "note", "opportunityID", "startDateTime", "soapParentPropertyId"],
17259
17495
  "company_site_configurations": ["id", "companyID", "locationName", "soapParentPropertyId", "userDefinedFields"],
17260
17496
  "company_webhooks": ["id", "deactivationUrl", "isActive", "isReady", "isSubscribedToCreateEvents", "isSubscribedToDeleteEvents", "isSubscribedToUpdateEvents", "name", "notificationEmailAddress", "ownerResourceID", "secretKey", "sendThresholdExceededNotification", "webhookGUID", "webhookUrl"],
@@ -17374,9 +17610,12 @@ var MODEL_FIELD_SETS = {
17374
17610
  };
17375
17611
  var MODEL_DATE_FIELDS = {
17376
17612
  "appointments": ["createDateTime", "endDateTime", "startDateTime", "updateDateTime"],
17613
+ "attachment_info": ["attachDate"],
17377
17614
  "billing_item_approval_levels": ["approvalDateTime"],
17378
17615
  "billing_items": ["itemDate", "postedDate", "postedOnTime", "webServiceDate"],
17379
17616
  "companies": ["createDate", "lastActivityDate", "lastTrackedModifiedDateTime"],
17617
+ "company_attachments": ["attachDate"],
17618
+ "company_note_attachments": ["attachDate"],
17380
17619
  "company_notes": ["completedDateTime", "createDateTime", "endDateTime", "lastModifiedDate", "startDateTime"],
17381
17620
  "configuration_item_billing_product_associations": ["effectiveDate", "expirationDate"],
17382
17621
  "configuration_item_dns_records": ["createDateTime"],
@@ -19559,6 +19798,16 @@ var SIMPLE_RESOURCES = [
19559
19798
  helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19560
19799
  opForms: { get: "global", create: "global", update: "global", delete: "global" }
19561
19800
  },
19801
+ {
19802
+ key: "attachment_info",
19803
+ accessor: "attachmentInfo",
19804
+ resourcePath: "/V1.0/AttachmentInfo",
19805
+ deletable: false,
19806
+ udfCapable: false,
19807
+ ops: { query: true, queryAll: false, count: true, get: true, create: false, update: false, delete: false, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
19808
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19809
+ opForms: { get: "global" }
19810
+ },
19562
19811
  {
19563
19812
  key: "billing_codes",
19564
19813
  accessor: "billingCodes",
@@ -19650,6 +19899,20 @@ var SIMPLE_RESOURCES = [
19650
19899
  helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19651
19900
  opForms: { get: "scoped", create: "scoped", update: "scoped", delete: "scoped" }
19652
19901
  },
19902
+ {
19903
+ key: "company_attachments",
19904
+ accessor: "companyAttachments",
19905
+ resourcePath: "/V1.0/CompanyAttachments",
19906
+ parentScopedPath: "/V1.0/Companies/{parentId}/Attachments",
19907
+ parentPath: "/V1.0/Companies",
19908
+ parentField: "companyID",
19909
+ deletable: true,
19910
+ udfCapable: false,
19911
+ attachmentGet: true,
19912
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
19913
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19914
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
19915
+ },
19653
19916
  {
19654
19917
  key: "company_locations",
19655
19918
  accessor: "companyLocations",
@@ -19664,6 +19927,20 @@ var SIMPLE_RESOURCES = [
19664
19927
  helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19665
19928
  opForms: { get: "scoped", create: "scoped", update: "scoped", delete: "scoped" }
19666
19929
  },
19930
+ {
19931
+ key: "company_note_attachments",
19932
+ accessor: "companyNoteAttachments",
19933
+ resourcePath: "/V1.0/CompanyNoteAttachments",
19934
+ parentScopedPath: "/V1.0/CompanyNotes/{parentId}/Attachments",
19935
+ parentPath: "/V1.0/CompanyNotes",
19936
+ parentField: "companyNoteID",
19937
+ deletable: true,
19938
+ udfCapable: false,
19939
+ attachmentGet: true,
19940
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
19941
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
19942
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
19943
+ },
19667
19944
  {
19668
19945
  key: "company_notes",
19669
19946
  accessor: "companyNotes",
@@ -19750,7 +20027,7 @@ var SIMPLE_RESOURCES = [
19750
20027
  resourcePath: "/V1.0/ConfigurationItemDnsRecords",
19751
20028
  parentScopedPath: "/V1.0/ConfigurationItems/{parentId}/DnsRecords",
19752
20029
  parentPath: "/V1.0/ConfigurationItems",
19753
- parentField: "configurationItemID",
20030
+ parentField: "installedProductID",
19754
20031
  deletable: true,
19755
20032
  udfCapable: false,
19756
20033
  ops: { query: true, queryAll: false, count: true, get: true, create: false, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
@@ -21000,6 +21277,12 @@ var SIMPLE_RESOURCES = [
21000
21277
  var GenericResource = class extends BaseResource {
21001
21278
  constructor(http, config, pageSize) {
21002
21279
  super(http, config, pageSize);
21280
+ if (["company_attachments", "company_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
21281
+ throw new OperationNotSupportedError(config.key, "getUdfInfo");
21282
+ };
21283
+ if (config.ops?.create === false || config.key === "company_attachments") this.createIfNotExists = async () => {
21284
+ throw new OperationNotSupportedError(config.key, "createIfNotExists");
21285
+ };
21003
21286
  }
21004
21287
  /** #293 QA F2: the superset exposes every generic method, but a row whose ops/helpers
21005
21288
  * flags mark an op absent (the plain entities) refuses it client-side, pre-wire — the
@@ -21188,6 +21471,7 @@ var GenericResource = class extends BaseResource {
21188
21471
  }
21189
21472
  /** Download the attachment bytes (GET .../{id}/data; node-proven path, quirk #9) → Buffer. */
21190
21473
  async download(parentId, id) {
21474
+ this.requireOp("download");
21191
21475
  if (this.config.attachmentGet !== true) throw new OperationNotSupportedError(this.config.key, "download");
21192
21476
  return this.downloadScoped(parentId, id);
21193
21477
  }
@@ -1,5 +1,5 @@
1
- import { GenericResource, readTasks, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-3RANR2RY.js';
2
- import { loadCapabilityRecords } from './chunk-SCFB5MF3.js';
1
+ import { GenericResource, readTasks, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-4OR3XBIP.js';
2
+ import { loadCapabilityRecords } from './chunk-LKJA57CH.js';
3
3
 
4
4
  // src/resources/special/configuration_items.ts
5
5
  async function fetchRecord(http, path, label, readOpts) {
@@ -2,9 +2,9 @@
2
2
 
3
3
  // src/capabilities.ts
4
4
  var CAPABILITY_PLAN_HASHES = {
5
- "B": "959981d335cfd184d8b4e58074d1ab6997b2db87a62683ed13e99c149f8cd4fa",
6
- "A": "959981d335cfd184d8b4e58074d1ab6997b2db87a62683ed13e99c149f8cd4fa",
7
- "operations": "959981d335cfd184d8b4e58074d1ab6997b2db87a62683ed13e99c149f8cd4fa"
5
+ "B": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157",
6
+ "A": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157",
7
+ "operations": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157"
8
8
  };
9
9
  var cached = null;
10
10
  function loadCapabilities() {
@@ -1,8 +1,8 @@
1
1
  // src/capabilities.ts
2
2
  var CAPABILITY_PLAN_HASHES = {
3
- "B": "959981d335cfd184d8b4e58074d1ab6997b2db87a62683ed13e99c149f8cd4fa",
4
- "A": "959981d335cfd184d8b4e58074d1ab6997b2db87a62683ed13e99c149f8cd4fa",
5
- "operations": "959981d335cfd184d8b4e58074d1ab6997b2db87a62683ed13e99c149f8cd4fa"
3
+ "B": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157",
4
+ "A": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157",
5
+ "operations": "275fdf2fd6712f9384c1a65f98c5faf1fda9695475ffbdf35c08e574c18b4157"
6
6
  };
7
7
  var cached = null;
8
8
  function loadCapabilities() {