import { WebhookConfigItemModel } from './webhook-config-item-model';
import { RssListenerParams } from '../rsslistener/rsslistener-params';
import { MailListenerParams } from '../maillistener/maillistener-params';

export type MainConfigModel = {
  issueChangesQueue: {
    updateInterval: number;
    itemsLimit: number;
  };
  mailListener: MailListenerParams | null;
  rssListener: RssListenerParams | null;
  redmineUrlPrefix: string;
  redmineUrlPublic: string;
  couchDb: {
    url: string;
    dbs: {
      users: string;
      issues: string;
      dashboards: string;
    };
  };
  webhooks: WebhookConfigItemModel[];
};
