Initial commit: dashboard

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-03 23:17:36 +03:30
co-authored by Cursor
commit 3db32212ad
177 changed files with 29988 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
export type DashboardType = "super_admin" | "business" | "customer";
export interface AuthUser {
id: string;
cellNumber: string;
email: string | null;
firstName: string | null;
lastName: string | null;
firstNameEn: string | null;
lastNameEn: string | null;
roles: string[];
dashboard: DashboardType;
businesses: {
id: string;
name: string;
slug: string;
isOwner: boolean;
}[];
}
export interface LoginResponse {
message: string;
user: AuthUser;
accessToken: string;
refreshToken: string;
}
export interface MeResponse {
user: AuthUser;
}
+31
View File
@@ -0,0 +1,31 @@
export type BusinessStatus =
| "draft"
| "pending_review"
| "published"
| "hidden"
| "rejected";
/** Marketplace listing row. Name/category/profile live in Meshkee. */
export interface MarketplaceBusiness {
id: string;
meshkeeBusinessId: string;
slug: string;
status: BusinessStatus;
isFeatured: boolean;
sortWeight: number;
publishedAt: string | null;
/** Enriched client-side from Meshkee when available */
name?: string;
categoryName?: string;
/** Last two category levels, e.g. "Industry / Construction" */
categoryTrail?: string;
logoUrl?: string;
bannerUrl?: string;
}
export interface BusinessListResponse {
items: MarketplaceBusiness[];
page: number;
limit: number;
total: number;
}