Improve demo tennat and user get
This commit is contained in:
@@ -60,6 +60,37 @@ export interface CloneDataRequest {
|
||||
* Demo session response
|
||||
* Backend: services/demo_session/app/api/schemas.py:18-30 (DemoSessionResponse)
|
||||
*/
|
||||
/**
|
||||
* Demo user data returned in session response
|
||||
* Matches the structure of a real login user response
|
||||
*/
|
||||
export interface DemoUser {
|
||||
id: string;
|
||||
email: string;
|
||||
full_name: string;
|
||||
role: string;
|
||||
is_active: boolean;
|
||||
is_verified: boolean;
|
||||
tenant_id: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Demo tenant data returned in session response
|
||||
* Matches the structure of a real tenant response
|
||||
*/
|
||||
export interface DemoTenant {
|
||||
id: string;
|
||||
name: string;
|
||||
subdomain: string;
|
||||
subscription_tier: string;
|
||||
tenant_type: string;
|
||||
business_type: string;
|
||||
business_model: string;
|
||||
description: string;
|
||||
is_active: boolean;
|
||||
}
|
||||
|
||||
export interface DemoSessionResponse {
|
||||
session_id: string;
|
||||
virtual_tenant_id: string;
|
||||
@@ -69,9 +100,11 @@ export interface DemoSessionResponse {
|
||||
expires_at: string; // ISO datetime
|
||||
demo_config: Record<string, any>;
|
||||
session_token: string;
|
||||
subscription_tier: string; // NEW: Subscription tier from demo session
|
||||
is_enterprise: boolean; // NEW: Whether this is an enterprise demo
|
||||
tenant_name: string; // NEW: Tenant name for display
|
||||
subscription_tier: string;
|
||||
is_enterprise: boolean;
|
||||
// Complete user and tenant data (like a real login response)
|
||||
user: DemoUser;
|
||||
tenant: DemoTenant;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user