-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed 'Consumed Voucher by Aims Pie' chart and optimized view stati…
…stics rendering
- Loading branch information
Showing
4 changed files
with
293 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,84 @@ | ||
export class Stats { | ||
totalVouchersGenerated: number; | ||
totalVouchersRedeemed: number; | ||
totalVouchersAvailable: number; | ||
totalVouchersSpent: number; | ||
aims: RootAims; | ||
totalVouchersGenerated: number; | ||
totalVouchersRedeemed: number; | ||
totalVouchersAvailable: number; | ||
totalVouchersSpent: number; | ||
aims: RootAims; | ||
|
||
public static fromJson(json): any { | ||
if (json === null) { | ||
return null; | ||
} | ||
return Object.assign(new Stats(), json); | ||
public static fromJson(json): any { | ||
if (json === null) { | ||
return null; | ||
} | ||
return Object.assign(new Stats(), json); | ||
} | ||
} | ||
|
||
export class RootAims { | ||
0: AimStats; | ||
0: AimStats; | ||
} | ||
|
||
export class AimStats { | ||
generated: number; | ||
redeemed: number; | ||
available: number; | ||
spent: number; | ||
generated: number; | ||
redeemed: number; | ||
available: number; | ||
spent: number; | ||
} | ||
|
||
export interface ChartDataSwimlane { | ||
name: string; | ||
value: number; | ||
name: string; | ||
value: number; | ||
} | ||
|
||
export interface VoucherByAimDTO { | ||
aimCode: string; | ||
amount: number; | ||
aimCode: string; | ||
amount: number; | ||
} | ||
|
||
export interface ChartDataSwimlaneSeries { | ||
name: string; | ||
series: ChartDataSwimlane[]; | ||
name: string; | ||
series: ChartDataSwimlane[]; | ||
} | ||
|
||
export interface TotalGeneratedRedeemedOverTime { | ||
date: string; | ||
totalRedeemed: number; | ||
totalGenerated: number; | ||
date: string; | ||
totalRedeemed: number; | ||
totalGenerated: number; | ||
} | ||
|
||
export interface TotalConsumedOverTime { | ||
date: string; | ||
total: number; | ||
date: string; | ||
total: number; | ||
} | ||
|
||
export interface TotalCreatedAmountByAim { | ||
aimCode: string, | ||
amount: number | ||
aimCode: string; | ||
amount: number; | ||
} | ||
|
||
export interface MerchantRankDTO { | ||
id: string; | ||
name: string; | ||
amount: number; | ||
rank: number; | ||
id: string; | ||
name: string; | ||
amount: number; | ||
rank: number; | ||
} | ||
|
||
export interface RankMerchants { | ||
id: string, | ||
name: string, | ||
amount: number, | ||
rank: number | ||
id: string; | ||
name: string; | ||
amount: number; | ||
rank: number; | ||
} | ||
|
||
export interface GenerationRedeemedStatsApiResponse { | ||
totalGenerated: number; | ||
totalRedeemed: number; | ||
voucherByAim: VoucherByAimDTO[]; | ||
voucherAvailable: number; | ||
totalGeneratedAndRedeemedOverTime: TotalGeneratedRedeemedOverTime[]; | ||
totalGenerated: number; | ||
totalRedeemed: number; | ||
voucherByAim: VoucherByAimDTO[]; | ||
voucherAvailable: number; | ||
totalGeneratedAndRedeemedOverTime: TotalGeneratedRedeemedOverTime[]; | ||
} | ||
|
||
export interface ConsumedStatsApiResponse { | ||
totalConsumed: number; | ||
voucherByAims: VoucherByAimDTO[]; | ||
merchantRanks: MerchantRankDTO[]; | ||
totalConsumedOverTime: TotalConsumedOverTime[]; | ||
totalConsumed: number; | ||
merchantRanks: MerchantRankDTO[]; | ||
totalConsumedOverTime: TotalConsumedOverTime[]; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.