forgejo-notifications-core/src/spec/notification.ts
Aravinth Manivannan 8c5d70a5f7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: docs
2023-09-19 02:42:52 +05:30

29 lines
551 B
TypeScript

// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
import Repository from "./repository";
type Subject = {
title: string;
url: URL;
html_url: URL;
latest_comment_url: string;
type: string; // Issue
state: string;
};
/**
* Subset schema of notification object returned by Forgejo REST API
*/
type Notification = {
id: number;
repository: Repository;
subject: Subject;
unread: boolean;
pinned: boolean;
url: URL;
};
export default Notification;