interfaces.d.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. type: string | null,
  25. website: string | null,
  26. mapAddress: Address | null,
  27. postalAddress: Address | null,
  28. addresses: Array<Address>,
  29. phone: string | null,
  30. mobilePhone: 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. parentId: number | null,
  38. parentName: string | null,
  39. parents: Array<number>,
  40. description: string | null,
  41. imageId: string | null,
  42. articles: Array<Article>
  43. }
  44. interface Coordinates {
  45. latitude: number,
  46. longitude: number
  47. }
  48. /**
  49. * Items of the UiSearchAddress component
  50. */
  51. interface UiSearchAddressItem {
  52. text: string,
  53. value: Coordinates,
  54. disabled?: boolean
  55. }
  56. interface PublicEvent {
  57. uuid: string,
  58. organizationId: number | null,
  59. name: string,
  60. description: string | null,
  61. url: string | null,
  62. datetimeStart: Date,
  63. datetimeEnd: Date,
  64. address: Address | null,
  65. roomName: string | null,
  66. roomDescription: string | null,
  67. roomCapacity: string | null,
  68. roomFloorSize: string | null,
  69. imageUrl: string | null,
  70. thumbnailUrl: string | null,
  71. categories: Array<string>,
  72. origin: string,
  73. entityId: number
  74. }
  75. interface DateRange {
  76. start: string,
  77. end: string
  78. }
  79. interface DateRangePreset {
  80. label: string,
  81. range: DateRange
  82. }
  83. interface HydraCollection<T> {
  84. iri: string,
  85. totalItems: number,
  86. page: number | null,
  87. previousPage: number | null,
  88. nextPage: number | null,
  89. firstPage: number | null,
  90. lastPage: number | null
  91. items: Array<T>,
  92. }