interfaces.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Structures data as returned by the API and consumed by the structures page
  3. */
  4. interface Structure {
  5. readonly id: number,
  6. name: string,
  7. logoId: string | null,
  8. principalType: string | null,
  9. website: string | null,
  10. latitude: number | null,
  11. longitude: number | null,
  12. streetAddress: string | null,
  13. postalCode: string | null,
  14. addressCity: string | null,
  15. country: string | null,
  16. telphone: string | null,
  17. email: string | null,
  18. facebook: string | null,
  19. twitter: string | null,
  20. instagram: string | null,
  21. youtube: string | null,
  22. practices: Array<string>,
  23. n1Id: number | null,
  24. n1Name: string | null,
  25. n2Id: number | null,
  26. n3Id: number | null,
  27. n4Id: number | null,
  28. n5Id: number | null,
  29. parents: Array<number>,
  30. description: string | null,
  31. imageId: string | null,
  32. articles: Array<{id: number, title: string, date: string, link: string}>
  33. }
  34. interface Coordinates {
  35. latitude: number,
  36. longitude: number
  37. }
  38. /**
  39. * Items of the UiSearchAddress component
  40. */
  41. interface Address {
  42. text: string,
  43. value: Coordinates,
  44. disabled?: boolean
  45. }