import ClientEntityI from '../entities/ClientEntityI'; /** * ClientRepositoryI * @author Bright Antwi Boasiako */ export default interface ClientRepositoryI { /** * Creates a new client * @param {string} name [description] * @param {boolean} isPassword [description] * @param {string} userId [description] * @return {Promise} [description] */ create(name: string, isPassword: boolean, userId: string): Promise; /** * [revoke description] * @param {string} id The id of the client * @return {Promise} */ revoke(id: string): Promise; /** * Checks if the client is revoked * @param client * @return [description] */ validateClient(client: ClientEntityI): Promise; }