@carlosdiazz/lottodiz-shared 3.5.2 → 3.5.4
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/operation-type.enum.d.ts +2 -7
- package/dist/enum/operation-type.enum.js +3 -9
- package/dist/models/account/account.controller.d.ts +0 -4
- package/dist/models/account/account.datasource.d.ts +0 -2
- package/dist/models/account/account.resolver.d.ts +0 -4
- package/dist/models/account/account.service.d.ts +0 -4
- package/dist/models/account/index.d.ts +0 -1
- package/dist/models/account/index.js +0 -1
- package/dist/models/financial_transaction/financial_transaction.service.d.ts +14 -0
- package/dist/models/leader_entries/index.d.ts +0 -1
- package/dist/models/leader_entries/index.js +0 -1
- package/dist/models/leader_entries/leader_entries.service.d.ts +0 -4
- package/dist/models/leader_entries/leader_lines.base.d.ts +0 -8
- package/dist/models/operation/index.d.ts +0 -1
- package/dist/models/operation/index.js +0 -1
- package/dist/models/operation/operation.service.d.ts +0 -2
- package/package.json +1 -1
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
export declare enum OperationType {
|
|
2
2
|
TICKET_SALE = "TICKET_SALE",
|
|
3
|
-
|
|
3
|
+
TICKET_CANCELLATION = "TICKET_CANCELLATION",
|
|
4
|
+
TICKET_PAYMENT = "TICKET_PAYMENT",
|
|
4
5
|
RECHARGE = "RECHARGE",
|
|
5
6
|
WITHDRAWAL = "WITHDRAWAL",
|
|
6
7
|
TRANSFER_GROUP = "TRANSFER_GROUP",
|
|
7
8
|
TRANSFER_COMPANY = "TRANSFER_COMPANY"
|
|
8
9
|
}
|
|
9
|
-
export declare enum LeaderStatus {
|
|
10
|
-
PENDING = "PENDING",
|
|
11
|
-
CONFIRMED = "CONFIRMED",
|
|
12
|
-
REVERSED = "REVERSED",
|
|
13
|
-
CANCELLED = "CANCELLED"
|
|
14
|
-
}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OperationType = void 0;
|
|
4
4
|
var OperationType;
|
|
5
5
|
(function (OperationType) {
|
|
6
6
|
OperationType["TICKET_SALE"] = "TICKET_SALE";
|
|
7
|
-
OperationType["
|
|
7
|
+
OperationType["TICKET_CANCELLATION"] = "TICKET_CANCELLATION";
|
|
8
|
+
OperationType["TICKET_PAYMENT"] = "TICKET_PAYMENT";
|
|
8
9
|
OperationType["RECHARGE"] = "RECHARGE";
|
|
9
10
|
OperationType["WITHDRAWAL"] = "WITHDRAWAL";
|
|
10
11
|
OperationType["TRANSFER_GROUP"] = "TRANSFER_GROUP";
|
|
11
12
|
OperationType["TRANSFER_COMPANY"] = "TRANSFER_COMPANY";
|
|
12
13
|
})(OperationType || (exports.OperationType = OperationType = {}));
|
|
13
|
-
var LeaderStatus;
|
|
14
|
-
(function (LeaderStatus) {
|
|
15
|
-
LeaderStatus["PENDING"] = "PENDING";
|
|
16
|
-
LeaderStatus["CONFIRMED"] = "CONFIRMED";
|
|
17
|
-
LeaderStatus["REVERSED"] = "REVERSED";
|
|
18
|
-
LeaderStatus["CANCELLED"] = "CANCELLED";
|
|
19
|
-
})(LeaderStatus || (exports.LeaderStatus = LeaderStatus = {}));
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { AccountInterface } from "./account.base";
|
|
2
|
-
import { CreateAccountInterface } from "./create-account.base";
|
|
3
2
|
import { ParamsAccountInterface } from "./params-account.base";
|
|
4
3
|
import { ResponseAccountInterface } from "./response-account.base";
|
|
5
4
|
import { UpdateAccountInterface } from "./update-account.base";
|
|
6
|
-
import { ResponseInterface } from "../common";
|
|
7
5
|
export interface AccountControllerInterface {
|
|
8
|
-
create(dto: CreateAccountInterface): Promise<AccountInterface>;
|
|
9
6
|
findAll(pagination: ParamsAccountInterface): Promise<ResponseAccountInterface>;
|
|
10
7
|
findOne(id: string): Promise<AccountInterface>;
|
|
11
8
|
update(dto: UpdateAccountInterface): Promise<AccountInterface>;
|
|
12
|
-
remove(id: string): Promise<ResponseInterface>;
|
|
13
9
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { AccountInterface } from "./account.base";
|
|
2
|
-
import { CreateAccountInterface } from "./create-account.base";
|
|
3
2
|
import { ParamsAccountInterface } from "./params-account.base";
|
|
4
3
|
import { ResponseAccountInterface } from "./response-account.base";
|
|
5
4
|
import { UpdateAccountInterface } from "./update-account.base";
|
|
6
5
|
import { ResponseInterface } from "../common";
|
|
7
6
|
export interface AccountDatasourceInterface {
|
|
8
|
-
create(dto: CreateAccountInterface): Promise<AccountInterface>;
|
|
9
7
|
findAll(pagination: ParamsAccountInterface): Promise<ResponseAccountInterface>;
|
|
10
8
|
findOne(id: string): Promise<AccountInterface>;
|
|
11
9
|
update(dto: UpdateAccountInterface): Promise<AccountInterface>;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { ResponseInterface } from "../common";
|
|
2
1
|
import { UserInterface } from "../user";
|
|
3
2
|
import { AccountInterface } from "./account.base";
|
|
4
|
-
import { CreateAccountInterface } from "./create-account.base";
|
|
5
3
|
import { ParamsAccountInterface } from "./params-account.base";
|
|
6
4
|
import { ResponseAccountInterface } from "./response-account.base";
|
|
7
5
|
import { UpdateAccountInterface } from "./update-account.base";
|
|
8
6
|
export interface AccountResolverInterface {
|
|
9
|
-
create(dto: CreateAccountInterface, user?: UserInterface): Promise<AccountInterface>;
|
|
10
7
|
findAll(pagination: ParamsAccountInterface, user?: UserInterface): Promise<ResponseAccountInterface>;
|
|
11
8
|
findOne(id: string, user?: UserInterface): Promise<AccountInterface>;
|
|
12
9
|
update(dto: UpdateAccountInterface, user?: UserInterface): Promise<AccountInterface>;
|
|
13
|
-
remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
|
|
14
10
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { ResponseInterface } from "../common";
|
|
2
1
|
import { AccountInterface } from "./account.base";
|
|
3
|
-
import { CreateAccountInterface } from "./create-account.base";
|
|
4
2
|
import { ParamsAccountInterface } from "./params-account.base";
|
|
5
3
|
import { ResponseAccountInterface } from "./response-account.base";
|
|
6
4
|
import { UpdateAccountInterface } from "./update-account.base";
|
|
7
5
|
export interface AccountServiceInterface {
|
|
8
|
-
create(dto: CreateAccountInterface): Promise<AccountInterface>;
|
|
9
6
|
findAll(pagination: ParamsAccountInterface): Promise<ResponseAccountInterface>;
|
|
10
7
|
findOne(id: string): Promise<AccountInterface>;
|
|
11
8
|
update(dto: UpdateAccountInterface): Promise<AccountInterface>;
|
|
12
|
-
remove(id: string): Promise<ResponseInterface>;
|
|
13
9
|
}
|
|
@@ -3,7 +3,6 @@ export * from "./account.controller";
|
|
|
3
3
|
export * from "./account.datasource";
|
|
4
4
|
export * from "./account.resolver";
|
|
5
5
|
export * from "./account.service";
|
|
6
|
-
export * from "./create-account.base";
|
|
7
6
|
export * from "./params-account.base";
|
|
8
7
|
export * from "./response-account.base";
|
|
9
8
|
export * from "./update-account.base";
|
|
@@ -19,7 +19,6 @@ __exportStar(require("./account.controller"), exports);
|
|
|
19
19
|
__exportStar(require("./account.datasource"), exports);
|
|
20
20
|
__exportStar(require("./account.resolver"), exports);
|
|
21
21
|
__exportStar(require("./account.service"), exports);
|
|
22
|
-
__exportStar(require("./create-account.base"), exports);
|
|
23
22
|
__exportStar(require("./params-account.base"), exports);
|
|
24
23
|
__exportStar(require("./response-account.base"), exports);
|
|
25
24
|
__exportStar(require("./update-account.base"), exports);
|
|
@@ -18,6 +18,20 @@ export interface ProcessTicketSaleInterface {
|
|
|
18
18
|
pos: PosInterface;
|
|
19
19
|
pos_user: PosUserInterface;
|
|
20
20
|
}
|
|
21
|
+
export interface ProcessTicketPaymentInterface {
|
|
22
|
+
ticket: TicketInterface;
|
|
23
|
+
group: GroupInterface;
|
|
24
|
+
pos: PosInterface;
|
|
25
|
+
pos_user: PosUserInterface;
|
|
26
|
+
}
|
|
27
|
+
export interface ProcessTicketCancellationInterface {
|
|
28
|
+
ticket: TicketInterface;
|
|
29
|
+
group: GroupInterface;
|
|
30
|
+
pos: PosInterface;
|
|
31
|
+
pos_user: PosUserInterface;
|
|
32
|
+
}
|
|
21
33
|
export interface FinancialTransactionServiceInterface {
|
|
22
34
|
processTickeSale(dto: ProcessTicketSaleInterface): Promise<TicketInterface>;
|
|
35
|
+
processTicketPayment(dto: ProcessTicketPaymentInterface): Promise<TicketInterface>;
|
|
36
|
+
processTicketCancellation(dto: ProcessTicketCancellationInterface): Promise<TicketInterface>;
|
|
23
37
|
}
|
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./leader_entries.base"), exports);
|
|
18
|
-
__exportStar(require("./create-leader_entries.base"), exports);
|
|
19
18
|
__exportStar(require("./params-leader_entries.base"), exports);
|
|
20
19
|
__exportStar(require("./response-leader_entries.base"), exports);
|
|
21
20
|
__exportStar(require("./leader_entries.controller"), exports);
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { CreateLeaderEntriesInterface } from "./create-leader_entries.base";
|
|
2
1
|
import { LeaderEntriesInterface } from "./leader_entries.base";
|
|
3
|
-
import { CreateLeaderLinesInterface, LeaderLinesInterface } from "./leader_lines.base";
|
|
4
2
|
import { ParamsLeaderEntriesInterface } from "./params-leader_entries.base";
|
|
5
3
|
import { ResponseLeaderEntriesInterface } from "./response-leader_entries.base";
|
|
6
4
|
export interface LeaderEntriesServiceInterface {
|
|
7
|
-
createLeaderEntries(dto: CreateLeaderEntriesInterface): Promise<LeaderEntriesInterface>;
|
|
8
5
|
findAll(pagination: ParamsLeaderEntriesInterface): Promise<ResponseLeaderEntriesInterface>;
|
|
9
6
|
findOne(id: string): Promise<LeaderEntriesInterface>;
|
|
10
|
-
createLeaderLines(dto: CreateLeaderLinesInterface): Promise<LeaderLinesInterface>;
|
|
11
7
|
}
|
|
@@ -10,11 +10,3 @@ export interface LeaderLinesInterface {
|
|
|
10
10
|
balance_after: number;
|
|
11
11
|
create_at: Date;
|
|
12
12
|
}
|
|
13
|
-
export interface CreateLeaderLinesInterface {
|
|
14
|
-
id_leader_entries: string;
|
|
15
|
-
id_account: string;
|
|
16
|
-
debit: number;
|
|
17
|
-
credit: number;
|
|
18
|
-
balance_before: number;
|
|
19
|
-
balance_after: number;
|
|
20
|
-
}
|
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./operation.base"), exports);
|
|
18
|
-
__exportStar(require("./create-operation.base"), exports);
|
|
19
18
|
__exportStar(require("./params-operation.base"), exports);
|
|
20
19
|
__exportStar(require("./response-operation.base"), exports);
|
|
21
20
|
__exportStar(require("./operation.controller"), exports);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { CreateOperationInterfcae } from "./create-operation.base";
|
|
2
1
|
import { OperationInterface } from "./operation.base";
|
|
3
2
|
import { ParamsOperationInterface } from "./params-operation.base";
|
|
4
3
|
import { ResponseOperationInterface } from "./response-operation.base";
|
|
5
4
|
export interface OperationServiceInterface {
|
|
6
|
-
createOperation(dto: CreateOperationInterfcae): Promise<OperationInterface>;
|
|
7
5
|
findAll(pagination: ParamsOperationInterface): Promise<ResponseOperationInterface>;
|
|
8
6
|
findOne(id: string): Promise<OperationInterface>;
|
|
9
7
|
}
|