UNPKG

skailan-conversations

Version:

Servicio de conversaciones y mensajería para Skailan

12 lines 639 B
import { Channel, ChannelType } from "../entities/Channel"; export interface IChannelRepository { findById(id: string): Promise<Channel | null>; findByType(type: string, organizationId: string): Promise<Channel | null>; findByTypeAndOrganization(type: ChannelType, organizationId: string): Promise<Channel | null>; findAll(organizationId: string): Promise<Channel[]>; create(channel: Channel): Promise<Channel>; update(channel: Channel): Promise<Channel>; save(channel: Channel): Promise<Channel>; delete(id: string, organizationId: string): Promise<void>; } //# sourceMappingURL=IChannelRepository.d.ts.map