UNPKG

1.28 kBTypeScriptView Raw
1import { Action } from '@ngrx/store';
2import { ProfileViewModel } from '../models';
3export 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}
10export declare class Search implements Action {
11 payload: ProfileViewModel.Request;
12 readonly type: SearchActionTypes;
13 constructor(payload: ProfileViewModel.Request);
14}
15export declare class SearchStartAction implements Action {
16 payload: ProfileViewModel.Request;
17 readonly type: SearchActionTypes;
18 constructor(payload: ProfileViewModel.Request);
19}
20export declare class SearchSucceed implements Action {
21 payload: ProfileViewModel.Response;
22 readonly type: SearchActionTypes;
23 constructor(payload: ProfileViewModel.Response);
24}
25export declare class SearchFailed implements Action {
26 readonly type: SearchActionTypes;
27}
28export declare class ClearSearchedUser implements Action {
29 readonly type: SearchActionTypes;
30}
31export declare type SearchAction = Search | SearchStartAction | SearchSucceed | SearchFailed | ClearSearchedUser;