web-humas-fe/types/globals.tsx

70 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-04-19 13:26:27 +00:00
import { SVGProps } from "react";
export type IconSvgProps = SVGProps<SVGSVGElement> & {
size?: number;
2024-04-19 13:26:27 +00:00
};
export type SidebarMenuTask = {
childMenu: any[];
name: string;
id: number;
parentId: number;
position: number;
statusId: number;
statusName: string;
2024-04-19 13:26:27 +00:00
};
export type Article = {
id: number;
title: string;
articleCategory: string;
updated_at: string;
creator: string;
source: string;
status: string;
actions: string;
2024-04-19 13:26:27 +00:00
};
2024-04-24 10:10:26 +00:00
export type MasterUser = {
id: number;
address: string;
dateOfBirth: string;
email: string;
fullname: string;
genderType: string;
identityNumber: string;
identityType: string;
lastEducation: string;
phoneNumber: string;
userLevelsId: number;
userRoleId: number;
username: string;
workType: string;
2024-04-24 10:10:26 +00:00
};
2024-04-24 10:41:04 +00:00
export type MasterUserRole = {
id: number;
name: string;
description: string;
code: string;
level_number: number;
status_id: number;
created_by_id: string | number;
is_active: true;
created_at: string;
updated_at: string;
};
export type PaginationRequest = {
limit: string;
page: number;
search: string;
startDate?: string;
endDate?: string;
2025-02-10 09:16:52 +00:00
isPublish?: boolean;
2025-02-14 16:11:51 +00:00
category?: string;
2025-02-17 10:01:58 +00:00
sortBy?: string;
sort?: string;
2025-03-18 08:30:18 +00:00
categorySlug?: string;
2024-04-24 10:41:04 +00:00
};