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

fix: add missing properties to ExportChannelStatusResponse #1138

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
24 changes: 22 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,16 +400,36 @@ export type EventAPIResponse<StreamChatGenerics extends ExtendableGenerics = Def

export type ExportChannelResponse = {
task_id: string;
duration?: string;
};

export type ExportUsersResponse = {
task_id: string;
};

export type ExportChannelsResult = {
path?: string;
s3_bucket_name?: string;
url?: string;
};

export type ExportChannelError = {
description?: string;
duration?: string;
stacktrace?: string;
status?: string;
task_id?: string;
type?: string;
version?: string;
};

export type ExportChannelStatusResponse = {
created_at?: string;
error?: {};
result?: {};
duration?: string;
error?: ExportChannelError;
result?: ExportChannelsResult | null;
status?: string;
task_id?: string;
updated_at?: string;
};

Expand Down