UNPKG

oralify-common

Version:
139 lines (138 loc) 3.45 kB
import { TimeSlotType } from './availabilityExpertTypes'; export declare enum ServiceFormatKey { person = "person", audio = "audio", video = "video", call = "call" } export declare const serviceFormatMap: Record<ServiceFormatKey, ServiceType & { emoji?: string; icon?: string; image?: string; defaults?: Partial<ServiceType & { highlight?: boolean; }>[]; }>; export type SpecialityBackendType = { id?: string; specialityKey?: SpecialityKey; } & SpecialityMapType; export type SpecialityMapType = { id?: string; specialityKey?: SpecialityKey; color?: string; icon?: string; emoji?: string; keywords?: string[]; name: string; }; export type ServiceBackendType = { id?: string; name?: string; expertId?: string; speciality?: SpecialityKey; keywords?: string[]; description?: string; address?: string; price?: number; duration?: number; format?: ServiceFormatKey; }; /** For frontend to print evertyhing*/ export type ServiceType = ServiceBackendType & { time_slots?: TimeSlotType[]; }; export type FilterType = SpecialityMapType & { selected?: boolean; }; export type ServiceFormatType = { selected: boolean; serviceDetails: ServiceType[]; }; export type ServiceMapType = { [K in ServiceFormatKey]?: ServiceType[]; }; export declare enum SpecialityKey { psycho = "psycho", interviewPractice = "interviewPractice", language = "language", computer = "computer", physiotherapist = "physiotherapist", personalTrainer = "personalTrainer", dance = "dance", travel = "travel", onlineTutor = "onlineTutor", careerPath = "careerPath", financialAdvisor = "financialAdvisor", startupAdvisor = "startupAdvisor", realState = "realState", influencer = "influencer", theatre = "theatre", film = "film", design = "design", personalImage = "personalImage", productivity = "productivity", legalAdvisor = "legalAdvisor", nutrition = "nutrition", marketing = "marketing", artAndCraft = "artAndCraft", architecture = "architecture", science = "science", sustainability = "sustainability", spirituality = "spirituality", eventPlanning = "eventPlanning", musicProduction = "musicProduction", sales = "sales", oratory = "oratory", frontend = "frontend", backend = "backend", techSupport = "techSupport" } export declare const gSpecialities: Record<SpecialityKey, SpecialityMapType>; export type SpecialityCategoryKey = Record<string, { name: string; emoji: string; services: SpecialityKey[]; }>; export declare const specialityCategories: SpecialityCategoryKey; export declare const ideaMap: { ideas: { name: string; emoji: string; }; problemas: { name: string; emoji: string; }; pensamientos: { name: string; emoji: string; }; dudas: { name: string; emoji: string; }; emociones: { name: string; emoji: string; }; goals: { name: string; emoji: string; }; motivation: { name: string; emoji: string; }; logros: { name: string; emoji: string; }; }; export declare const solutionsMap: { emoji: string; name: string; subtitle: string; speciality: SpecialityKey; img: string; }[];