enum Collections { Users = 'users' , Coaches = 'coaches' , Clients = 'clients' , Invites = 'invitations' , Records = 'records' , Config = 'config' , Prompts = 'prompts' , Tips = 'tips' , LocalSettings = 'localSettings' , ServiceJobs = 'serviceJobs' } namespace Collections { export const coachClients = ( coachId ) => `${ Collections . Coaches }/${ coachId }/clients` ; export const clientAccounts = ( clientId ) => `${ Collections . Clients }/${ clientId }/accounts` ; export const clientJournalEntries = ( clientId , accountId ) => `${ clientAccounts ( clientId ) }/${ accountId }/journal` ; export const clientIntakeForms = ( clientId , accountId ) => `${ clientAccounts ( clientId ) }/${ accountId }/intakeforms` ; export const insightsFeedback = ( coachId , clientCardId ) => `${ coachClients ( coachId ) }/${ clientCardId }/insights` ; export const clientEvents = ( clientId , accountId ) => `${ clientAccounts ( clientId ) }/${ accountId }/events` ; export const sessions = ( coachId , clientCardId ) => `${ coachClients ( coachId ) }/${ clientCardId }/sessions` ; export const documents = ( coachId , clientCardId ) => `${ coachClients ( coachId ) }/${ clientCardId }/documents` ; export const timeTracking = ( coachId , clientCardId ) => `${ coachClients ( coachId ) }/${ clientCardId }/timeTracking` ; export const userPublicInfoDoc = ( uid ) => `${ Collections . Users }/${ uid }/public/info` ; export const configDoc = ( projectName ) => `${ Collections . Config }/${ projectName }` ; export const promptsLibraryDoc = ( coachId ) => `${ Collections . Prompts }/${ coachId }` ; export const clientPromptsDoc = ( coachId , clientUid ) => `${ promptsLibraryDoc ( coachId ) }/clientPrompts/${ clientUid }` ; export const userLocalSettings = ( uid , deviceId ? ) => `${ Collections . Users }/${ uid }/${ Collections . LocalSettings }` + ( deviceId ? `/${ deviceId }` : '' ) ; } export default Collections ;