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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #382 Missing invite_requested event type #387

Merged
merged 3 commits into from Feb 4, 2020
Merged
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
21 changes: 21 additions & 0 deletions src/types/events/base-events.ts
Expand Up @@ -45,6 +45,7 @@ export type SlackEvent =
| IMCreatedEvent
| IMHistoryChangedEvent
| IMOpenEvent
| InviteRequestedEvent
| LinkSharedEvent
| MemberJoinedChannelEvent
| MemberLeftChannelEvent
Expand Down Expand Up @@ -417,6 +418,26 @@ export interface IMOpenEvent extends StringIndexed {
channel: string;
}

export interface InviteRequestedEvent extends StringIndexed {
type: 'invite_requested';
invite_request: {
id: string;
email: string;
date_created: number;
requester_ids: string[];
channel_ids: string[];
invite_type: 'restricted' | 'ultra_restricted' | 'full_member';
real_name: string;
date_expire: number;
request_reason: string;
team: {
id: string;
name: string;
domain: string;
}
};
}

export interface LinkSharedEvent extends StringIndexed {
type: 'link_shared';
channel: string;
Expand Down