acquia-dam-sdk
Version:
Interact with the Acquia DAM API
24 lines (22 loc) • 634 B
TypeScript
interface ListAttributesResult {
item_type: string;
items: Attribute[];
limit: number;
offset: number;
total_count: number;
}
interface ListAttributeVocabularyResult {
vocabulary: string[];
}
interface Attribute {
attribute_group: {
attribute_group_id: string;
name: string;
} | null;
attribute_id: string;
import_only: boolean;
name: string;
type: AttributeType;
}
type AttributeType = 'asset' | 'multi_controlled_vocab' | 'rich_text' | 'single_controlled_vocab' | 'text';
export type { Attribute, AttributeType, ListAttributeVocabularyResult, ListAttributesResult };