Ajout du cache sur les appels pour les stats

Et appel à l'API sur l'affichage de l'onglet
This commit is contained in:
Sébastien André
2021-05-02 12:50:47 +02:00
parent d020646831
commit 97e6153cef
15 changed files with 336 additions and 350 deletions

View File

@@ -0,0 +1,13 @@
export enum CacheApiKey {
JumpType,
Aircraft,
Gear,
Dropzone,
SimpleSummary,
StatsByDz,
StatsByAircraft,
StatsByJumpType,
StatsByGear,
StatsOfLastYear,
StatsOfLastMonth
}

View File

@@ -1,6 +0,0 @@
export enum RefData {
JumpType,
Aircraft,
Gear,
Dropzone
}

View File

@@ -1,16 +1,6 @@
import { Observable } from 'rxjs';
import { JumpResp } from './jump';
export enum StatType {
ForLastMonth = 1,
ForLastYear = 2,
ByDz = 3,
ByAircraft = 4,
ByGear = 5,
ByJumpType = 6,
ByYear = 7,
}
export class StatsResp {
public simpleSummary: Observable<SimpleSummary>;