Some checks failed
Build frontend / build (push) Failing after 45s
- CustomerType: PERSONAL=0, FAMILY=1 (was 'Personal', 'Family') - OwnerType: PERSON=0, REAL_ESTATE_AGENCY=1 (was 'peerson', 'RealEstateAgency') - Backend Type column is int(11), sending strings caused 415 errors
18 lines
391 B
JavaScript
18 lines
391 B
JavaScript
/**
|
|
* OwnerType Enum
|
|
* Backend values for owner sub-types
|
|
* Used in: Owner registration (Owner/Add)
|
|
*/
|
|
const OwnerType = Object.freeze({
|
|
PERSON: 0,
|
|
REAL_ESTATE_AGENCY: 1,
|
|
});
|
|
|
|
// Map value → Arabic label
|
|
const OwnerTypeLabels = Object.freeze({
|
|
[OwnerType.PERSON]: 'شخص',
|
|
[OwnerType.REAL_ESTATE_AGENCY]: 'وكالة عقارية',
|
|
});
|
|
|
|
export { OwnerType, OwnerTypeLabels };
|