|
| 1 | +import _keyBy from 'lodash/keyBy' |
| 2 | +import User from '_types/User' |
| 3 | +import organizationsToUsersData from './organizationsToUsersData' |
| 4 | + |
| 5 | +const list: User[] = [ |
| 6 | + { |
| 7 | + id: 1, |
| 8 | + firstName: 'John', |
| 9 | + lastName: 'Doe', |
| 10 | + username: 'johndoe1', |
| 11 | + email: 'john@doe.com', |
| 12 | + avatarUrl: 'https://avatars3.githubusercontent.com/u/3959008?v=3&s=40', |
| 13 | + userToOrganizations: organizationsToUsersData.byUserId[1], |
| 14 | + globalRole: 'admin', |
| 15 | + }, |
| 16 | + { |
| 17 | + id: 2, |
| 18 | + firstName: 'Jay', |
| 19 | + lastName: 'Nickolson', |
| 20 | + username: null, |
| 21 | + email: 'example@gmail.com', |
| 22 | + avatarUrl: |
| 23 | + 'https://tinyfac.es/data/avatars/475605E3-69C5-4D2B-8727-61B7BB8C4699-500w.jpeg', |
| 24 | + userToOrganizations: organizationsToUsersData.byUserId[2], |
| 25 | + }, |
| 26 | + { |
| 27 | + id: 3, |
| 28 | + firstName: 'Ana', |
| 29 | + lastName: 'De Armas', |
| 30 | + username: null, |
| 31 | + email: 'Ana+De+Armas@example.com', |
| 32 | + avatarUrl: |
| 33 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg', |
| 34 | + userToOrganizations: organizationsToUsersData.byUserId[3], |
| 35 | + }, |
| 36 | + { |
| 37 | + id: 4, |
| 38 | + firstName: 'Armas', |
| 39 | + lastName: 'De Ana', |
| 40 | + username: null, |
| 41 | + email: 'Ana+De+Armas@example.com', |
| 42 | + avatarUrl: |
| 43 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg', |
| 44 | + userToOrganizations: organizationsToUsersData.byUserId[4], |
| 45 | + }, |
| 46 | + { |
| 47 | + id: 5, |
| 48 | + firstName: 'Sonequa', |
| 49 | + lastName: 'Martin-Green', |
| 50 | + email: 'Sonequa+Martin+Green@example.com', |
| 51 | + avatarUrl: |
| 52 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMTgxMTc1MTYzM15BMl5BanBnXkFtZTgwNzI5NjMwOTE@._V1_UY256_CR16,0,172,256_AL_.jpg', |
| 53 | + userToOrganizations: organizationsToUsersData.byUserId[5], |
| 54 | + }, |
| 55 | +] |
| 56 | + |
| 57 | +const byId: { [key: number]: User } = _keyBy(list, 'id') |
| 58 | + |
| 59 | +const usersData = { |
| 60 | + list, |
| 61 | + byId, |
| 62 | + current: byId[1], |
| 63 | +} |
| 64 | + |
| 65 | +export default usersData |
0 commit comments