import { HttpErrorResponse } from '@angular/common/http' ; import { Action } from '@ngrx/store' ; import { GetRepositoryStatisticsPayload } from '@pimp-my-pr/pmp-web/repository/domain' ; import { RepositoryStatistics } from '@pimp-my-pr/shared/domain' ; export namespace fromSingleRepositoryStatisticsActions { export enum Types { GetRepositoryStatistics = '[SingleRepositoryStatistics] Get Repository Statistics' , GetRepositoryStatisticsFail = '[SingleRepositoryStatistics] Get Repository Statistics Fail' , GetRepositoryStatisticsSuccess = '[SingleRepositoryStatistics] Get Repository Statistics Success' } export class GetRepositoryStatistics implements Action { readonly type = Types . GetRepositoryStatistics ; constructor ( public payload ) { } } export class GetRepositoryStatisticsFail implements Action { readonly type = Types . GetRepositoryStatisticsFail ; constructor ( public payload ) { } } export class GetRepositoryStatisticsSuccess implements Action { readonly type = Types . GetRepositoryStatisticsSuccess ; constructor ( public payload ) { } } export type CollectiveType = GetRepositoryStatistics | GetRepositoryStatisticsFail | GetRepositoryStatisticsSuccess ; }