ruch
Version:
Revolutionary React TypeScript CLI with hexagonal architecture & AI-powered development assistance. Create maintainable, scalable applications with domain-driven design and integrated AI tooling.
32 lines (27 loc) • 810 B
text/typescript
import type { NotificationEntity, NotificationCreationData, NotificationUpdateData } from '../entities/Notification';
/**
* Port interface for Notification domain
* This interface defines the contract that adapters must implement
*/
export interface NotificationPort {
/**
* Get all notification entities
*/
getAll(): Promise<NotificationEntity[]>;
/**
* Get a notification entity by ID
*/
getById(id: string): Promise<NotificationEntity>;
/**
* Create a new notification entity
*/
create(data: NotificationCreationData): Promise<NotificationEntity>;
/**
* Update an existing notification entity
*/
update(id: string, data: NotificationUpdateData): Promise<NotificationEntity>;
/**
* Delete a notification entity
*/
delete(id: string): Promise<void>;
}