acquia-dam-sdk
Version:
Interact with the Acquia DAM API
34 lines (32 loc) • 703 B
TypeScript
interface CreateEditCategoryResult {
children: CategoryV1[];
id: number;
title: string;
uuid: string;
}
interface CategoryTreeResult {
categories: CategoryV1[];
parentCategory: null;
}
interface ListCategoriesResult {
item_type: string;
items: CategoryV2[];
total_count: number;
}
interface CategoryV1 {
children: CategoryV1[];
id: number;
title: string;
uuid: string;
}
interface CategoryV2 {
_links: {
assets: string;
categories: string;
};
id: string;
name: string;
parts: string[];
path: string;
}
export type { CategoryTreeResult, CategoryV1, CategoryV2, CreateEditCategoryResult, ListCategoriesResult };