types.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * <<
  3. * Davinci
  4. * ==
  5. * Copyright (C) 2016 - 2017 EDP
  6. * ==
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. * >>
  19. */
  20. import {
  21. IPortal,
  22. IDisplayRaw,
  23. IDisplayParams,
  24. IDisplayFormed,
  25. Display,
  26. IDashboardBase,
  27. IDashboardRaw,
  28. IDashboardNode,
  29. ISlideBase,
  30. SlideScaleMode,
  31. ISlideParams,
  32. ISlideFormed
  33. } from './components/types'
  34. import { IDashboard } from 'containers/Dashboard/types'
  35. export interface ISlideRaw extends ISlideBase {
  36. config: string
  37. }
  38. export type Slide = ISlideRaw & ISlideFormed
  39. interface IVizState {
  40. portals: IPortal[]
  41. portalDashboards: {
  42. [portalId: number]: IDashboardNode[]
  43. }
  44. displaySlides: {
  45. [displayId: number]: ISlideFormed[]
  46. }
  47. currentPortalId: number
  48. currentDisplay: IDisplayFormed
  49. currentSlide: ISlideFormed
  50. displays: Display[]
  51. loading: {
  52. portal: boolean
  53. display: boolean
  54. editing: boolean
  55. dashboards: boolean
  56. slides: boolean
  57. }
  58. }
  59. export {
  60. IPortal,
  61. IDashboard,
  62. IDisplayRaw,
  63. IDisplayParams,
  64. IDisplayFormed,
  65. Display,
  66. IDashboardBase,
  67. IDashboardRaw,
  68. IDashboardNode,
  69. SlideScaleMode,
  70. ISlideParams,
  71. ISlideFormed,
  72. IVizState
  73. }