matrix-dimension/web/app/shared/models/integration.ts
Travis Ralston 4965b61f2d Re-wire the UI to support the new backend
This still doesn't allow editing, but it supports showing the widgets at least.
2017-12-20 21:28:43 -07:00

40 lines
No EOL
871 B
TypeScript

export interface Integration {
category: "bot" | "complex-bot" | "bridge" | "widget";
type: string;
requirements: IntegrationRequirement[];
isEncryptionSupported: boolean;
displayName: string;
avatarUrl: string;
description: string;
isEnabled: boolean;
isPublic: boolean;
// Used by us
_inRoom: boolean;
_isUpdating: boolean;
_isSupported: boolean;
_notSupportedReason: string;
}
export interface Widget extends Integration {
options: any;
}
export interface EtherpadWidget extends Widget {
options: {
defaultUrl: string;
};
}
export interface JitsiWidget extends Widget {
options: {
jitsiDomain: string;
scriptUrl: string;
};
}
export interface IntegrationRequirement {
condition: "publicRoom" | "canSendEventTypes";
argument: any;
expectedValue: any;
}