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

Add new web-api response properties (as of 2021-10-25) #1362

Merged
merged 1 commit into from Oct 26, 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
Expand Up @@ -15,6 +15,7 @@ export type ConversationsAcceptSharedInviteResponse = WebAPICallResult & {
implicit_approval?: boolean;
channel_id?: string;
invite_id?: string;
can_open_scdm?: boolean;
needed?: string;
provided?: string;
};
9 changes: 5 additions & 4 deletions packages/web-api/src/response/OauthTokenResponse.ts
Expand Up @@ -10,8 +10,9 @@

import { WebAPICallResult } from '../WebClient';
export type OauthTokenResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
ok?: boolean;
error?: string;
req_method?: string;
needed?: string;
provided?: string;
};
1 change: 1 addition & 0 deletions packages/web-api/src/response/SearchAllResponse.ts
Expand Up @@ -93,6 +93,7 @@ export interface FilesMatch {
non_owner_editable?: boolean;
updated?: number;
thumb_video?: string;
comments_count?: number;
}

export interface MatchShares {
Expand Down
1 change: 1 addition & 0 deletions packages/web-api/src/response/SearchFilesResponse.ts
Expand Up @@ -92,6 +92,7 @@ export interface Match {
updated?: number;
thumb_video?: string;
media_display_type?: string;
comments_count?: number;
}

export interface Shares {
Expand Down
67 changes: 37 additions & 30 deletions packages/web-api/src/response/UsersInfoResponse.ts
Expand Up @@ -54,34 +54,41 @@ export interface EnterpriseUser {
}

export interface Profile {
title?: string;
phone?: string;
skype?: string;
real_name?: string;
real_name_normalized?: string;
display_name?: string;
display_name_normalized?: string;
status_text?: string;
status_emoji?: string;
status_expiration?: number;
avatar_hash?: string;
api_app_id?: string;
always_active?: boolean;
bot_id?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_72?: string;
image_192?: string;
image_512?: string;
status_text_canonical?: string;
team?: string;
image_original?: string;
is_custom_image?: boolean;
email?: string;
first_name?: string;
last_name?: string;
image_1024?: string;
status_emoji_url?: string;
pronouns?: string;
title?: string;
phone?: string;
skype?: string;
real_name?: string;
real_name_normalized?: string;
display_name?: string;
display_name_normalized?: string;
status_text?: string;
status_emoji?: string;
status_expiration?: number;
avatar_hash?: string;
api_app_id?: string;
always_active?: boolean;
bot_id?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_72?: string;
image_192?: string;
image_512?: string;
status_text_canonical?: string;
team?: string;
image_original?: string;
is_custom_image?: boolean;
email?: string;
first_name?: string;
last_name?: string;
image_1024?: string;
status_emoji_url?: string;
pronouns?: string;
status_emoji_display_info?: StatusEmojiDisplayInfo[];
}

export interface StatusEmojiDisplayInfo {
emoji_name?: string;
display_alias?: string;
display_url?: string;
}
61 changes: 34 additions & 27 deletions packages/web-api/src/response/UsersLookupByEmailResponse.ts
Expand Up @@ -42,31 +42,38 @@ export interface User {
}

export interface Profile {
title?: string;
phone?: string;
skype?: string;
real_name?: string;
real_name_normalized?: string;
display_name?: string;
display_name_normalized?: string;
status_text?: string;
status_emoji?: string;
status_expiration?: number;
avatar_hash?: string;
image_original?: string;
is_custom_image?: boolean;
email?: string;
first_name?: string;
last_name?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_72?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
status_text_canonical?: string;
team?: string;
status_emoji_url?: string;
pronouns?: string;
title?: string;
phone?: string;
skype?: string;
real_name?: string;
real_name_normalized?: string;
display_name?: string;
display_name_normalized?: string;
status_text?: string;
status_emoji?: string;
status_expiration?: number;
avatar_hash?: string;
image_original?: string;
is_custom_image?: boolean;
email?: string;
first_name?: string;
last_name?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_72?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
status_text_canonical?: string;
team?: string;
status_emoji_url?: string;
pronouns?: string;
status_emoji_display_info?: StatusEmojiDisplayInfo[];
}

export interface StatusEmojiDisplayInfo {
emoji_name?: string;
display_alias?: string;
display_url?: string;
}
61 changes: 34 additions & 27 deletions packages/web-api/src/response/UsersProfileGetResponse.ts
Expand Up @@ -18,36 +18,43 @@ export type UsersProfileGetResponse = WebAPICallResult & {
};

export interface Profile {
title?: string;
phone?: string;
skype?: string;
real_name?: string;
real_name_normalized?: string;
display_name?: string;
display_name_normalized?: string;
fields?: { [key: string]: Field };
status_text?: string;
status_emoji?: string;
status_expiration?: number;
avatar_hash?: string;
image_original?: string;
is_custom_image?: boolean;
email?: string;
first_name?: string;
last_name?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_72?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
status_text_canonical?: string;
status_emoji_url?: string;
pronouns?: string;
title?: string;
phone?: string;
skype?: string;
real_name?: string;
real_name_normalized?: string;
display_name?: string;
display_name_normalized?: string;
fields?: { [key: string]: Field };
status_text?: string;
status_emoji?: string;
status_expiration?: number;
avatar_hash?: string;
image_original?: string;
is_custom_image?: boolean;
email?: string;
first_name?: string;
last_name?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_72?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
status_text_canonical?: string;
status_emoji_url?: string;
pronouns?: string;
status_emoji_display_info?: StatusEmojiDisplayInfo[];
}

export interface Field {
value?: string;
alt?: string;
}

export interface StatusEmojiDisplayInfo {
emoji_name?: string;
display_alias?: string;
display_url?: string;
}
61 changes: 34 additions & 27 deletions packages/web-api/src/response/UsersProfileSetResponse.ts
Expand Up @@ -19,36 +19,43 @@ export type UsersProfileSetResponse = WebAPICallResult & {
};

export interface Profile {
title?: string;
phone?: string;
skype?: string;
real_name?: string;
real_name_normalized?: string;
display_name?: string;
display_name_normalized?: string;
fields?: { [key: string]: Field };
status_text?: string;
status_emoji?: string;
status_expiration?: number;
avatar_hash?: string;
image_original?: string;
is_custom_image?: boolean;
email?: string;
first_name?: string;
last_name?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_72?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
status_text_canonical?: string;
status_emoji_url?: string;
pronouns?: string;
title?: string;
phone?: string;
skype?: string;
real_name?: string;
real_name_normalized?: string;
display_name?: string;
display_name_normalized?: string;
fields?: { [key: string]: Field };
status_text?: string;
status_emoji?: string;
status_expiration?: number;
avatar_hash?: string;
image_original?: string;
is_custom_image?: boolean;
email?: string;
first_name?: string;
last_name?: string;
image_24?: string;
image_32?: string;
image_48?: string;
image_72?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
status_text_canonical?: string;
status_emoji_url?: string;
pronouns?: string;
status_emoji_display_info?: StatusEmojiDisplayInfo[];
}

export interface Field {
value?: string;
alt?: string;
}

export interface StatusEmojiDisplayInfo {
emoji_name?: string;
display_alias?: string;
display_url?: string;
}