UNPKG

trainingpeaks-sdk

Version:
57 lines 1.39 kB
import { Logger } from '../../adapters/index.js'; import { TrainingPeaksRepository } from '../../application/index.js'; export type UserEntrypointDependencies = { tpRepository: TrainingPeaksRepository; logger: Logger; }; export type GetUserProfileResponse = { success: boolean; data?: { id: string; name: string; username: string; avatar?: string; preferences?: { timezone?: string; language?: string; units?: 'metric' | 'imperial'; dateFormat?: string; email?: string; }; }; error?: { code: string; message: string; }; }; export type UpdateUserProfileCommand = { name?: string; avatar?: string; preferences?: { timezone?: string; language?: string; units?: 'metric' | 'imperial'; dateFormat?: string; }; }; export type UpdateUserProfileResponse = { success: boolean; data?: { id: string; name: string; username: string; avatar?: string; preferences?: { timezone?: string; language?: string; units?: 'metric' | 'imperial'; dateFormat?: string; email?: string; }; }; error?: { code: string; message: string; }; }; //# sourceMappingURL=types.d.ts.map