import { defineField, FieldType, STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, } from 'twenty-sdk/define'; import { INFERRED_SALARY_OPTIONS } from 'src/constants/inferred-salary-options'; import { PDL_FIELD_UNIVERSAL_IDENTIFIERS, PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS, } from 'src/constants/universal-identifiers'; import { buildSelectOptions } from 'src/utils/build-select-options'; export default defineField({ universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.person.pdlInferredSalary, objectUniversalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person.universalIdentifier, type: FieldType.SELECT, name: 'pdlInferredSalary', label: 'Inferred Salary (range)', description: 'People Data Labs canonical inferred salary range.', icon: 'IconCurrencyDollar', isNullable: true, options: buildSelectOptions({ meta: INFERRED_SALARY_OPTIONS, ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.personInferredSalary, }), });