@mcdylanproperenterprise/nodejs-proper-money-types 0.0.35 → 0.0.37

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 +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcdylanproperenterprise/nodejs-proper-money-types",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
package/types.ts CHANGED
@@ -22,6 +22,10 @@ export type TTransaction = {
22
22
  transactionLabels: TTransactionLabel[] | null;
23
23
  currency: string;
24
24
  amount: number;
25
+ exchangeCurrency: {
26
+ currency: string;
27
+ amount: number;
28
+ } | null;
25
29
  imagePath: string | null;
26
30
  note: string | null;
27
31
  isDeleted: boolean;
@@ -61,6 +65,12 @@ export type TGetTransactionDashboardResponse =
61
65
  | {
62
66
  income: TTransactionDashboardCategoryType[];
63
67
  expense: TTransactionDashboardCategoryType[];
68
+ balances: {
69
+ currency: string;
70
+ balanceAmount: number;
71
+ incomeAmount: number;
72
+ expenseAmount: number;
73
+ }[];
64
74
  }
65
75
  | undefined;
66
76
 
@@ -69,6 +79,10 @@ export type TPostTransactionCreateBody = {
69
79
  transactionLabelIds: string[];
70
80
  currency: string;
71
81
  amount: number;
82
+ exchangeCurrency: {
83
+ currency: string;
84
+ amount: number;
85
+ } | null;
72
86
  imagePath: string | null;
73
87
  note: string | null;
74
88
  transactedAt: Date;
@@ -80,6 +94,10 @@ export type TPostTransactionUpdateBody = {
80
94
  transactionLabelIds: string[];
81
95
  currency: string;
82
96
  amount: number;
97
+ exchangeCurrency: {
98
+ currency: string;
99
+ amount: number;
100
+ } | null;
83
101
  imagePath: string | null;
84
102
  note: string | null;
85
103
  transactedAt: Date;