1 | import { Action } from "@ngrx/store";
|
2 | import { ProfileViewModel } from "../models/profile-view.model";
|
3 | export declare enum SearchActionTypes {
|
4 | SEARCH = "[USER][SEARCH] SEARCH",
|
5 | SEARCH_START = "[USER][SEARCH] SEARCH_START",
|
6 | SEARCH_SUCCEED = "[USER][SEARCH] SEARCH_SUCCEED",
|
7 | SEARCH_FAILED = "[USER][SEARCH] SEARCH_FAILED",
|
8 | CLEAR_SEARCHED_USER = "[USER][SEARCH] CLEAR_SEARCHED_USER"
|
9 | }
|
10 | export declare class Search implements Action {
|
11 | payload: ProfileViewModel.Request;
|
12 | readonly type: SearchActionTypes;
|
13 | constructor(payload: ProfileViewModel.Request);
|
14 | }
|
15 | export declare class SearchStartAction implements Action {
|
16 | payload: ProfileViewModel.Request;
|
17 | readonly type: SearchActionTypes;
|
18 | constructor(payload: ProfileViewModel.Request);
|
19 | }
|
20 | export declare class SearchSucceed implements Action {
|
21 | payload: ProfileViewModel.Response;
|
22 | readonly type: SearchActionTypes;
|
23 | constructor(payload: ProfileViewModel.Response);
|
24 | }
|
25 | export declare class SearchFailed implements Action {
|
26 | readonly type: SearchActionTypes;
|
27 | }
|
28 | export declare class ClearSearchedUser implements Action {
|
29 | readonly type: SearchActionTypes;
|
30 | }
|
31 | export declare type SearchAction = Search | SearchStartAction | SearchSucceed | SearchFailed | ClearSearchedUser;
|