Add note and task target relation creation for customs (#6515)

As title

Urgent bug to fix, I will take the time to refacto this code next week

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
Thomas Trompette
2024-08-02 18:04:32 +02:00
committed by GitHub
parent 268a0b09e0
commit 277c51d58e
3 changed files with 312 additions and 28 deletions

View File

@ -143,8 +143,9 @@ export class PersonWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: PERSON_STANDARD_FIELD_IDS.pointOfContactForOpportunities,
type: RelationMetadataType.ONE_TO_MANY,
label: 'POC for Opportunities',
description: 'Point of Contact for Opportunities',
label: 'Linked Opportunities',
description:
'List of opportunities for which that person is the point of contact',
icon: 'IconTargetArrow',
inverseSideTarget: () => OpportunityWorkspaceEntity,
inverseSideFieldKey: 'pointOfContact',