2017-05-28 06:35:40 +00:00
|
|
|
export interface Integration {
|
|
|
|
type: string;
|
2017-05-28 23:39:02 +00:00
|
|
|
integrationType: string;
|
2017-05-28 06:35:40 +00:00
|
|
|
userId: string;
|
2017-05-27 07:27:36 +00:00
|
|
|
name: string;
|
|
|
|
avatar: string;
|
|
|
|
about: string; // nullable
|
|
|
|
isEnabled: boolean;
|
2017-05-27 23:45:07 +00:00
|
|
|
isBroken: boolean;
|
2017-05-29 04:51:04 +00:00
|
|
|
hasConfig: boolean;
|
2017-06-05 03:31:31 +00:00
|
|
|
requirements?: any; // nullable
|
|
|
|
bridgeError: string; // nullable
|
2017-05-27 07:27:36 +00:00
|
|
|
}
|
2017-05-29 04:51:04 +00:00
|
|
|
|
|
|
|
export interface RSSIntegration extends Integration {
|
|
|
|
feeds: string[];
|
|
|
|
immutableFeeds: {url: string, ownerId: string}[];
|
2017-06-05 03:31:31 +00:00
|
|
|
}
|
|
|
|
|
2017-08-28 01:05:38 +00:00
|
|
|
export interface TravisCiIntegration extends Integration {
|
|
|
|
repoTemplates: {repoKey: string, template: string, newTemplate: string}[]; // newTemplate is local
|
|
|
|
immutableRepoTemplates: {repoKey: string, template: string, ownerId: string}[];
|
|
|
|
webhookUrl: string; // immutable
|
|
|
|
}
|
|
|
|
|
2017-06-05 03:31:31 +00:00
|
|
|
export interface IRCIntegration extends Integration {
|
2017-06-11 00:58:05 +00:00
|
|
|
availableNetworks: {name: string, id: string}[];
|
2017-06-05 03:31:31 +00:00
|
|
|
channels: {[networkId: string]: string[]};
|
2017-05-29 04:51:04 +00:00
|
|
|
}
|