diff --git a/devfront/src/features/auth/authApi.ts b/devfront/src/features/auth/authApi.ts index 2c399cad..9d630dd0 100644 --- a/devfront/src/features/auth/authApi.ts +++ b/devfront/src/features/auth/authApi.ts @@ -3,6 +3,7 @@ import apiClient from "../../lib/apiClient"; export interface Tenant { id: string; name: string; + phone?: string; slug: string; } @@ -10,6 +11,7 @@ export interface UserProfile { id: string; email: string; name: string; + phone?: string; role: string; phone?: string; companyCode?: string; diff --git a/devfront/src/lib/devApi.ts b/devfront/src/lib/devApi.ts index 5dd0d4d1..8ff9133e 100644 --- a/devfront/src/lib/devApi.ts +++ b/devfront/src/lib/devApi.ts @@ -266,3 +266,14 @@ export async function fetchDevAuditLogs( ); return data; } + +export type TenantSummary = { + id: string; + name: string; + slug: string; +}; + +export async function fetchMyTenants() { + const { data } = await apiClient.get("/dev/my-tenants"); + return data; +}