matrix-dimension/web/app/shared/models/integration.ts
turt2live 30cfe080ce Start of the IRC bridge config: Pull networks and channels
TODO: 
* Provisioning support (IRC API)
* Deprovisioning support (IRC API)
* Ops query (IRC API)
* State update interval
2017-06-09 20:21:06 -06:00

23 lines
No EOL
599 B
TypeScript

export interface Integration {
type: string;
integrationType: string;
userId: string;
name: string;
avatar: string;
about: string; // nullable
isEnabled: boolean;
isBroken: boolean;
hasConfig: boolean;
requirements?: any; // nullable
bridgeError: string; // nullable
}
export interface RSSIntegration extends Integration {
feeds: string[];
immutableFeeds: {url: string, ownerId: string}[];
}
export interface IRCIntegration extends Integration {
availableNetworks: {name: string, id: string};
channels: {[networkId: string]: string[]};
}