Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x 49x | import { createAction } from '@ngrx/store'; import { httpError, payload } from 'ish-core/utils/ngrx-creators'; import { B2bRole } from '../../models/b2b-role/b2b-role.model'; import { B2bUser } from '../../models/b2b-user/b2b-user.model'; import { UserBudget } from '../../models/user-budget/user-budget.model'; export const loadUsers = createAction('[Users] Load Users'); export const loadUsersFail = createAction('[Users API] Load Users Fail', httpError()); export const loadUsersSuccess = createAction('[Users API] Load Users Success', payload<{ users: B2bUser[] }>()); export const loadUserFail = createAction('[Users API] Load User Fail', httpError()); export const loadUserSuccess = createAction('[Users API] Load User Success', payload<{ user: B2bUser }>()); export const addUser = createAction('[Users] Add User', payload<{ user: B2bUser }>()); export const addUserFail = createAction('[Users API] Add User Fail', httpError()); export const addUserSuccess = createAction('[Users API] Add User Success', payload<{ user: B2bUser }>()); export const updateUser = createAction('[Users] Update User', payload<{ user: B2bUser }>()); export const updateUserFail = createAction('[Users API] Update User Fail', httpError()); export const updateUserSuccess = createAction('[Users API] Update User Success', payload<{ user: B2bUser }>()); export const deleteUser = createAction('[Users] Delete User', payload<{ login: string }>()); export const deleteUserFail = createAction('[Users API] Delete User Fail', httpError()); export const deleteUserSuccess = createAction('[Users API] Delete User Success', payload<{ login: string }>()); export const loadSystemUserRolesSuccess = createAction( '[Users API] Load System User Roles Success', payload<{ roles: B2bRole[] }>() ); export const setUserRoles = createAction('[Users] Set Roles for User', payload<{ login: string; roles: string[] }>()); export const setUserRolesSuccess = createAction( '[Users API] Set Roles for User Success', payload<{ login: string; roles: string[] }>() ); export const setUserRolesFail = createAction('[Users API] Set Roles for User Fail', httpError<{ login: string }>()); export const setUserBudget = createAction( '[Users] Set Budget for User', payload<{ login: string; budget: UserBudget }>() ); export const setUserBudgetSuccess = createAction( '[Users API] Set Budget for User Success', payload<{ login: string; budget: UserBudget }>() ); export const setUserBudgetFail = createAction('[Users API] Set Budget for User Fail', httpError<{ login: string }>()); |