Feature/extract users from admin control panel endpoint to dedicated endpoint (#3740)
* Introduce GET api/v1/admin/user endpoint * Update changelog
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { AssetProfileIdentifier } from '@ghostfolio/common/interfaces';
|
||||
|
||||
import { Role } from '@prisma/client';
|
||||
|
||||
export interface AdminData {
|
||||
exchangeRates: ({
|
||||
label1: string;
|
||||
@@ -11,15 +9,5 @@ export interface AdminData {
|
||||
settings: { [key: string]: boolean | object | string | string[] };
|
||||
transactionCount: number;
|
||||
userCount: number;
|
||||
users: {
|
||||
accountCount: number;
|
||||
country: string;
|
||||
createdAt: Date;
|
||||
engagement: number;
|
||||
id: string;
|
||||
lastActivity: Date;
|
||||
role: Role;
|
||||
transactionCount: number;
|
||||
}[];
|
||||
version: string;
|
||||
}
|
||||
|
14
libs/common/src/lib/interfaces/admin-users.interface.ts
Normal file
14
libs/common/src/lib/interfaces/admin-users.interface.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Role } from '@prisma/client';
|
||||
|
||||
export interface AdminUsers {
|
||||
users: {
|
||||
accountCount: number;
|
||||
country: string;
|
||||
createdAt: Date;
|
||||
engagement: number;
|
||||
id: string;
|
||||
lastActivity: Date;
|
||||
role: Role;
|
||||
transactionCount: number;
|
||||
}[];
|
||||
}
|
@@ -7,6 +7,7 @@ import type {
|
||||
AdminMarketData,
|
||||
AdminMarketDataItem
|
||||
} from './admin-market-data.interface';
|
||||
import type { AdminUsers } from './admin-users.interface';
|
||||
import type { AssetProfileIdentifier } from './asset-profile-identifier.interface';
|
||||
import type { BenchmarkMarketDataDetails } from './benchmark-market-data-details.interface';
|
||||
import type { BenchmarkProperty } from './benchmark-property.interface';
|
||||
@@ -61,6 +62,7 @@ export {
|
||||
AdminMarketData,
|
||||
AdminMarketDataDetails,
|
||||
AdminMarketDataItem,
|
||||
AdminUsers,
|
||||
AssetProfileIdentifier,
|
||||
Benchmark,
|
||||
BenchmarkMarketDataDetails,
|
||||
|
Reference in New Issue
Block a user