interfaces.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * Structures data as returned by the API and consumed by the structures page
  3. */
  4. interface Address {
  5. type: string,
  6. // type: 'ADDRESS_PRACTICE' | 'ADDRESS_OTHER' | 'ADDRESS_HEAD_OFFICE' | 'ADDRESS_CONTACT' | 'ADDRESS_BILL',
  7. latitude: number,
  8. longitude: number,
  9. streetAddress: string,
  10. postalCode: string,
  11. addressCity: string,
  12. country: string
  13. }
  14. interface Article {
  15. id: number,
  16. date: string,
  17. link: string,
  18. title: string
  19. }
  20. interface Structure {
  21. readonly id: number,
  22. name: string,
  23. logoId: string | null,
  24. principalType: string | null,
  25. website: string | null,
  26. mapAddress: Address | null,
  27. postalAddress: Address | null,
  28. addresses: Array<Address>,
  29. telphone: string | null,
  30. mobilPhone: string | null,
  31. email: string | null,
  32. facebook: string | null,
  33. twitter: string | null,
  34. instagram: string | null,
  35. youtube: string | null,
  36. practices: Array<string>,
  37. n1Id: number | null,
  38. n1Name: string | null,
  39. n2Id: number | null,
  40. n3Id: number | null,
  41. n4Id: number | null,
  42. n5Id: number | null,
  43. parents: Array<number>,
  44. description: string | null,
  45. imageId: string | null,
  46. articles: Array<Article>
  47. }
  48. interface Coordinates {
  49. latitude: number,
  50. longitude: number
  51. }
  52. /**
  53. * Items of the UiSearchAddress component
  54. */
  55. interface UiSearchAddressItem {
  56. text: string,
  57. value: Coordinates,
  58. disabled?: boolean
  59. }