mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-06-03 02:49:38 +00:00
Added notifications - (WIP, boilerplate)
This commit is contained in:
7
src/api-types/models/DeleteNotificationRequest.ts
Normal file
7
src/api-types/models/DeleteNotificationRequest.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type DeleteNotificationRequest = {
|
||||
uid: string;
|
||||
};
|
||||
9
src/api-types/models/GetNotificationsResponse.ts
Normal file
9
src/api-types/models/GetNotificationsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Notification } from './Notification';
|
||||
|
||||
export type GetNotificationsResponse = {
|
||||
notifications?: Array<Notification>;
|
||||
};
|
||||
14
src/api-types/models/Notification.ts
Normal file
14
src/api-types/models/Notification.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { NotificationAction } from './NotificationAction';
|
||||
|
||||
export type Notification = {
|
||||
type: string;
|
||||
text: string;
|
||||
uid: string;
|
||||
action?: NotificationAction;
|
||||
read: boolean;
|
||||
data?: any;
|
||||
};
|
||||
8
src/api-types/models/NotificationAction.ts
Normal file
8
src/api-types/models/NotificationAction.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type NotificationAction = {
|
||||
type: string;
|
||||
icon: string;
|
||||
};
|
||||
7
src/api-types/models/SetNotificationsToReadRequest.ts
Normal file
7
src/api-types/models/SetNotificationsToReadRequest.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type SetNotificationsToReadRequest = {
|
||||
uids: Array<string>;
|
||||
};
|
||||
Reference in New Issue
Block a user