module-hooks.ts 777 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Types for module hook events fired across the application
  3. */
  4. export type CommentAddedEvent = {
  5. projectId: string
  6. userId: string
  7. threadId: string
  8. messageId: string
  9. }
  10. export type CommentResolvedEvent = {
  11. projectId: string
  12. userId: string
  13. threadId: string
  14. }
  15. export type CommentReopenedEvent = {
  16. projectId: string
  17. userId: string
  18. threadId: string
  19. }
  20. export type CommentEditedEvent = {
  21. projectId: string
  22. userId: string
  23. threadId: string
  24. messageId: string
  25. }
  26. export type CommentDeletedEvent = {
  27. projectId: string
  28. userId: string
  29. threadId: string
  30. messageId: string
  31. }
  32. export type ThreadDeletedEvent = {
  33. projectId: string
  34. userId: string
  35. threadId: string
  36. }
  37. export type ProjectModifiedEvent = {
  38. projectId: string
  39. timestamp: number
  40. }