Files
feeddeck/supabase/functions/_shared/models/source.ts
T
Rico BergerandGitHub 4c34d33ac0 [x] Remove X Source (#162)
X (Twitter) was never supported and the code was never used to add a
source. We kept it in the hope that it will be possible again to use X
within the app. Since this isn't the case it is time to remove the code.
2024-04-06 13:00:12 +02:00

50 lines
1015 B
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'
| '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;
youtube?: string;
}