@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.
- package/package.json +1 -1
- package/types.ts +14 -18
package/package.json
CHANGED
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
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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[];
|