⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import { request } from '@/lib/api/core/client';
import type { NotificationEventToggles } from '@/lib/api/endpoints/notificationSettings';
// The session member's own notification preferences for a project: which issue
// events they want by email and/or Telegram. Email is sent to the member's account
// address, Telegram to the account they linked in their profile.
export interface NotificationPreferences {
emailEvents: NotificationEventToggles;
telegramEvents: NotificationEventToggles;
}
// The session member's own notification preferences for a project (any member).
export const getNotificationPreferences = (projectKey: string) =>
request<NotificationPreferences>(`/projects/${projectKey}/notification-preferences`);
export const setNotificationPreferences = (projectKey: string, input: NotificationPreferences) =>
request<NotificationPreferences>(`/projects/${projectKey}/notification-preferences`, {
method: 'PUT',
body: JSON.stringify(input),
});