@mcdylanproperenterprise/nodejs-proper-money-types 0.0.12 → 0.0.13

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 +14 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcdylanproperenterprise/nodejs-proper-money-types",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
package/types.ts CHANGED
@@ -281,7 +281,7 @@ export type TPostTransactionCategoryCreateBody = {
281
281
  };
282
282
 
283
283
  export type TPostTransactionCategoryCreateResponse = {
284
- _id: string;
284
+ id: string;
285
285
  };
286
286
 
287
287
  export type TPostTransactionCategoryUpdateBody = {
@@ -310,8 +310,19 @@ export type TTransactionLabel = {
310
310
  createdAt: Date;
311
311
  };
312
312
 
313
+ export type TGetTransactionLabelQuery = {
314
+ q: string;
315
+ page: number;
316
+ limit: number;
317
+ };
318
+
313
319
  export type TGetTransactionLabelResponse = {
314
- labels: TTransactionLabel[];
320
+ data: TTransactionLabel[];
321
+ pagination: {
322
+ last_visible_page: number;
323
+ has_next_page: boolean;
324
+ total_items: number;
325
+ };
315
326
  };
316
327
 
317
328
  export type TPostTransactionLabelCreateBody = {
@@ -319,7 +330,7 @@ export type TPostTransactionLabelCreateBody = {
319
330
  };
320
331
 
321
332
  export type TPostTransactionLabelCreateResponse = {
322
- _id: string;
333
+ id: string;
323
334
  };
324
335
 
325
336
  export type TPostTransactionLabelUpdateBody = {