interfaces.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 Structure {
  15. readonly id: number,
  16. name: string,
  17. logoId: string | null,
  18. principalType: string | null,
  19. website: string | null,
  20. mapAddress: Address | null,
  21. postalAddress: Address | null,
  22. addresses: Array<Address>,
  23. telphone: string | null,
  24. email: string | null,
  25. facebook: string | null,
  26. twitter: string | null,
  27. instagram: string | null,
  28. youtube: string | null,
  29. practices: Array<string>,
  30. n1Id: number | null,
  31. n1Name: string | null,
  32. n2Id: number | null,
  33. n3Id: number | null,
  34. n4Id: number | null,
  35. n5Id: number | null,
  36. parents: Array<number>,
  37. description: string | null,
  38. imageId: string | null,
  39. articles: Array<{id: number, title: string, date: string, link: string}>
  40. }
  41. interface Coordinates {
  42. latitude: number,
  43. longitude: number
  44. }
  45. /**
  46. * Items of the UiSearchAddress component
  47. */
  48. interface UiSearchAddressItem {
  49. text: string,
  50. value: Coordinates,
  51. disabled?: boolean
  52. }