-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new types for reports files (#2067)
* work * notes * error fixes * updates * card fix * fix filters * splitting PR work * notes
- Loading branch information
Showing
13 changed files
with
131 additions
and
54 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
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
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
44 changes: 44 additions & 0 deletions
44
packages/desktop-client/src/components/reports/entities.d.ts
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
export type DataEntity = { | ||
data: Array<ItemEntity>; | ||
monthData: Array<MonthData>; | ||
groupedData: Array<GroupedEntity>; | ||
startDate: string; | ||
endDate: string; | ||
totalDebts: number; | ||
totalAssets: number; | ||
totalTotals: number; | ||
}; | ||
|
||
type ItemEntity = { | ||
id: string; | ||
name: string; | ||
monthData: MonthData[]; | ||
totalAssets: number; | ||
totalDebts: number; | ||
totalTotals: number; | ||
}; | ||
|
||
type MonthData = { | ||
date: string; | ||
totalAssets: number; | ||
totalDebts: number; | ||
totalTotals: number; | ||
}; | ||
|
||
/* this will be used in a future PR | ||
export type GroupedEntity = { | ||
id: string; | ||
name: string; | ||
date?: string; | ||
monthData: Array<MonthData>; | ||
categories?: Array<ItemEntity>; | ||
totalAssets: number; | ||
totalDebts: number; | ||
totalTotals: number; | ||
}; | ||
*/ | ||
|
||
export type Month = { | ||
month: string; | ||
}; |
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
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.