Skip to content

The open alternative to Salesforce, designed for AI.

938 B
Raw Blame
import {
  defineField,
  FieldType,
  STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
} from 'twenty-sdk/define';

import { MIC_EXCHANGE_OPTIONS } from 'src/constants/mic-exchange-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.company.pdlMicExchange,
  objectUniversalIdentifier:
    STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
  type: FieldType.SELECT,
  name: 'pdlMicExchange',
  label: 'Stock Exchange (MIC)',
  description: 'People Data Labs canonical market identifier code.',
  icon: 'IconBuildingBank',
  isNullable: true,
  options: buildSelectOptions({
    meta: MIC_EXCHANGE_OPTIONS,
    ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyMicExchange,
  }),
});