Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. import { Action } from "@ngrx/store"
  2.  
  3. export const actionTypes = {
  4. "FETCH_ADMINISTRATOR": type("[administrator] fetch"),
  5. "FETCH_COMPLETE_ADMINISTRATOR": type("[administrator] fetch complete"),
  6. "SELECT_ADMINISTRATOR": type("[administrator] Select active transaction"),
  7. "SELECT_COMPLETE_ADMINISTRATOR": type("[administrator] Select complete"),
  8. "SORT_ADMINISTRATOR": type("[administrator] Sort administrators"),
  9. }
  10.  
  11. export class Fetch implements Action {
  12. public type = actionTypes.FETCH_ADMINISTRATOR
  13.  
  14. constructor(public payload: any) { }
  15. }
  16.  
  17. export class FetchComplete implements Action {
  18. public type = actionTypes.FETCH_COMPLETE_ADMINISTRATOR
  19.  
  20. constructor(public payload: any) { }
  21. }
  22.  
  23. export class Select implements Action {
  24. public type = actionTypes.SELECT_COMPLETE_ADMINISTRATOR
  25.  
  26. constructor(public payload: any) { }
  27. }
  28.  
  29. export class SelectComplete implements Action {
  30. public type = actionTypes.SELECT_ADMINISTRATOR
  31.  
  32. constructor(public payload: any) { }
  33. }
  34.  
  35. export class Sort implements Action {
  36. public type = actionTypes.SORT_ADMINISTRATOR
  37.  
  38. constructor(public payload: any) {}
  39. }
  40.  
  41. export type Actions
  42. = Fetch
  43. | FetchComplete
  44. | Select
  45. | SelectComplete
  46. | Sort
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement