Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the web-api response types with the latest data source #1403

Merged
merged 1 commit into from Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 21 additions & 21 deletions packages/web-api/src/response/ChatUpdateResponse.ts
Expand Up @@ -142,39 +142,26 @@ export interface File {
timestamp?: number;
name?: string;
title?: string;
subject?: string;
mimetype?: string;
filetype?: string;
pretty_type?: string;
user?: string;
editable?: boolean;
size?: number;
mode?: string;
is_external?: boolean;
external_type?: string;
is_public?: boolean;
public_url_shared?: boolean;
display_as_bot?: boolean;
username?: string;
url_private?: string;
url_private_download?: string;
permalink?: string;
permalink_public?: string;
edit_link?: string;
preview?: string;
preview_highlight?: string;
lines?: number;
lines_more?: number;
preview_is_truncated?: boolean;
is_starred?: boolean;
has_rich_preview?: boolean;
subject?: string;
editable?: boolean;
non_owner_editable?: boolean;
editor?: string;
last_editor?: string;
updated?: number;
original_attachment_count?: number;
is_external?: boolean;
external_type?: string;
external_id?: string;
external_url?: string;
username?: string;
size?: number;
url_private?: string;
url_private_download?: string;
app_id?: string;
app_name?: string;
thumb_64?: string;
Expand Down Expand Up @@ -226,11 +213,23 @@ export interface File {
deanimate?: string;
deanimate_gif?: string;
pjpeg?: string;
permalink?: string;
permalink_public?: string;
edit_link?: string;
has_rich_preview?: boolean;
media_display_type?: string;
preview_is_truncated?: boolean;
preview?: string;
preview_highlight?: string;
plain_text?: string;
preview_plain_text?: string;
has_more?: boolean;
sent_to_self?: boolean;
lines?: number;
lines_more?: number;
is_public?: boolean;
public_url_shared?: boolean;
display_as_bot?: boolean;
shares?: Shares;
channel_actions_ts?: string;
channel_actions_count?: number;
Expand All @@ -239,6 +238,7 @@ export interface File {
bot_id?: string;
initial_comment?: InitialComment;
num_stars?: number;
is_starred?: boolean;
comments_count?: number;
}

Expand Down
16 changes: 8 additions & 8 deletions packages/web-api/src/response/ConversationsHistoryResponse.ts
Expand Up @@ -161,36 +161,36 @@ export interface Metadata {

export interface Block {
type?: string;
elements?: Element[];
block_id?: string;
text?: Text;
accessory?: Accessory;
elements?: Element[];
fallback?: string;
image_url?: string;
image_width?: number;
image_height?: number;
image_bytes?: number;
alt_text?: string;
title?: Text;
text?: Text;
fields?: Text[];
accessory?: Accessory;
}

export interface Accessory {
type?: string;
image_url?: string;
alt_text?: string;
fallback?: string;
image_url?: string;
image_width?: number;
image_height?: number;
image_bytes?: number;
type?: string;
alt_text?: string;
}

export interface Element {
type?: string;
text?: Text;
action_id?: string;
url?: string;
text?: Text;
value?: string;
url?: string;
style?: string;
confirm?: ElementConfirm;
placeholder?: Text;
Expand Down
24 changes: 12 additions & 12 deletions packages/web-api/src/response/SearchAllResponse.ts
Expand Up @@ -154,42 +154,42 @@ export interface MessagesMatch {
}

export interface Attachment {
service_name?: string;
title?: string;
title_link?: string;
text?: string;
fallback?: string;
thumb_url?: string;
from_url?: string;
thumb_width?: number;
thumb_height?: number;
service_icon?: string;
id?: number;
original_url?: string;
msg_subtype?: string;
fallback?: string;
callback_id?: string;
color?: string;
pretext?: string;
service_url?: string;
service_name?: string;
service_icon?: string;
author_id?: string;
author_name?: string;
author_link?: string;
author_icon?: string;
from_url?: string;
original_url?: string;
author_subname?: string;
channel_id?: string;
channel_name?: string;
id?: number;
bot_id?: string;
indent?: boolean;
is_msg_unfurl?: boolean;
is_reply_unfurl?: boolean;
is_thread_root_unfurl?: boolean;
is_app_unfurl?: boolean;
app_unfurl_url?: string;
title?: string;
title_link?: string;
text?: string;
fields?: Field[];
image_url?: string;
image_width?: number;
image_height?: number;
image_bytes?: number;
thumb_url?: string;
thumb_width?: number;
thumb_height?: number;
video_url?: string;
video_html?: string;
video_html_width?: number;
Expand Down
24 changes: 12 additions & 12 deletions packages/web-api/src/response/SearchMessagesResponse.ts
Expand Up @@ -46,42 +46,42 @@ export interface Match {
}

export interface Attachment {
msg_subtype?: string;
service_name?: string;
title?: string;
title_link?: string;
text?: string;
fallback?: string;
thumb_url?: string;
from_url?: string;
thumb_width?: number;
thumb_height?: number;
service_icon?: string;
id?: number;
original_url?: string;
msg_subtype?: string;
callback_id?: string;
color?: string;
pretext?: string;
service_url?: string;
service_name?: string;
service_icon?: string;
author_id?: string;
author_name?: string;
author_link?: string;
author_icon?: string;
from_url?: string;
original_url?: string;
author_subname?: string;
channel_id?: string;
channel_name?: string;
id?: number;
bot_id?: string;
indent?: boolean;
is_msg_unfurl?: boolean;
is_reply_unfurl?: boolean;
is_thread_root_unfurl?: boolean;
is_app_unfurl?: boolean;
app_unfurl_url?: string;
title?: string;
title_link?: string;
text?: string;
fields?: Field[];
image_url?: string;
image_width?: number;
image_height?: number;
image_bytes?: number;
thumb_url?: string;
thumb_width?: number;
thumb_height?: number;
video_url?: string;
video_html?: string;
video_html_width?: number;
Expand Down