import {AbstractCall, BaseRequestPayload, BaseResponsePayload} from "../../src/AbstractCall"; import {Service} from "../../src/Service"; import {User} from "../database/ObjectInterfaces"; export class UpdateUserCall extends AbstractCall{ getRequestName(): string { return UpdateUserCall.NAME; } getService(): Service { return Service.USERMANAGMENT; } } export module UpdateUserCall{ export const NAME = "UPDATE_USER_CALL"; export interface RequestModel extends BaseRequestPayload{ user_id:any, user:{ username? : string name? : string surname? : string email? : string password? : string company? : string birthdate? : Date gender? : string school? : string country? : string profile_image?:string } } export interface ResponseModel extends BaseResponsePayload{ updated_user:User } }