Chore: Migrate REST API - getSyncThreadsList to Typescript (#3896)
This commit is contained in:
parent
9650c98b4f
commit
4cfadbc97b
|
@ -47,6 +47,14 @@ export type ChatEndpoints = {
|
||||||
total: number;
|
total: number;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
'chat.syncThreadsList': {
|
||||||
|
GET: (params: { rid: IServerRoom['_id']; updatedSince: string }) => {
|
||||||
|
threads: {
|
||||||
|
update: IMessage[];
|
||||||
|
remove: IMessage[];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
'chat.delete': {
|
'chat.delete': {
|
||||||
POST: (params: { msgId: string; roomId: string }) => {
|
POST: (params: { msgId: string; roomId: string }) => {
|
||||||
_id: string;
|
_id: string;
|
||||||
|
|
|
@ -668,10 +668,8 @@ export const getThreadsList = ({ rid, count, offset, text }: { rid: string; coun
|
||||||
return sdk.get('chat.getThreadsList', params);
|
return sdk.get('chat.getThreadsList', params);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getSyncThreadsList = ({ rid, updatedSince }: { rid: string; updatedSince: string }): any =>
|
export const getSyncThreadsList = ({ rid, updatedSince }: { rid: string; updatedSince: string }) =>
|
||||||
// RC 1.0
|
// RC 1.0
|
||||||
// TODO: missing definitions from server
|
|
||||||
// @ts-ignore
|
|
||||||
sdk.get('chat.syncThreadsList', {
|
sdk.get('chat.syncThreadsList', {
|
||||||
rid,
|
rid,
|
||||||
updatedSince
|
updatedSince
|
||||||
|
|
Loading…
Reference in New Issue