import { BaseApi } from './baseApi' ; export interface Email { email ? : string ; primary ? : boolean ; } export interface User { id ? : string ; firstName ? : string ; lastName ? : string ; imageId ? : string ; email ? : Email [ ] ; } /**
 * API for working with Users
 */ export class UserApi extends BaseApi < User > { me ( ) { return this . request ( '/users/me/' ) ; } get ( id ) { return this . request ( `/users/${ id }/` ) ; } }