ncloudchat 1.0.48 → 1.0.49-beta2
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/README.md +5 -0
- package/ncloudchat.d.ts +14 -2
- package/ncloudchat.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,3 +39,8 @@ yarn add ncloudchat
|
|
|
39
39
|
Ncloud Chat JavaScript SDK Link
|
|
40
40
|
|
|
41
41
|
<a target="_blank" href="https://guide.ncloud-docs.com/docs/bizapp-ncloudchat-javascriptsdk">https://guide.ncloud-docs.com/docs/bizapp-ncloudchat-javascriptsdk</a>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## 배포 방법
|
|
46
|
+
npm publish --tag beta
|
package/ncloudchat.d.ts
CHANGED
|
@@ -543,6 +543,7 @@ declare module 'ncloudchat/CloudChat' {
|
|
|
543
543
|
* @throws {Error} 오류가 발생한 경우 예외를 던짐
|
|
544
544
|
*/
|
|
545
545
|
getPushState(): Promise<any>;
|
|
546
|
+
getMessageUnreadCount(channelId: string, messageId: string): Promise<any>;
|
|
546
547
|
}
|
|
547
548
|
|
|
548
549
|
}
|
|
@@ -623,8 +624,8 @@ declare module 'ncloudchat/Type' {
|
|
|
623
624
|
* @enum {string}
|
|
624
625
|
*/
|
|
625
626
|
export enum ChannelType {
|
|
626
|
-
|
|
627
|
-
|
|
627
|
+
PRIVATE = "PRIVATE",
|
|
628
|
+
PUBLIC = "PUBLIC"
|
|
628
629
|
}
|
|
629
630
|
/**
|
|
630
631
|
* Interface for mark input.
|
|
@@ -794,6 +795,7 @@ declare module 'ncloudchat/graphql/message' {
|
|
|
794
795
|
export const unreadCountQuery = "query mark (\n $projectId: String!, \n $channelId: String!\n ) { \n mark (\n projectId: $projectId, \n channelId:$channelId\n ) { \n user_id,\n message_id,\n sort_id, \n unread\n } \n }\n";
|
|
795
796
|
export const messageQuery: string;
|
|
796
797
|
export const deleteMessageQuery: string;
|
|
798
|
+
export const messageUnreadCountQuery = "query messageUnreadCount(\n $projectId: String!\n $channelId: String!,\n $messageId: String!,\n ) {\n messageUnreadCount(\n projectId: $projectId\n channelId: $channelId\n messageId: $messageId\n ) {\n totalCount\n count\n }\n }";
|
|
797
799
|
|
|
798
800
|
}
|
|
799
801
|
declare module 'ncloudchat/graphql/pin' {
|
|
@@ -1324,6 +1326,16 @@ declare module 'ncloudchat/queries/message' {
|
|
|
1324
1326
|
* @returns {Promise<any>}
|
|
1325
1327
|
*/
|
|
1326
1328
|
export const unreadCount: (channelId: string) => Promise<any>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Retrieves the count of unread users for a specific message in a channel.
|
|
1331
|
+
*
|
|
1332
|
+
* @async
|
|
1333
|
+
* @function getMessageUnreadCount
|
|
1334
|
+
* @param {string} channelId - The ID of the channel.
|
|
1335
|
+
* @param {string} messageId - The ID of the message.
|
|
1336
|
+
* @returns {Promise<any>} A Promise that resolves to the count of unread users.
|
|
1337
|
+
*/
|
|
1338
|
+
export const getMessageUnreadCount: (channelId: string, messageId: string) => Promise<any>;
|
|
1327
1339
|
|
|
1328
1340
|
}
|
|
1329
1341
|
declare module 'ncloudchat/queries/pin' {
|