userDetails.js 1011 B

123456789101112131415161718192021222324252627282930313233
  1. export function UserDetails(params = {}) {
  2. return {
  3. username: 'billyfirefoxusername@test.com',
  4. emails: [
  5. {is_verified: false, id: '20', email: 'billyfirefox@test.com2'},
  6. {is_verified: true, id: '8', email: 'billyfirefox2@test.com'},
  7. {is_verified: false, id: '7', email: 'billyfirefox@test.com'},
  8. ],
  9. isManaged: false,
  10. lastActive: '2018-01-25T21:00:19.946Z',
  11. identities: [],
  12. id: '4',
  13. isActive: true,
  14. has2fa: false,
  15. name: 'Firefox Billy',
  16. avatarUrl:
  17. 'https://secure.gravatar.com/avatar/5df53e28e63099658c1ba89b8e9a7cf4?s=32&d=mm',
  18. authenticators: [],
  19. dateJoined: '2018-01-11T00:30:41.366Z',
  20. options: {
  21. timezone: 'UTC',
  22. seenReleaseBroadcast: null,
  23. stacktraceOrder: 'default',
  24. language: 'en',
  25. clock24Hours: false,
  26. },
  27. avatar: {avatarUuid: null, avatarType: 'letter_avatar'},
  28. lastLogin: '2018-01-25T19:57:46.973Z',
  29. permissions: [],
  30. email: 'billyfirefox@test.com',
  31. ...params,
  32. };
  33. }