@carlosdiazz/lottodiz-shared 3.7.8 → 3.8.0

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 (78) hide show
  1. package/dist/models/common/pagination.base.d.ts +3 -3
  2. package/dist/models/draw/params.draw.d.ts +3 -0
  3. package/dist/models/platform_ads/params-platform-ads.base.d.ts +3 -3
  4. package/dist/models/platform_devices/params-platform-device.base.d.ts +3 -3
  5. package/dist/models/platform_message/params-platform-message.base.d.ts +3 -3
  6. package/dist/models/user/params-user.base.d.ts +3 -3
  7. package/dist/utils/build-nats-tls-options.js +0 -1
  8. package/package.json +4 -3
  9. package/dist/enum/transaction-type.enum.d.ts +0 -16
  10. package/dist/enum/transaction-type.enum.js +0 -21
  11. package/dist/models/account/create-account.base.d.ts +0 -9
  12. package/dist/models/account/create-account.base.js +0 -2
  13. package/dist/models/account/params-account.base.d.ts +0 -10
  14. package/dist/models/account/params-account.base.js +0 -2
  15. package/dist/models/account/response-account.base.d.ts +0 -5
  16. package/dist/models/account/response-account.base.js +0 -2
  17. package/dist/models/leader_entries/create-leader_entries.base.d.ts +0 -5
  18. package/dist/models/leader_entries/create-leader_entries.base.js +0 -2
  19. package/dist/models/leader_entries/leader_entries.controller.d.ts +0 -7
  20. package/dist/models/leader_entries/leader_entries.controller.js +0 -2
  21. package/dist/models/leader_entries/leader_entries.datasource.d.ts +0 -7
  22. package/dist/models/leader_entries/leader_entries.datasource.js +0 -2
  23. package/dist/models/leader_entries/leader_entries.resolver.d.ts +0 -8
  24. package/dist/models/leader_entries/leader_entries.resolver.js +0 -2
  25. package/dist/models/leader_entries/params-leader_entries.base.d.ts +0 -6
  26. package/dist/models/leader_entries/params-leader_entries.base.js +0 -2
  27. package/dist/models/leader_entries/response-leader_entries.base.d.ts +0 -5
  28. package/dist/models/leader_entries/response-leader_entries.base.js +0 -2
  29. package/dist/models/operation/create-operation.base.d.ts +0 -12
  30. package/dist/models/operation/create-operation.base.js +0 -2
  31. package/dist/models/operation/response-operation.base.d.ts +0 -5
  32. package/dist/models/operation/response-operation.base.js +0 -2
  33. package/dist/models/pos_user/check-pos.base.d.ts +0 -8
  34. package/dist/models/pos_user/check-pos.base.js +0 -2
  35. package/dist/models/report/index.d.ts +0 -6
  36. package/dist/models/report/index.js +0 -22
  37. package/dist/models/report/params-report.base.d.ts +0 -14
  38. package/dist/models/report/params-report.base.js +0 -2
  39. package/dist/models/report/report.base.d.ts +0 -16
  40. package/dist/models/report/report.base.js +0 -2
  41. package/dist/models/report/report.controller.d.ts +0 -6
  42. package/dist/models/report/report.controller.js +0 -2
  43. package/dist/models/report/report.resolver.d.ts +0 -7
  44. package/dist/models/report/report.resolver.js +0 -2
  45. package/dist/models/report/report.service.d.ts +0 -8
  46. package/dist/models/report/report.service.js +0 -2
  47. package/dist/models/report/response-report.base.d.ts +0 -5
  48. package/dist/models/report/response-report.base.js +0 -2
  49. package/dist/models/ticket/response-ticket.base.d.ts +0 -5
  50. package/dist/models/ticket/response-ticket.base.js +0 -2
  51. package/dist/models/transaction/create-transaction.base.d.ts +0 -10
  52. package/dist/models/transaction/create-transaction.base.js +0 -2
  53. package/dist/models/transaction/index.d.ts +0 -8
  54. package/dist/models/transaction/index.js +0 -24
  55. package/dist/models/transaction/params-transaction.base.d.ts +0 -13
  56. package/dist/models/transaction/params-transaction.base.js +0 -2
  57. package/dist/models/transaction/response-transaction.base.d.ts +0 -5
  58. package/dist/models/transaction/response-transaction.base.js +0 -2
  59. package/dist/models/transaction/transaction.base.d.ts +0 -17
  60. package/dist/models/transaction/transaction.base.js +0 -2
  61. package/dist/models/transaction/transaction.controller.d.ts +0 -7
  62. package/dist/models/transaction/transaction.controller.js +0 -2
  63. package/dist/models/transaction/transaction.datasource.d.ts +0 -9
  64. package/dist/models/transaction/transaction.datasource.js +0 -2
  65. package/dist/models/transaction/transaction.resolver.d.ts +0 -8
  66. package/dist/models/transaction/transaction.resolver.js +0 -2
  67. package/dist/models/transaction/transaction.service.d.ts +0 -9
  68. package/dist/models/transaction/transaction.service.js +0 -2
  69. package/dist/models/wallet/index.d.ts +0 -4
  70. package/dist/models/wallet/index.js +0 -20
  71. package/dist/models/wallet/wallet.base.d.ts +0 -29
  72. package/dist/models/wallet/wallet.base.js +0 -2
  73. package/dist/models/wallet/wallet.controller.d.ts +0 -9
  74. package/dist/models/wallet/wallet.controller.js +0 -2
  75. package/dist/models/wallet/wallet.resolver.d.ts +0 -10
  76. package/dist/models/wallet/wallet.resolver.js +0 -2
  77. package/dist/models/wallet/wallet.service.d.ts +0 -9
  78. package/dist/models/wallet/wallet.service.js +0 -2
