TeaSpeak-Client/imports/shared-app/ui/modal/invite/Definitions.d.ts
2021-02-20 18:55:36 +01:00

36 lines
844 B
TypeScript

export declare type InviteChannel = {
channelId: number;
channelName: string;
depth: number;
};
export interface InviteUiVariables {
shortLink: boolean;
advancedSettings: boolean;
selectedChannel: number | 0;
channelPassword: {
raw: string | undefined;
hashed: string | undefined;
};
token: string | undefined;
expiresAfter: number | 0;
webClientUrlBase: {
override: string | undefined;
fallback: string;
};
readonly availableChannels: InviteChannel[];
readonly generatedLink: {
status: "generating";
} | {
status: "error";
message: string;
} | {
status: "success";
longUrl: string;
shortUrl: string;
expireDate: number | 0;
};
}
export interface InviteUiEvents {
action_close: {};
}