S SmartDocs
Série: Golden-Hour-backend-layer-2 typescript 36 linhas · Atualizado 2026-02-22

types.ts

Golden-Hour-backend-layer-2/types.ts


export enum ModuleType {
  DASHBOARD = 'DASHBOARD',
  CONTENT = 'CONTENT',
  ORDERS = 'ORDERS',
  CUSTOMERS = 'CUSTOMERS',
  SERVICE = 'SERVICE',
  PAYMENTS = 'PAYMENTS',
  INVOICES = 'INVOICES',
  STAFF = 'STAFF',
  PERMISSIONS = 'PERMISSIONS'
}

/* Added path property to subItems to support navigation within the sidebar */
export interface NavItem {
  id: string;
  label: string;
  icon: string;
  module: ModuleType;
  subItems?: { id: string; label: string; path?: string }[];
}

export interface UserProfile {
  name: string;
  role: string;
  location: string;
  weather: string;
}

export interface ContentItem {
  id: string;
  title: string;
  category: 'Maisons' | 'Experiences' | 'Services' | 'Products' | 'Blog' | 'Downloads';
  status: 'Draft' | 'Published' | 'Archived';
  lastModified: string;
}

Artigos relacionados