Update Electron billing UI for free plan

This commit is contained in:
Ramnique Singh 2026-05-18 11:12:10 +05:30
parent d586f6bd8a
commit af618155e1
8 changed files with 31 additions and 36 deletions

View file

@ -0,0 +1,15 @@
import { z } from 'zod';
export const BillingPlanSchema = z.enum(['free', 'starter', 'pro']);
export type BillingPlan = z.infer<typeof BillingPlanSchema>;
export const BillingInfoSchema = z.object({
userEmail: z.string().nullable(),
userId: z.string().nullable(),
subscriptionPlan: BillingPlanSchema.nullable(),
subscriptionStatus: z.string().nullable(),
trialExpiresAt: z.string().nullable(),
sanctionedCredits: z.number(),
availableCredits: z.number(),
});
export type BillingInfo = z.infer<typeof BillingInfoSchema>;