mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
775 B
28 lines
775 B
import {
|
|
AccountWithPlatform,
|
|
SubscriptionType
|
|
} from '@ghostfolio/common/types';
|
|
|
|
import { Access, Tag } from '@prisma/client';
|
|
|
|
import { SubscriptionOffer } from './subscription-offer.interface';
|
|
import { SystemMessage } from './system-message.interface';
|
|
import { UserSettings } from './user-settings.interface';
|
|
|
|
// TODO: Compare with UserWithSettings
|
|
export interface User {
|
|
access: Pick<Access, 'alias' | 'id' | 'permissions'>[];
|
|
accounts: AccountWithPlatform[];
|
|
activitiesCount: number;
|
|
dateOfFirstActivity: Date;
|
|
id: string;
|
|
permissions: string[];
|
|
settings: UserSettings;
|
|
systemMessage?: SystemMessage;
|
|
subscription: {
|
|
expiresAt?: Date;
|
|
offer: SubscriptionOffer;
|
|
type: SubscriptionType;
|
|
};
|
|
tags: (Tag & { isUsed: boolean })[];
|
|
}
|
|
|