ncloudchat 1.0.49-beta1 → 1.0.49-beta3

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/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
  }
@@ -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' {