mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-03 14:31:27 +03:00
Completed notification functionality
Minor code cleanup
This commit is contained in:
@@ -80,7 +80,8 @@ export type { inline_response_200_15 } from './models/inline_response_200_15';
|
||||
export type { LoginRequest } from './models/LoginRequest';
|
||||
export type { LoginResponse } from './models/LoginResponse';
|
||||
export type { Notification } from './models/Notification';
|
||||
export type { NotificationAction } from './models/NotificationAction';
|
||||
export { NotificationAction } from './models/NotificationAction';
|
||||
export { NotificationType } from './models/NotificationType';
|
||||
export type { Playlist } from './models/Playlist';
|
||||
export type { RegisterRequest } from './models/RegisterRequest';
|
||||
export type { RegisterResponse } from './models/RegisterResponse';
|
||||
|
||||
@@ -3,12 +3,13 @@
|
||||
/* eslint-disable */
|
||||
|
||||
import type { NotificationAction } from './NotificationAction';
|
||||
import type { NotificationType } from './NotificationType';
|
||||
|
||||
export type Notification = {
|
||||
type: string;
|
||||
text: string;
|
||||
type: NotificationType;
|
||||
uid: string;
|
||||
action?: NotificationAction;
|
||||
user_uid?: string;
|
||||
action?: Array<NotificationAction>;
|
||||
read: boolean;
|
||||
data?: any;
|
||||
};
|
||||
@@ -2,7 +2,8 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type NotificationAction = {
|
||||
type: string;
|
||||
icon: string;
|
||||
};
|
||||
export enum NotificationAction {
|
||||
PLAY = 'play',
|
||||
RETRY_DOWNLOAD = 'retry_download',
|
||||
VIEW_DOWNLOAD_ERROR = 'view_download_error',
|
||||
}
|
||||
8
src/api-types/models/NotificationType.ts
Normal file
8
src/api-types/models/NotificationType.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export enum NotificationType {
|
||||
DOWNLOAD_COMPLETE = 'download_complete',
|
||||
DOWNLOAD_ERROR = 'download_error',
|
||||
}
|
||||
Reference in New Issue
Block a user