@itxch/contentful-import
Version:
This tool allows you to import JSON dump exported by contentful-export
37 lines (36 loc) • 869 B
TypeScript
import { AssetProps, EditorInterfaceProps, EntryProps } from 'contentful-management';
export declare class ContentfulAssetError extends Error {
filePath: string;
constructor(message: string, filePath: string);
}
export type LogItem = {
ts: string;
level: 'info';
info: string;
} | {
ts: string;
level: 'warning';
warning: string;
} | {
ts: string;
level: 'error';
error: Error;
};
export declare class ContentfulValidationError extends Error {
error?: {
sys: {
id: string;
};
details: {
errors: Array<{
name: string;
}>;
};
};
}
export declare class ContentfulEntityError extends Error {
entity: EntryProps | AssetProps | EditorInterfaceProps;
}
export declare class ContentfulMultiError extends Error {
errors: LogItem[];
}