stream-chat 10.0.0-rc.20 → 10.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.browser.js +7 -1
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +7 -1
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +7 -1
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/channel.d.ts +2 -0
- package/package.json +1 -1
- package/src/channel.ts +8 -0
package/dist/types/channel.d.ts
CHANGED
|
@@ -234,6 +234,8 @@ export declare class Channel extends ChannelApi {
|
|
|
234
234
|
* @returns The server response.
|
|
235
235
|
*/
|
|
236
236
|
sendMessage(...args: Parameters<ChannelApi['sendMessage']>): Promise<StreamResponse<import(".").SendMessageResponse>>;
|
|
237
|
+
sendReaction(...args: Parameters<ChatApi['sendReaction']>): Promise<StreamResponse<import(".").SendReactionResponse>>;
|
|
238
|
+
deleteReaction(...args: Parameters<ChatApi['deleteReaction']>): Promise<StreamResponse<import(".").DeleteReactionResponse>>;
|
|
237
239
|
/**
|
|
238
240
|
* Upload a file to this channel's file endpoint (multipart).
|
|
239
241
|
*
|
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -578,6 +578,14 @@ export class Channel extends ChannelApi {
|
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
+
async sendReaction(...args: Parameters<ChatApi['sendReaction']>) {
|
|
582
|
+
return await this.getClient().sendReaction(...args);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
async deleteReaction(...args: Parameters<ChatApi['deleteReaction']>) {
|
|
586
|
+
return await this.getClient().deleteReaction(...args);
|
|
587
|
+
}
|
|
588
|
+
|
|
581
589
|
/**
|
|
582
590
|
* Upload a file to this channel's file endpoint (multipart).
|
|
583
591
|
*
|