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[];
|
2017-12-09 23:34:59 +00:00
|
|
|
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 {
|
2017-12-09 23:34:59 +00:00
|
|
|
repoTemplates: { repoKey: string, template: string, newTemplate: string }[]; // newTemplate is local
|
|
|
|
immutableRepoTemplates: { repoKey: string, template: string, ownerId: string }[];
|
2017-08-28 01:05:38 +00:00
|
|
|
webhookUrl: string; // immutable
|
|
|
|
}
|
|
|
|
|
2017-06-05 03:31:31 +00:00
|
|
|
export interface IRCIntegration extends Integration {
|
2017-12-09 23:34:59 +00:00
|
|
|
availableNetworks: { name: string, id: string }[];
|
|
|
|
channels: { [networkId: string]: string[] };
|
2017-12-09 23:31:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface EtherpadWidgetIntegration extends Integration {
|
|
|
|
defaultUrl: string;
|
|
|
|
}
|
2017-12-10 07:59:36 +00:00
|
|
|
|
|
|
|
export interface JitsiWidgetIntegration extends Integration {
|
|
|
|
jitsiDomain: string;
|
|
|
|
scriptUrl: string
|
|
|
|
}
|