34 lines
888 B
TypeScript
34 lines
888 B
TypeScript
import { Action } from '@ngrx/store';
|
|
|
|
import { RPCClientError } from '@loafer/ng-rpc';
|
|
import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth';
|
|
import { MetaProbeStatus } from '@overflow/commons-typescript/model/meta';
|
|
|
|
export enum ActionType {
|
|
ReadAll = '[meta.meta-probe-status] ReadAll',
|
|
ReadAllSuccess = '[meta.meta-probe-status] ReadAllSuccess',
|
|
ReadAllFailure = '[meta.meta-probe-status] ReadAllFailure',
|
|
}
|
|
|
|
export class ReadAll implements Action {
|
|
readonly type = ActionType.ReadAll;
|
|
}
|
|
|
|
export class ReadAllSuccess implements Action {
|
|
readonly type = ActionType.ReadAllSuccess;
|
|
|
|
constructor(public payload: MetaProbeStatus[]) {}
|
|
}
|
|
|
|
export class ReadAllFailure implements Action {
|
|
readonly type = ActionType.ReadAllFailure;
|
|
|
|
constructor(public payload: RPCClientError) {}
|
|
}
|
|
|
|
export type Actions =
|
|
| ReadAll
|
|
| ReadAllSuccess
|
|
| ReadAllFailure
|
|
;
|