contentful-management
Version:
Client for Contentful's Content Management API
34 lines (33 loc) • 1.4 kB
TypeScript
import type { DefaultElements, Link, MakeRequest } from '../common-types';
export type ContentSemanticsIndexStatus = 'ACTIVE' | 'PENDING' | 'DELETING';
export type ContentSemanticsIndexProps = {
sys: {
id: string;
type: 'ContentSemanticsIndex';
status: ContentSemanticsIndexStatus;
localeCode: string;
createdAt: string;
updatedAt: string;
createdBy: Link<'User'> | null;
locale: Link<'Locale'>;
environment: Link<'Environment'>;
space: Link<'Space'>;
organization: Link<'Organization'>;
};
};
export type ContentSemanticsIndexCollectionProps = {
sys: {
type: 'Array';
};
items: ContentSemanticsIndexProps[];
};
export type CreateContentSemanticsIndexProps = {
spaceId: string;
locale: string;
};
export interface ContentSemanticsIndex extends ContentSemanticsIndexProps, DefaultElements<ContentSemanticsIndexProps> {
}
export interface ContentSemanticsIndexCollection extends ContentSemanticsIndexCollectionProps, DefaultElements<ContentSemanticsIndexCollectionProps> {
}
export declare function wrapContentSemanticsIndex(_makeRequest: MakeRequest, data: ContentSemanticsIndexProps): ContentSemanticsIndex;
export declare function wrapContentSemanticsIndexCollection(_makeRequest: MakeRequest, data: ContentSemanticsIndexCollectionProps): ContentSemanticsIndexCollection;