@kontent-ai/delivery-sdk
Version:
Official Kontent.AI Delivery API SDK
40 lines (39 loc) • 771 B
TypeScript
import { IQueryConfig } from './common/common-models';
export interface IElementQueryConfig extends IQueryConfig {
}
export interface IGenericElementOption {
/**
* Name of the option
*/
name: string;
/**
* Value of the option
*/
codename: string;
}
export interface IGenericElement {
/**
* Indexer
*/
[key: string]: any;
/**
* Codename of the element
*/
codename?: string;
/**
* Type of the element
*/
type: string;
/**
* Name of the element
*/
name: string;
/**
* Taxonomy group in case the element is a taxonomy
*/
taxonomyGroup?: string;
/**
* Array of options if the element has some
*/
options: IGenericElementOption[];
}