MCPcopy Create free account
hub / github.com/hashintel/hash / relatedToTarget

Function relatedToTarget

apps/hash-api/src/seed-data/seed-crm-data.ts:1669–1675  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1667 const activitySubtypes = [callType, emailType, meetingType, taskType];
1668
1669 const relatedToTarget = (): LinkSpec => {
1670 const target = pick([pick(deals), pick(contacts), pick(accounts)]);
1671 return {
1672 linkTypeId: relatedToLink.schema.$id,
1673 rightEntityId: target.metadata.recordId.entityId,
1674 };
1675 };
1676
1677 const activitySubtypeProps = (
1678 subtype: EntityTypeWithMetadata,

Callers 1

seedCrmDataFunction · 0.85

Calls 1

pickFunction · 0.70

Tested by

no test coverage detected