mirror of https://github.com/ghostfolio/ghostfolio
2 changed files with 16 additions and 68 deletions
@ -1,35 +1,20 @@ |
|||
import { Provider, Role, Subscription, Tag } from '@prisma/client'; |
|||
import { Role } from '@prisma/client'; |
|||
|
|||
interface AdminUser { |
|||
accountCount: number; |
|||
activityCount: number; |
|||
analytics?: { |
|||
country?: string | null; |
|||
dailyApiRequests: number; |
|||
lastActivity?: Date | null; |
|||
}; |
|||
country: string; |
|||
createdAt: Date; |
|||
dailyApiRequests: number; |
|||
engagement: number; |
|||
id: string; |
|||
provider: Provider; |
|||
lastActivity: Date; |
|||
role: Role; |
|||
updatedAt: Date; |
|||
watchlistCount: number; |
|||
} |
|||
|
|||
export interface AdminUserResponse extends AdminUser { |
|||
subscriptions: Subscription[]; |
|||
tags: Tag[]; |
|||
} |
|||
export interface AdminUserResponse extends AdminUser {} |
|||
|
|||
export interface AdminUsersResponse { |
|||
count: number; |
|||
users: (Pick< |
|||
AdminUser, |
|||
'accountCount' | 'activityCount' | 'createdAt' | 'id' | 'role' |
|||
> & { |
|||
country: string; |
|||
dailyApiRequests: number; |
|||
engagement: number; |
|||
lastActivity: Date; |
|||
})[]; |
|||
users: AdminUser[]; |
|||
} |
|||
|
|||
Loading…
Reference in new issue