Skip to content

Commit

Permalink
Merge pull request #387 from seratch/issue-382
Browse files Browse the repository at this point in the history
Fix #382 Missing invite_requested event type
  • Loading branch information
seratch authored Feb 4, 2020
2 parents e425b7a + d97d873 commit c963e1d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/types/events/base-events.ts
Original file line number Diff line number Diff line change
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

0 comments on commit c963e1d

Please sign in to comment.