notifications-data.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. },
  36. } as DeepReadonly<NotificationTPDSFileLimit>
  37. export const notificationDropboxDuplicateProjectNames = {
  38. messageOpts: {
  39. projectName: 'Abc Project',
  40. },
  41. } as DeepReadonly<NotificationDropboxDuplicateProjectNames>
  42. export const notificationGroupInviteDefault = {
  43. messageOpts: {
  44. token: '123abc',
  45. inviterName: 'inviter@overleaf.com',
  46. managedUsersEnabled: false,
  47. },
  48. } as DeepReadonly<NotificationGroupInvitation>
  49. export const notificationGroupInviteManagedUsers = {
  50. messageOpts: {
  51. token: '123abc',
  52. inviterName: 'inviter@overleaf.com',
  53. managedUsersEnabled: true,
  54. },
  55. } as DeepReadonly<NotificationGroupInvitation>