Skip to content

Commit

Permalink
Add files to view.state.values in TS (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored Nov 15, 2023
1 parent ad14372 commit a3c679a
Showing 1 changed file with 128 additions and 0 deletions.
128 changes: 128 additions & 0 deletions src/types/view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,133 @@ export interface ViewStateSelectedOption {
value: string;
}

export interface UploadedFile {
id: string;
created: number;
timestamp: number;
name: string;
title: string;
filetype: string;
mimetype: string;
permalink: string;
url_private: string;
url_private_download: string;
user: string;
user_team: string;
username?: string;
access?: string;
alt_txt?: string;
app_id?: string;
app_name?: string;
bot_id?: string;
channel_actions_count?: number;
channel_actions_ts?: string;
channels?: string[];
comments_count?: number;
converted_pdf?: string;
deanimate?: string;
deanimate_gif?: string;
display_as_bot?: boolean;
duration_ms?: number;
edit_link?: string;
editable?: boolean;
editor?: string;
external_id?: string;
external_type?: string;
external_url?: string;
file_access?: string;
groups?: string[];
has_more?: boolean;
has_more_shares?: boolean;
has_rich_preview?: boolean;
hls?: string;
hls_embed?: string;
image_exif_rotation?: number;
ims?: string[];
is_channel_space?: boolean;
is_external?: boolean;
is_public?: boolean;
is_starred?: boolean;
last_editor?: string;
last_read?: number;
lines?: number;
lines_more?: number;
linked_channel_id?: string;
media_display_type?: string;
mode?: string;
mp4?: string;
mp4_low?: string;
non_owner_editable?: boolean;
num_stars?: number;
org_or_workspace_access?: string;
original_attachment_count?: number;
original_h?: string;
original_w?: string;
permalink_public?: string;
pinned_to?: string[];
pjpeg?: string;
plain_text?: string;
pretty_type?: string;
preview?: string;
preview_highlight?: string;
preview_is_truncated?: boolean;
preview_plain_text?: string;
private_channels_with_file_access_count?: number;
public_url_shared?: boolean;
simplified_html?: string;
size?: number;
source_team?: string;
subject?: string;
subtype?: string;
thumb_1024?: string;
thumb_1024_gif?: string;
thumb_1024_h?: string;
thumb_1024_w?: string;
thumb_160?: string;
thumb_160_gif?: string;
thumb_160_h?: string;
thumb_160_w?: string;
thumb_360?: string;
thumb_360_gif?: string;
thumb_360_h?: string;
thumb_360_w?: string;
thumb_480?: string;
thumb_480_gif?: string;
thumb_480_h?: string;
thumb_480_w?: string;
thumb_64?: string;
thumb_64_gif?: string;
thumb_64_h?: string;
thumb_64_w?: string;
thumb_720?: string;
thumb_720_gif?: string;
thumb_720_h?: string;
thumb_720_w?: string;
thumb_80?: string;
thumb_800?: string;
thumb_800_gif?: string;
thumb_800_h?: string;
thumb_800_w?: string;
thumb_80_gif?: string;
thumb_80_h?: string;
thumb_80_w?: string;
thumb_960?: string;
thumb_960_gif?: string;
thumb_960_h?: string;
thumb_960_w?: string;
thumb_gif?: string;
thumb_pdf?: string;
thumb_pdf_h?: string;
thumb_pdf_w?: string;
thumb_tiny?: string;
thumb_video?: string;
thumb_video_h?: number;
thumb_video_w?: number;
updated?: number;
url_static_preview?: string;
vtt?: string;
}

export interface ViewStateValue {
type: string;
value?: string | null;
Expand All @@ -144,6 +271,7 @@ export interface ViewStateValue {
selected_users?: string[];
selected_options?: ViewStateSelectedOption[];
rich_text_value?: RichTextBlock;
files?: UploadedFile[]; // type: "file_input"
}

export interface ViewOutput {
Expand Down

0 comments on commit a3c679a

Please sign in to comment.