39 lines
No EOL
807 B
TypeScript
39 lines
No EOL
807 B
TypeScript
|
|
export 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: {}
|
|
} |