mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-03 00:38:23 +00:00
refactor: migrate authentication and signup flow to use external API and improve type safety
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m58s
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m58s
This commit is contained in:
31
lib/backend-types.ts
Normal file
31
lib/backend-types.ts
Normal file
@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user