LEAD_FIELD_ALIASES
Stentor API Reference / stentor-utils/src / LEAD_FIELD_ALIASES
Variable: LEAD_FIELD_ALIASES
constLEAD_FIELD_ALIASES:object
Defined in: packages/stentor-utils/src/lead.ts:47
Field name aliases for the values we pull off a lead. Form field names are not
consistent across widgets and configurations (phone vs phone_number,
full_name vs fullName, ...) so every lookup goes through an alias list.
These are shared so every path resolves a lead the same way. Matching is case insensitive.
Type Declarationβ
firstNameβ
readonlyfirstName: readonly ["firstname","first_name"]
lastNameβ
readonlylastName: readonly ["lastname","last_name"]
fullNameβ
readonlyfullName: readonly ["fullname","full_name"]
phoneβ
readonlyphone: readonly ["phone","phonenumber","phone_number"]
emailβ
readonlyemail: readonly ["email","emailaddress","email_address"]
addressβ
readonlyaddress: readonly ["address","address1","address2","street_address"]
zipβ
readonlyzip: readonly ["zip","zipcode","zip_code","postalcode","postal_code"]
companyβ
readonlycompany: readonly ["company","organization","companyname","company_name","organizationname","organization_name"]
messageβ
readonlymessage: readonly ["message","note"]