-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
related to #493
- Loading branch information
Showing
6 changed files
with
359 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,114 @@ | ||
export enum SubStatus { | ||
NONE = "0", | ||
WAITING = "1", | ||
SUBSCRIBED = "2", | ||
FAILED = "3", | ||
} | ||
|
||
export enum MuteStatus { | ||
UNMUTED = 1, | ||
MUTED = 2, | ||
UNKNOWN = 3, | ||
} | ||
|
||
export enum ExistStatus { | ||
EXISTS = 1, | ||
NOT_EXISTS = 2, | ||
NEVER_EXISTED = 3, | ||
UNKNOWN = 4, | ||
} | ||
|
||
export const VideoQualityArray: string[] = ["best", "1080p60", "1080p", "720p60", "720p", "480p", "360p", "160p", "140p", "worst", "audio_only"]; | ||
|
||
export const nonGameCategories = [ | ||
"Just Chatting", | ||
"IRL", | ||
"Art", | ||
"Music", | ||
"Pools, Hot Tubs, and Beaches", | ||
"Sports", | ||
"ASMR", | ||
"Talk Shows & Podcasts", | ||
"Special Events", | ||
"Beauty & Body Art", | ||
"Animals, Aquariums, and Zoos", | ||
"Travel & Outdoors", | ||
"Makers & Crafting", | ||
"Software and Game Development", | ||
"Science & Technology", | ||
"Food & Drink", | ||
"Politics", | ||
"Fitness & Health", | ||
]; | ||
|
||
export type Providers = "base" | "twitch" | "youtube" | "kick"; | ||
|
||
// twitch vod age is 14 days then it's deleted | ||
export const TwitchVodAge = 14 * 24 * 60 * 60 * 1000; | ||
|
||
export enum NotificationProvider { | ||
/** Websocket to all browser clients */ | ||
WEBSOCKET = 1 << 0, | ||
/** Telegram bot */ | ||
TELEGRAM = 1 << 1, | ||
/** Discord webhook */ | ||
DISCORD = 1 << 2, | ||
/** Pushover */ | ||
PUSHOVER = 1 << 3, | ||
} | ||
|
||
export const NotificationProvidersList = [ | ||
{ id: NotificationProvider.WEBSOCKET, name: "WebSocket" }, | ||
{ id: NotificationProvider.TELEGRAM, name: "Telegram" }, | ||
{ id: NotificationProvider.DISCORD, name: "Discord" }, | ||
{ id: NotificationProvider.PUSHOVER, name: "Pushover" }, | ||
]; | ||
|
||
export const NotificationCategories = [ | ||
{ "id": "offlineStatusChange", name: "Offline status change" }, | ||
{ "id": "streamOnline", name: "Stream online" }, | ||
{ "id": "streamOffline", name: "Stream offline" }, | ||
{ "id": "streamStatusChange", name: "Stream status change" }, | ||
{ "id": "streamStatusChangeFavourite", name: "Stream status change with favourite game" }, | ||
{ "id": "vodMuted", name: "VOD muted" }, | ||
{ "id": "vodDeleted", name: "VOD deleted" }, | ||
{ "id": "debug", name: "Debug" }, | ||
{ "id": "system", name: "System" }, | ||
]; | ||
|
||
export type NotificationCategory = "offlineStatusChange" | "streamOnline" | "streamOffline" | "streamStatusChange" | "streamStatusChangeFavourite" | "vodMuted" | "vodDeleted" | "debug" | "system"; | ||
|
||
export enum JobStatus { | ||
NONE = "NONE", | ||
WAITING = "WAITING", | ||
RUNNING = "RUNNING", | ||
STOPPED = "STOPPED", | ||
ERROR = "ERROR", | ||
} | ||
export enum SubStatus { | ||
NONE = "0", | ||
WAITING = "1", | ||
SUBSCRIBED = "2", | ||
FAILED = "3", | ||
} | ||
|
||
export enum MuteStatus { | ||
UNMUTED = 1, | ||
MUTED = 2, | ||
UNKNOWN = 3, | ||
} | ||
|
||
export enum ExistStatus { | ||
EXISTS = 1, | ||
NOT_EXISTS = 2, | ||
NEVER_EXISTED = 3, | ||
UNKNOWN = 4, | ||
} | ||
|
||
export const VideoQualityArray: string[] = [ | ||
"best", | ||
"1080p60", | ||
"1080p", | ||
"720p60", | ||
"720p", | ||
"480p", | ||
"360p", | ||
"160p", | ||
"140p", | ||
"worst", | ||
"audio_only", | ||
]; | ||
|
||
export const nonGameCategories = [ | ||
"Just Chatting", | ||
"IRL", | ||
"Art", | ||
"Music", | ||
"Pools, Hot Tubs, and Beaches", | ||
"Sports", | ||
"ASMR", | ||
"Talk Shows & Podcasts", | ||
"Special Events", | ||
"Beauty & Body Art", | ||
"Animals, Aquariums, and Zoos", | ||
"Travel & Outdoors", | ||
"Makers & Crafting", | ||
"Software and Game Development", | ||
"Science & Technology", | ||
"Food & Drink", | ||
"Politics", | ||
"Fitness & Health", | ||
]; | ||
|
||
export type Providers = "base" | "twitch" | "youtube" | "kick"; | ||
|
||
// twitch vod age is 14 days then it's deleted | ||
export const TwitchVodAge = 14 * 24 * 60 * 60 * 1000; | ||
|
||
export enum NotificationProvider { | ||
/** Websocket to all browser clients */ | ||
WEBSOCKET = 1 << 0, | ||
/** Telegram bot */ | ||
TELEGRAM = 1 << 1, | ||
/** Discord webhook */ | ||
DISCORD = 1 << 2, | ||
/** Pushover */ | ||
PUSHOVER = 1 << 3, | ||
/** Ntfy */ | ||
NTFY = 1 << 4, | ||
} | ||
|
||
export const NotificationProvidersList = [ | ||
{ id: NotificationProvider.WEBSOCKET, name: "WebSocket" }, | ||
{ id: NotificationProvider.TELEGRAM, name: "Telegram" }, | ||
{ id: NotificationProvider.DISCORD, name: "Discord" }, | ||
{ id: NotificationProvider.PUSHOVER, name: "Pushover" }, | ||
{ id: NotificationProvider.NTFY, name: "Ntfy" }, | ||
]; | ||
|
||
export const NotificationCategories = [ | ||
{ id: "offlineStatusChange", name: "Offline status change" }, | ||
{ id: "streamOnline", name: "Stream online" }, | ||
{ id: "streamOffline", name: "Stream offline" }, | ||
{ id: "streamStatusChange", name: "Stream status change" }, | ||
{ | ||
id: "streamStatusChangeFavourite", | ||
name: "Stream status change with favourite game", | ||
}, | ||
{ id: "vodMuted", name: "VOD muted" }, | ||
{ id: "vodDeleted", name: "VOD deleted" }, | ||
{ id: "debug", name: "Debug" }, | ||
{ id: "system", name: "System" }, | ||
]; | ||
|
||
export type NotificationCategory = | ||
| "offlineStatusChange" | ||
| "streamOnline" | ||
| "streamOffline" | ||
| "streamStatusChange" | ||
| "streamStatusChangeFavourite" | ||
| "vodMuted" | ||
| "vodDeleted" | ||
| "debug" | ||
| "system"; | ||
|
||
export enum JobStatus { | ||
NONE = "NONE", | ||
WAITING = "WAITING", | ||
RUNNING = "RUNNING", | ||
STOPPED = "STOPPED", | ||
ERROR = "ERROR", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.