mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
66 lines
1.6 KiB
TypeScript
66 lines
1.6 KiB
TypeScript
import type {ExternalAccountFieldData} from "./settings_components";
|
|
|
|
// TODO/typescript: Move this to server_events
|
|
export type TopicLink = {
|
|
text: string;
|
|
url: string;
|
|
};
|
|
|
|
// TODO/typescript: Move this to server_events_dispatch
|
|
export type UserGroupUpdateEvent = {
|
|
id: number;
|
|
type: string;
|
|
group_id: number;
|
|
data: {
|
|
name?: string;
|
|
description?: string;
|
|
can_mention_group?: number;
|
|
};
|
|
};
|
|
|
|
// TODO/typescript: Move this to server_events
|
|
export type UpdateMessageEvent = {
|
|
id: number;
|
|
type: string;
|
|
user_id: number | null;
|
|
rendering_only: boolean;
|
|
message_id: number;
|
|
message_ids: number[];
|
|
flags: string[];
|
|
edit_timestamp: number;
|
|
stream_name?: string;
|
|
stream_id?: number;
|
|
new_stream_id?: number;
|
|
propagate_mode?: string;
|
|
orig_subject?: string;
|
|
subject?: string;
|
|
topic_links?: TopicLink[];
|
|
orig_content?: string;
|
|
orig_rendered_content?: string;
|
|
prev_rendered_content_version?: number;
|
|
content?: string;
|
|
rendered_content?: string;
|
|
is_me_message?: boolean;
|
|
// The server is still using subject.
|
|
// This will not be set until it gets fixed.
|
|
topic?: string;
|
|
};
|
|
|
|
// TODO/typescript: Move this to user_profile
|
|
export type UserExternalAccountData = {
|
|
display_in_profile_summary: boolean | undefined;
|
|
field_data?: ExternalAccountFieldData;
|
|
id: number;
|
|
is_external_account: boolean;
|
|
is_link: boolean;
|
|
is_user_field: boolean;
|
|
name: string;
|
|
type: number;
|
|
required: boolean;
|
|
value: string;
|
|
subtype?: string;
|
|
link?: string;
|
|
};
|
|
|
|
export type HTMLSelectOneElement = HTMLSelectElement & {type: "select-one"};
|