Files
tm_panel/src/constants/enums.ts
T
AmirReza Jamali a77bb6cccc feat(inquiries): Add filtering functionality to inquiries list table
- Create new InquiriesListFilters component with search and status filter fields
- Integrate filter modal into inquiries table with form handling
- Add INQUIRY_STATUS enum with pending, reviewed, approved, and rejected statuses
- Implement URL-based query parameter management for filter persistence
- Add form state management using react-hook-form with watch and setValue utilities
- Connect filter search to useGetInquiries hook to fetch filtered results
- Support clearing individual filter fields and closing filter modal
2025-11-25 12:40:30 +03:30

70 lines
1.6 KiB
TypeScript

export enum TenderStatus {
ACTIVE = "active",
EXPIRED = "expired",
CANCELLED = "cancelled",
AWARDED = "awarded",
DRAFT = "draft",
}
export enum AdminStatus {
ACTIVE = "active",
INACTIVE = "inactive",
SUSPENDED = "suspended",
}
export enum NotificationChannels {
EMAIL = "email",
PUSH = "push",
}
export enum NotificationPriorities {
LOW = "low",
MEDIUM = "medium",
IMPORTANT = "important",
}
export enum NotificationTargetGroups {
ALL_USERS = "all_users",
SPECIFIC_USERS = "specific_users",
ALL_ROLE = "all_role",
SPECIFIC_ROLE = "specific_role",
ALL_COMPANIES = "all_companies",
SPECIFIC_COMPANY = "specific_company",
ALL_CUSTOMERS = "all_customers",
SPECIFIC_CUSTOMER = "specific_customer",
}
export enum NotificationTypes {
INFO = "info",
WARNING = "warning",
ALERT = "alert",
REJECT = "reject",
}
export enum AdminRoles {
ADMIN = "admin",
ANALYST = "analyst",
}
export enum CustomerStatus {
ACTIVE = "active",
INACTIVE = "inactive",
SUSPENDED = "suspended",
}
export enum CustomerType {
INDIVIDUAL = "individual",
COMPANY = "company",
GOVERNMENT = "government",
}
export const Currencies = [
{ label: "USD", value: "USD" },
{ label: "EUR", value: "EUR" },
{ label: "GBP", value: "GBP" },
{ label: "JPY", value: "JPY" },
{ label: "CAD", value: "CAD" },
{ label: "AUD", value: "AUD" },
{ label: "CHF", value: "CHF" },
{ label: "CNY", value: "CNY" },
{ label: "INR", value: "INR" },
{ label: "BRL", value: "BRL" },
];
export enum INQUIRY_STATUS {
PENDING = "pending",
REVIEWED = "reviewed",
APPROVED = "approved",
REJECTED = "rejected",
}