ghostfolio/libs/common/src/lib/interfaces/user.interface.ts
Matej Gerek 98957d282e
Feature/move tags from info to user service (#3859)
* Move tags from info to user service

* Update changelog
2024-10-09 21:04:37 +02:00

28 lines
726 B
TypeScript

import { SubscriptionOffer } from '@ghostfolio/common/types';
import { SubscriptionType } from '@ghostfolio/common/types/subscription-type.type';
import { Account, Tag } from '@prisma/client';
import { SystemMessage } from './system-message.interface';
import { UserSettings } from './user-settings.interface';
// TODO: Compare with UserWithSettings
export interface User {
access: {
alias?: string;
id: string;
}[];
accounts: Account[];
dateOfFirstActivity: Date;
id: string;
permissions: string[];
settings: UserSettings;
systemMessage?: SystemMessage;
subscription: {
expiresAt?: Date;
offer: SubscriptionOffer;
type: SubscriptionType;
};
tags: (Tag & { isUsed: boolean })[];
}