Skip to content

Commit

Permalink
Update web api response types
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Mar 14, 2024
1 parent 0c74bc3 commit 34c6a05
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,23 @@ export type AdminConversationsGetConversationPrefsResponse =
};

export interface Prefs {
can_huddle?: CanHuddle;
can_thread?: CanThread;
enable_at_channel?: CanHuddle;
enable_at_here?: CanHuddle;
membership_limit?: MembershipLimit;
who_can_post?: CanThread;
}

export interface CanHuddle {
enabled?: boolean;
}

export interface CanThread {
type?: string[];
user?: string[];
}

export interface MembershipLimit {
value?: number;
}
2 changes: 1 addition & 1 deletion src/client/generated-response/SearchAllResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface FilesMatch {
dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
edit_link?: string;
editable?: boolean;
editors?: string[];
editors?: LastEditor[];
editors_count?: number;
external_id?: string;
external_type?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,23 @@ export type AdminConversationsGetConversationPrefsResponse =
};

export interface Prefs {
can_huddle?: CanHuddle;
can_thread?: CanThread;
enable_at_channel?: CanHuddle;
enable_at_here?: CanHuddle;
membership_limit?: MembershipLimit;
who_can_post?: CanThread;
}

export interface CanHuddle {
enabled?: boolean;
}

export interface CanThread {
type?: string[];
user?: string[];
}

export interface MembershipLimit {
value?: number;
}
2 changes: 1 addition & 1 deletion src_deno/client/generated-response/SearchAllResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface FilesMatch {
dm_mpdm_users_with_file_access?: DmMpdmUsersWithFileAccess[];
edit_link?: string;
editable?: boolean;
editors?: string[];
editors?: LastEditor[];
editors_count?: number;
external_id?: string;
external_type?: string;
Expand Down

0 comments on commit 34c6a05

Please sign in to comment.