@salla.sa/twilight-components
Version:
Salla Web Component
33 lines (32 loc) • 628 B
TypeScript
export interface UserNotification {
next_page?: string;
count: number;
items: Notification[];
}
export interface Notification {
title: string;
sub_title: string;
date: string;
is_new: boolean;
url: string;
}
/**
* New API notification format (v2).
*/
export interface NotificationV2 {
id: number;
title: string;
color: string;
icon: string;
url: string;
body: string;
is_read: boolean;
time_ago: string;
created_at: number;
}
export interface CursorPagination {
current: number;
previous: number | null;
next: number | null;
count: number;
}