feat(categories): tree browser, CRUD dialog, pending approval queue with merge
This commit is contained in:
@ -72,29 +72,35 @@ export interface MeResponse extends ApiResponse<AdminUser> {
|
||||
|
||||
// ---------- category ----------
|
||||
|
||||
export interface CategoryTranslation {
|
||||
locale: string
|
||||
name: string
|
||||
description: string | null
|
||||
}
|
||||
|
||||
export interface Category {
|
||||
kind: 'category'
|
||||
id: string
|
||||
parent_id: string | null
|
||||
level: number
|
||||
slug: string
|
||||
name: string
|
||||
name: string | null
|
||||
description: string | null
|
||||
status: string
|
||||
sort_order: number
|
||||
is_leaf?: boolean
|
||||
is_active: boolean
|
||||
visibility?: string
|
||||
approval_status?: 'pending' | 'approved' | 'rejected' | string
|
||||
source?: string
|
||||
created_by_uid?: string | null
|
||||
approved_by_uid?: string | null
|
||||
approved_at?: string | null
|
||||
merged_into_category_id?: string | null
|
||||
translations?: CategoryTranslation[]
|
||||
children?: Category[]
|
||||
created_at?: string
|
||||
updated_at?: string
|
||||
}
|
||||
|
||||
export interface CategoryTranslation {
|
||||
locale: string
|
||||
name: string
|
||||
description: string | null
|
||||
}
|
||||
|
||||
// ---------- studio ----------
|
||||
|
||||
export type ArticleStatus =
|
||||
|
||||
Reference in New Issue
Block a user