@mcdylanproperenterprise/nodejs-proper-money-types 0.0.32 → 0.0.34

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 +25 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcdylanproperenterprise/nodejs-proper-money-types",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
package/types.ts CHANGED
@@ -144,6 +144,31 @@ export type TGetTransactionCategoryResponse = {
144
144
  };
145
145
  };
146
146
 
147
+ export type TGetTransactionCategoryDashboardQuery = {
148
+ startTransactedAt: Date;
149
+ endTransactedAt: Date;
150
+ transactionCategoryId: string;
151
+ };
152
+
153
+ export type TGetTransactionCategoryDashboardResponse = {
154
+ category: TTransactionCategory & {
155
+ currencies: {
156
+ currency: string;
157
+ amount: number;
158
+ transactionCount: number;
159
+ }[];
160
+ };
161
+ labels: {
162
+ _id: string;
163
+ name: string;
164
+ currencies: {
165
+ currency: string;
166
+ transactionCount: number;
167
+ amount: number;
168
+ }[];
169
+ }[];
170
+ };
171
+
147
172
  export type TPostTransactionCategoryCreateBody = {
148
173
  name: string;
149
174
  type: ETransactionCategoryType;