feat(profile): surface daily free quotas
This commit is contained in:
@@ -17,6 +17,12 @@ describe("toView", () => {
|
||||
intimacy: 0,
|
||||
dolBalance: 0,
|
||||
creditBalance: 0,
|
||||
dailyFreeChatLimit: 0,
|
||||
dailyFreeChatUsed: 0,
|
||||
dailyFreeChatRemaining: 0,
|
||||
dailyFreePrivateLimit: 0,
|
||||
dailyFreePrivateUsed: 0,
|
||||
dailyFreePrivateRemaining: 0,
|
||||
vipExpiresAt: null,
|
||||
relationshipStage: "",
|
||||
currentMood: "",
|
||||
@@ -38,6 +44,12 @@ describe("toView", () => {
|
||||
intimacy: 42,
|
||||
dolBalance: 12,
|
||||
creditBalance: 120,
|
||||
dailyFreeChatLimit: 30,
|
||||
dailyFreeChatUsed: 4,
|
||||
dailyFreeChatRemaining: 26,
|
||||
dailyFreePrivateLimit: 2,
|
||||
dailyFreePrivateUsed: 1,
|
||||
dailyFreePrivateRemaining: 1,
|
||||
vipExpiresAt: "2026-07-26T00:00:00+00:00",
|
||||
relationshipStage: "close_friend",
|
||||
currentMood: "playful",
|
||||
@@ -55,6 +67,12 @@ describe("toView", () => {
|
||||
intimacy: 42,
|
||||
dolBalance: 12,
|
||||
creditBalance: 120,
|
||||
dailyFreeChatLimit: 30,
|
||||
dailyFreeChatUsed: 4,
|
||||
dailyFreeChatRemaining: 26,
|
||||
dailyFreePrivateLimit: 2,
|
||||
dailyFreePrivateUsed: 1,
|
||||
dailyFreePrivateRemaining: 1,
|
||||
vipExpiresAt: "2026-07-26T00:00:00+00:00",
|
||||
relationshipStage: "close_friend",
|
||||
currentMood: "playful",
|
||||
|
||||
@@ -19,6 +19,12 @@ function makeUser(overrides: Partial<UserView> = {}): UserView {
|
||||
intimacy: 42,
|
||||
dolBalance: 7,
|
||||
creditBalance: 7,
|
||||
dailyFreeChatLimit: 30,
|
||||
dailyFreeChatUsed: 0,
|
||||
dailyFreeChatRemaining: 30,
|
||||
dailyFreePrivateLimit: 2,
|
||||
dailyFreePrivateUsed: 0,
|
||||
dailyFreePrivateRemaining: 2,
|
||||
vipExpiresAt: null,
|
||||
relationshipStage: "close_friend",
|
||||
currentMood: "happy",
|
||||
|
||||
@@ -63,6 +63,12 @@ export function toView(u: {
|
||||
intimacy?: number;
|
||||
dolBalance?: number;
|
||||
creditBalance?: number;
|
||||
dailyFreeChatLimit?: number;
|
||||
dailyFreeChatUsed?: number;
|
||||
dailyFreeChatRemaining?: number;
|
||||
dailyFreePrivateLimit?: number;
|
||||
dailyFreePrivateUsed?: number;
|
||||
dailyFreePrivateRemaining?: number;
|
||||
vipExpiresAt?: string | null;
|
||||
relationshipStage?: string;
|
||||
currentMood?: string;
|
||||
@@ -82,6 +88,12 @@ export function toView(u: {
|
||||
intimacy: u.intimacy ?? 0,
|
||||
dolBalance: u.dolBalance ?? creditBalance,
|
||||
creditBalance,
|
||||
dailyFreeChatLimit: u.dailyFreeChatLimit ?? 0,
|
||||
dailyFreeChatUsed: u.dailyFreeChatUsed ?? 0,
|
||||
dailyFreeChatRemaining: u.dailyFreeChatRemaining ?? 0,
|
||||
dailyFreePrivateLimit: u.dailyFreePrivateLimit ?? 0,
|
||||
dailyFreePrivateUsed: u.dailyFreePrivateUsed ?? 0,
|
||||
dailyFreePrivateRemaining: u.dailyFreePrivateRemaining ?? 0,
|
||||
vipExpiresAt: u.vipExpiresAt ?? null,
|
||||
relationshipStage: u.relationshipStage ?? "",
|
||||
currentMood: u.currentMood ?? "",
|
||||
|
||||
Reference in New Issue
Block a user