@carlosdiazz/lottodiz-shared 3.7.9 → 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.
- package/dist/models/common/pagination.base.d.ts +3 -3
- package/dist/models/platform_ads/params-platform-ads.base.d.ts +3 -3
- package/dist/models/platform_devices/params-platform-device.base.d.ts +3 -3
- package/dist/models/platform_message/params-platform-message.base.d.ts +3 -3
- package/dist/models/user/params-user.base.d.ts +3 -3
- package/dist/utils/build-nats-tls-options.js +0 -1
- package/package.json +4 -3
- package/dist/enum/transaction-type.enum.d.ts +0 -16
- package/dist/enum/transaction-type.enum.js +0 -21
- package/dist/models/account/create-account.base.d.ts +0 -9
- package/dist/models/account/create-account.base.js +0 -2
- package/dist/models/account/params-account.base.d.ts +0 -10
- package/dist/models/account/params-account.base.js +0 -2
- package/dist/models/account/response-account.base.d.ts +0 -5
- package/dist/models/account/response-account.base.js +0 -2
- package/dist/models/leader_entries/create-leader_entries.base.d.ts +0 -5
- package/dist/models/leader_entries/create-leader_entries.base.js +0 -2
- package/dist/models/leader_entries/leader_entries.controller.d.ts +0 -7
- package/dist/models/leader_entries/leader_entries.controller.js +0 -2
- package/dist/models/leader_entries/leader_entries.datasource.d.ts +0 -7
- package/dist/models/leader_entries/leader_entries.datasource.js +0 -2
- package/dist/models/leader_entries/leader_entries.resolver.d.ts +0 -8
- package/dist/models/leader_entries/leader_entries.resolver.js +0 -2
- package/dist/models/leader_entries/params-leader_entries.base.d.ts +0 -6
- package/dist/models/leader_entries/params-leader_entries.base.js +0 -2
- package/dist/models/leader_entries/response-leader_entries.base.d.ts +0 -5
- package/dist/models/leader_entries/response-leader_entries.base.js +0 -2
- package/dist/models/operation/create-operation.base.d.ts +0 -12
- package/dist/models/operation/create-operation.base.js +0 -2
- package/dist/models/operation/response-operation.base.d.ts +0 -5
- package/dist/models/operation/response-operation.base.js +0 -2
- package/dist/models/pos_user/check-pos.base.d.ts +0 -8
- package/dist/models/pos_user/check-pos.base.js +0 -2
- package/dist/models/report/index.d.ts +0 -6
- package/dist/models/report/index.js +0 -22
- package/dist/models/report/params-report.base.d.ts +0 -14
- package/dist/models/report/params-report.base.js +0 -2
- package/dist/models/report/report.base.d.ts +0 -16
- package/dist/models/report/report.base.js +0 -2
- package/dist/models/report/report.controller.d.ts +0 -6
- package/dist/models/report/report.controller.js +0 -2
- package/dist/models/report/report.resolver.d.ts +0 -7
- package/dist/models/report/report.resolver.js +0 -2
- package/dist/models/report/report.service.d.ts +0 -8
- package/dist/models/report/report.service.js +0 -2
- package/dist/models/report/response-report.base.d.ts +0 -5
- package/dist/models/report/response-report.base.js +0 -2
- package/dist/models/ticket/response-ticket.base.d.ts +0 -5
- package/dist/models/ticket/response-ticket.base.js +0 -2
- package/dist/models/transaction/create-transaction.base.d.ts +0 -10
- package/dist/models/transaction/create-transaction.base.js +0 -2
- package/dist/models/transaction/index.d.ts +0 -8
- package/dist/models/transaction/index.js +0 -24
- package/dist/models/transaction/params-transaction.base.d.ts +0 -13
- package/dist/models/transaction/params-transaction.base.js +0 -2
- package/dist/models/transaction/response-transaction.base.d.ts +0 -5
- package/dist/models/transaction/response-transaction.base.js +0 -2
- package/dist/models/transaction/transaction.base.d.ts +0 -17
- package/dist/models/transaction/transaction.base.js +0 -2
- package/dist/models/transaction/transaction.controller.d.ts +0 -7
- package/dist/models/transaction/transaction.controller.js +0 -2
- package/dist/models/transaction/transaction.datasource.d.ts +0 -9
- package/dist/models/transaction/transaction.datasource.js +0 -2
- package/dist/models/transaction/transaction.resolver.d.ts +0 -8
- package/dist/models/transaction/transaction.resolver.js +0 -2
- package/dist/models/transaction/transaction.service.d.ts +0 -9
- package/dist/models/transaction/transaction.service.js +0 -2
- package/dist/models/wallet/index.d.ts +0 -4
- package/dist/models/wallet/index.js +0 -20
- package/dist/models/wallet/wallet.base.d.ts +0 -29
- package/dist/models/wallet/wallet.base.js +0 -2
- package/dist/models/wallet/wallet.controller.d.ts +0 -9
- package/dist/models/wallet/wallet.controller.js +0 -2
- package/dist/models/wallet/wallet.resolver.d.ts +0 -10
- package/dist/models/wallet/wallet.resolver.js +0 -2
- package/dist/models/wallet/wallet.service.d.ts +0 -9
- package/dist/models/wallet/wallet.service.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaginationInterface } from "../common";
|
|
2
2
|
export interface ParamsPlatformAdsInterface extends PaginationInterface {
|
|
3
|
-
offset
|
|
4
|
-
limit
|
|
5
|
-
active
|
|
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
|
|
4
|
-
limit
|
|
5
|
-
active
|
|
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
|
|
4
|
-
limit
|
|
5
|
-
active
|
|
3
|
+
offset?: number;
|
|
4
|
+
limit?: number;
|
|
5
|
+
active?: boolean;
|
|
6
6
|
id_platform?: number | null;
|
|
7
7
|
is_recurring?: boolean | null;
|
|
8
8
|
}
|
|
@@ -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.
|
|
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.
|
|
22
|
-
"joi": "^18.
|
|
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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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
|
-
}
|