Add enums, AuthService, and integrate backend registration endpoints
- Add separate enum files: BuildingType, PropertyStatus, BookingStatus, CommissionType, IdentityType, UserRole, City, LoginMethod, OwnerType, CustomerType
- Add AuthService (addToken/getToken/deleteToken)
- Update api.js: use AuthService, add Owner/Add and Customer/Add endpoints
- Update login page to use AuthService for token storage
- Rewrite owner register: 3-step flow with OwnerType dropdown, backend integration, OTP verification
- Rewrite tenant register: 2-step flow with CustomerType dropdown, backend integration, OTP verification
- Update homepage and property detail to use enums instead of hardcoded maps
- Update AddPropertyForm to import from enums directly
- Add console logs and status toasts linked to API response messages
2026-03-27 18:01:42 +00:00
|
|
|
/**
|
|
|
|
|
* Enums Index
|
|
|
|
|
* Central export for all enum modules
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export { BuildingType, BuildingTypeLabels, BuildingTypeKeys, BuildingTypeByKey } from './BuildingType';
|
|
|
|
|
export { PropertyStatus, PropertyStatusLabels, PropertyStatusKeys, PropertyStatusByKey } from './PropertyStatus';
|
|
|
|
|
export { BookingStatus, BookingStatusLabels, BookingStatusColors } from './BookingStatus';
|
|
|
|
|
export { CommissionType, CommissionTypeLabels } from './CommissionType';
|
|
|
|
|
export { IdentityType, IdentityTypeLabels, IdentityTypeFlags } from './IdentityType';
|
|
|
|
|
export { UserRole, UserRoleLabels, UserRoleColors } from './UserRole';
|
|
|
|
|
export { City, CitiesList, extractCity } from './City';
|
|
|
|
|
export { LoginMethod } from './LoginMethod';
|
|
|
|
|
export { OwnerType, OwnerTypeLabels } from './OwnerType';
|
|
|
|
|
export { CustomerType, CustomerTypeLabels } from './CustomerType';
|
2026-03-29 15:27:48 +00:00
|
|
|
export { RentPropertyCondition, RentPropertyConditionLabels } from './RentPropertyCondition';
|
|
|
|
|
export { RentPropertyType, RentPropertyTypeLabels } from './RentPropertyType';
|
|
|
|
|
export { RentType, RentTypeLabels } from './RentType';
|
|
|
|
|
export { PropertyService, PropertyServiceLabels, PropertyServicesList } from './PropertyService';
|
|
|
|
|
export { PropertyTerm, PropertyTermLabels, PropertyTermsList } from './PropertyTerm';
|
|
|
|
|
export { Currency, CurrencyLabels, CurrencySymbols } from './Currency';
|