notifications-data.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { DeepReadonly } from '../../../../../types/utils'
  2. import {
  3. Institution,
  4. NotificationDropboxDuplicateProjectNames,
  5. NotificationGroupInvitation,
  6. NotificationIPMatchedAffiliation,
  7. NotificationProjectInvite,
  8. NotificationTPDSFileLimit,
  9. } from '../../../../../types/project/dashboard/notification'
  10. export const notificationsInstitution = {
  11. email: 'email@example.com',
  12. institutionEmail: 'institution@example.com',
  13. institutionId: 123,
  14. institutionName: 'Abc Institution',
  15. requestedEmail: 'requested@example.com',
  16. } as DeepReadonly<Institution>
  17. export const notificationProjectInvite = {
  18. messageOpts: {
  19. projectId: '123',
  20. projectName: 'Abc Project',
  21. userName: 'fakeUser',
  22. token: 'abcdef',
  23. },
  24. } as DeepReadonly<NotificationProjectInvite>
  25. export const notificationIPMatchedAffiliation = {
  26. messageOpts: {
  27. university_name: 'Abc University',
  28. ssoEnabled: false,
  29. institutionId: '456',
  30. },
  31. } as DeepReadonly<NotificationIPMatchedAffiliation>
  32. export const notificationTPDSFileLimit = {
  33. messageOpts: {
  34. projectName: 'Abc Project',
  35. projectId: '123',
  36. },
  37. } as DeepReadonly<NotificationTPDSFileLimit>
  38. export const notificationDropboxDuplicateProjectNames = {
  39. messageOpts: {
  40. projectName: 'Abc Project',
  41. },
  42. } as DeepReadonly<NotificationDropboxDuplicateProjectNames>
  43. export const notificationGroupInviteDefault = {
  44. messageOpts: {
  45. token: '123abc',
  46. inviterName: 'inviter@overleaf.com',
  47. managedUsersEnabled: false,
  48. },
  49. } as DeepReadonly<NotificationGroupInvitation>
  50. export const notificationGroupInviteManagedUsers = {
  51. messageOpts: {
  52. token: '123abc',
  53. inviterName: 'inviter@overleaf.com',
  54. managedUsersEnabled: true,
  55. },
  56. } as DeepReadonly<NotificationGroupInvitation>