33 lines
931 B
TypeScript
33 lines
931 B
TypeScript
import { NotificationChannel } from "../NotificationJobs/NotificationJobs.Interface";
|
|
|
|
export interface IClientCompanyNotificationOverride {
|
|
id?: string;
|
|
clientId: string;
|
|
companyId: string;
|
|
preferredChannels: NotificationChannel[];
|
|
mutedChannels: NotificationChannel[];
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}
|
|
|
|
export interface FindClientCompanyOverrideParams {
|
|
clientId?: string;
|
|
companyId?: string;
|
|
}
|
|
|
|
export interface IClientCompanyNotificationOverrideAdapter {
|
|
findOne(
|
|
filters: FindClientCompanyOverrideParams
|
|
): Promise<IClientCompanyNotificationOverride | null>;
|
|
upsert(
|
|
clientId: string,
|
|
companyId: string,
|
|
data: Partial<
|
|
Omit<
|
|
IClientCompanyNotificationOverride,
|
|
"id" | "clientId" | "companyId" | "createdAt" | "updatedAt"
|
|
>
|
|
>
|
|
): Promise<IClientCompanyNotificationOverride>;
|
|
}
|