node-autotask 0.79.0 → 0.81.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 +12 -0
  2. package/MCP_TOOL_CATALOG.json +265 -9
  3. package/README.md +1 -1
  4. package/capabilities.json +959 -7
  5. package/dist/capabilities-data.js +958 -6
  6. package/dist/capabilities.cjs +4 -4
  7. package/dist/capabilities.js +1 -1
  8. package/dist/{chunk-GJU4DJ6H.js → chunk-5MJZ554M.js} +3 -3
  9. package/dist/{chunk-75TQWC3M.cjs → chunk-6HMGV3MY.cjs} +32 -30
  10. package/dist/{chunk-YK32RN77.js → chunk-ACF32I5D.js} +296 -6
  11. package/dist/{chunk-EEGAMP4D.cjs → chunk-KKUBJRO3.cjs} +199 -199
  12. package/dist/{chunk-MQ2DXOZW.js → chunk-LCUUFTYD.js} +2 -2
  13. package/dist/{chunk-2YFX77XI.cjs → chunk-MR5TGVHR.cjs} +301 -11
  14. package/dist/{chunk-XJQS3FBA.cjs → chunk-PLERXELA.cjs} +3 -3
  15. package/dist/{chunk-XIPZDDZS.js → chunk-X7G4W5DF.js} +4 -2
  16. package/dist/{index-DBz-dqAY.d.cts → index-BxPqypDD.d.cts} +4 -2
  17. package/dist/{index-DS3jnPiq.d.ts → index-DswDMDNH.d.ts} +4 -2
  18. package/dist/{index-BGFWqM2_.d.cts → index-lj8ocwxy.d.cts} +91 -1
  19. package/dist/{index-BGFWqM2_.d.ts → index-lj8ocwxy.d.ts} +91 -1
  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 +4 -4
  26. package/dist/operations/index.d.ts +4 -4
  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 +4 -2
  39. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkXJQS3FBA_cjs = require('./chunk-XJQS3FBA.cjs');
3
+ var chunkPLERXELA_cjs = require('./chunk-PLERXELA.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
8
8
  enumerable: true,
9
- get: function () { return chunkXJQS3FBA_cjs.CAPABILITY_PLAN_HASHES; }
9
+ get: function () { return chunkPLERXELA_cjs.CAPABILITY_PLAN_HASHES; }
10
10
  });
11
11
  Object.defineProperty(exports, "loadCapabilities", {
12
12
  enumerable: true,
13
- get: function () { return chunkXJQS3FBA_cjs.loadCapabilities; }
13
+ get: function () { return chunkPLERXELA_cjs.loadCapabilities; }
14
14
  });
15
15
  Object.defineProperty(exports, "loadCapabilityRecords", {
16
16
  enumerable: true,
17
- get: function () { return chunkXJQS3FBA_cjs.loadCapabilityRecords; }
17
+ get: function () { return chunkPLERXELA_cjs.loadCapabilityRecords; }
18
18
  });
@@ -1 +1 @@
1
- export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-GJU4DJ6H.js';
1
+ export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-5MJZ554M.js';
@@ -1,8 +1,8 @@
1
1
  // src/capabilities.ts
2
2
  var CAPABILITY_PLAN_HASHES = {
3
- "B": "8adb69f6f40586db84dac8a8f2a3fe134183f3d47a804ee8d7fa50f88b973e83",
4
- "A": "8adb69f6f40586db84dac8a8f2a3fe134183f3d47a804ee8d7fa50f88b973e83",
5
- "operations": "8adb69f6f40586db84dac8a8f2a3fe134183f3d47a804ee8d7fa50f88b973e83"
3
+ "B": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad",
4
+ "A": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad",
5
+ "operations": "3ad65c80be0b2edbfb3ea25f2f82f34e41fb1e047a0d2da526a34c5d28de6bad"
6
6
  };
7
7
  var cached = null;
