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 { |
interface AdminUser { |
||||
accountCount: number; |
accountCount: number; |
||||
activityCount: number; |
activityCount: number; |
||||
analytics?: { |
country: string; |
||||
country?: string | null; |
|
||||
dailyApiRequests: number; |
|
||||
lastActivity?: Date | null; |
|
||||
}; |
|
||||
createdAt: Date; |
createdAt: Date; |
||||
|
dailyApiRequests: number; |
||||
|
engagement: number; |
||||
id: string; |
id: string; |
||||
provider: Provider; |
lastActivity: Date; |
||||
role: Role; |
role: Role; |
||||
updatedAt: Date; |
|
||||
watchlistCount: number; |
|
||||
} |
} |
||||
|
|
||||
export interface AdminUserResponse extends AdminUser { |
export interface AdminUserResponse extends AdminUser {} |
||||
subscriptions: Subscription[]; |
|
||||
tags: Tag[]; |
|
||||
} |
|
||||
|
|
||||
export interface AdminUsersResponse { |
export interface AdminUsersResponse { |
||||
count: number; |
count: number; |
||||
users: (Pick< |
users: AdminUser[]; |
||||
AdminUser, |
|
||||
'accountCount' | 'activityCount' | 'createdAt' | 'id' | 'role' |
|
||||
> & { |
|
||||
country: string; |
|
||||
dailyApiRequests: number; |
|
||||
engagement: number; |
|
||||
lastActivity: Date; |
|
||||
})[]; |
|
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue