aggregator.ts 512 B

123456789101112131415161718192021222324
  1. export interface INewsItem {
  2. feedId: string,
  3. newsId: number,
  4. link: string | "",
  5. title: string | "",
  6. author: string,
  7. contents: string,
  8. embedColor: number | 0xffffff,
  9. needsTranslation?: boolean;
  10. }
  11. export interface INewsPostData {
  12. hash?: string,
  13. cacheMessageId?: string,
  14. postedMessageId?: string,
  15. }
  16. export type NewsPostItem = INewsItem & INewsPostData;
  17. export interface IAggregator {
  18. aggregate() : Promise<INewsItem[]>;
  19. init?(): void;
  20. }