project table
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
export interface CommonResponse<T = any> {
|
||||
status: boolean;
|
||||
message: string;
|
||||
data: T;
|
||||
errors?: any; // Or a more specific error type
|
||||
}
|
||||
|
||||
export interface PaginatedResponse<T> {
|
||||
status: boolean;
|
||||
message: string;
|
||||
data: T[];
|
||||
pagination: {
|
||||
current_page: number;
|
||||
page_size: number;
|
||||
total_records: number;
|
||||
total_pages: number;
|
||||
};
|
||||
errors?: any;
|
||||
}
|
||||
|
||||
export interface CursorPaginatedResponse<T> {
|
||||
status: boolean;
|
||||
message: string;
|
||||
data: {
|
||||
items: T[];
|
||||
next_cursor_id?: string;
|
||||
};
|
||||
errors?: any;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
export interface Project {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
project_status: "PRIVATE" | "PUBLIC" | "ARCHIVE";
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
// You can add other fields like 'members' if they are part of the response
|
||||
}
|
||||
Reference in New Issue
Block a user