import { PHONE_TYPES, PROPERTY_TYPES, SOCIAL_PROFILE_TYPES } from '../constants' type Customer = { id: number firstName: string lastName: string emails: Email[] phones: Phone[] company?: string jobTitle?: string photoUrl: string conversationCount: number note: string properties: CustomerProperty[] socialProfiles: SocialProfile[] websites: Website[] } type Email = { id: number value: string } type PhoneType = (typeof PHONE_TYPES)[keyof typeof PHONE_TYPES] type Phone = { id: number value: string type: PhoneType } type CustomerPropertyType = (typeof PROPERTY_TYPES)[keyof typeof PROPERTY_TYPES] type CustomerProperty = { slug: string name: string value?: string text?: string type: CustomerPropertyType } type SocialProfileType = (typeof SOCIAL_PROFILE_TYPES)[keyof typeof SOCIAL_PROFILE_TYPES] type SocialProfile = { id: number type: SocialProfileType url: string } type Website = { id: number value: string } export { Customer, PhoneType, CustomerProperty, CustomerPropertyType, SocialProfileType, }