Files
core/packages/api-client/models/activity.ts
Innei 8bfa464615 fix: update model
Signed-off-by: Innei <i@innei.in>
2024-02-16 12:36:04 +08:00

48 lines
797 B
TypeScript

import type { CategoryModel } from './category'
export interface ActivityPresence {
operationTime: number
identity: string
roomName: string
position: number
joinedAt: number
connectedAt: number
updatedAt: number
displayName?: string
}
export interface RoomOmittedNote {
title: string
nid: number
id: string
created: string
}
export interface RoomOmittedPage {
title: string
slug: string
id: string
created: string
}
export interface RoomOmittedPost {
slug: string
title: string
categoryId: string
category: CategoryModel
id: string
created: string
}
export interface RoomsData {
rooms: string[]
roomCount: {
[key: string]: number
}
objects: {
posts: RoomOmittedPost[]
notes: RoomOmittedNote[]
pages: RoomOmittedPage[]
}
}