35 lines
806 B
TypeScript
35 lines
806 B
TypeScript
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;
|
|
createdAt?: string;
|
|
updatedAt?: string;
|
|
/** Enriched client-side from Meshkee when available */
|
|
name?: string;
|
|
categoryId?: 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;
|
|
}
|