mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	
		
			
	
	
		
			30 lines
		
	
	
		
			705 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			30 lines
		
	
	
		
			705 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|   | import type { errors } from '@strapi/utils'; | ||
|  | import type { Struct, UID } from '@strapi/types'; | ||
|  | 
 | ||
|  | // Export required to avoid "cannot be named" TS build error
 | ||
|  | 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 { | ||
|  |   export interface Request { | ||
|  |     body: {}; | ||
|  |     query: { | ||
|  |       action: 'update' | 'publish'; | ||
|  |     }; | ||
|  |   } | ||
|  | 
 | ||
|  |   export interface Response { | ||
|  |     data: RecentDocument[]; | ||
|  |     error?: errors.ApplicationError; | ||
|  |   } | ||
|  | } |