module-hooks.ts 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 CommentAddedEvent = {
  11. projectId: string
  12. userId: string
  13. threadId: string
  14. messageId: string
  15. }
  16. export type CommentResolvedEvent = {
  17. projectId: string
  18. userId: string
  19. threadId: string
  20. }
  21. export type CommentReopenedEvent = {
  22. projectId: string
  23. userId: string
  24. threadId: string
  25. }
  26. export type CommentEditedEvent = {
  27. projectId: string
  28. userId: string
  29. threadId: string
  30. messageId: string
  31. }
  32. export type CommentDeletedEvent = {
  33. projectId: string
  34. userId: string
  35. threadId: string
  36. messageId: string
  37. }
  38. export type ThreadDeletedEvent = {
  39. projectId: string
  40. userId: string
  41. threadId: string
  42. }
  43. export type ProjectModifiedEvent = {
  44. projectId: string
  45. timestamp: number
  46. }