interfaces.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. practices: Array<string>,
  21. n1Id: number | null,
  22. n1Name: string | null,
  23. n2Id: number | null,
  24. n3Id: number | null,
  25. n4Id: number | null,
  26. n5Id: number | null,
  27. parents: Array<number>,
  28. description: string | null,
  29. imageId: string | null,
  30. articles: Array<{id: number, title: string, date: string, link: string}>
  31. }
  32. interface Coordinates {
  33. latitude: number,
  34. longitude: number
  35. }
  36. /**
  37. * Items of the UiSearchAddress component
  38. */
  39. interface Address {
  40. text: string,
  41. value: Coordinates,
  42. disabled?: boolean
  43. }