Skip to content

Commit

Permalink
feat: add new types for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Sep 20, 2024
1 parent 1c42d8b commit 39010b2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions types/admin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,37 @@ export type TransactionDetails = {
status: "Success" | "Failed";
date: string;
};

export interface HospitalDetails {
id: string;
profile: string;
name: string;
username: string;
contact: string;
city: string;
state: string;
}

export type HospitalUserDetails = HospitalDetails & {
role: string;
gender: string;
};

export type RecentUserTile = {
firstname: string;
createdAt: Date;
type: string;
};

export type FormattedRecentUser = {
title: string;
description: string;
timeSince: string;
};

export type RecentUserPaginatedResponse = {
users: FormattedUser[];
page: number;
totalPages: number;
totalItems: number;
};

0 comments on commit 39010b2

Please sign in to comment.