2023-03-06 19:53:43 +00:00
|
|
|
export interface INewPostsData {
|
2023-03-05 16:52:42 +00:00
|
|
|
status_code: number;
|
|
|
|
|
message: string;
|
|
|
|
|
data: Data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Data {
|
|
|
|
|
current_page: number;
|
|
|
|
|
data: Datum[];
|
|
|
|
|
first_page_url: string;
|
|
|
|
|
from: number;
|
|
|
|
|
last_page: number;
|
|
|
|
|
last_page_url: string;
|
|
|
|
|
next_page_url: string;
|
|
|
|
|
path: string;
|
|
|
|
|
per_page: string;
|
2023-03-06 19:53:43 +00:00
|
|
|
prev_page_url: string | null;
|
2023-03-05 16:52:42 +00:00
|
|
|
to: number;
|
|
|
|
|
total: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Datum {
|
|
|
|
|
id: number;
|
|
|
|
|
title: string;
|
|
|
|
|
slug: string;
|
|
|
|
|
excerpt: string;
|
|
|
|
|
published_at: string;
|
2023-03-06 19:53:43 +00:00
|
|
|
video: string | null;
|
2023-03-05 16:52:42 +00:00
|
|
|
summary: string;
|
|
|
|
|
has_summary: boolean;
|
2023-03-06 19:53:43 +00:00
|
|
|
featured_images: FeaturedImage[];
|
2023-03-05 16:52:42 +00:00
|
|
|
categories: Category[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Category {
|
|
|
|
|
id: number;
|
|
|
|
|
name: string;
|
|
|
|
|
pivot: Pivot;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Pivot {
|
|
|
|
|
post_id: number;
|
|
|
|
|
category_id: number;
|
|
|
|
|
}
|
2023-03-06 19:53:43 +00:00
|
|
|
|
|
|
|
|
export interface FeaturedImage {
|
|
|
|
|
id: number;
|
|
|
|
|
disk_name: string;
|
|
|
|
|
file_name: string;
|
|
|
|
|
file_size: number;
|
|
|
|
|
content_type: string;
|
|
|
|
|
title: string;
|
|
|
|
|
description: string | null;
|
|
|
|
|
field: string;
|
|
|
|
|
sort_order: number;
|
|
|
|
|
created_at: string;
|
|
|
|
|
updated_at: string;
|
|
|
|
|
path: string;
|
|
|
|
|
extension: string;
|
|
|
|
|
}
|