sarlink-portal/lib/backend-types.ts
i701 0fd269df31
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m58s
refactor: migrate authentication and signup flow to use external API and improve type safety
2025-01-24 11:42:38 +05:00

32 lines
480 B
TypeScript

export interface Links {
next_page: string | null;
previous_page: string | null;
}
export interface Meta {
total: number;
per_page: number;
current_page: number;
last_page: number;
}
export interface DataResponse<T> {
meta: Meta;
links: Links;
data: T[];
}
export interface Atoll {
id: number;
islands: Island[];
name: string;
createdAt: string;
updatedAt: string;
}
export interface Island {
id: number;
name: string;
createdAt: string;
updatedAt: string;
}