id of topic to get message count for
Optional
sinceMessageId: null | stringid of message to get count since. If null, will get total message count.
number of messages that have occurred since the given id
Adds readStatus to a single message model
Optional
topicCursorMap: null | Record<string, UserTopicCursorEntity>MessageModel
Adds readStatus to messages in paginated message result
Optional
topicCursorMap: Record<string, UserTopicCursorEntity>paginated MessageModel list
Adds unreadCount to topics in paginated topic result
Optional
topicCursorMap: Record<string, UserTopicCursorEntity>paginated TopicModel list
Adds unreadCount to a single topic model
Optional
topicCursorMap: null | Record<string, UserTopicCursorEntity>TopicModel
Create a message into database
id of created Message
Create message template
message template id
Create a subscription into database
id of created subscription
Create a topic into database
id of created Topic
Expands messages fields inside of an array of topics
Optional
appendReadStatus: { optional userId or organization used for appending read status to messages
Optional
organizationOptional
usertopicsResponse with messages expanded
Expands owner fields inside of an array of topics
topicsResponse with users expanded
Expands subscriptions and subscriptions.users fields inside of an array of topics
topicsResponse with subscriptions expanded
Find a matching private topic for the given senderId and receiptId
topic data
Get the last message for a topic.
id of topic to get last message for
last message for the given topic
Get message template by filter
message template
Get message template by Id
message template
Get message data from messageId
id of topic
Optional
appendReadStatus: { optional userId or organization used for appending read status to messages
Optional
organizationOptional
usermessage data
Get message data and then normalize
id of topic
Optional
appendReadStatus: { optional userId or organization used for appending read status to messages
Optional
organizationOptional
userOptional
expand: Expandlist of fields to expand on the message (from parsed query)
message data
Get subscription data from subscriptionId
id of topic
subscription data
Get subscription data and then normalize
id of topic
Optional
expand: Expandlist of fields to expand on the subscription (from parsed query)
subscription data
Get topic data from topicId
id of topic
Optional
appendUnreadCount: { optional userId or organization used for appending unread count to topics
Optional
organizationOptional
usertopic data
Get topic data and then normalize
id of topic
Optional
appendUnreadCount: { optional userId or organization used for appending unread count to topics
Optional
organizationOptional
userOptional
expand: Expandlist of fields to expand on the topic (from parsed query)
topic data
Search database if there is a private chat topic for userId, and receiptId, if yes, return directly if no, create one and return
object with id, indicate the private topic Id
Get pagination message templates
paginated MessageTemplateEntity list
Get paginated messages from by filtering
to filter the message list
to order the message list
pagination options
message list with pagination information
Get topics organization is subscribed to with pagination
organizationId that want to get the topics with
Optional
appendUnreadCount: { optional userId or organization used for appending unread count to topics
Optional
organizationOptional
userpaginated TopicModel list
Get public message with pagination
paginated MessageModel list
Get subscription with pagination
paginated SubscriptionModel list
Get topic message with pagination
topicId that want to get the message with
Optional
appendReadStatus: { optional userId or organization used for appending read status to messages
Optional
organizationOptional
userpaginated MessageModel list
Get subscription with pagination belongs to a topic
paginated SubscriptionModel list
Get topic list by filter
Optional
appendUnreadCount: { optional userId or organization used for appending unread count to topics
Optional
organizationOptional
userpaginated topic list
Get topics user/org is one of the owner ids of with pagination
ownerId that want to get the topic with
user or organization
Optional
appendUnreadCount: { optional userId or organization used for appending unread count to topics
Optional
organizationOptional
userpaginated TopicModel list
Get user message with pagination
paginated MessageModel list
Get topics user is subscribed to with pagination
userId that want to get the topic with
Optional
appendUnreadCount: { optional userId or organization used for appending unread count to topics
Optional
organizationOptional
userpaginated TopicModel list
Get subscription list by filter
subscription list
Normalize message List
Optional
expand: Expandlist of fields to expand on the message (from parsed query)
normalized message or undefined
Normalize message
Optional
expand: Expandlist of fields to expand on the message (from parsed query)
normalized message or undefined
Normalize subscription
Optional
expand: Expandlist of fields to expand on the subscription (from parsed query)
normalized subscription or undefined
Normalize topic
Optional
appendUnreadCount: { optional userId or organization used for appending unread counts to topics
Optional
organizationOptional
userOptional
expand: Expandlist of fields to expand on the message (from parsed query)
normalized topic or null
Normalize subscription
Optional
expand: Expandlist of fields to expand on the subscription (from parsed query)
normalized subscription or undefined
Normalize topics
Optional
appendUnreadCount: { optional userId or organization used for appending unread counts to topics
Optional
organizationOptional
userOptional
expand: Expandlist of fields to expand on the message (from parsed query)
Update message template
message template id
Update message by Id
id of message want to update
content to overwrite
id of updated message
Update topic by Id
id of topic want to update
content to overwrite
id of updated topic
Private
COLLECTION_Private
COLLECTION_Private
COLLECTION_Private
COLLECTION_Private
COLLECTION_Private
attachmentPrivate
dbPrivate
expandPrivate
expandPrivate
Optional
loggerPrivate
messagePrivate
messagePrivate
subscriptionPrivate
topicPrivate
userGenerated using TypeDoc
Get count of messages that have occurred since an id. (This assumes ids are generated in order). This is normally used to get an unread message count.