@mcdylanproperenterprise/nodejs-proper-money-types 0.0.13 → 0.0.15
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 +13 -1
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
ETransactionCategoryType,
|
|
8
8
|
EVerificationOneTimePasswordType,
|
|
9
9
|
} from "./enum";
|
|
10
|
-
import { EGetTransactionsBySort, EGetTransactionsByType } from "./enum";
|
|
11
10
|
|
|
12
11
|
export type TJwtTokenObject = {
|
|
13
12
|
userId: string;
|
|
@@ -154,6 +153,7 @@ export type TTransaction = {
|
|
|
154
153
|
userId: string;
|
|
155
154
|
transactionCategoryId: string;
|
|
156
155
|
transactionLabelIds: string[];
|
|
156
|
+
user: TUser;
|
|
157
157
|
transactionCategory: TTransactionCategory;
|
|
158
158
|
transactionLabels: TTransactionLabel[] | null;
|
|
159
159
|
currency: string;
|
|
@@ -245,6 +245,12 @@ export type TGetTransactionResponse = {
|
|
|
245
245
|
};
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
+
export type TGetTransactionDetailQuery = {
|
|
249
|
+
id: string;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export type TGetTransactionDetailResponse = TTransaction;
|
|
253
|
+
|
|
248
254
|
export type TTransactionCategory = {
|
|
249
255
|
_id: string;
|
|
250
256
|
name: string;
|
|
@@ -325,6 +331,12 @@ export type TGetTransactionLabelResponse = {
|
|
|
325
331
|
};
|
|
326
332
|
};
|
|
327
333
|
|
|
334
|
+
export type TGetTransactionLabelDetailsQuery = {
|
|
335
|
+
ids: string[];
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
export type TGetTransactionLabelDetailsResponse = TTransactionLabel[];
|
|
339
|
+
|
|
328
340
|
export type TPostTransactionLabelCreateBody = {
|
|
329
341
|
name: string;
|
|
330
342
|
};
|