@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.
@@ -1,15 +1,14 @@
1
+ import { TransactionOperation } from 'src/types/transactionOperation';
1
2
  import { Subjects } from './subjects';
2
- import { LedgerOperation } from '../types/ledgerOperation';
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
- ledgerOperation: LedgerOperation;
13
- ledgerOperationMode: LedgerOperationMode;
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 { LedgerOperation } from '../types/ledgerOperation';
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
- ledgerOperation: LedgerOperation;
13
- ledgerOperationMode: LedgerOperationMode;
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/ledgerOperation';
4
- export * from './types/ledgerOperationMode';
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/ledgerOperation"), exports);
20
- __exportStar(require("./types/ledgerOperationMode"), exports);
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,8 @@
1
+ export declare enum TransactionOperation {
2
+ WaitingDeposit = "WaitingDeposit",
3
+ Deposit = "Deposit",
4
+ Bonus = "Bonus",
5
+ Withdraw = "Withdraw",
6
+ Bet = "Bet",
7
+ Gain = "Gain"
8
+ }
@@ -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,7 @@
1
+ export declare enum TransactionOperationMode {
2
+ InternalOperation = "InternalOperation",
3
+ Pix = "Pix",
4
+ CreditCard = "CreditCard",
5
+ BankSlip = "BankSlip",
6
+ DebitCard = "DebitCard"
7
+ }
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.235",
3
+ "version": "1.0.238",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,7 +0,0 @@
1
- export declare enum LedgerOperation {
2
- WaitingDeposit = "Aguardando dep\u00F3sito",
3
- Deposit = "Dep\u00F3sito",
4
- Withdraw = "Saque",
5
- Bet = "Aposta",
6
- BetClaim = "Ganho"
7
- }
@@ -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,5 +0,0 @@
1
- export declare enum LedgerOperationMode {
2
- Internal = "Opera\u00E7\u00E3o interna",
3
- Pix = "Pix",
4
- CreditCard = "Cart\u00E3o de cr\u00E9dito"
5
- }
@@ -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 = {}));