Skip to main content

LEAD_FIELD_ALIASES

Stentor API Reference


Stentor API Reference / stentor-utils/src / LEAD_FIELD_ALIASES

Variable: LEAD_FIELD_ALIASES

const LEAD_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​

readonly firstName: readonly ["firstname", "first_name"]

lastName​

readonly lastName: readonly ["lastname", "last_name"]

fullName​

readonly fullName: readonly ["fullname", "full_name"]

phone​

readonly phone: readonly ["phone", "phonenumber", "phone_number"]

email​

readonly email: readonly ["email", "emailaddress", "email_address"]

address​

readonly address: readonly ["address", "address1", "address2", "street_address"]

zip​

readonly zip: readonly ["zip", "zipcode", "zip_code", "postalcode", "postal_code"]

company​

readonly company: readonly ["company", "organization", "companyname", "company_name", "organizationname", "organization_name"]

message​

readonly message: readonly ["message", "note"]