matrix-dimension/web/app/shared/models/integration.ts

41 lines
1.1 KiB
TypeScript
Raw Normal View History

export interface Integration {
type: string;
integrationType: string;
userId: string;
name: string;
avatar: string;
about: string; // nullable
supportsEncryptedRooms: boolean;
// Set by us
isEnabled: boolean;
isBroken: boolean;
hasConfig: boolean;
requirements?: any; // nullable
bridgeError: string; // nullable
}
export interface RSSIntegration extends Integration {
feeds: string[];
2017-12-09 18:34:59 -05:00
immutableFeeds: { url: string, ownerId: string }[];
}
export interface TravisCiIntegration extends Integration {
2017-12-09 18:34:59 -05:00
repoTemplates: { repoKey: string, template: string, newTemplate: string }[]; // newTemplate is local
immutableRepoTemplates: { repoKey: string, template: string, ownerId: string }[];
webhookUrl: string; // immutable
}
export interface IRCIntegration extends Integration {
2017-12-09 18:34:59 -05:00
availableNetworks: { name: string, id: string }[];
channels: { [networkId: string]: string[] };
2017-12-09 18:31:36 -05:00
}
export interface EtherpadWidgetIntegration extends Integration {
defaultUrl: string;
}
export interface JitsiWidgetIntegration extends Integration {
jitsiDomain: string;
scriptUrl: string
}