@mcdylanproperenterprise/nodejs-proper-money-types 0.0.12 → 0.0.14
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 +26 -4
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;
|
|
@@ -245,6 +244,12 @@ export type TGetTransactionResponse = {
|
|
|
245
244
|
};
|
|
246
245
|
};
|
|
247
246
|
|
|
247
|
+
export type TGetTransactionDetailQuery = {
|
|
248
|
+
id: string;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export type TGetTransactionDetailResponse = TTransaction;
|
|
252
|
+
|
|
248
253
|
export type TTransactionCategory = {
|
|
249
254
|
_id: string;
|
|
250
255
|
name: string;
|
|
@@ -281,7 +286,7 @@ export type TPostTransactionCategoryCreateBody = {
|
|
|
281
286
|
};
|
|
282
287
|
|
|
283
288
|
export type TPostTransactionCategoryCreateResponse = {
|
|
284
|
-
|
|
289
|
+
id: string;
|
|
285
290
|
};
|
|
286
291
|
|
|
287
292
|
export type TPostTransactionCategoryUpdateBody = {
|
|
@@ -310,16 +315,33 @@ export type TTransactionLabel = {
|
|
|
310
315
|
createdAt: Date;
|
|
311
316
|
};
|
|
312
317
|
|
|
318
|
+
export type TGetTransactionLabelQuery = {
|
|
319
|
+
q: string;
|
|
320
|
+
page: number;
|
|
321
|
+
limit: number;
|
|
322
|
+
};
|
|
323
|
+
|
|
313
324
|
export type TGetTransactionLabelResponse = {
|
|
314
|
-
|
|
325
|
+
data: TTransactionLabel[];
|
|
326
|
+
pagination: {
|
|
327
|
+
last_visible_page: number;
|
|
328
|
+
has_next_page: boolean;
|
|
329
|
+
total_items: number;
|
|
330
|
+
};
|
|
315
331
|
};
|
|
316
332
|
|
|
333
|
+
export type TGetTransactionLabelDetailsQuery = {
|
|
334
|
+
ids: string[];
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
export type TGetTransactionLabelDetailsResponse = TTransactionLabel[];
|
|
338
|
+
|
|
317
339
|
export type TPostTransactionLabelCreateBody = {
|
|
318
340
|
name: string;
|
|
319
341
|
};
|
|
320
342
|
|
|
321
343
|
export type TPostTransactionLabelCreateResponse = {
|
|
322
|
-
|
|
344
|
+
id: string;
|
|
323
345
|
};
|
|
324
346
|
|
|
325
347
|
export type TPostTransactionLabelUpdateBody = {
|