@carlosdiazz/lottodiz-shared 3.2.0 → 3.2.2
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/dist/enum/account-owner-type.enum.d.ts +5 -0
- package/dist/enum/account-owner-type.enum.js +9 -0
- package/dist/enum/index.d.ts +4 -0
- package/dist/enum/index.js +4 -0
- package/dist/enum/method-valid.d.ts +25 -0
- package/dist/enum/method-valid.js +32 -0
- package/dist/enum/permission-valid.d.ts +16 -0
- package/dist/enum/permission-valid.js +22 -0
- package/dist/enum/ticket-status.enum.d.ts +7 -0
- package/dist/enum/ticket-status.enum.js +11 -0
- package/dist/enum/transaction-type.enum.d.ts +10 -0
- package/dist/enum/transaction-type.enum.js +14 -0
- package/dist/enum/valid-job.enum.d.ts +5 -1
- package/dist/enum/valid-job.enum.js +4 -0
- package/dist/enum/wallet-mode.enum.d.ts +4 -0
- package/dist/enum/wallet-mode.enum.js +8 -0
- package/dist/models/account/account.base.d.ts +21 -0
- package/dist/models/account/account.base.js +2 -0
- package/dist/models/account/account.controller.d.ts +13 -0
- package/dist/models/account/account.controller.js +2 -0
- package/dist/models/account/account.datasource.d.ts +13 -0
- package/dist/models/account/account.datasource.js +2 -0
- package/dist/models/account/account.resolver.d.ts +14 -0
- package/dist/models/account/account.resolver.js +2 -0
- package/dist/models/account/account.service.d.ts +13 -0
- package/dist/models/account/account.service.js +2 -0
- package/dist/models/account/create-account.base.d.ts +9 -0
- package/dist/models/account/create-account.base.js +2 -0
- package/dist/models/account/index.d.ts +9 -0
- package/dist/models/account/index.js +25 -0
- package/dist/models/account/params-account.base.d.ts +10 -0
- package/dist/models/account/params-account.base.js +2 -0
- package/dist/models/account/response-account.base.d.ts +5 -0
- package/dist/models/account/response-account.base.js +2 -0
- package/dist/models/account/update-account.base.d.ts +10 -0
- package/dist/models/account/update-account.base.js +2 -0
- package/dist/models/account_type/account-type.base.d.ts +22 -0
- package/dist/models/account_type/account-type.base.js +2 -0
- package/dist/models/account_type/account-type.controller.d.ts +13 -0
- package/dist/models/account_type/account-type.controller.js +2 -0
- package/dist/models/account_type/account-type.datasource.d.ts +13 -0
- package/dist/models/account_type/account-type.datasource.js +2 -0
- package/dist/models/account_type/account-type.resolver.d.ts +14 -0
- package/dist/models/account_type/account-type.resolver.js +2 -0
- package/dist/models/account_type/account-type.service.d.ts +13 -0
- package/dist/models/account_type/account-type.service.js +2 -0
- package/dist/models/account_type/create-account-type.base.d.ts +9 -0
- package/dist/models/account_type/create-account-type.base.js +2 -0
- package/dist/models/account_type/index.d.ts +9 -0
- package/dist/models/account_type/index.js +25 -0
- package/dist/models/account_type/params-account-type.base.d.ts +6 -0
- package/dist/models/account_type/params-account-type.base.js +2 -0
- package/dist/models/account_type/response-account-type.base.d.ts +5 -0
- package/dist/models/account_type/response-account-type.base.js +2 -0
- package/dist/models/account_type/update-account-type.base.d.ts +10 -0
- package/dist/models/account_type/update-account-type.base.js +2 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/pos/pos.base.d.ts +2 -0
- package/dist/models/report/index.d.ts +6 -0
- package/dist/models/report/index.js +22 -0
- package/dist/models/report/params-report.base.d.ts +14 -0
- package/dist/models/report/params-report.base.js +2 -0
- package/dist/models/report/report.base.d.ts +16 -0
- package/dist/models/report/report.base.js +2 -0
- package/dist/models/report/report.controller.d.ts +6 -0
- package/dist/models/report/report.controller.js +2 -0
- package/dist/models/report/report.resolver.d.ts +7 -0
- package/dist/models/report/report.resolver.js +2 -0
- package/dist/models/report/report.service.d.ts +8 -0
- package/dist/models/report/report.service.js +2 -0
- package/dist/models/report/response-report.base.d.ts +5 -0
- package/dist/models/report/response-report.base.js +2 -0
- package/dist/models/ticket/create-ticket.base.d.ts +12 -0
- package/dist/models/ticket/create-ticket.base.js +2 -0
- package/dist/models/ticket/index.d.ts +9 -0
- package/dist/models/ticket/index.js +25 -0
- package/dist/models/ticket/params-ticket.base.d.ts +12 -0
- package/dist/models/ticket/params-ticket.base.js +2 -0
- package/dist/models/ticket/response-ticket.base.d.ts +5 -0
- package/dist/models/ticket/response-ticket.base.js +2 -0
- package/dist/models/ticket/ticket-detail.base.d.ts +10 -0
- package/dist/models/ticket/ticket-detail.base.js +2 -0
- package/dist/models/ticket/ticket.base.d.ts +16 -0
- package/dist/models/ticket/ticket.base.js +2 -0
- package/dist/models/ticket/ticket.controller.d.ts +9 -0
- package/dist/models/ticket/ticket.controller.js +2 -0
- package/dist/models/ticket/ticket.datasource.d.ts +9 -0
- package/dist/models/ticket/ticket.datasource.js +2 -0
- package/dist/models/ticket/ticket.resolver.d.ts +10 -0
- package/dist/models/ticket/ticket.resolver.js +2 -0
- package/dist/models/ticket/ticket.service.d.ts +9 -0
- package/dist/models/ticket/ticket.service.js +2 -0
- package/dist/models/transaction/create-transaction.base.d.ts +10 -0
- package/dist/models/transaction/create-transaction.base.js +2 -0
- package/dist/models/transaction/index.d.ts +8 -0
- package/dist/models/transaction/index.js +24 -0
- package/dist/models/transaction/params-transaction.base.d.ts +13 -0
- package/dist/models/transaction/params-transaction.base.js +2 -0
- package/dist/models/transaction/response-transaction.base.d.ts +5 -0
- package/dist/models/transaction/response-transaction.base.js +2 -0
- package/dist/models/transaction/transaction.base.d.ts +13 -0
- package/dist/models/transaction/transaction.base.js +2 -0
- package/dist/models/transaction/transaction.controller.d.ts +7 -0
- package/dist/models/transaction/transaction.controller.js +2 -0
- package/dist/models/transaction/transaction.datasource.d.ts +9 -0
- package/dist/models/transaction/transaction.datasource.js +2 -0
- package/dist/models/transaction/transaction.resolver.d.ts +8 -0
- package/dist/models/transaction/transaction.resolver.js +2 -0
- package/dist/models/transaction/transaction.service.d.ts +9 -0
- package/dist/models/transaction/transaction.service.js +2 -0
- package/dist/models/wallet/index.d.ts +4 -0
- package/dist/models/wallet/index.js +20 -0
- package/dist/models/wallet/wallet.base.d.ts +29 -0
- package/dist/models/wallet/wallet.base.js +2 -0
- package/dist/models/wallet/wallet.controller.d.ts +9 -0
- package/dist/models/wallet/wallet.controller.js +2 -0
- package/dist/models/wallet/wallet.resolver.d.ts +10 -0
- package/dist/models/wallet/wallet.resolver.js +2 -0
- package/dist/models/wallet/wallet.service.d.ts +9 -0
- package/dist/models/wallet/wallet.service.js +2 -0
- package/package.json +1 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./account_type";
|
|
2
|
+
export * from "./account";
|
|
1
3
|
export * from "./auth";
|
|
2
4
|
export * from "./channel_yt";
|
|
3
5
|
export * from "./common";
|
|
@@ -27,6 +29,7 @@ export * from "./pos_monitor";
|
|
|
27
29
|
export * from "./pos_user";
|
|
28
30
|
export * from "./position_result";
|
|
29
31
|
export * from "./queue";
|
|
32
|
+
export * from "./report";
|
|
30
33
|
export * from "./role";
|
|
31
34
|
export * from "./template_draw_webscraping";
|
|
32
35
|
export * from "./template_draw";
|
|
@@ -34,6 +37,9 @@ export * from "./template_page_webscraping";
|
|
|
34
37
|
export * from "./temporary_code";
|
|
35
38
|
export * from "./template_result";
|
|
36
39
|
export * from "./template_video";
|
|
40
|
+
export * from "./ticket";
|
|
41
|
+
export * from "./transaction";
|
|
37
42
|
export * from "./user";
|
|
43
|
+
export * from "./wallet";
|
|
38
44
|
export * from "./webscraping";
|
|
39
45
|
export * from "./youtube";
|
package/dist/models/index.js
CHANGED
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./account_type"), exports);
|
|
18
|
+
__exportStar(require("./account"), exports);
|
|
17
19
|
__exportStar(require("./auth"), exports);
|
|
18
20
|
__exportStar(require("./channel_yt"), exports);
|
|
19
21
|
__exportStar(require("./common"), exports);
|
|
@@ -43,6 +45,7 @@ __exportStar(require("./pos_monitor"), exports);
|
|
|
43
45
|
__exportStar(require("./pos_user"), exports);
|
|
44
46
|
__exportStar(require("./position_result"), exports);
|
|
45
47
|
__exportStar(require("./queue"), exports);
|
|
48
|
+
__exportStar(require("./report"), exports);
|
|
46
49
|
__exportStar(require("./role"), exports);
|
|
47
50
|
__exportStar(require("./template_draw_webscraping"), exports);
|
|
48
51
|
__exportStar(require("./template_draw"), exports);
|
|
@@ -50,6 +53,9 @@ __exportStar(require("./template_page_webscraping"), exports);
|
|
|
50
53
|
__exportStar(require("./temporary_code"), exports);
|
|
51
54
|
__exportStar(require("./template_result"), exports);
|
|
52
55
|
__exportStar(require("./template_video"), exports);
|
|
56
|
+
__exportStar(require("./ticket"), exports);
|
|
57
|
+
__exportStar(require("./transaction"), exports);
|
|
53
58
|
__exportStar(require("./user"), exports);
|
|
59
|
+
__exportStar(require("./wallet"), exports);
|
|
54
60
|
__exportStar(require("./webscraping"), exports);
|
|
55
61
|
__exportStar(require("./youtube"), exports);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WalletMode } from "../../enum";
|
|
1
2
|
import { GroupInterface } from "../group";
|
|
2
3
|
import { PosUserInterface } from "../pos_user";
|
|
3
4
|
import { PosMonitorInterface } from "../pos_monitor";
|
|
@@ -12,6 +13,7 @@ export interface PosInterface {
|
|
|
12
13
|
pos_user?: PosUserInterface[];
|
|
13
14
|
pos_monitor?: PosMonitorInterface;
|
|
14
15
|
pos_code?: PosCodeInterface;
|
|
16
|
+
wallet_mode?: WalletMode;
|
|
15
17
|
create_at: Date;
|
|
16
18
|
update_at: Date;
|
|
17
19
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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);
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface CreateTicketDetailInterface {
|
|
2
|
+
number_played: string;
|
|
3
|
+
amount: number;
|
|
4
|
+
id_game_type: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CreateTicketInterface {
|
|
7
|
+
id_pos: string;
|
|
8
|
+
id_draw: number;
|
|
9
|
+
id_template_draw?: number;
|
|
10
|
+
operator_id: string;
|
|
11
|
+
details: CreateTicketDetailInterface[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./ticket.base";
|
|
2
|
+
export * from "./ticket-detail.base";
|
|
3
|
+
export * from "./create-ticket.base";
|
|
4
|
+
export * from "./params-ticket.base";
|
|
5
|
+
export * from "./response-ticket.base";
|
|
6
|
+
export * from "./ticket.controller";
|
|
7
|
+
export * from "./ticket.service";
|
|
8
|
+
export * from "./ticket.resolver";
|
|
9
|
+
export * from "./ticket.datasource";
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./ticket.base"), exports);
|
|
18
|
+
__exportStar(require("./ticket-detail.base"), exports);
|
|
19
|
+
__exportStar(require("./create-ticket.base"), exports);
|
|
20
|
+
__exportStar(require("./params-ticket.base"), exports);
|
|
21
|
+
__exportStar(require("./response-ticket.base"), exports);
|
|
22
|
+
__exportStar(require("./ticket.controller"), exports);
|
|
23
|
+
__exportStar(require("./ticket.service"), exports);
|
|
24
|
+
__exportStar(require("./ticket.resolver"), exports);
|
|
25
|
+
__exportStar(require("./ticket.datasource"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TicketStatus } from "../../enum";
|
|
2
|
+
import { PaginationInterface } from "../common";
|
|
3
|
+
export interface ParamsTicketInterface extends PaginationInterface {
|
|
4
|
+
offset: number;
|
|
5
|
+
limit: number;
|
|
6
|
+
active: boolean;
|
|
7
|
+
id_pos?: string;
|
|
8
|
+
id_draw?: number;
|
|
9
|
+
status?: TicketStatus;
|
|
10
|
+
date_from?: Date;
|
|
11
|
+
date_to?: Date;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TicketStatus } from "../../enum";
|
|
2
|
+
export interface TicketInterface {
|
|
3
|
+
id: string;
|
|
4
|
+
id_pos: string;
|
|
5
|
+
id_draw: number;
|
|
6
|
+
id_template_draw?: number;
|
|
7
|
+
sale_date: Date;
|
|
8
|
+
total_amount: number;
|
|
9
|
+
status: TicketStatus;
|
|
10
|
+
prize_amount: number;
|
|
11
|
+
id_transaction_sale?: string;
|
|
12
|
+
id_transaction_prize?: string;
|
|
13
|
+
operator_id: string;
|
|
14
|
+
create_at: Date;
|
|
15
|
+
update_at: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TicketInterface } from "./ticket.base";
|
|
2
|
+
import { CreateTicketInterface } from "./create-ticket.base";
|
|
3
|
+
import { ParamsTicketInterface } from "./params-ticket.base";
|
|
4
|
+
import { ResponseTicketInterface } from "./response-ticket.base";
|
|
5
|
+
export interface TicketControllerInterface {
|
|
6
|
+
create(dto: CreateTicketInterface): Promise<TicketInterface>;
|
|
7
|
+
findAll(pagination: ParamsTicketInterface): Promise<ResponseTicketInterface>;
|
|
8
|
+
findOne(id: string): Promise<TicketInterface>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TicketInterface } from "./ticket.base";
|
|
2
|
+
import { CreateTicketInterface } from "./create-ticket.base";
|
|
3
|
+
import { ParamsTicketInterface } from "./params-ticket.base";
|
|
4
|
+
import { ResponseTicketInterface } from "./response-ticket.base";
|
|
5
|
+
export interface TicketDatasourceInterface {
|
|
6
|
+
create(dto: CreateTicketInterface): Promise<TicketInterface>;
|
|
7
|
+
findAll(pagination: ParamsTicketInterface): Promise<ResponseTicketInterface>;
|
|
8
|
+
findOne(id: string): Promise<TicketInterface>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UserInterface } from "../user";
|
|
2
|
+
import { TicketInterface } from "./ticket.base";
|
|
3
|
+
import { CreateTicketInterface } from "./create-ticket.base";
|
|
4
|
+
import { ParamsTicketInterface } from "./params-ticket.base";
|
|
5
|
+
import { ResponseTicketInterface } from "./response-ticket.base";
|
|
6
|
+
export interface TicketResolverInterface {
|
|
7
|
+
create(dto: CreateTicketInterface, user?: UserInterface): Promise<TicketInterface>;
|
|
8
|
+
findAll(pagination: ParamsTicketInterface, user?: UserInterface): Promise<ResponseTicketInterface>;
|
|
9
|
+
findOne(id: string, user?: UserInterface): Promise<TicketInterface>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TicketInterface } from "./ticket.base";
|
|
2
|
+
import { CreateTicketInterface } from "./create-ticket.base";
|
|
3
|
+
import { ParamsTicketInterface } from "./params-ticket.base";
|
|
4
|
+
import { ResponseTicketInterface } from "./response-ticket.base";
|
|
5
|
+
export interface TicketServiceInterface {
|
|
6
|
+
create(dto: CreateTicketInterface): Promise<TicketInterface>;
|
|
7
|
+
findAll(pagination: ParamsTicketInterface): Promise<ResponseTicketInterface>;
|
|
8
|
+
findOne(id: string): Promise<TicketInterface>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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";
|
|
@@ -0,0 +1,24 @@
|
|
|
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);
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TransactionType } from "../../enum";
|
|
2
|
+
export interface TransactionInterface {
|
|
3
|
+
id: string;
|
|
4
|
+
sequence_number: number;
|
|
5
|
+
id_debit_account: string;
|
|
6
|
+
id_credit_account: string;
|
|
7
|
+
amount: number;
|
|
8
|
+
transaction_type: TransactionType;
|
|
9
|
+
description?: string;
|
|
10
|
+
reference_id?: string;
|
|
11
|
+
operator_id: string;
|
|
12
|
+
create_at: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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);
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|