Use existing 'Primary Contact' relationship type via FORM_CONTACT_RELATIONSHIP constant

This commit is contained in:
Joel Brock
2026-05-09 20:57:29 -07:00
parent e132789a3e
commit 2e9d3855ba
5 changed files with 46 additions and 54 deletions

View File

@@ -537,6 +537,17 @@ export const ACTIVITY_TYPE_NAME = "Check-in (organizing)";
/** Stage-snapshot field on the activity (so the form's stage_at_submission writes here). */
export const ACTIVITY_STAGE_FIELD = `${G0}.Stage`;
/**
* RelationshipType.name_a_b for the relationship that links the form-filler
* (Individual side) to the organization the form is about (Organization side).
*
* On `client.crm.fci.coop` we reuse the existing "Primary Contact"
* relationship type (id 24) rather than introducing a dedicated
* "Primary Form Contact" type. If you change this, also update the docs in
* the parent repo's spec.
*/
export const FORM_CONTACT_RELATIONSHIP = "Primary Contact";
/** All distinct option_group_ids referenced by fields in this form. */
export const optionGroupIds = Array.from(
new Set(