@botonic/plugin-contentful
Version:
## What Does This Plugin Do?
26 lines (25 loc) • 983 B
TypeScript
import { AssetProps } from 'contentful-management/dist/typings/entities/asset';
import { ContentTypeProps } from 'contentful-management/dist/typings/entities/content-type';
import { EntryProps } from 'contentful-management/dist/typings/entities/entry';
import { LocaleProps } from 'contentful-management/dist/typings/entities/locale';
export type I18nFieldValues = {
[locale: string]: any;
};
/**
* Allows modifying contentful spaces exported with "contentful space export"
*/
export declare class SpaceExport {
payload: {
entries: EntryProps[];
locales?: LocaleProps[];
contentTypes?: ContentTypeProps[];
assets?: AssetProps[];
};
constructor(jsonObject: any);
getLocale(locale: string): LocaleProps | undefined;
getDefaultLocale(): LocaleProps | undefined;
private static validate;
private static hideFieldsWithBadSchema;
static fromJsonFile(filename: string): SpaceExport;
write(filename: string): void;
}