Skip to content

Common Types ​

File Information ​

  • Path: app/types/common.ts
  • Purpose: Shared interfaces used across the application

Overview ​

Common types are shared interfaces used across the application. Located in app/types/common.ts.

Asset ​

Asset data structure.

typescript
interface Asset {
  id: number
  name: string
  url: string
  thumbnail?: string
  type: string
  size: number
  created_at: string
  updated_at: string
  // ... other fields
}

Folder ​

Folder data structure.

typescript
interface Folder {
  id: number
  name: string
  parent_id?: number
  workspace_id: number
  created_at: string
  updated_at: string
  // ... other fields
}

Banner data structure for carousel.

typescript
interface Banner {
  id: number
  title: string
  image: string
  url?: string
  description?: string
}

Tile ​

Dashboard tile data structure.

typescript
interface Tile {
  id: number
  title: string
  image: string
  description?: string
  url: string
}

DashboardData ​

Dashboard metrics data.

typescript
interface DashboardData {
  total_assets: number
  total_folders: number
  total_collages: number
  // ... other metrics
}

Pagination ​

Pagination data structure.

typescript
interface Pagination {
  page: number
  per_page: number
  total: number
  total_pages: number
}

File Path: app/types/common.ts