2023-03-06 19:53:43 +00:00
|
|
|
export interface INewPostsData {
|
2023-03-05 16:52:42 +00:00
|
|
|
data: Datum[];
|
2023-03-07 20:18:27 +00:00
|
|
|
links: Links;
|
|
|
|
|
meta: Meta;
|
2023-03-05 16:52:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Datum {
|
|
|
|
|
id: number;
|
|
|
|
|
title: string;
|
|
|
|
|
slug: string;
|
|
|
|
|
excerpt: string;
|
|
|
|
|
published_at: string;
|
2023-03-07 20:18:27 +00:00
|
|
|
type: string;
|
2023-03-06 19:53:43 +00:00
|
|
|
featured_images: FeaturedImage[];
|
2023-03-07 20:18:27 +00:00
|
|
|
video: string;
|
|
|
|
|
content_html: string;
|
2023-03-05 16:52:42 +00:00
|
|
|
categories: Category[];
|
2023-03-07 20:18:27 +00:00
|
|
|
powerseo_title: string;
|
|
|
|
|
powerseo_description: string;
|
|
|
|
|
powerseo_keywords: string;
|
2023-03-05 16:52:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Category {
|
|
|
|
|
id: number;
|
|
|
|
|
name: string;
|
|
|
|
|
}
|
2023-03-06 19:53:43 +00:00
|
|
|
|
|
|
|
|
export interface FeaturedImage {
|
|
|
|
|
id: number;
|
|
|
|
|
disk_name: string;
|
|
|
|
|
file_name: string;
|
|
|
|
|
path: string;
|
|
|
|
|
extension: string;
|
|
|
|
|
}
|
2023-03-07 20:18:27 +00:00
|
|
|
|
|
|
|
|
export interface Links {
|
|
|
|
|
first: string;
|
|
|
|
|
last: string;
|
|
|
|
|
prev: null | string;
|
|
|
|
|
next: null | string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Meta {
|
|
|
|
|
current_page: number;
|
|
|
|
|
from: number;
|
|
|
|
|
last_page: number;
|
|
|
|
|
path: string;
|
|
|
|
|
per_page: string;
|
|
|
|
|
to: number;
|
|
|
|
|
total: number;
|
|
|
|
|
}
|