Initial commit: dashboard
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user