@mcdylanproperenterprise/nodejs-proper-money-types 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.ts +14 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcdylanproperenterprise/nodejs-proper-money-types",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
package/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import {
2
+ EGetTransactionsByType,
2
3
  EMissionType,
3
4
  EPointFromType,
4
5
  EPointType,
@@ -184,27 +185,22 @@ export type TGetTransactionsDashboardQuery = {
184
185
  userId: string;
185
186
  };
186
187
 
187
- export type TGetTransactionDashboardResponse = {
188
- user: {
189
- transactions: TTransaction[];
190
- transactionCategories: TTransactionCategory[];
191
- transactionLabels: TTransactionLabel[];
192
- timelineTransactions: TTimelineTransaction[];
193
- };
194
- sharedUser: {
195
- transactions: TTransaction[];
196
- transactionCategories: TTransactionCategory[];
197
- transactionLabels: TTransactionLabel[];
198
- timelineTransactions: TTimelineTransaction[];
199
- };
200
- total: {
201
- transactions: TTransaction[];
202
- transactionCategories: TTransactionCategory[];
203
- transactionLabels: TTransactionLabel[];
204
- timelineTransactions: TTimelineTransaction[];
188
+ export type TTransactionDashboardCategoryType = {
189
+ currency: string;
190
+ totalAmount: number;
191
+ categories: TTransactionCategory & {
192
+ totalAmount: number;
193
+ percentage: number;
205
194
  };
206
195
  };
207
196
 
197
+ export type TGetTransactionDashboardResponse =
198
+ | {
199
+ income: TTransactionDashboardCategoryType[];
200
+ expense: TTransactionDashboardCategoryType[];
201
+ }
202
+ | undefined;
203
+
208
204
  export type TPostTransactionCreateBody = {
209
205
  transactionCategoryId: string;
210
206
  transactionLabelIds: string[];