AddressPostal.ts 966 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import ApiModel from "~/models/ApiModel";
  2. import {Num, Str, Uid, Attr} from "pinia-orm/dist/decorators";
  3. /**
  4. * Ap2i Model : AddressPostal
  5. *
  6. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Core/AddressPostal.php
  7. */
  8. export class AddressPostal extends ApiModel {
  9. static entity = 'address_postals'
  10. @Uid()
  11. declare id: number | string | null
  12. @Str('')
  13. declare '@id': string // TODO: pqoi le conserver celui là?
  14. @Attr(null)
  15. declare organizationAddressPostalId: number | null
  16. @Str(null)
  17. declare addressCountry: string|null
  18. @Str(null)
  19. declare addressCity: string|null
  20. @Str(null)
  21. declare addressOwner: string|null
  22. @Str(null)
  23. declare postalCode: string|null
  24. @Str(null)
  25. declare streetAddress: string|null
  26. @Str(null)
  27. declare streetAddressSecond: string|null
  28. @Str(null)
  29. declare streetAddressThird: string|null
  30. @Num(0)
  31. declare latitude: number
  32. @Num(0)
  33. declare longitude: number
  34. }