interfaces.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. email: string | null,
  31. facebook: string | null,
  32. twitter: string | null,
  33. instagram: string | null,
  34. youtube: string | null,
  35. practices: Array<string>,
  36. n1Id: number | null,
  37. n1Name: string | null,
  38. n2Id: number | null,
  39. n3Id: number | null,
  40. n4Id: number | null,
  41. n5Id: number | null,
  42. parents: Array<number>,
  43. description: string | null,
  44. imageId: string | null,
  45. articles: Array<Article>
  46. }
  47. interface Coordinates {
  48. latitude: number,
  49. longitude: number
  50. }
  51. /**
  52. * Items of the UiSearchAddress component
  53. */
  54. interface UiSearchAddressItem {
  55. text: string,
  56. value: Coordinates,
  57. disabled?: boolean
  58. }