model.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. export interface ProposalPostType {
  2. id: number
  3. created: number
  4. createdAt: Moment
  5. updatedAt: Moment
  6. version: number
  7. text: string
  8. proposalId: number
  9. update: (any) => {}
  10. setProposal: (number) => {}
  11. }
  12. export interface CouncilType {
  13. round: number
  14. last: string
  15. update: (any) => {}
  16. addProposal: (number) => {}
  17. }
  18. export interface CommitmentType {
  19. vote?: string
  20. stake: number
  21. memberId: number
  22. update: (any) => {}
  23. setCouncil: (number) => {}
  24. }
  25. export interface ChannelType {
  26. id: number
  27. handle: string
  28. title: string
  29. description: string
  30. avatar: string
  31. banner: string
  32. content: string
  33. ownerId: number
  34. accountId: string
  35. publicationStatus: boolean
  36. curation: string
  37. createdAt: string
  38. principal: number
  39. }
  40. export interface CategoryType {
  41. id: number
  42. threadId: number
  43. title: string
  44. description: string
  45. createdAt: number
  46. deleted: boolean
  47. archived: boolean
  48. subcategories: number
  49. unmoderatedThreads: number
  50. moderatedThreads: number
  51. position: number
  52. moderatorId: string
  53. setModeration: (number) => {}
  54. }
  55. export interface PostType {
  56. id: number
  57. text: string
  58. threadId: number
  59. authorId: string
  60. createdAt: { block: number; time: number }
  61. setModeration: (number) => {}
  62. }
  63. w
  64. export interface ThreadType {
  65. id: number
  66. title: string
  67. categoryId: number
  68. nrInCategory: number
  69. moderation: string
  70. createdAt: string
  71. authorId: string
  72. }
  73. export interface MemberType {
  74. account: string
  75. handle: string
  76. id: number
  77. registeredAt: number
  78. about: string
  79. addPost: any
  80. update: (any) => {}
  81. }
  82. export interface ModerationType {
  83. created: number
  84. createdAt: Moment
  85. rationale: string
  86. }