module-hooks.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * Types for module hook events fired across the application
  3. */
  4. export type TrackChangesAcceptedEvent = {
  5. projectId: string
  6. docId: string
  7. userId: string
  8. changeContributors: string[]
  9. }
  10. export type TrackChangesRejectedEvent = {
  11. projectId: string
  12. docId: string
  13. userId: string
  14. changeContributors: string[]
  15. }
  16. export type CommentAddedEvent = {
  17. projectId: string
  18. userId: string
  19. threadId: string
  20. messageId: string
  21. }
  22. export type CommentResolvedEvent = {
  23. projectId: string
  24. userId: string
  25. threadId: string
  26. }
  27. export type CommentReopenedEvent = {
  28. projectId: string
  29. userId: string
  30. threadId: string
  31. }
  32. export type CommentEditedEvent = {
  33. projectId: string
  34. userId: string
  35. threadId: string
  36. messageId: string
  37. }
  38. export type CommentDeletedEvent = {
  39. projectId: string
  40. userId: string
  41. threadId: string
  42. messageId: string
  43. }
  44. export type ThreadDeletedEvent = {
  45. projectId: string
  46. userId: string
  47. threadId: string
  48. }
  49. export type ProjectModifiedEvent = {
  50. projectId: string
  51. timestamp: number
  52. }