Files
pole-book/server/node_modules/@strapi/admin/dist/shared/contracts/homepage.d.ts

26 lines
679 B
TypeScript

import type { errors } from '@strapi/utils';
import type { Struct, UID } from '@strapi/types';
export interface RecentDocument {
kind: Struct.ContentTypeKind;
contentTypeUid: UID.ContentType;
contentTypeDisplayName: string;
documentId: string;
locale: string | null;
status?: 'draft' | 'published' | 'modified';
title: string;
updatedAt: Date;
publishedAt?: Date | null;
}
export declare namespace GetRecentDocuments {
interface Request {
body: {};
query: {
action: 'update' | 'publish';
};
}
interface Response {
data: RecentDocument[];
error?: errors.ApplicationError;
}
}