Skip to content

Commit

Permalink
Generate the latest web api responses
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jul 5, 2023
1 parent 3498055 commit b1e6550
Show file tree
Hide file tree
Showing 5 changed files with 847 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,45 @@

import { WebAPICallResult } from '../WebClient';
export type AdminInviteRequestsApprovedListResponse = WebAPICallResult & {
approved_requests?: string[];
approved_requests?: ApprovedRequest[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
};

export interface ApprovedRequest {
approved_by?: ApprovedBy;
invite?: Invite;
invite_request?: InviteRequest;
}

export interface ApprovedBy {
actor_id?: string;
actor_type?: string;
}

export interface Invite {
date_created?: number;
email?: string;
id?: string;
invite_preferences?: InvitePreferences;
inviter_id?: string;
is_bouncing?: boolean;
}

export interface InvitePreferences {
channel_ids?: string[];
is_domain_matched?: boolean;
is_restricted?: boolean;
is_ultra_restricted?: boolean;
}

export interface InviteRequest {
channel_ids?: string[];
date_created?: number;
email?: string;
id?: string;
invite_type?: string;
requester_ids?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,29 @@

import { WebAPICallResult } from '../WebClient';
export type AdminInviteRequestsDeniedListResponse = WebAPICallResult & {
denied_requests?: string[];
denied_requests?: DeniedRequest[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
};

export interface DeniedRequest {
denied_by?: DeniedBy;
invite_request?: InviteRequest;
}

export interface DeniedBy {
actor_id?: string;
actor_type?: string;
}

export interface InviteRequest {
channel_ids?: string[];
date_created?: number;
email?: string;
id?: string;
invite_type?: string;
request_reason?: string;
requester_ids?: string[];
}
13 changes: 12 additions & 1 deletion packages/web-api/src/response/AdminInviteRequestsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,19 @@
import { WebAPICallResult } from '../WebClient';
export type AdminInviteRequestsListResponse = WebAPICallResult & {
error?: string;
invite_requests?: string[];
invite_requests?: InviteRequest[];
needed?: string;
ok?: boolean;
provided?: string;
};

export interface InviteRequest {
channel_ids?: string[];
date_created?: number;
date_expire?: number;
email?: string;
id?: string;
invite_type?: string;
request_reason?: string;
requester_ids?: string[];
}
Loading

0 comments on commit b1e6550

Please sign in to comment.