@wrcb/cb-common 1.0.235 → 1.0.238
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/build/events/depositMadeEvent.d.ts +4 -5
- package/build/events/withdrawalMadeEvent.d.ts +4 -5
- package/build/index.d.ts +2 -2
- package/build/index.js +2 -2
- package/build/types/transactionOperation.d.ts +8 -0
- package/build/types/transactionOperation.js +12 -0
- package/build/types/transactionOperationMode.d.ts +7 -0
- package/build/types/transactionOperationMode.js +11 -0
- package/package.json +1 -1
- package/build/types/ledgerOperation.d.ts +0 -7
- package/build/types/ledgerOperation.js +0 -11
- package/build/types/ledgerOperationMode.d.ts +0 -5
- package/build/types/ledgerOperationMode.js +0 -9
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { TransactionOperation } from 'src/types/transactionOperation';
|
|
1
2
|
import { Subjects } from './subjects';
|
|
2
|
-
import {
|
|
3
|
-
import { LedgerOperationMode } from '../types/ledgerOperationMode';
|
|
3
|
+
import { TransactionOperationMode } from 'src/types/transactionOperationMode';
|
|
4
4
|
export interface DepositMadeEvent {
|
|
5
5
|
subject: Subjects.DepositMade;
|
|
6
6
|
data: {
|
|
7
7
|
userId: string;
|
|
8
|
-
ledgerId: string;
|
|
9
8
|
transactionId: string;
|
|
10
9
|
value: number;
|
|
11
10
|
version: number;
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
transactionOperation: TransactionOperation;
|
|
12
|
+
transactionOperationMode: TransactionOperationMode;
|
|
14
13
|
};
|
|
15
14
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
+
import { TransactionOperation } from 'src/types/transactionOperation';
|
|
1
2
|
import { Subjects } from './subjects';
|
|
2
|
-
import {
|
|
3
|
-
import { LedgerOperationMode } from '../types/ledgerOperationMode';
|
|
3
|
+
import { TransactionOperationMode } from 'src/types/transactionOperationMode';
|
|
4
4
|
export interface WithdrawalMadeEvent {
|
|
5
5
|
subject: Subjects.WithdrawalMade;
|
|
6
6
|
data: {
|
|
7
7
|
userId: string;
|
|
8
|
-
ledgerId: string;
|
|
9
8
|
transactionId: string;
|
|
10
9
|
value: number;
|
|
11
10
|
version: number;
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
transactionOperation: TransactionOperation;
|
|
12
|
+
transactionOperationMode: TransactionOperationMode;
|
|
14
13
|
bankAccountData: string;
|
|
15
14
|
};
|
|
16
15
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './types/marketStatus';
|
|
2
2
|
export * from './types/predictionStatus';
|
|
3
|
-
export * from './types/
|
|
4
|
-
export * from './types/
|
|
3
|
+
export * from './types/transactionOperation';
|
|
4
|
+
export * from './types/transactionOperationMode';
|
|
5
5
|
export * from './types/country';
|
|
6
6
|
export * from './types/userRole';
|
|
7
7
|
export * from './types/oddType';
|
package/build/index.js
CHANGED
|
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types/marketStatus"), exports);
|
|
18
18
|
__exportStar(require("./types/predictionStatus"), exports);
|
|
19
|
-
__exportStar(require("./types/
|
|
20
|
-
__exportStar(require("./types/
|
|
19
|
+
__exportStar(require("./types/transactionOperation"), exports);
|
|
20
|
+
__exportStar(require("./types/transactionOperationMode"), exports);
|
|
21
21
|
__exportStar(require("./types/country"), exports);
|
|
22
22
|
__exportStar(require("./types/userRole"), exports);
|
|
23
23
|
__exportStar(require("./types/oddType"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionOperation = void 0;
|
|
4
|
+
var TransactionOperation;
|
|
5
|
+
(function (TransactionOperation) {
|
|
6
|
+
TransactionOperation["WaitingDeposit"] = "WaitingDeposit";
|
|
7
|
+
TransactionOperation["Deposit"] = "Deposit";
|
|
8
|
+
TransactionOperation["Bonus"] = "Bonus";
|
|
9
|
+
TransactionOperation["Withdraw"] = "Withdraw";
|
|
10
|
+
TransactionOperation["Bet"] = "Bet";
|
|
11
|
+
TransactionOperation["Gain"] = "Gain";
|
|
12
|
+
})(TransactionOperation || (exports.TransactionOperation = TransactionOperation = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionOperationMode = void 0;
|
|
4
|
+
var TransactionOperationMode;
|
|
5
|
+
(function (TransactionOperationMode) {
|
|
6
|
+
TransactionOperationMode["InternalOperation"] = "InternalOperation";
|
|
7
|
+
TransactionOperationMode["Pix"] = "Pix";
|
|
8
|
+
TransactionOperationMode["CreditCard"] = "CreditCard";
|
|
9
|
+
TransactionOperationMode["BankSlip"] = "BankSlip";
|
|
10
|
+
TransactionOperationMode["DebitCard"] = "DebitCard";
|
|
11
|
+
})(TransactionOperationMode || (exports.TransactionOperationMode = TransactionOperationMode = {}));
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LedgerOperation = void 0;
|
|
4
|
-
var LedgerOperation;
|
|
5
|
-
(function (LedgerOperation) {
|
|
6
|
-
LedgerOperation["WaitingDeposit"] = "Aguardando dep\u00F3sito";
|
|
7
|
-
LedgerOperation["Deposit"] = "Dep\u00F3sito";
|
|
8
|
-
LedgerOperation["Withdraw"] = "Saque";
|
|
9
|
-
LedgerOperation["Bet"] = "Aposta";
|
|
10
|
-
LedgerOperation["BetClaim"] = "Ganho";
|
|
11
|
-
})(LedgerOperation || (exports.LedgerOperation = LedgerOperation = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LedgerOperationMode = void 0;
|
|
4
|
-
var LedgerOperationMode;
|
|
5
|
-
(function (LedgerOperationMode) {
|
|
6
|
-
LedgerOperationMode["Internal"] = "Opera\u00E7\u00E3o interna";
|
|
7
|
-
LedgerOperationMode["Pix"] = "Pix";
|
|
8
|
-
LedgerOperationMode["CreditCard"] = "Cart\u00E3o de cr\u00E9dito";
|
|
9
|
-
})(LedgerOperationMode || (exports.LedgerOperationMode = LedgerOperationMode = {}));
|