8
8
  function loadCapabilities() {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEEGAMP4D_cjs = require('./chunk-EEGAMP4D.cjs');
4
- var chunk2YFX77XI_cjs = require('./chunk-2YFX77XI.cjs');
3
+ var chunkKKUBJRO3_cjs = require('./chunk-KKUBJRO3.cjs');
4
+ var chunkMR5TGVHR_cjs = require('./chunk-MR5TGVHR.cjs');
5
5
 
6
6
  // src/client.ts
7
7
  var AutotaskClient = class {
@@ -54,6 +54,7 @@ var AutotaskClient = class {
54
54
  contractExclusionSetExcludedWorkTypes;
55
55
  contractExclusionSets;
56
56
  contractMilestones;
57
+ contractNoteAttachments;
57
58
  contractNotes;
58
59
  contractRates;
59
60
  contractRetainers;
@@ -92,6 +93,7 @@ var AutotaskClient = class {
92
93
  productVendors;
93
94
  projectAttachments;
94
95
  projectCharges;
96
+ projectNoteAttachments;
95
97
  projectNotes;
96
98
  projects;
97
99
  purchaseApprovals;
@@ -164,34 +166,34 @@ var AutotaskClient = class {
164
166
  * anything is wired. Construction issues NO request.
165
167
  */
166
168
  constructor(options) {
167
- this.config = chunk2YFX77XI_cjs.resolveConfig(options);
168
- this.http = new chunk2YFX77XI_cjs.HttpClient(this.config);
169
+ this.config = chunkMR5TGVHR_cjs.resolveConfig(options);
170
+ this.http = new chunkMR5TGVHR_cjs.HttpClient(this.config);
169
171
  this.http.client = this;
170
- for (const entry of chunk2YFX77XI_cjs.SIMPLE_RESOURCES) {
171
- this[entry.accessor] = new chunk2YFX77XI_cjs.GenericResource(this.http, entry, this.config.pageSize);
172
+ for (const entry of chunkMR5TGVHR_cjs.SIMPLE_RESOURCES) {
173
+ this[entry.accessor] = new chunkMR5TGVHR_cjs.GenericResource(this.http, entry, this.config.pageSize);
172
174
  }
173
- this.companies = new chunk2YFX77XI_cjs.CompaniesResource(this.http, this.config.pageSize);
174
- this.configurationItems = new chunkEEGAMP4D_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
175
- this.contacts = new chunkEEGAMP4D_cjs.ContactsResource(this.http, this.config.pageSize);
176
- this.contracts = new chunk2YFX77XI_cjs.ContractsResource(this.http, this.config.pageSize);
177
- this.inventoryProducts = new chunkEEGAMP4D_cjs.InventoryProductsResource(this.http, this.config.pageSize);
178
- this.invoices = new chunk2YFX77XI_cjs.InvoicesResource(this.http, this.config.pageSize);
179
- this.quotes = new chunkEEGAMP4D_cjs.QuotesResource(this.http, this.config.pageSize);
180
- this.resourceTimeOffAdditional = new chunkEEGAMP4D_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
181
- this.resourceTimeOffBalances = new chunkEEGAMP4D_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
182
- this.resources = new chunkEEGAMP4D_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
183
- this.serviceCalls = new chunkEEGAMP4D_cjs.ServiceCallsResource(this.http, this.config.pageSize);
184
- this.ticketCharges = new chunkEEGAMP4D_cjs.TicketChargesResource(this.http, this.config.pageSize);
185
- this.tickets = new chunkEEGAMP4D_cjs.TicketsResource(this.http, this.config.pageSize);
186
- this.timeEntries = new chunk2YFX77XI_cjs.TimeEntriesResource(this.http, this.config.pageSize);
187
- this.timeOffRequests = new chunkEEGAMP4D_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
188
- this.authenticateResource = new chunkEEGAMP4D_cjs.AuthenticateResource(this.http);
189
- this.entityInformation = new chunkEEGAMP4D_cjs.EntityInformationResource(this.http);
190
- this.modules = new chunkEEGAMP4D_cjs.ModulesResource(this.http);
191
- this.thresholdInformation = new chunkEEGAMP4D_cjs.ThresholdInformationResource(this.http);
192
- this.version = new chunkEEGAMP4D_cjs.VersionResource(this.http);
193
- this.versionInformation = new chunkEEGAMP4D_cjs.VersionInformationResource(this.http);
194
- this.zoneInformation = new chunkEEGAMP4D_cjs.ZoneInformationResource(this.http);
175
+ this.companies = new chunkMR5TGVHR_cjs.CompaniesResource(this.http, this.config.pageSize);
176
+ this.configurationItems = new chunkKKUBJRO3_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
177
+ this.contacts = new chunkKKUBJRO3_cjs.ContactsResource(this.http, this.config.pageSize);
178
+ this.contracts = new chunkMR5TGVHR_cjs.ContractsResource(this.http, this.config.pageSize);
179
+ this.inventoryProducts = new chunkKKUBJRO3_cjs.InventoryProductsResource(this.http, this.config.pageSize);
180
+ this.invoices = new chunkMR5TGVHR_cjs.InvoicesResource(this.http, this.config.pageSize);
181
+ this.quotes = new chunkKKUBJRO3_cjs.QuotesResource(this.http, this.config.pageSize);
182
+ this.resourceTimeOffAdditional = new chunkKKUBJRO3_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
183
+ this.resourceTimeOffBalances = new chunkKKUBJRO3_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
184
+ this.resources = new chunkKKUBJRO3_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
185
+ this.serviceCalls = new chunkKKUBJRO3_cjs.ServiceCallsResource(this.http, this.config.pageSize);
186
+ this.ticketCharges = new chunkKKUBJRO3_cjs.TicketChargesResource(this.http, this.config.pageSize);
187
+ this.tickets = new chunkKKUBJRO3_cjs.TicketsResource(this.http, this.config.pageSize);
188
+ this.timeEntries = new chunkMR5TGVHR_cjs.TimeEntriesResource(this.http, this.config.pageSize);
189
+ this.timeOffRequests = new chunkKKUBJRO3_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
190
+ this.authenticateResource = new chunkKKUBJRO3_cjs.AuthenticateResource(this.http);
191
+ this.entityInformation = new chunkKKUBJRO3_cjs.EntityInformationResource(this.http);
192
+ this.modules = new chunkKKUBJRO3_cjs.ModulesResource(this.http);
193
+ this.thresholdInformation = new chunkKKUBJRO3_cjs.ThresholdInformationResource(this.http);
194
+ this.version = new chunkKKUBJRO3_cjs.VersionResource(this.http);
195
+ this.versionInformation = new chunkKKUBJRO3_cjs.VersionInformationResource(this.http);
196
+ this.zoneInformation = new chunkKKUBJRO3_cjs.ZoneInformationResource(this.http);
195
197
  }
196
198
  /**
197
199
  * `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
@@ -225,10 +227,10 @@ var AutotaskClient = class {
225
227
  * parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
226
228
  */
227
229
  withSignal(signal, fn) {
228
- return chunk2YFX77XI_cjs.runWithSignal(signal, fn);
230
+ return chunkMR5TGVHR_cjs.runWithSignal(signal, fn);
229
231
  }
230
232
  async batch(fn, items, opts = {}) {
231
- return chunk2YFX77XI_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
233
+ return chunkMR5TGVHR_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
232
234
  }
233
235
  };
234
236
 
@@ -1,4 +1,4 @@
1
- import { loadCapabilityRecords } from './chunk-GJU4DJ6H.js';
1
+ import { loadCapabilityRecords } from './chunk-5MJZ554M.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';
@@ -4232,7 +4232,24 @@ var RELATIONSHIP_MAP = {
4232
4232
  "segment": "Notes",
4233
4233
  "field": "contractID"
4234
4234
  },
4235
- "children": [],
4235
+ "children": [
4236
+ {
4237
+ "resource": "contract_note_attachments",
4238
+ "apiEntity": "ContractNoteAttachment",
4239
+ "parentField": "contractNoteID",
4240
+ "parentSegment": "Attachments",
4241
+ "tier": "extended",
4242
+ "workflowResource": false,
4243
+ "specialOps": [],
4244
+ "searchCovers": null,
4245
+ "scopedOps": {
4246
+ "create": true,
4247
+ "query": true,
4248
+ "update": false,
4249
+ "delete": true
4250
+ }
4251
+ }
4252
+ ],
4236
4253
  "naturalKeys": {
4237
4254
  "hasSearch": false,
4238
4255
  "searchCovers": null,
@@ -6123,7 +6140,24 @@ var RELATIONSHIP_MAP = {
6123
6140
  "segment": "Notes",
6124
6141
  "field": "projectID"
6125
6142
  },
6126
- "children": [],
6143
+ "children": [
6144
+ {
6145
+ "resource": "project_note_attachments",
6146
+ "apiEntity": "ProjectNoteAttachment",
6147
+ "parentField": "projectNoteID",
6148
+ "parentSegment": "Attachments",
6149
+ "tier": "extended",
6150
+ "workflowResource": false,
6151
+ "specialOps": [],
6152
+ "searchCovers": null,
6153
+ "scopedOps": {
6154
+ "create": true,
6155
+ "query": true,
6156
+ "update": false,
6157
+ "delete": true
6158
+ }
6159
+ }
6160
+ ],
6127
6161
  "naturalKeys": {
6128
6162
  "hasSearch": false,
6129
6163
  "searchCovers": null,
@@ -10238,6 +10272,138 @@ var RELATIONSHIP_MAP = {
10238
10272
  },
10239
10273
  "deleteBoundary": null,
10240
10274
  "markerField": null
10275
+ },
10276
+ "project_note_attachments": {
10277
+ "resource": "project_note_attachments",
10278
+ "apiEntity": "ProjectNoteAttachment",
10279
+ "kind": "entity",
10280
+ "path": "ProjectNoteAttachments",
10281
+ "parentScoped": true,
10282
+ "tier": "extended",
10283
+ "workflowResource": false,
10284
+ "group": "A",
10285
+ "parent": {
10286
+ "resource": "project_notes",
10287
+ "segment": "Attachments",
10288
+ "field": "projectNoteID"
10289
+ },
10290
+ "children": [],
10291
+ "naturalKeys": {
10292
+ "hasSearch": false,
10293
+ "searchCovers": null,
10294
+ "findBy": []
10295
+ },
10296
+ "blindSurfaces": null,
10297
+ "zoneFacts": {
10298
+ "createGuidance": {
10299
+ "createOp": "project_note_attachments.create",
10300
+ "parentScoped": true,
10301
+ "liveProvenPrefix": [],
10302
+ "unproven": true,
10303
+ "blocker": {
10304
+ "kind": "unknown",
10305
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
10306
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
10307
+ "requires": {
10308
+ "allOf": [
10309
+ "attachmentType",
10310
+ "fullPath",
10311
+ "title",
10312
+ "publish",
10313
+ "data"
10314
+ ]
10315
+ }
10316
+ },
10317
+ "requiresByValue": [
10318
+ {
10319
+ "field": "attachmentType",
10320
+ "value": "FILE_ATTACHMENT",
10321
+ "requires": {
10322
+ "allOf": [
10323
+ "data"
10324
+ ]
10325
+ }
10326
+ }
10327
+ ],
10328
+ "vendorEvidence": [
10329
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ProjectNoteAttachmentsEntity.htm",
10330
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
10331
+ "Official ProjectNoteAttachments entity documentation and vendored ProjectNoteAttachments controllers define scoped ProjectNotes attachment routes. parentAttachmentID is read-only; project notes cannot have nested attachments. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
10332
+ ],
10333
+ "deleteBoundary": {
10334
+ "available": true,
10335
+ "note": null
10336
+ }
10337
+ }
10338
+ },
10339
+ "deleteBoundary": null,
10340
+ "markerField": null
10341
+ },
10342
+ "contract_note_attachments": {
10343
+ "resource": "contract_note_attachments",
10344
+ "apiEntity": "ContractNoteAttachment",
10345
+ "kind": "entity",
10346
+ "path": "ContractNoteAttachments",
10347
+ "parentScoped": true,
10348
+ "tier": "extended",
10349
+ "workflowResource": false,
10350
+ "group": "A",
10351
+ "parent": {
10352
+ "resource": "contract_notes",
10353
+ "segment": "Attachments",
10354
+ "field": "contractNoteID"
10355
+ },
10356
+ "children": [],
10357
+ "naturalKeys": {
10358
+ "hasSearch": false,
10359
+ "searchCovers": null,
10360
+ "findBy": []
10361
+ },
10362
+ "blindSurfaces": null,
10363
+ "zoneFacts": {
10364
+ "createGuidance": {
10365
+ "createOp": "contract_note_attachments.create",
10366
+ "parentScoped": true,
10367
+ "liveProvenPrefix": [],
10368
+ "unproven": true,
10369
+ "blocker": {
10370
+ "kind": "unknown",
10371
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
10372
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
10373
+ "requires": {
10374
+ "allOf": [
10375
+ "attachmentType",
10376
+ "fullPath",
10377
+ "title",
10378
+ "publish",
10379
+ "data"
10380
+ ]
10381
+ }
10382
+ },
10383
+ "requiresByValue": [
10384
+ {
10385
+ "field": "attachmentType",
10386
+ "value": "FILE_ATTACHMENT",
10387
+ "requires": {
10388
+ "allOf": [
10389
+ "data"
10390
+ ]
10391
+ }
10392
+ }
10393
+ ],
10394
+ "vendorEvidence": [
10395
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ContractNoteAttachmentsEntity.htm",
10396
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
10397
+ "Official ContractNoteAttachments entity documentation and vendored controllers define scoped ContractNotes attachment routes. Contract notes cannot have nested attachments, and the documented contact-author exception does not include contract notes. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
10398
+ ],
10399
+ "deleteBoundary": {
10400
+ "available": true,
10401
+ "note": null
10402
+ }
10403
+ }
10404
+ },
10405
+ "deleteBoundary": null,
10406
+ "markerField": null
10241
10407
  }
10242
10408
  };
10243
10409
  var BLIND_SURFACE_STAMPS = {
@@ -12700,6 +12866,47 @@ var CREATE_GUIDANCE = {
12700
12866
  "field": "companyID"
12701
12867
  }
12702
12868
  },
12869
+ {
12870
+ "resource": "contract_note_attachments",
12871
+ "createOp": "contract_note_attachments.create",
12872
+ "parentScoped": true,
12873
+ "liveProvenPrefix": [],
12874
+ "unproven": true,
12875
+ "blocker": {
12876
+ "kind": "unknown",
12877
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
12878
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
12879
+ "requires": {
12880
+ "allOf": [
12881
+ "attachmentType",
12882
+ "fullPath",
12883
+ "title",
12884
+ "publish",
12885
+ "data"
12886
+ ]
12887
+ }
12888
+ },
12889
+ "vendorEvidence": [
12890
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ContractNoteAttachmentsEntity.htm",
12891
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
12892
+ "Official ContractNoteAttachments entity documentation and vendored controllers define scoped ContractNotes attachment routes. Contract notes cannot have nested attachments, and the documented contact-author exception does not include contract notes. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
12893
+ ],
12894
+ "deleteBoundary": {
12895
+ "available": true,
12896
+ "note": null
12897
+ },
12898
+ "requiresByValue": [
12899
+ {
12900
+ "field": "attachmentType",
12901
+ "value": "FILE_ATTACHMENT",
12902
+ "requires": {
12903
+ "allOf": [
12904
+ "data"
12905
+ ]
12906
+ }
12907
+ }
12908
+ ]
12909
+ },
12703
12910
  {
12704
12911
  "resource": "contract_notes",
12705
12912
  "createOp": "contract_notes.create",
@@ -13476,6 +13683,47 @@ var CREATE_GUIDANCE = {
13476
13683
  "field": "companyID"
13477
13684
  }
13478
13685
  },
13686
+ {
13687
+ "resource": "project_note_attachments",
13688
+ "createOp": "project_note_attachments.create",
13689
+ "parentScoped": true,
13690
+ "liveProvenPrefix": [],
13691
+ "unproven": true,
13692
+ "blocker": {
13693
+ "kind": "unknown",
13694
+ "message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
13695
+ "remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
13696
+ "requires": {
13697
+ "allOf": [
13698
+ "attachmentType",
13699
+ "fullPath",
13700
+ "title",
13701
+ "publish",
13702
+ "data"
13703
+ ]
13704
+ }
13705
+ },
13706
+ "vendorEvidence": [
13707
+ "https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ProjectNoteAttachmentsEntity.htm",
13708
+ "https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
13709
+ "Official ProjectNoteAttachments entity documentation and vendored ProjectNoteAttachments controllers define scoped ProjectNotes attachment routes. parentAttachmentID is read-only; project notes cannot have nested attachments. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
13710
+ ],
13711
+ "deleteBoundary": {
13712
+ "available": true,
13713
+ "note": null
13714
+ },
13715
+ "requiresByValue": [
13716
+ {
13717
+ "field": "attachmentType",
13718
+ "value": "FILE_ATTACHMENT",
13719
+ "requires": {
13720
+ "allOf": [
13721
+ "data"
13722
+ ]
13723
+ }
13724
+ }
13725
+ ]
13726
+ },
13479
13727
  {
13480
13728
  "resource": "project_notes",
13481
13729
  "createOp": "project_notes.create",
@@ -14586,7 +14834,7 @@ var CREATE_GUIDANCE = {
14586
14834
  }
14587
14835
  ],
14588
14836
  "counts": {
14589
- "total": 109,
14837
+ "total": 111,
14590
14838
  "byKind": {
14591
14839
  "ok": 41,
14592
14840
  "blind-reference": 16,
@@ -14596,7 +14844,7 @@ var CREATE_GUIDANCE = {
14596
14844
  "resource-role-pair": 2,
14597
14845
  "delete-absent": 0,
14598
14846
  "non-mutable": 0,
14599
- "unknown": 33
14847
+ "unknown": 35
14600
14848
  }
14601
14849
  }
14602
14850
  };
@@ -15341,6 +15589,12 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
15341
15589
  ],
15342
15590
  "project_attachments": [
15343
15591
  "title"
15592
+ ],
15593
+ "project_note_attachments": [
15594
+ "title"
15595
+ ],
15596
+ "contract_note_attachments": [
15597
+ "title"
15344
15598
  ]
15345
15599
  };
15346
15600
 
@@ -18371,6 +18625,7 @@ var MODEL_FIELD_SETS = {
18371
18625
  "contract_exclusion_set_excluded_work_types": ["id", "contractExclusionSetID", "excludedWorkTypeID", "soapParentPropertyId"],
18372
18626
  "contract_exclusion_sets": ["id", "description", "isActive", "name"],
18373
18627
  "contract_milestones": ["id", "amount", "billingCodeID", "contractID", "createDate", "creatorResourceID", "dateDue", "description", "internalCurrencyAmount", "isInitialPayment", "organizationalLevelAssociationID", "status", "title", "soapParentPropertyId"],
18628
+ "contract_note_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "contractID", "contractNoteID", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18374
18629
  "contract_notes": ["id", "contractID", "createDateTime", "creatorResourceID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "lastActivityDate", "title", "soapParentPropertyId"],
18375
18630
  "contract_rates": ["id", "contractHourlyRate", "contractID", "internalCurrencyContractHourlyRate", "roleID", "soapParentPropertyId"],
18376
18631
  "contract_retainers": ["id", "amount", "amountApproved", "contractID", "datePurchased", "endDate", "internalCurrencyAmount", "internalCurrencyAmountApproved", "invoiceNumber", "isPaid", "paymentID", "paymentNumber", "startDate", "status", "soapParentPropertyId"],
@@ -18405,6 +18660,7 @@ var MODEL_FIELD_SETS = {
18405
18660
  "products": ["id", "billingType", "chargeBillingCodeID", "createdByResourceID", "createdTime", "defaultVendorID", "description", "doesNotRequireProcurement", "externalProductID", "impersonatorCreatorResourceID", "internalProductID", "isActive", "isEligibleForRma", "isSerialized", "link", "manufacturerName", "manufacturerProductName", "markupRate", "msrp", "name", "periodType", "priceCostMethod", "productBillingCodeID", "productCategory", "sku", "unitCost", "unitPrice", "vendorProductNumber", "defaultInstalledProductCategoryID", "userDefinedFields"],
18406
18661
  "project_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "projectID", "projectNoteID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18407
18662
  "project_charges": ["id", "billableAmount", "billingCodeID", "chargeType", "contractServiceBundleID", "contractServiceID", "createDate", "creatorResourceID", "datePurchased", "description", "estimatedCost", "extendedCost", "internalCurrencyBillableAmount", "internalCurrencyUnitPrice", "internalPurchaseOrderNumber", "isBillableToCompany", "isBilled", "name", "notes", "organizationalLevelAssociationID", "productID", "projectID", "purchaseOrderNumber", "status", "statusLastModifiedBy", "statusLastModifiedDate", "unitCost", "unitPrice", "unitQuantity", "soapParentPropertyId"],
18663
+ "project_note_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentAttachmentID", "parentID", "projectID", "projectNoteID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
18408
18664
  "project_notes": ["id", "createDateTime", "createdByContactID", "creatorResourceID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "isAnnouncement", "lastActivityDate", "noteType", "projectID", "publish", "title", "soapParentPropertyId"],
18409
18665
  "projects": ["id", "actualBilledHours", "actualHours", "changeOrdersBudget", "changeOrdersRevenue", "companyID", "companyOwnerResourceID", "completedDateTime", "completedPercentage", "contractID", "createDateTime", "creatorResourceID", "department", "description", "duration", "endDateTime", "estimatedSalesCost", "estimatedTime", "extProjectNumber", "extProjectType", "impersonatorCreatorResourceID", "laborEstimatedCosts", "laborEstimatedMarginPercentage", "laborEstimatedRevenue", "lastActivityDateTime", "lastActivityPersonType", "lastActivityResourceID", "opportunityID", "organizationalLevelAssociationID", "originalEstimatedRevenue", "projectCostEstimatedMarginPercentage", "projectCostsBudget", "projectCostsRevenue", "projectLeadResourceID", "projectName", "projectNumber", "projectType", "purchaseOrderNumber", "sgda", "startDateTime", "status", "statusDateTime", "statusDetail", "userDefinedFields"],
18410
18666
  "purchase_approvals": ["id", "costType", "isApproved", "rejectNote"],
@@ -18486,6 +18742,7 @@ var MODEL_DATE_FIELDS = {
18486
18742
  "contract_blocks": ["datePurchased", "endDate", "startDate"],
18487
18743
  "contract_charges": ["createDate", "datePurchased", "statusLastModifiedDate"],
18488
18744
  "contract_milestones": ["createDate", "dateDue"],
18745
+ "contract_note_attachments": ["attachDate"],
18489
18746
  "contract_notes": ["createDateTime", "lastActivityDate"],
18490
18747
  "contract_retainers": ["datePurchased", "endDate", "startDate"],
18491
18748
  "contract_service_bundle_units": ["approveAndPostDate", "endDate", "startDate"],
@@ -18506,6 +18763,7 @@ var MODEL_DATE_FIELDS = {
18506
18763
  "products": ["createdTime"],
18507
18764
  "project_attachments": ["attachDate"],
18508
18765
  "project_charges": ["createDate", "datePurchased", "statusLastModifiedDate"],
18766
+ "project_note_attachments": ["attachDate"],
18509
18767
  "project_notes": ["createDateTime", "lastActivityDate"],
18510
18768
  "projects": ["completedDateTime", "createDateTime", "endDateTime", "lastActivityDateTime", "startDateTime", "statusDateTime"],
18511
18769
  "purchase_order_item_receiving": ["receiveDate"],
@@ -20882,6 +21140,8 @@ var FILE_WRITABLE = /* @__PURE__ */ new Set(["attachmentType", "data", "fullPath
20882
21140
  var NON_QUERYABLE = /* @__PURE__ */ new Set(["creatortype", "data", "filesize"]);
20883
21141
  var SCOPED_ATTACHMENT_PARENTS = {
20884
21142
  project_attachments: { field: "projectID", name: "project" },
21143
+ project_note_attachments: { field: "projectNoteID", name: "project note" },
21144
+ contract_note_attachments: { field: "contractNoteID", name: "contract note" },
20885
21145
  task_attachments: { field: "taskID", name: "task" },
20886
21146
  task_note_attachments: { field: "taskNoteID", name: "task note" },
20887
21147
  configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
@@ -20930,7 +21190,9 @@ function admitFileAttachment(resource, data, parentId) {
20930
21190
  const body = data;
20931
21191
  const reference = {
20932
21192
  project_attachments: void 0,
21193
+ contract_note_attachments: void 0,
20933
21194
  task_note_attachments: "attachedByContactID",
21195
+ project_note_attachments: "attachedByContactID",
20934
21196
  configuration_item_attachments: "parentAttachmentID",
20935
21197
  configuration_item_note_attachments: void 0
20936
21198
  }[resource];
@@ -21484,6 +21746,20 @@ var SIMPLE_RESOURCES = [
21484
21746
  helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
21485
21747
  opForms: { get: "scoped", create: "scoped", update: "scoped" }
21486
21748
  },
21749
+ {
21750
+ key: "contract_note_attachments",
21751
+ accessor: "contractNoteAttachments",
21752
+ resourcePath: "/V1.0/ContractNoteAttachments",
21753
+ parentScopedPath: "/V1.0/ContractNotes/{parentId}/Attachments",
21754
+ parentPath: "/V1.0/ContractNotes",
21755
+ parentField: "contractNoteID",
21756
+ deletable: true,
21757
+ udfCapable: false,
21758
+ attachmentGet: true,
21759
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
21760
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
21761
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
21762
+ },
21487
21763
  {
21488
21764
  key: "contract_notes",
21489
21765
  accessor: "contractNotes",
@@ -21894,6 +22170,20 @@ var SIMPLE_RESOURCES = [
21894
22170
  helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
21895
22171
  opForms: { get: "scoped", create: "scoped", update: "scoped", delete: "scoped" }
21896
22172
  },
22173
+ {
22174
+ key: "project_note_attachments",
22175
+ accessor: "projectNoteAttachments",
22176
+ resourcePath: "/V1.0/ProjectNoteAttachments",
22177
+ parentScopedPath: "/V1.0/ProjectNotes/{parentId}/Attachments",
22178
+ parentPath: "/V1.0/ProjectNotes",
22179
+ parentField: "projectNoteID",
22180
+ deletable: true,
22181
+ udfCapable: false,
22182
+ attachmentGet: true,
22183
+ ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
22184
+ helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
22185
+ opForms: { get: "scoped", create: "scoped", delete: "scoped" }
22186
+ },
21897
22187
  {
21898
22188
  key: "project_notes",
21899
22189
  accessor: "projectNotes",
@@ -22563,7 +22853,7 @@ var SIMPLE_RESOURCES = [
22563
22853
  var GenericResource = class extends BaseResource {
22564
22854
  constructor(http, config, pageSize) {
22565
22855
  super(http, config, pageSize);
22566
- if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "project_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
22856
+ if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "contract_note_attachments", "project_attachments", "project_note_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
22567
22857
  throw new OperationNotSupportedError(config.key, "getUdfInfo");
22568
22858
  };
22569
22859
  if (config.ops?.create === false || isScopedAttachmentResource(config.key) || ["company_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {