belépés jó, rgisztráción kicsit faragni kell még
This commit is contained in:
@@ -3,6 +3,12 @@ import { ref, computed } from 'vue'
|
||||
import router from '../router'
|
||||
import api from '../api/axios'
|
||||
|
||||
/**
|
||||
* Backend now sends address fields directly on the person object
|
||||
* with address_ prefix (e.g. address_city, address_zip, address_floor).
|
||||
* This interface is kept for backward compatibility but the actual
|
||||
* data comes as flat fields on PersonData.
|
||||
*/
|
||||
export interface AddressData {
|
||||
zip: string | null
|
||||
city: string | null
|
||||
@@ -28,7 +34,20 @@ export interface PersonData {
|
||||
identity_docs: Record<string, any> | null
|
||||
ice_contact: Record<string, any> | null
|
||||
is_active: boolean
|
||||
/** @deprecated Backend now sends address_* fields flat on person */
|
||||
address: AddressData | null
|
||||
// Flat address fields (new backend format)
|
||||
address_zip: string | null
|
||||
address_city: string | null
|
||||
address_street_name: string | null
|
||||
address_street_type: string | null
|
||||
address_house_number: string | null
|
||||
address_stairwell: string | null
|
||||
address_floor: string | null
|
||||
address_door: string | null
|
||||
address_hrsz: string | null
|
||||
address_parcel_id: string | null
|
||||
address_full_text: string | null
|
||||
}
|
||||
|
||||
export interface UserProfile {
|
||||
|
||||
Reference in New Issue
Block a user