Add message schema version section to internal settings
This commit is contained in:
parent
115b79e4ac
commit
46bf933e72
7 changed files with 197 additions and 9 deletions
|
@ -548,6 +548,11 @@ export enum AttachmentDownloadSource {
|
|||
BACKFILL = 'backfill',
|
||||
}
|
||||
|
||||
export type MessageCountBySchemaVersionType = Array<{
|
||||
schemaVersion: number;
|
||||
count: number;
|
||||
}>;
|
||||
|
||||
export const MESSAGE_ATTACHMENT_COLUMNS = [
|
||||
'messageId',
|
||||
'conversationId',
|
||||
|
@ -888,6 +893,11 @@ type ReadableInterface = {
|
|||
getAttachmentReferencesForMessages: (
|
||||
messageIds: Array<string>
|
||||
) => Array<MessageAttachmentDBType>;
|
||||
|
||||
getMessageCountBySchemaVersion: () => MessageCountBySchemaVersionType;
|
||||
getMessageSampleForSchemaVersion: (
|
||||
version: number
|
||||
) => Array<MessageAttributesType>;
|
||||
};
|
||||
|
||||
type WritableInterface = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue