Files
feeddeck/supabase/functions/_shared/models/source.ts
Rico Berger 689d3bd39b [4chan] Add Support for 4chan (#142)
This commit adds support for 4chan. This means that 4chan can be
selected as a new source type. When the 4chan source is selected a user
can select a board from which he wants to get the RSS feed.
2024-02-14 13:05:10 +01:00

52 lines
1.0 KiB
TypeScript

import { ISourceOptionsGithub } from './sources/github.ts';
import { ISourceOptionsGoogleNews } from './sources/googlenews.ts';
import { ISourceOptionsStackOverflow } from './sources/stackoverflow.ts';
export type TSourceType =
| 'fourchan'
| 'github'
| 'googlenews'
| 'lemmy'
| 'mastodon'
| 'medium'
| 'nitter'
| 'pinterest'
| 'podcast'
| 'reddit'
| 'rss'
| 'stackoverflow'
| 'tumblr'
| 'x'
| 'youtube'
| 'none';
export interface ISource {
id: string;
columnId: string;
userId: string;
type: TSourceType;
title: string;
options?: ISourceOptions;
link?: string;
icon?: string;
updatedAt?: number;
}
export interface ISourceOptions {
fourchan?: string;
github?: ISourceOptionsGithub;
googlenews?: ISourceOptionsGoogleNews;
lemmy?: string;
mastodon?: string;
medium?: string;
nitter?: string;
pinterest?: string;
podcast?: string;
reddit?: string;
rss?: string;
stackoverflow?: ISourceOptionsStackOverflow;
tumblr?: string;
x?: string;
youtube?: string;
}