e71aef5a3a
To test : Export companies record - "Domain Name PrimaryLinkUrl" >> "Domain Name / Link URL" closes https://github.com/twentyhq/core-team-issues/issues/907
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
import { CompositeFieldType } from '@/settings/data-model/types/CompositeFieldType';
|
|
import { FieldMetadataType } from 'twenty-shared/types';
|
|
|
|
export const COMPOSITE_FIELD_SUB_FIELD_LABELS: {
|
|
[key in CompositeFieldType]: Record<string, string>;
|
|
} = {
|
|
[FieldMetadataType.CURRENCY]: {
|
|
amountMicros: 'Amount',
|
|
currencyCode: 'Currency',
|
|
},
|
|
[FieldMetadataType.EMAILS]: {
|
|
primaryEmail: 'Primary Email',
|
|
additionalEmails: 'Additional Emails',
|
|
},
|
|
[FieldMetadataType.LINKS]: {
|
|
primaryLinkLabel: 'Link Label',
|
|
primaryLinkUrl: 'Link URL',
|
|
secondaryLinks: 'Secondary Links',
|
|
},
|
|
[FieldMetadataType.PHONES]: {
|
|
primaryPhoneNumber: 'Primary Phone Number',
|
|
primaryPhoneCountryCode: 'Primary Phone Country Code',
|
|
primaryPhoneCallingCode: 'Primary Phone Calling Code',
|
|
additionalPhones: 'Additional Phones',
|
|
},
|
|
[FieldMetadataType.FULL_NAME]: {
|
|
firstName: 'First Name',
|
|
lastName: 'Last Name',
|
|
},
|
|
[FieldMetadataType.ADDRESS]: {
|
|
addressStreet1: 'Address 1',
|
|
addressStreet2: 'Address 2',
|
|
addressCity: 'City',
|
|
addressState: 'State',
|
|
addressCountry: 'Country',
|
|
addressPostcode: 'Post Code',
|
|
addressLat: 'Latitude',
|
|
addressLng: 'Longitude',
|
|
},
|
|
[FieldMetadataType.ACTOR]: {
|
|
source: 'Source',
|
|
name: 'Name',
|
|
workspaceMemberId: 'Workspace Member ID',
|
|
context: 'Context',
|
|
},
|
|
[FieldMetadataType.RICH_TEXT_V2]: {
|
|
blocknote: 'BlockNote',
|
|
markdown: 'Markdown',
|
|
},
|
|
};
|