node-autotask 0.80.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/MCP_TOOL_CATALOG.json +265 -9
- package/README.md +1 -1
- package/capabilities.json +959 -7
- package/dist/capabilities-data.js +958 -6
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-TMJX6NTZ.cjs → chunk-5UR4L7SB.cjs} +3 -3
- package/dist/{chunk-GRJE3IUU.js → chunk-7PQKFGTI.js} +2 -2
- package/dist/{chunk-3VW75XKV.cjs → chunk-EFINBMXE.cjs} +311 -11
- package/dist/{chunk-R4MKUN4N.js → chunk-EQ6LOII6.js} +3 -3
- package/dist/{chunk-R6N7S6LC.js → chunk-FYDLVUSN.js} +4 -2
- package/dist/{chunk-JITS5NKE.js → chunk-HZGCJ2CQ.js} +306 -6
- package/dist/{chunk-OVP7IH6K.cjs → chunk-TZL45TYE.cjs} +199 -199
- package/dist/{chunk-Z5QCH7JA.cjs → chunk-XJQYDJKB.cjs} +32 -30
- package/dist/{index-mFUX-x9D.d.ts → index-CW3PJPqH.d.ts} +4 -2
- package/dist/{index-CZaFISYn.d.cts → index-Dt1KqDEQ.d.cts} +4 -2
- package/dist/{index-BBc96jwe.d.cts → index-inEhFJaU.d.cts} +88 -1
- package/dist/{index-BBc96jwe.d.ts → index-inEhFJaU.d.ts} +88 -1
- package/dist/index.cjs +84 -84
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +51 -51
- package/dist/operations/index.d.cts +4 -4
- package/dist/operations/index.d.ts +4 -4
- package/dist/operations/index.js +2 -2
- package/dist/pool.cjs +12 -12
- package/dist/pool.d.cts +1 -1
- package/dist/pool.d.ts +1 -1
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +27 -27
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/docs/API.md +4 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { loadCapabilityRecords } from './chunk-EQ6LOII6.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,
|
|
@@ -7337,7 +7354,24 @@ var RELATIONSHIP_MAP = {
|
|
|
7337
7354
|
"workflowResource": false,
|
|
7338
7355
|
"group": "B",
|
|
7339
7356
|
"parent": null,
|
|
7340
|
-
"children": [
|
|
7357
|
+
"children": [
|
|
7358
|
+
{
|
|
7359
|
+
"resource": "sales_order_attachments",
|
|
7360
|
+
"apiEntity": "SalesOrderAttachment",
|
|
7361
|
+
"parentField": "salesOrderID",
|
|
7362
|
+
"parentSegment": "Attachments",
|
|
7363
|
+
"tier": "extended",
|
|
7364
|
+
"workflowResource": false,
|
|
7365
|
+
"specialOps": [],
|
|
7366
|
+
"searchCovers": null,
|
|
7367
|
+
"scopedOps": {
|
|
7368
|
+
"create": true,
|
|
7369
|
+
"query": true,
|
|
7370
|
+
"update": false,
|
|
7371
|
+
"delete": true
|
|
7372
|
+
}
|
|
7373
|
+
}
|
|
7374
|
+
],
|
|
7341
7375
|
"naturalKeys": {
|
|
7342
7376
|
"hasSearch": false,
|
|
7343
7377
|
"searchCovers": null,
|
|
@@ -10321,6 +10355,143 @@ var RELATIONSHIP_MAP = {
|
|
|
10321
10355
|
},
|
|
10322
10356
|
"deleteBoundary": null,
|
|
10323
10357
|
"markerField": null
|
|
10358
|
+
},
|
|
10359
|
+
"contract_note_attachments": {
|
|
10360
|
+
"resource": "contract_note_attachments",
|
|
10361
|
+
"apiEntity": "ContractNoteAttachment",
|
|
10362
|
+
"kind": "entity",
|
|
10363
|
+
"path": "ContractNoteAttachments",
|
|
10364
|
+
"parentScoped": true,
|
|
10365
|
+
"tier": "extended",
|
|
10366
|
+
"workflowResource": false,
|
|
10367
|
+
"group": "A",
|
|
10368
|
+
"parent": {
|
|
10369
|
+
"resource": "contract_notes",
|
|
10370
|
+
"segment": "Attachments",
|
|
10371
|
+
"field": "contractNoteID"
|
|
10372
|
+
},
|
|
10373
|
+
"children": [],
|
|
10374
|
+
"naturalKeys": {
|
|
10375
|
+
"hasSearch": false,
|
|
10376
|
+
"searchCovers": null,
|
|
10377
|
+
"findBy": []
|
|
10378
|
+
},
|
|
10379
|
+
"blindSurfaces": null,
|
|
10380
|
+
"zoneFacts": {
|
|
10381
|
+
"createGuidance": {
|
|
10382
|
+
"createOp": "contract_note_attachments.create",
|
|
10383
|
+
"parentScoped": true,
|
|
10384
|
+
"liveProvenPrefix": [],
|
|
10385
|
+
"unproven": true,
|
|
10386
|
+
"blocker": {
|
|
10387
|
+
"kind": "unknown",
|
|
10388
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10389
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
10390
|
+
"requires": {
|
|
10391
|
+
"allOf": [
|
|
10392
|
+
"attachmentType",
|
|
10393
|
+
"fullPath",
|
|
10394
|
+
"title",
|
|
10395
|
+
"publish",
|
|
10396
|
+
"data"
|
|
10397
|
+
]
|
|
10398
|
+
}
|
|
10399
|
+
},
|
|
10400
|
+
"requiresByValue": [
|
|
10401
|
+
{
|
|
10402
|
+
"field": "attachmentType",
|
|
10403
|
+
"value": "FILE_ATTACHMENT",
|
|
10404
|
+
"requires": {
|
|
10405
|
+
"allOf": [
|
|
10406
|
+
"data"
|
|
10407
|
+
]
|
|
10408
|
+
}
|
|
10409
|
+
}
|
|
10410
|
+
],
|
|
10411
|
+
"vendorEvidence": [
|
|
10412
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ContractNoteAttachmentsEntity.htm",
|
|
10413
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
10414
|
+
"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."
|
|
10415
|
+
],
|
|
10416
|
+
"deleteBoundary": {
|
|
10417
|
+
"available": true,
|
|
10418
|
+
"note": null
|
|
10419
|
+
}
|
|
10420
|
+
}
|
|
10421
|
+
},
|
|
10422
|
+
"deleteBoundary": null,
|
|
10423
|
+
"markerField": null
|
|
10424
|
+
},
|
|
10425
|
+
"sales_order_attachments": {
|
|
10426
|
+
"resource": "sales_order_attachments",
|
|
10427
|
+
"apiEntity": "SalesOrderAttachment",
|
|
10428
|
+
"kind": "entity",
|
|
10429
|
+
"path": "SalesOrderAttachments",
|
|
10430
|
+
"parentScoped": true,
|
|
10431
|
+
"tier": "extended",
|
|
10432
|
+
"workflowResource": false,
|
|
10433
|
+
"group": "B",
|
|
10434
|
+
"parent": {
|
|
10435
|
+
"resource": "sales_orders",
|
|
10436
|
+
"segment": "Attachments",
|
|
10437
|
+
"field": "salesOrderID"
|
|
10438
|
+
},
|
|
10439
|
+
"children": [],
|
|
10440
|
+
"naturalKeys": {
|
|
10441
|
+
"hasSearch": false,
|
|
10442
|
+
"searchCovers": null,
|
|
10443
|
+
"findBy": []
|
|
10444
|
+
},
|
|
10445
|
+
"blindSurfaces": null,
|
|
10446
|
+
"zoneFacts": {
|
|
10447
|
+
"createGuidance": {
|
|
10448
|
+
"createOp": "sales_order_attachments.create",
|
|
10449
|
+
"parentScoped": true,
|
|
10450
|
+
"liveProvenPrefix": [],
|
|
10451
|
+
"unproven": true,
|
|
10452
|
+
"blocker": {
|
|
10453
|
+
"kind": "unknown",
|
|
10454
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
10455
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
10456
|
+
"requires": {
|
|
10457
|
+
"allOf": [
|
|
10458
|
+
"attachmentType",
|
|
10459
|
+
"fullPath",
|
|
10460
|
+
"title",
|
|
10461
|
+
"publish",
|
|
10462
|
+
"data"
|
|
10463
|
+
]
|
|
10464
|
+
}
|
|
10465
|
+
},
|
|
10466
|
+
"requiresByValue": [
|
|
10467
|
+
{
|
|
10468
|
+
"field": "attachmentType",
|
|
10469
|
+
"value": "FILE_ATTACHMENT",
|
|
10470
|
+
"requires": {
|
|
10471
|
+
"allOf": [
|
|
10472
|
+
"data"
|
|
10473
|
+
]
|
|
10474
|
+
}
|
|
10475
|
+
}
|
|
10476
|
+
],
|
|
10477
|
+
"vendorEvidence": [
|
|
10478
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/SalesOrderAttachmentsEntity.htm",
|
|
10479
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
10480
|
+
"Official SalesOrderAttachments entity documentation and vendored controllers define scoped SalesOrders attachment routes. Sales orders cannot have nested attachments, and the documented contact-author exception does not include sales orders. The help URL table repeats parent SalesOrders actions; attachment routing follows the vendored attachment controllers. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
|
|
10481
|
+
],
|
|
10482
|
+
"deleteBoundary": {
|
|
10483
|
+
"available": true,
|
|
10484
|
+
"note": null
|
|
10485
|
+
},
|
|
10486
|
+
"parentCompany": {
|
|
10487
|
+
"via": "salesOrderID",
|
|
10488
|
+
"resource": "sales_orders",
|
|
10489
|
+
"field": "companyID"
|
|
10490
|
+
}
|
|
10491
|
+
}
|
|
10492
|
+
},
|
|
10493
|
+
"deleteBoundary": null,
|
|
10494
|
+
"markerField": null
|
|
10324
10495
|
}
|
|
10325
10496
|
};
|
|
10326
10497
|
var BLIND_SURFACE_STAMPS = {
|
|
@@ -12783,6 +12954,47 @@ var CREATE_GUIDANCE = {
|
|
|
12783
12954
|
"field": "companyID"
|
|
12784
12955
|
}
|
|
12785
12956
|
},
|
|
12957
|
+
{
|
|
12958
|
+
"resource": "contract_note_attachments",
|
|
12959
|
+
"createOp": "contract_note_attachments.create",
|
|
12960
|
+
"parentScoped": true,
|
|
12961
|
+
"liveProvenPrefix": [],
|
|
12962
|
+
"unproven": true,
|
|
12963
|
+
"blocker": {
|
|
12964
|
+
"kind": "unknown",
|
|
12965
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
12966
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
12967
|
+
"requires": {
|
|
12968
|
+
"allOf": [
|
|
12969
|
+
"attachmentType",
|
|
12970
|
+
"fullPath",
|
|
12971
|
+
"title",
|
|
12972
|
+
"publish",
|
|
12973
|
+
"data"
|
|
12974
|
+
]
|
|
12975
|
+
}
|
|
12976
|
+
},
|
|
12977
|
+
"vendorEvidence": [
|
|
12978
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/ContractNoteAttachmentsEntity.htm",
|
|
12979
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
12980
|
+
"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."
|
|
12981
|
+
],
|
|
12982
|
+
"deleteBoundary": {
|
|
12983
|
+
"available": true,
|
|
12984
|
+
"note": null
|
|
12985
|
+
},
|
|
12986
|
+
"requiresByValue": [
|
|
12987
|
+
{
|
|
12988
|
+
"field": "attachmentType",
|
|
12989
|
+
"value": "FILE_ATTACHMENT",
|
|
12990
|
+
"requires": {
|
|
12991
|
+
"allOf": [
|
|
12992
|
+
"data"
|
|
12993
|
+
]
|
|
12994
|
+
}
|
|
12995
|
+
}
|
|
12996
|
+
]
|
|
12997
|
+
},
|
|
12786
12998
|
{
|
|
12787
12999
|
"resource": "contract_notes",
|
|
12788
13000
|
"createOp": "contract_notes.create",
|
|
@@ -13833,6 +14045,52 @@ var CREATE_GUIDANCE = {
|
|
|
13833
14045
|
"note": "the vendor defines no DELETE for roles (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."
|
|
13834
14046
|
}
|
|
13835
14047
|
},
|
|
14048
|
+
{
|
|
14049
|
+
"resource": "sales_order_attachments",
|
|
14050
|
+
"createOp": "sales_order_attachments.create",
|
|
14051
|
+
"parentScoped": true,
|
|
14052
|
+
"liveProvenPrefix": [],
|
|
14053
|
+
"unproven": true,
|
|
14054
|
+
"blocker": {
|
|
14055
|
+
"kind": "unknown",
|
|
14056
|
+
"message": "Attachment creation is documented; valid input remains subject to API-user permissions and vendor validation.",
|
|
14057
|
+
"remedy": "Read the current field and picklist metadata, supply the named parent id, and preview the attachment before applying.",
|
|
14058
|
+
"requires": {
|
|
14059
|
+
"allOf": [
|
|
14060
|
+
"attachmentType",
|
|
14061
|
+
"fullPath",
|
|
14062
|
+
"title",
|
|
14063
|
+
"publish",
|
|
14064
|
+
"data"
|
|
14065
|
+
]
|
|
14066
|
+
}
|
|
14067
|
+
},
|
|
14068
|
+
"vendorEvidence": [
|
|
14069
|
+
"https://www.autotask.net/help/developerhelp/Content/APIs/REST/Entities/SalesOrderAttachmentsEntity.htm",
|
|
14070
|
+
"https://www.autotask.net/help/developerhelp/content/apis/REST/API_Calls/REST_Attachments.htm",
|
|
14071
|
+
"Official SalesOrderAttachments entity documentation and vendored controllers define scoped SalesOrders attachment routes. Sales orders cannot have nested attachments, and the documented contact-author exception does not include sales orders. The help URL table repeats parent SalesOrders actions; attachment routing follows the vendored attachment controllers. No update, UDF metadata or data-download endpoint is implemented. Static contract only; no live create."
|
|
14072
|
+
],
|
|
14073
|
+
"deleteBoundary": {
|
|
14074
|
+
"available": true,
|
|
14075
|
+
"note": null
|
|
14076
|
+
},
|
|
14077
|
+
"requiresByValue": [
|
|
14078
|
+
{
|
|
14079
|
+
"field": "attachmentType",
|
|
14080
|
+
"value": "FILE_ATTACHMENT",
|
|
14081
|
+
"requires": {
|
|
14082
|
+
"allOf": [
|
|
14083
|
+
"data"
|
|
14084
|
+
]
|
|
14085
|
+
}
|
|
14086
|
+
}
|
|
14087
|
+
],
|
|
14088
|
+
"parentCompany": {
|
|
14089
|
+
"via": "salesOrderID",
|
|
14090
|
+
"resource": "sales_orders",
|
|
14091
|
+
"field": "companyID"
|
|
14092
|
+
}
|
|
14093
|
+
},
|
|
13836
14094
|
{
|
|
13837
14095
|
"resource": "service_call_task_resources",
|
|
13838
14096
|
"createOp": "service_call_task_resources.create",
|
|
@@ -14710,7 +14968,7 @@ var CREATE_GUIDANCE = {
|
|
|
14710
14968
|
}
|
|
14711
14969
|
],
|
|
14712
14970
|
"counts": {
|
|
14713
|
-
"total":
|
|
14971
|
+
"total": 112,
|
|
14714
14972
|
"byKind": {
|
|
14715
14973
|
"ok": 41,
|
|
14716
14974
|
"blind-reference": 16,
|
|
@@ -14720,7 +14978,7 @@ var CREATE_GUIDANCE = {
|
|
|
14720
14978
|
"resource-role-pair": 2,
|
|
14721
14979
|
"delete-absent": 0,
|
|
14722
14980
|
"non-mutable": 0,
|
|
14723
|
-
"unknown":
|
|
14981
|
+
"unknown": 36
|
|
14724
14982
|
}
|
|
14725
14983
|
}
|
|
14726
14984
|
};
|
|
@@ -15468,6 +15726,12 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
|
|
|
15468
15726
|
],
|
|
15469
15727
|
"project_note_attachments": [
|
|
15470
15728
|
"title"
|
|
15729
|
+
],
|
|
15730
|
+
"contract_note_attachments": [
|
|
15731
|
+
"title"
|
|
15732
|
+
],
|
|
15733
|
+
"sales_order_attachments": [
|
|
15734
|
+
"title"
|
|
15471
15735
|
]
|
|
15472
15736
|
};
|
|
15473
15737
|
|
|
@@ -18498,6 +18762,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18498
18762
|
"contract_exclusion_set_excluded_work_types": ["id", "contractExclusionSetID", "excludedWorkTypeID", "soapParentPropertyId"],
|
|
18499
18763
|
"contract_exclusion_sets": ["id", "description", "isActive", "name"],
|
|
18500
18764
|
"contract_milestones": ["id", "amount", "billingCodeID", "contractID", "createDate", "creatorResourceID", "dateDue", "description", "internalCurrencyAmount", "isInitialPayment", "organizationalLevelAssociationID", "status", "title", "soapParentPropertyId"],
|
|
18765
|
+
"contract_note_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "contractID", "contractNoteID", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18501
18766
|
"contract_notes": ["id", "contractID", "createDateTime", "creatorResourceID", "description", "impersonatorCreatorResourceID", "impersonatorUpdaterResourceID", "lastActivityDate", "title", "soapParentPropertyId"],
|
|
18502
18767
|
"contract_rates": ["id", "contractHourlyRate", "contractID", "internalCurrencyContractHourlyRate", "roleID", "soapParentPropertyId"],
|
|
18503
18768
|
"contract_retainers": ["id", "amount", "amountApproved", "contractID", "datePurchased", "endDate", "internalCurrencyAmount", "internalCurrencyAmountApproved", "invoiceNumber", "isPaid", "paymentID", "paymentNumber", "startDate", "status", "soapParentPropertyId"],
|
|
@@ -18550,6 +18815,7 @@ var MODEL_FIELD_SETS = {
|
|
|
18550
18815
|
"resource_time_off_balances": ["id", "resourceID", "floatingHolidayAnnualAllowance", "floatingHolidayBalance", "floatingHolidayPlanned", "floatingHolidayUsed", "floatingHolidayWaitingApproval", "personalTimeAnnualAllowance", "personalTimeBalance", "personalTimePlanned", "personalTimeUsed", "personalTimeWaitingApproval", "sickTimeAnnualAllowance", "sickTimeBalance", "sickTimePlanned", "sickTimeUsed", "sickTimeWaitingApproval", "vacationTimeAnnualAllowance", "vacationTimeBalance", "vacationTimePlanned", "vacationTimeUsed", "vacationTimeWaitingApproval", "year", "soapParentPropertyId"],
|
|
18551
18816
|
"resources": ["id", "accountingReferenceID", "dateFormat", "defaultServiceDeskRoleID", "email", "email2", "email3", "emailTypeCode", "emailTypeCode2", "emailTypeCode3", "firstName", "gender", "greeting", "hireDate", "homePhone", "initials", "internalCost", "isActive", "lastName", "licenseType", "locationID", "middleName", "mobilePhone", "numberFormat", "officeExtension", "officePhone", "payrollIdentifier", "payrollType", "resourceType", "suffix", "surveyResourceRating", "timeFormat", "title", "travelAvailabilityPct", "userName", "userType"],
|
|
18552
18817
|
"roles": ["id", "description", "hourlyFactor", "hourlyRate", "isActive", "isExcludedFromNewContracts", "isSystemRole", "name", "quoteItemDefaultTaxCategoryId", "roleType"],
|
|
18818
|
+
"sales_order_attachments": ["id", "attachDate", "attachedByContactID", "attachedByResourceID", "attachmentType", "contentType", "creatorType", "fileSize", "fullPath", "impersonatorCreatorResourceID", "opportunityID", "parentID", "publish", "salesOrderID", "title", "data", "parentType", "soapParentPropertyId", "isTaskAttachment"],
|
|
18553
18819
|
"sales_orders": ["id", "additionalBillToAddressInformation", "additionalShipToAddressInformation", "billingAddress1", "billingAddress2", "billToCity", "billToCountryID", "billToPostalCode", "billToState", "companyID", "contactID", "impersonatorCreatorResourceID", "opportunityID", "organizationalLevelAssociationID", "ownerResourceID", "promisedFulfillmentDate", "salesOrderDate", "shipToAddress1", "shipToAddress2", "shipToCity", "shipToCountryID", "shipToPostalCode", "shipToState", "status", "title", "soapParentPropertyId", "userDefinedFields"],
|
|
18554
18820
|
"service_call_task_resources": ["id", "resourceID", "serviceCallTaskID", "soapParentPropertyId"],
|
|
18555
18821
|
"service_call_tasks": ["id", "serviceCallID", "taskID", "soapParentPropertyId"],
|
|
@@ -18614,6 +18880,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18614
18880
|
"contract_blocks": ["datePurchased", "endDate", "startDate"],
|
|
18615
18881
|
"contract_charges": ["createDate", "datePurchased", "statusLastModifiedDate"],
|
|
18616
18882
|
"contract_milestones": ["createDate", "dateDue"],
|
|
18883
|
+
"contract_note_attachments": ["attachDate"],
|
|
18617
18884
|
"contract_notes": ["createDateTime", "lastActivityDate"],
|
|
18618
18885
|
"contract_retainers": ["datePurchased", "endDate", "startDate"],
|
|
18619
18886
|
"contract_service_bundle_units": ["approveAndPostDate", "endDate", "startDate"],
|
|
@@ -18643,6 +18910,7 @@ var MODEL_DATE_FIELDS = {
|
|
|
18643
18910
|
"quote_templates": ["createDate", "lastActivityDate"],
|
|
18644
18911
|
"quotes": ["approvalStatusChangedDate", "createDate", "effectiveDate", "expirationDate", "extApprovalResponseDate", "lastActivityDate", "lastPublishedDateTime"],
|
|
18645
18912
|
"resources": ["hireDate"],
|
|
18913
|
+
"sales_order_attachments": ["attachDate"],
|
|
18646
18914
|
"sales_orders": ["promisedFulfillmentDate", "salesOrderDate"],
|
|
18647
18915
|
"service_calls": ["canceledDateTime", "createDateTime", "endDateTime", "lastModifiedDateTime", "startDateTime"],
|
|
18648
18916
|
"services": ["createDate", "lastModifiedDate"],
|
|
@@ -21012,6 +21280,8 @@ var NON_QUERYABLE = /* @__PURE__ */ new Set(["creatortype", "data", "filesize"])
|
|
|
21012
21280
|
var SCOPED_ATTACHMENT_PARENTS = {
|
|
21013
21281
|
project_attachments: { field: "projectID", name: "project" },
|
|
21014
21282
|
project_note_attachments: { field: "projectNoteID", name: "project note" },
|
|
21283
|
+
contract_note_attachments: { field: "contractNoteID", name: "contract note" },
|
|
21284
|
+
sales_order_attachments: { field: "salesOrderID", name: "sales order" },
|
|
21015
21285
|
task_attachments: { field: "taskID", name: "task" },
|
|
21016
21286
|
task_note_attachments: { field: "taskNoteID", name: "task note" },
|
|
21017
21287
|
configuration_item_attachments: { field: "configurationItemID", name: "configuration item" },
|
|
@@ -21060,6 +21330,8 @@ function admitFileAttachment(resource, data, parentId) {
|
|
|
21060
21330
|
const body = data;
|
|
21061
21331
|
const reference = {
|
|
21062
21332
|
project_attachments: void 0,
|
|
21333
|
+
contract_note_attachments: void 0,
|
|
21334
|
+
sales_order_attachments: void 0,
|
|
21063
21335
|
task_note_attachments: "attachedByContactID",
|
|
21064
21336
|
project_note_attachments: "attachedByContactID",
|
|
21065
21337
|
configuration_item_attachments: "parentAttachmentID",
|
|
@@ -21615,6 +21887,20 @@ var SIMPLE_RESOURCES = [
|
|
|
21615
21887
|
helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21616
21888
|
opForms: { get: "scoped", create: "scoped", update: "scoped" }
|
|
21617
21889
|
},
|
|
21890
|
+
{
|
|
21891
|
+
key: "contract_note_attachments",
|
|
21892
|
+
accessor: "contractNoteAttachments",
|
|
21893
|
+
resourcePath: "/V1.0/ContractNoteAttachments",
|
|
21894
|
+
parentScopedPath: "/V1.0/ContractNotes/{parentId}/Attachments",
|
|
21895
|
+
parentPath: "/V1.0/ContractNotes",
|
|
21896
|
+
parentField: "contractNoteID",
|
|
21897
|
+
deletable: true,
|
|
21898
|
+
udfCapable: false,
|
|
21899
|
+
attachmentGet: true,
|
|
21900
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
21901
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
21902
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
21903
|
+
},
|
|
21618
21904
|
{
|
|
21619
21905
|
key: "contract_notes",
|
|
21620
21906
|
accessor: "contractNotes",
|
|
@@ -22218,6 +22504,20 @@ var SIMPLE_RESOURCES = [
|
|
|
22218
22504
|
helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22219
22505
|
opForms: { get: "global", create: "global", update: "global" }
|
|
22220
22506
|
},
|
|
22507
|
+
{
|
|
22508
|
+
key: "sales_order_attachments",
|
|
22509
|
+
accessor: "salesOrderAttachments",
|
|
22510
|
+
resourcePath: "/V1.0/SalesOrderAttachments",
|
|
22511
|
+
parentScopedPath: "/V1.0/SalesOrders/{parentId}/Attachments",
|
|
22512
|
+
parentPath: "/V1.0/SalesOrders",
|
|
22513
|
+
parentField: "salesOrderID",
|
|
22514
|
+
deletable: true,
|
|
22515
|
+
udfCapable: false,
|
|
22516
|
+
attachmentGet: true,
|
|
22517
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: true, update: false, delete: true, getEntityInfo: true, getFieldInfo: true, getUdfInfo: false, download: false },
|
|
22518
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
22519
|
+
opForms: { get: "scoped", create: "scoped", delete: "scoped" }
|
|
22520
|
+
},
|
|
22221
22521
|
{
|
|
22222
22522
|
key: "sales_orders",
|
|
22223
22523
|
accessor: "salesOrders",
|
|
@@ -22708,7 +23008,7 @@ var SIMPLE_RESOURCES = [
|
|
|
22708
23008
|
var GenericResource = class extends BaseResource {
|
|
22709
23009
|
constructor(http, config, pageSize) {
|
|
22710
23010
|
super(http, config, pageSize);
|
|
22711
|
-
if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "project_attachments", "project_note_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
|
|
23011
|
+
if (["company_attachments", "company_note_attachments", "configuration_item_attachments", "configuration_item_note_attachments", "contract_note_attachments", "project_attachments", "project_note_attachments", "sales_order_attachments", "task_attachments", "task_note_attachments"].includes(config.key)) this.getUdfInfo = async () => {
|
|
22712
23012
|
throw new OperationNotSupportedError(config.key, "getUdfInfo");
|
|
22713
23013
|
};
|
|
22714
23014
|
if (config.ops?.create === false || isScopedAttachmentResource(config.key) || ["company_attachments", "task_predecessors"].includes(config.key)) this.createIfNotExists = async () => {
|