@@ -1,5 +1,5 @@
1
1
  export interface PaginationInterface {
2
- offset: number;
3
- limit: number;
4
- active: boolean;
2
+ offset?: number;
3
+ limit?: number;
4
+ active?: boolean;
5
5
  }
@@ -9,6 +9,9 @@ export interface ParamsDrawInterface extends PaginationInterface {
9
9
  id_template_draw?: number | null;
10
10
  is_open?: boolean | null;
11
11
  is_completed?: boolean | null;
12
+ name_country?: string | null;
13
+ name_lottery?: string | null;
14
+ name_template_draw?: string | null;
12
15
  view_screen?: boolean | null;
13
16
  is_express?: boolean | null;
14
17
  is_result?: boolean | null;
@@ -1,7 +1,7 @@
1
1
  import { PaginationInterface } from "../common";
2
2
  export interface ParamsPlatformAdsInterface extends PaginationInterface {
3
- offset: number;
4
- limit: number;
5
- active: boolean;
3
+ offset?: number;
4
+ limit?: number;
5
+ active?: boolean;
6
6
  id_platform?: number | null;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { PaginationInterface } from "../common";
2
2
  export interface ParamsPlatformDevicesInterface extends PaginationInterface {
3
- offset: number;
4
- limit: number;
5
- active: boolean;
3
+ offset?: number;
4
+ limit?: number;
5
+ active?: boolean;
6
6
  id_platform?: number | null;
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import { PaginationInterface } from "../common";
2
2
  export interface ParamsPlatformMessageInterface extends PaginationInterface {
3
- offset: number;
4
- limit: number;
5
- active: boolean;
3
+ offset?: number;
4
+ limit?: number;
5
+ active?: boolean;
6
6
  id_platform?: number | null;
7
7
  is_recurring?: boolean | null;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import { PaginationInterface } from "../common";
2
2
  export interface ParamsUserInterface extends PaginationInterface {
3
- offset: number;
4
- limit: number;
5
- active: boolean;
3
+ offset?: number;
4
+ limit?: number;
5
+ active?: boolean;
6
6
  id_role?: string | null;
7
7
  }
@@ -20,7 +20,6 @@ function buildNatsOptions(env, extra) {
20
20
  options.timeout = extra.timeout;
21
21
  }
22
22
  if (env.NATS_CA_PATH) {
23
- // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
24
23
  const fs = require("fs");
25
24
  const tls = {
26
25
  ca: [fs.readFileSync(env.NATS_CA_PATH)],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "3.7.8",
3
+ "version": "3.8.0",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,
@@ -14,12 +14,13 @@
14
14
  },
15
15
  "license": "MIT",
16
16
  "devDependencies": {
17
+ "@types/luxon": "^3.7.5",
17
18
  "@types/node": "^25.6.0",
18
19
  "typescript": "^5.9.3"
19
20
  },
20
21
  "dependencies": {
21
- "dayjs": "^1.11.19",
22
- "joi": "^18.0.2",
22
+ "dayjs": "^1.11.23",
23
+ "joi": "^18.2.8",
23
24
  "luxon": "^3.7.2"
24
25
  }
25
26
  }
@@ -1,16 +0,0 @@
1
- export declare enum TransactionType {
2
- TICKET_SALE = "TICKET_SALE",
3
- PRIZE_PAYMENT = "PRIZE_PAYMENT",
4
- ADELANTO = "ADELANTO",
5
- RETIRO = "RETIRO",
6
- CUADRE = "CUADRE",
7
- RECHARGE = "RECHARGE",
8
- TRANSFER_PAYMENTS_TO_CREDIT = "TRANSFER_PAYMENTS_TO_CREDIT",
9
- TRANSFER_COMPANY_TO_GROUP = "TRANSFER_COMPANY_TO_GROUP"
10
- }
11
- export declare enum LeaderStatus {
12
- PENDING = "PENDING",
13
- CONFIRMED = "CONFIRMED",
14
- REVERSED = "REVERSED",
15
- CANCELLED = "CANCELLED"
16
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LeaderStatus = exports.TransactionType = void 0;
4
- var TransactionType;
5
- (function (TransactionType) {
6
- TransactionType["TICKET_SALE"] = "TICKET_SALE";
7
- TransactionType["PRIZE_PAYMENT"] = "PRIZE_PAYMENT";
8
- TransactionType["ADELANTO"] = "ADELANTO";
9
- TransactionType["RETIRO"] = "RETIRO";
10
- TransactionType["CUADRE"] = "CUADRE";
11
- TransactionType["RECHARGE"] = "RECHARGE";
12
- TransactionType["TRANSFER_PAYMENTS_TO_CREDIT"] = "TRANSFER_PAYMENTS_TO_CREDIT";
13
- TransactionType["TRANSFER_COMPANY_TO_GROUP"] = "TRANSFER_COMPANY_TO_GROUP";
14
- })(TransactionType || (exports.TransactionType = TransactionType = {}));
15
- var LeaderStatus;
16
- (function (LeaderStatus) {
17
- LeaderStatus["PENDING"] = "PENDING";
18
- LeaderStatus["CONFIRMED"] = "CONFIRMED";
19
- LeaderStatus["REVERSED"] = "REVERSED";
20
- LeaderStatus["CANCELLED"] = "CANCELLED";
21
- })(LeaderStatus || (exports.LeaderStatus = LeaderStatus = {}));
@@ -1,9 +0,0 @@
1
- import { AccountOwnerType } from "../../enum";
2
- export interface CreateAccountInterface {
3
- id_account_type: string;
4
- owner_type: AccountOwnerType;
5
- owner_id: string;
6
- balance?: number;
7
- currency?: string;
8
- active?: boolean;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { AccountOwnerType } from "../../enum";
2
- import { PaginationInterface } from "../common";
3
- export interface ParamsAccountInterface extends PaginationInterface {
4
- offset: number;
5
- limit: number;
6
- active: boolean;
7
- owner_type?: AccountOwnerType;
8
- owner_id?: string;
9
- id_account_type?: string;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { AccountInterface } from "./account.base";
2
- export interface ResponseAccountInterface {
3
- items: AccountInterface[];
4
- total: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface CreateLeaderEntriesInterface {
2
- amount: number;
3
- status: "CONFIRMED" | "REVERSED";
4
- description: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { LeaderEntriesInterface } from "./leader_entries.base";
2
- import { ParamsLeaderEntriesInterface } from "./params-leader_entries.base";
3
- import { ResponseLeaderEntriesInterface } from "./response-leader_entries.base";
4
- export interface LeaderEntriesControllerInterface {
5
- findAll(pagination: ParamsLeaderEntriesInterface): Promise<ResponseLeaderEntriesInterface>;
6
- findOne(id: string): Promise<LeaderEntriesInterface>;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { LeaderEntriesInterface } from "./leader_entries.base";
2
- import { ParamsLeaderEntriesInterface } from "./params-leader_entries.base";
3
- import { ResponseLeaderEntriesInterface } from "./response-leader_entries.base";
4
- export interface LeaderEntriesDatasourceInterface {
5
- findAll(pagination: ParamsLeaderEntriesInterface): Promise<ResponseLeaderEntriesInterface>;
6
- findOne(id: string): Promise<LeaderEntriesInterface>;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { LeaderEntriesInterface } from "./leader_entries.base";
2
- import { ParamsLeaderEntriesInterface } from "./params-leader_entries.base";
3
- import { ResponseLeaderEntriesInterface } from "./response-leader_entries.base";
4
- import { UserInterface } from "../user";
5
- export interface LeaderEntriesResolverInterface {
6
- findAll(pagination: ParamsLeaderEntriesInterface, user?: UserInterface): Promise<ResponseLeaderEntriesInterface>;
7
- findOne(id: string, user?: UserInterface): Promise<LeaderEntriesInterface>;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { PaginationInterface } from "../common";
2
- export interface ParamsLeaderEntriesInterface extends PaginationInterface {
3
- offset: number;
4
- limit: number;
5
- active: boolean;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { LeaderEntriesInterface } from "./leader_entries.base";
2
- export interface ResponseLeaderEntriesInterface {
3
- items: LeaderEntriesInterface[];
4
- total: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { OperationType } from "../../enum";
2
- export interface CreateOperationInterfcae {
3
- id_company: string;
4
- id_group: string;
5
- id_pos: string;
6
- id_pos_user?: string;
7
- amount: number;
8
- description: string;
9
- type: OperationType;
10
- status: "CONFIRMED" | "REVERSED";
11
- create_at: Date;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { OperationInterface } from "./operation.base";
2
- export interface ResponseOperationInterface {
3
- items: OperationInterface[];
4
- total: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { PosInterface } from "../pos";
2
- export interface CheckPosInterface {
3
- token: string;
4
- deviceUuid: string;
5
- }
6
- export interface CheckPosResponseInterface {
7
- pos: PosInterface;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export * from "./report.base";
2
- export * from "./params-report.base";
3
- export * from "./response-report.base";
4
- export * from "./report.controller";
5
- export * from "./report.service";
6
- export * from "./report.resolver";
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./report.base"), exports);
18
- __exportStar(require("./params-report.base"), exports);
19
- __exportStar(require("./response-report.base"), exports);
20
- __exportStar(require("./report.controller"), exports);
21
- __exportStar(require("./report.service"), exports);
22
- __exportStar(require("./report.resolver"), exports);
@@ -1,14 +0,0 @@
1
- import { PaginationInterface } from "../common";
2
- export interface ParamsReportInterface extends PaginationInterface {
3
- offset: number;
4
- limit: number;
5
- active: boolean;
6
- id_company?: string;
7
- id_group?: string;
8
- id_pos?: string;
9
- id_lottery?: number;
10
- id_country?: number;
11
- id_template_draw?: number;
12
- date_from?: Date;
13
- date_to?: Date;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- export interface ReportSummaryInterface {
2
- id: string;
3
- summary_date: Date;
4
- id_company?: string;
5
- id_group?: string;
6
- id_pos?: string;
7
- id_lottery?: number;
8
- id_country?: number;
9
- id_template_draw?: number;
10
- total_sales: number;
11
- total_tickets: number;
12
- total_prizes: number;
13
- total_winners: number;
14
- create_at: Date;
15
- update_at: Date;
16
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { ParamsReportInterface } from "./params-report.base";
2
- import { ResponseReportInterface } from "./response-report.base";
3
- export interface ReportControllerInterface {
4
- salesReport(params: ParamsReportInterface): Promise<ResponseReportInterface>;
5
- prizesReport(params: ParamsReportInterface): Promise<ResponseReportInterface>;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { UserInterface } from "../user";
2
- import { ParamsReportInterface } from "./params-report.base";
3
- import { ResponseReportInterface } from "./response-report.base";
4
- export interface ReportResolverInterface {
5
- salesReport(params: ParamsReportInterface, user?: UserInterface): Promise<ResponseReportInterface>;
6
- prizesReport(params: ParamsReportInterface, user?: UserInterface): Promise<ResponseReportInterface>;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { ParamsReportInterface } from "./params-report.base";
2
- import { ResponseReportInterface } from "./response-report.base";
3
- import { ReportSummaryInterface } from "./report.base";
4
- export interface ReportServiceInterface {
5
- salesReport(params: ParamsReportInterface): Promise<ResponseReportInterface>;
6
- prizesReport(params: ParamsReportInterface): Promise<ResponseReportInterface>;
7
- updateSummary(data: Partial<ReportSummaryInterface>): Promise<ReportSummaryInterface>;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { ReportSummaryInterface } from "./report.base";
2
- export interface ResponseReportInterface {
3
- items: ReportSummaryInterface[];
4
- total: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { TicketInterface } from "./ticket.base";
2
- export interface ResponseTicketInterface {
3
- items: TicketInterface[];
4
- total: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { TransactionType } from "../../enum";
2
- export interface CreateTransactionInterface {
3
- id_debit_account: string;
4
- id_credit_account: string;
5
- amount: number;
6
- transaction_type: TransactionType;
7
- description: string;
8
- reference_id: string;
9
- operator_id?: string;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- export * from "./transaction.base";
2
- export * from "./create-transaction.base";
3
- export * from "./params-transaction.base";
4
- export * from "./response-transaction.base";
5
- export * from "./transaction.controller";
6
- export * from "./transaction.service";
7
- export * from "./transaction.resolver";
8
- export * from "./transaction.datasource";
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./transaction.base"), exports);
18
- __exportStar(require("./create-transaction.base"), exports);
19
- __exportStar(require("./params-transaction.base"), exports);
20
- __exportStar(require("./response-transaction.base"), exports);
21
- __exportStar(require("./transaction.controller"), exports);
22
- __exportStar(require("./transaction.service"), exports);
23
- __exportStar(require("./transaction.resolver"), exports);
24
- __exportStar(require("./transaction.datasource"), exports);
@@ -1,13 +0,0 @@
1
- import { TransactionType } from "../../enum";
2
- import { PaginationInterface } from "../common";
3
- export interface ParamsTransactionInterface extends PaginationInterface {
4
- offset: number;
5
- limit: number;
6
- active: boolean;
7
- id_debit_account?: string;
8
- id_credit_account?: string;
9
- transaction_type?: TransactionType;
10
- date_from?: Date;
11
- date_to?: Date;
12
- reference_id?: string;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { TransactionInterface } from "./transaction.base";
2
- export interface ResponseTransactionInterface {
3
- items: TransactionInterface[];
4
- total: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- import { TransactionType } from "../../enum";
2
- export interface TransactionInterface {
3
- id: string;
4
- sequence_number: number;
5
- amount: number;
6
- transaction_type: TransactionType;
7
- description: string;
8
- reference_id: string;
9
- operator_id?: string;
10
- id_debit_account: string;
11
- old_balance_debit: number;
12
- new_balance_debit: number;
13
- id_credit_account: string;
14
- new_balance_credit: number;
15
- old_balance_credit: number;
16
- create_at: Date;
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { TransactionInterface } from "./transaction.base";
2
- import { ParamsTransactionInterface } from "./params-transaction.base";
3
- import { ResponseTransactionInterface } from "./response-transaction.base";
4
- export interface TransactionControllerInterface {
5
- findAll(pagination: ParamsTransactionInterface): Promise<ResponseTransactionInterface>;
6
- findOne(id: string): Promise<TransactionInterface>;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { TransactionInterface } from "./transaction.base";
2
- import { CreateTransactionInterface } from "./create-transaction.base";
3
- import { ParamsTransactionInterface } from "./params-transaction.base";
4
- import { ResponseTransactionInterface } from "./response-transaction.base";
5
- export interface TransactionDatasourceInterface {
6
- create(dto: CreateTransactionInterface): Promise<TransactionInterface>;
7
- findAll(pagination: ParamsTransactionInterface): Promise<ResponseTransactionInterface>;
8
- findOne(id: string): Promise<TransactionInterface>;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { UserInterface } from "../user";
2
- import { TransactionInterface } from "./transaction.base";
3
- import { ParamsTransactionInterface } from "./params-transaction.base";
4
- import { ResponseTransactionInterface } from "./response-transaction.base";
5
- export interface TransactionResolverInterface {
6
- findAll(pagination: ParamsTransactionInterface, user?: UserInterface): Promise<ResponseTransactionInterface>;
7
- findOne(id: string, user?: UserInterface): Promise<TransactionInterface>;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { TransactionInterface } from "./transaction.base";
2
- import { CreateTransactionInterface } from "./create-transaction.base";
3
- import { ParamsTransactionInterface } from "./params-transaction.base";
4
- import { ResponseTransactionInterface } from "./response-transaction.base";
5
- export interface TransactionServiceInterface {
6
- createTransaction(dto: CreateTransactionInterface): Promise<TransactionInterface>;
7
- findAll(pagination: ParamsTransactionInterface): Promise<ResponseTransactionInterface>;
8
- findOne(id: string): Promise<TransactionInterface>;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export * from "./wallet.base";
2
- export * from "./wallet.controller";
3
- export * from "./wallet.resolver";
4
- export * from "./wallet.service";
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./wallet.base"), exports);
18
- __exportStar(require("./wallet.controller"), exports);
19
- __exportStar(require("./wallet.resolver"), exports);
20
- __exportStar(require("./wallet.service"), exports);
@@ -1,29 +0,0 @@
1
- export interface AdelantoInterface {
2
- id_pos_account: string;
3
- id_treasury_account: string;
4
- amount: number;
5
- operator_id: string;
6
- }
7
- export interface RetiroInterface {
8
- id_pos_account: string;
9
- id_treasury_account: string;
10
- amount: number;
11
- operator_id: string;
12
- }
13
- export interface CuadreInterface {
14
- id_pos_account: string;
15
- id_treasury_account: string;
16
- operator_id: string;
17
- }
18
- export interface RechargeInterface {
19
- id_pos_account: string;
20
- id_treasury_account: string;
21
- amount: number;
22
- operator_id: string;
23
- }
24
- export interface TransferInterface {
25
- id_source_account: string;
26
- id_target_account: string;
27
- amount: number;
28
- operator_id: string;
29
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { TransactionInterface } from "../transaction";
2
- import { AdelantoInterface, RetiroInterface, CuadreInterface, RechargeInterface, TransferInterface } from "./wallet.base";
3
- export interface WalletControllerInterface {
4
- adelanto(dto: AdelantoInterface): Promise<TransactionInterface>;
5
- retiro(dto: RetiroInterface): Promise<TransactionInterface>;
6
- cuadre(dto: CuadreInterface): Promise<TransactionInterface>;
7
- recharge(dto: RechargeInterface): Promise<TransactionInterface>;
8
- transfer(dto: TransferInterface): Promise<TransactionInterface>;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { UserInterface } from "../user";
2
- import { TransactionInterface } from "../transaction";
3
- import { AdelantoInterface, RetiroInterface, CuadreInterface, RechargeInterface, TransferInterface } from "./wallet.base";
4
- export interface WalletResolverInterface {
5
- adelanto(dto: AdelantoInterface, user?: UserInterface): Promise<TransactionInterface>;
6
- retiro(dto: RetiroInterface, user?: UserInterface): Promise<TransactionInterface>;
7
- cuadre(dto: CuadreInterface, user?: UserInterface): Promise<TransactionInterface>;
8
- recharge(dto: RechargeInterface, user?: UserInterface): Promise<TransactionInterface>;
9
- transfer(dto: TransferInterface, user?: UserInterface): Promise<TransactionInterface>;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { TransactionInterface } from "../transaction";
2
- import { AdelantoInterface, RetiroInterface, CuadreInterface, RechargeInterface, TransferInterface } from "./wallet.base";
3
- export interface WalletServiceInterface {
4
- adelanto(dto: AdelantoInterface): Promise<TransactionInterface>;
5
- retiro(dto: RetiroInterface): Promise<TransactionInterface>;
6
- cuadre(dto: CuadreInterface): Promise<TransactionInterface>;
7
- recharge(dto: RechargeInterface): Promise<TransactionInterface>;
8
- transfer(dto: TransferInterface): Promise<TransactionInterface>;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });