Add admin payments with status, provider, and plan category filters. Introduce app versions and subscription plan management in settings, change-password security flow, and dark theme support. Reorganize sidebar, improve activity log actor details, analytics, and related UI polish. Co-authored-by: Cursor <cursoragent@cursor.com>
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
export type SubscriptionPlanDurationUnit = "MONTH" | "YEAR" | "WEEK" | "DAY" | string
|
|
|
|
export type SubscriptionPlanCategory = "LEARN_ENGLISH" | "EXAM_PREP" | "SKILLS" | string
|
|
|
|
export interface SubscriptionPlan {
|
|
id: number
|
|
name: string
|
|
description: string
|
|
category: SubscriptionPlanCategory
|
|
duration_value: number
|
|
duration_unit: SubscriptionPlanDurationUnit
|
|
price: number
|
|
currency: string
|
|
is_active: boolean
|
|
created_at: string
|
|
}
|
|
|
|
export interface CreateSubscriptionPlanPayload {
|
|
name: string
|
|
description: string
|
|
category: SubscriptionPlanCategory
|
|
duration_value: number
|
|
duration_unit: SubscriptionPlanDurationUnit
|
|
price: number
|
|
currency: string
|
|
is_active: boolean
|
|
}
|
|
|
|
export interface UpdateSubscriptionPlanPayload {
|
|
name: string
|
|
description: string
|
|
duration_value: number
|
|
duration_unit: SubscriptionPlanDurationUnit
|
|
price: number
|
|
currency: string
|
|
is_active: boolean
|
|
}
|
|
|
|
export interface SubscriptionPlansListResponse {
|
|
message?: string
|
|
data: SubscriptionPlan[]
|
|
success?: boolean
|
|
status_code?: number
|
|
metadata?: unknown
|
|
}
|
|
|
|
export interface SubscriptionPlanMutationResponse {
|
|
message?: string
|
|
data: SubscriptionPlan
|
|
success?: boolean
|
|
status_code?: number
|
|
metadata?: unknown
|
|
}
|