feat: create UserSubscription

This commit is contained in:
Zamitto 2024-10-15 22:40:47 -03:00
parent 8ff925fbb9
commit fe681c3af9
15 changed files with 147 additions and 17 deletions

View file

@ -230,6 +230,15 @@ export interface UserProfileCurrentGame extends Omit<GameRunning, "objectId"> {
export type ProfileVisibility = "PUBLIC" | "PRIVATE" | "FRIENDS";
export type SubscriptionStatus = "active" | "pending" | "cancelled";
export interface Subscription {
id: string;
status: SubscriptionStatus;
plan: { id: string; name: string };
expiresAt: Date | null;
}
export interface UserDetails {
id: string;
username: string;
@ -237,6 +246,7 @@ export interface UserDetails {
profileImageUrl: string | null;
profileVisibility: ProfileVisibility;
bio: string;
subscription: Subscription | null;
}
export interface UserProfile {