react-memory-optimization 0.0.1
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/README.md +0 -0
- package/dist/bundle.js +1 -0
- package/dist/lib/binary/constants/modules.d.ts +2 -0
- package/dist/lib/binary/constants/modules.js +685 -0
- package/dist/lib/binary/constants/requests.d.ts +2 -0
- package/dist/lib/binary/constants/requests.js +3065 -0
- package/dist/lib/binary/constants/scheme.d.ts +2 -0
- package/dist/lib/binary/constants/scheme.js +1548 -0
- package/dist/lib/binary/index.d.ts +81 -0
- package/dist/lib/binary/types.d.ts +287 -0
- package/dist/lib/binary/types.js +159 -0
- package/dist/lib/constants/pagination.d.ts +1 -0
- package/dist/lib/constants/pagination.js +4 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/service/experimental/index.d.ts +16 -0
- package/dist/lib/service/experimental/instaNews/index.d.ts +12 -0
- package/dist/lib/service/experimental/instaNews/types.d.ts +9 -0
- package/dist/lib/service/experimental/instaNews/types.js +2 -0
- package/dist/lib/service/experimental/jackpots/index.d.ts +21 -0
- package/dist/lib/service/experimental/jackpots/types.d.ts +38 -0
- package/dist/lib/service/experimental/jackpots/types.js +2 -0
- package/dist/lib/service/experimental/push/index.d.ts +7 -0
- package/dist/lib/service/experimental/service/index.d.ts +12 -0
- package/dist/lib/service/experimental/types.d.ts +21 -0
- package/dist/lib/service/experimental/types.js +2 -0
- package/dist/lib/service/moneyResponse/index.d.ts +8 -0
- package/dist/lib/service/moneyResponse/types.d.ts +101 -0
- package/dist/lib/service/moneyResponse/types.js +59 -0
- package/dist/lib/service/observable/index.d.ts +19 -0
- package/dist/lib/service/observable/type.d.ts +17 -0
- package/dist/lib/service/observable/type.js +2 -0
- package/dist/lib/service/observableEntity/index.d.ts +14 -0
- package/dist/lib/service/observableEntity/types.d.ts +7 -0
- package/dist/lib/service/observableEntity/types.js +2 -0
- package/dist/lib/service/responseAdapter/adapters.d.ts +80 -0
- package/dist/lib/service/responseAdapter/adapters.js +113 -0
- package/dist/lib/service/responseAdapter/constants.d.ts +1 -0
- package/dist/lib/service/responseAdapter/constants.js +4 -0
- package/dist/lib/service/responseAdapter/index.d.ts +41 -0
- package/dist/lib/service/responseAdapter/services/index.d.ts +12 -0
- package/dist/lib/service/responseAdapter/services/types.d.ts +7 -0
- package/dist/lib/service/responseAdapter/services/types.js +2 -0
- package/dist/lib/service/responseAdapter/types.d.ts +164 -0
- package/dist/lib/service/responseAdapter/types.js +12 -0
- package/dist/lib/service/responseAdapter/utils.d.ts +27 -0
- package/dist/lib/service/responseAdapter/utils.js +63 -0
- package/dist/lib/socket/index.d.ts +253 -0
- package/dist/lib/socket/methodTypes.d.ts +23 -0
- package/dist/lib/socket/methodTypes.js +2 -0
- package/dist/lib/socket/services.d.ts +39 -0
- package/dist/lib/socket/services.js +115 -0
- package/dist/lib/socket/types.d.ts +297 -0
- package/dist/lib/socket/types.js +83 -0
- package/dist/lib/store/betting/entities/betslip/index.d.ts +56 -0
- package/dist/lib/store/betting/entities/betslip/types.d.ts +200 -0
- package/dist/lib/store/betting/entities/betslip/types.js +62 -0
- package/dist/lib/store/betting/entities/categories/index.d.ts +20 -0
- package/dist/lib/store/betting/entities/categories/types.d.ts +41 -0
- package/dist/lib/store/betting/entities/categories/types.js +2 -0
- package/dist/lib/store/betting/entities/events/index.d.ts +41 -0
- package/dist/lib/store/betting/entities/events/live/index.d.ts +56 -0
- package/dist/lib/store/betting/entities/events/live/types.d.ts +116 -0
- package/dist/lib/store/betting/entities/events/live/types.js +2 -0
- package/dist/lib/store/betting/entities/events/prematch/index.d.ts +44 -0
- package/dist/lib/store/betting/entities/events/prematch/types.d.ts +66 -0
- package/dist/lib/store/betting/entities/events/prematch/types.js +2 -0
- package/dist/lib/store/betting/entities/events/top/index.d.ts +7 -0
- package/dist/lib/store/betting/entities/events/top/types.d.ts +5 -0
- package/dist/lib/store/betting/entities/events/top/types.js +2 -0
- package/dist/lib/store/betting/entities/events/types.d.ts +255 -0
- package/dist/lib/store/betting/entities/events/types.js +84 -0
- package/dist/lib/store/betting/entities/events/utils.d.ts +11 -0
- package/dist/lib/store/betting/entities/events/utils.js +184 -0
- package/dist/lib/store/betting/entities/markets/index.d.ts +22 -0
- package/dist/lib/store/betting/entities/markets/types.d.ts +115 -0
- package/dist/lib/store/betting/entities/markets/types.js +22 -0
- package/dist/lib/store/betting/entities/sports/index.d.ts +20 -0
- package/dist/lib/store/betting/entities/sports/types.d.ts +62 -0
- package/dist/lib/store/betting/entities/sports/types.js +37 -0
- package/dist/lib/store/betting/entities/tickets/index.d.ts +26 -0
- package/dist/lib/store/betting/entities/tickets/types.d.ts +105 -0
- package/dist/lib/store/betting/entities/tickets/types.js +16 -0
- package/dist/lib/store/betting/entities/tournaments/index.d.ts +30 -0
- package/dist/lib/store/betting/entities/tournaments/types.d.ts +69 -0
- package/dist/lib/store/betting/entities/tournaments/types.js +2 -0
- package/dist/lib/store/betting/index.d.ts +45 -0
- package/dist/lib/store/betting/services/constants.d.ts +1 -0
- package/dist/lib/store/betting/services/constants.js +11 -0
- package/dist/lib/store/betting/services/index.d.ts +311 -0
- package/dist/lib/store/betting/services/types.d.ts +42 -0
- package/dist/lib/store/betting/services/types.js +9 -0
- package/dist/lib/store/betting/services/utils.d.ts +6 -0
- package/dist/lib/store/betting/services/utils.js +73 -0
- package/dist/lib/store/betting/types.d.ts +44 -0
- package/dist/lib/store/betting/types.js +2 -0
- package/dist/lib/store/casino/entities/casinoTournaments/index.d.ts +43 -0
- package/dist/lib/store/casino/entities/casinoTournaments/service/constants.d.ts +2 -0
- package/dist/lib/store/casino/entities/casinoTournaments/service/constants.js +11 -0
- package/dist/lib/store/casino/entities/casinoTournaments/service/index.d.ts +18 -0
- package/dist/lib/store/casino/entities/casinoTournaments/types.d.ts +134 -0
- package/dist/lib/store/casino/entities/casinoTournaments/types.js +10 -0
- package/dist/lib/store/casino/entities/categories/index.d.ts +33 -0
- package/dist/lib/store/casino/entities/categories/types.d.ts +152 -0
- package/dist/lib/store/casino/entities/categories/types.js +23 -0
- package/dist/lib/store/casino/entities/games/index.d.ts +32 -0
- package/dist/lib/store/casino/entities/games/types.d.ts +128 -0
- package/dist/lib/store/casino/entities/games/types.js +17 -0
- package/dist/lib/store/casino/entities/jackpots/constants.d.ts +14 -0
- package/dist/lib/store/casino/entities/jackpots/constants.js +17 -0
- package/dist/lib/store/casino/entities/jackpots/index.d.ts +23 -0
- package/dist/lib/store/casino/entities/jackpots/types.d.ts +48 -0
- package/dist/lib/store/casino/entities/jackpots/types.js +9 -0
- package/dist/lib/store/casino/entities/lastWinners/index.d.ts +23 -0
- package/dist/lib/store/casino/entities/lastWinners/types.d.ts +14 -0
- package/dist/lib/store/casino/entities/lastWinners/types.js +2 -0
- package/dist/lib/store/casino/entities/providers/index.d.ts +32 -0
- package/dist/lib/store/casino/entities/providers/types.d.ts +45 -0
- package/dist/lib/store/casino/entities/providers/types.js +2 -0
- package/dist/lib/store/casino/index.d.ts +30 -0
- package/dist/lib/store/casino/services/constants.d.ts +4 -0
- package/dist/lib/store/casino/services/constants.js +22 -0
- package/dist/lib/store/casino/services/index.d.ts +67 -0
- package/dist/lib/store/casino/types.d.ts +50 -0
- package/dist/lib/store/casino/types.js +27 -0
- package/dist/lib/store/lottery/entities/freeCash/index.d.ts +20 -0
- package/dist/lib/store/lottery/entities/freeCash/types.d.ts +34 -0
- package/dist/lib/store/lottery/entities/freeCash/types.js +2 -0
- package/dist/lib/store/lottery/entities/history/index.d.ts +19 -0
- package/dist/lib/store/lottery/entities/history/types.d.ts +49 -0
- package/dist/lib/store/lottery/entities/history/types.js +16 -0
- package/dist/lib/store/lottery/entities/instantCash/index.d.ts +20 -0
- package/dist/lib/store/lottery/entities/instantCash/types.d.ts +22 -0
- package/dist/lib/store/lottery/entities/instantCash/types.js +2 -0
- package/dist/lib/store/lottery/index.d.ts +27 -0
- package/dist/lib/store/lottery/services/index.d.ts +24 -0
- package/dist/lib/store/lottery/types.d.ts +53 -0
- package/dist/lib/store/lottery/types.js +9 -0
- package/dist/lib/store/notifications/types.d.ts +17 -0
- package/dist/lib/store/notifications/types.js +21 -0
- package/dist/lib/store/operations/entities/activeBonuses/index.d.ts +18 -0
- package/dist/lib/store/operations/entities/activeBonuses/types.d.ts +8 -0
- package/dist/lib/store/operations/entities/activeBonuses/types.js +3 -0
- package/dist/lib/store/operations/entities/availableBonuses/index.d.ts +18 -0
- package/dist/lib/store/operations/entities/availableBonuses/types.d.ts +8 -0
- package/dist/lib/store/operations/entities/availableBonuses/types.js +3 -0
- package/dist/lib/store/operations/entities/cashBonuses/index.d.ts +49 -0
- package/dist/lib/store/operations/entities/cashBonuses/types.d.ts +3 -0
- package/dist/lib/store/operations/entities/cashBonuses/types.js +2 -0
- package/dist/lib/store/operations/entities/casinoHistory/index.d.ts +18 -0
- package/dist/lib/store/operations/entities/casinoHistory/types.d.ts +15 -0
- package/dist/lib/store/operations/entities/casinoHistory/types.js +2 -0
- package/dist/lib/store/operations/entities/payments/index.d.ts +31 -0
- package/dist/lib/store/operations/entities/referralOperations/index.d.ts +11 -0
- package/dist/lib/store/operations/entities/tournaments/constants.d.ts +2 -0
- package/dist/lib/store/operations/entities/tournaments/constants.js +8 -0
- package/dist/lib/store/operations/entities/tournaments/index.d.ts +24 -0
- package/dist/lib/store/operations/entities/tournaments/types.d.ts +9 -0
- package/dist/lib/store/operations/entities/tournaments/types.js +2 -0
- package/dist/lib/store/operations/entities/vipClub/cosntants.d.ts +3 -0
- package/dist/lib/store/operations/entities/vipClub/cosntants.js +21 -0
- package/dist/lib/store/operations/entities/vipClub/index.d.ts +64 -0
- package/dist/lib/store/operations/entities/vipClub/types.d.ts +31 -0
- package/dist/lib/store/operations/entities/vipClub/types.js +2 -0
- package/dist/lib/store/operations/index.d.ts +49 -0
- package/dist/lib/store/operations/services/index.d.ts +17 -0
- package/dist/lib/store/operations/types.d.ts +245 -0
- package/dist/lib/store/operations/types.js +80 -0
- package/dist/lib/store/operations/utils.d.ts +3 -0
- package/dist/lib/store/operations/utils.js +65 -0
- package/dist/lib/store/user/constants.d.ts +31 -0
- package/dist/lib/store/user/constants.js +1173 -0
- package/dist/lib/store/user/entities/avatar/constants.d.ts +2 -0
- package/dist/lib/store/user/entities/avatar/constants.js +75 -0
- package/dist/lib/store/user/entities/avatar/index.d.ts +28 -0
- package/dist/lib/store/user/entities/avatar/types.d.ts +30 -0
- package/dist/lib/store/user/entities/avatar/types.js +2 -0
- package/dist/lib/store/user/entities/balance/index.d.ts +25 -0
- package/dist/lib/store/user/entities/balance/types.d.ts +29 -0
- package/dist/lib/store/user/entities/balance/types.js +2 -0
- package/dist/lib/store/user/entities/bonusWheel/constants.d.ts +1 -0
- package/dist/lib/store/user/entities/bonusWheel/constants.js +7 -0
- package/dist/lib/store/user/entities/bonusWheel/index.d.ts +17 -0
- package/dist/lib/store/user/entities/bonusWheel/types.d.ts +7 -0
- package/dist/lib/store/user/entities/bonusWheel/types.js +2 -0
- package/dist/lib/store/user/entities/daily/index.d.ts +20 -0
- package/dist/lib/store/user/entities/daily/types.d.ts +21 -0
- package/dist/lib/store/user/entities/daily/types.js +2 -0
- package/dist/lib/store/user/entities/favorites/constants.d.ts +2 -0
- package/dist/lib/store/user/entities/favorites/constants.js +32 -0
- package/dist/lib/store/user/entities/favorites/index.d.ts +27 -0
- package/dist/lib/store/user/entities/favorites/types.d.ts +122 -0
- package/dist/lib/store/user/entities/favorites/types.js +2 -0
- package/dist/lib/store/user/entities/hamster/constant.d.ts +10 -0
- package/dist/lib/store/user/entities/hamster/constant.js +39 -0
- package/dist/lib/store/user/entities/hamster/index.d.ts +21 -0
- package/dist/lib/store/user/entities/hamster/types.d.ts +28 -0
- package/dist/lib/store/user/entities/hamster/types.js +2 -0
- package/dist/lib/store/user/entities/lootBox/constants.d.ts +8 -0
- package/dist/lib/store/user/entities/lootBox/constants.js +26 -0
- package/dist/lib/store/user/entities/lootBox/index.d.ts +39 -0
- package/dist/lib/store/user/entities/lootBox/types.d.ts +10 -0
- package/dist/lib/store/user/entities/lootBox/types.js +2 -0
- package/dist/lib/store/user/entities/promoCode/index.d.ts +8 -0
- package/dist/lib/store/user/entities/promoCode/type.d.ts +19 -0
- package/dist/lib/store/user/entities/promoCode/type.js +15 -0
- package/dist/lib/store/user/entities/referral/index.d.ts +30 -0
- package/dist/lib/store/user/entities/referral/types.d.ts +26 -0
- package/dist/lib/store/user/entities/referral/types.js +8 -0
- package/dist/lib/store/user/index.d.ts +59 -0
- package/dist/lib/store/user/services/index.d.ts +31 -0
- package/dist/lib/store/user/services/types.d.ts +4 -0
- package/dist/lib/store/user/services/types.js +2 -0
- package/dist/lib/store/user/services/utils.d.ts +4 -0
- package/dist/lib/store/user/services/utils.js +10 -0
- package/dist/lib/store/user/types.d.ts +270 -0
- package/dist/lib/store/user/types.js +180 -0
- package/dist/lib/store/user/utils.d.ts +4 -0
- package/dist/lib/store/user/utils.js +22 -0
- package/dist/lib/utils/betting.d.ts +4 -0
- package/dist/lib/utils/betting.js +93 -0
- package/dist/lib/utils/casino.d.ts +1 -0
- package/dist/lib/utils/casino.js +6 -0
- package/dist/lib/utils/pagination.d.ts +2 -0
- package/dist/lib/utils/pagination.js +25 -0
- package/dist/lib/utils/shader.d.ts +16 -0
- package/dist/lib/utils/shader.js +27 -0
- package/package.json +63 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { ERequestIds } from '../../binary/types';
|
|
2
|
+
import { BaseObservableSubscriber } from 'service/observable/type';
|
|
3
|
+
import { CasinoHistoryBet } from './entities/casinoHistory/types';
|
|
4
|
+
import { AdaptedGame } from 'store/casino/entities/games/types';
|
|
5
|
+
export type SetOperationsTypeProps = {
|
|
6
|
+
ticketTimestamps: number[];
|
|
7
|
+
operationTimestamps: number[];
|
|
8
|
+
casinoGamesTimestamps: number[];
|
|
9
|
+
ticketsInGame: Ticket[];
|
|
10
|
+
currentOperations: Operation[];
|
|
11
|
+
};
|
|
12
|
+
type Ticket = {
|
|
13
|
+
acceptedOdd: number;
|
|
14
|
+
isTinderBet: boolean;
|
|
15
|
+
balanceType: number;
|
|
16
|
+
bonusBalance: number;
|
|
17
|
+
cashoutRecords: any[];
|
|
18
|
+
id: number;
|
|
19
|
+
ordinars: OrdinarTicket[];
|
|
20
|
+
parentId: number;
|
|
21
|
+
payout: number;
|
|
22
|
+
points: number;
|
|
23
|
+
returned: number;
|
|
24
|
+
settlementOdd: number;
|
|
25
|
+
stake: number;
|
|
26
|
+
status: ITicketStatus;
|
|
27
|
+
systemRang: number;
|
|
28
|
+
timestamp: number;
|
|
29
|
+
type: ETypeBet;
|
|
30
|
+
timestampSettlement: number;
|
|
31
|
+
timestampPayout: number;
|
|
32
|
+
};
|
|
33
|
+
export declare enum ETypeBet {
|
|
34
|
+
Ordinar = 1,
|
|
35
|
+
Express = 2,
|
|
36
|
+
System = 3,
|
|
37
|
+
BetBuilder = 4,
|
|
38
|
+
Tinder = 5
|
|
39
|
+
}
|
|
40
|
+
export declare enum ITicketStatus {
|
|
41
|
+
Unsettled = 0,
|
|
42
|
+
Settled = 1
|
|
43
|
+
}
|
|
44
|
+
type OrdinarTicket = {
|
|
45
|
+
acceptedOdd: number;
|
|
46
|
+
categoryName: string;
|
|
47
|
+
eventAwayName: string;
|
|
48
|
+
eventGameScore: string;
|
|
49
|
+
eventHomeName: string;
|
|
50
|
+
eventId: string;
|
|
51
|
+
eventMatchStatusDescription: string;
|
|
52
|
+
eventMatchTime: string;
|
|
53
|
+
eventScore: string;
|
|
54
|
+
eventSetScore: string;
|
|
55
|
+
eventStartTime: number;
|
|
56
|
+
eventStatus: number;
|
|
57
|
+
gbEventId: number;
|
|
58
|
+
id: number;
|
|
59
|
+
lineCompoundKey: string;
|
|
60
|
+
lineTypeRadar: number;
|
|
61
|
+
marketId: number;
|
|
62
|
+
marketName: string;
|
|
63
|
+
outcomeId: number;
|
|
64
|
+
outcomeName: string;
|
|
65
|
+
settlementOdd: number;
|
|
66
|
+
sportName: string;
|
|
67
|
+
status: number;
|
|
68
|
+
summary: number;
|
|
69
|
+
tournamentName: string;
|
|
70
|
+
variant: number;
|
|
71
|
+
specifierValue: string[];
|
|
72
|
+
};
|
|
73
|
+
export interface PaymentOperation {
|
|
74
|
+
amount: number;
|
|
75
|
+
completionTimestamp: number;
|
|
76
|
+
creationTimestamp: number;
|
|
77
|
+
direction: EOperationDirect;
|
|
78
|
+
id: number;
|
|
79
|
+
status: EOperationStatus;
|
|
80
|
+
type: EOperationType;
|
|
81
|
+
canBeCanceled?: boolean;
|
|
82
|
+
}
|
|
83
|
+
export type WithdrawOperation = PaymentOperation;
|
|
84
|
+
export declare enum EOperationType {
|
|
85
|
+
RealCash = 0,
|
|
86
|
+
BonusCash = 1,
|
|
87
|
+
Unit = 2
|
|
88
|
+
}
|
|
89
|
+
export declare enum EOperationDirect {
|
|
90
|
+
Deposit = 1,
|
|
91
|
+
Withdraw = 2
|
|
92
|
+
}
|
|
93
|
+
export declare enum EOperationStatus {
|
|
94
|
+
Created = 0,
|
|
95
|
+
Verified = 1,
|
|
96
|
+
InvalidOperation = 2,
|
|
97
|
+
Canceled = 3,
|
|
98
|
+
WaitActivation = 4,
|
|
99
|
+
InProcessActivation = 5,
|
|
100
|
+
InProcessActivationDisabled = 6,
|
|
101
|
+
RollingSpins = 7,
|
|
102
|
+
RollingTime = 8
|
|
103
|
+
}
|
|
104
|
+
export type Operation = CommonOperationProperties | CasinoBonusOnDepositOperation | CasinoBonusFreeSpinOperation | VipClubLevelOperation | EgtBonusOperation;
|
|
105
|
+
export type CommonOperationProperties = {
|
|
106
|
+
amount: number;
|
|
107
|
+
channelType: ChannelType;
|
|
108
|
+
completionTimestamp: number;
|
|
109
|
+
creationTimestamp: number;
|
|
110
|
+
currency: number;
|
|
111
|
+
deposit: number;
|
|
112
|
+
direction: EOperationDirect;
|
|
113
|
+
endTimestamp: number;
|
|
114
|
+
fee: number;
|
|
115
|
+
fullRolled: number;
|
|
116
|
+
id: number;
|
|
117
|
+
isCancelableByUser: boolean;
|
|
118
|
+
isCanceledByUser: boolean;
|
|
119
|
+
maxBet: number;
|
|
120
|
+
notice: number;
|
|
121
|
+
postponedStatus: number;
|
|
122
|
+
provider: number;
|
|
123
|
+
providerId: string | number;
|
|
124
|
+
providerStatus: number;
|
|
125
|
+
rolled: number;
|
|
126
|
+
startTimestamp: number;
|
|
127
|
+
status: EOperationStatus;
|
|
128
|
+
tax: number;
|
|
129
|
+
type: EOperationType;
|
|
130
|
+
url: string;
|
|
131
|
+
wager: number;
|
|
132
|
+
};
|
|
133
|
+
export type VipClubLevelOperation = CommonOperationProperties & {
|
|
134
|
+
channelType: ChannelType.VipClubLevel;
|
|
135
|
+
level: number;
|
|
136
|
+
};
|
|
137
|
+
export type EgtBonusOperation = CommonOperationProperties & {
|
|
138
|
+
channelType: ChannelType.Egt;
|
|
139
|
+
};
|
|
140
|
+
export type CasinoBonusOnDepositOperation = CommonOperationProperties & {
|
|
141
|
+
provider: 2;
|
|
142
|
+
channelType: ChannelType.CasinoBonusFreespin | ChannelType.CasinoBonusDeposit;
|
|
143
|
+
bonusPromoValue: number;
|
|
144
|
+
endActivationTime: number;
|
|
145
|
+
spinBet: number;
|
|
146
|
+
rollingTime: number;
|
|
147
|
+
maxBonus: number;
|
|
148
|
+
minBet: number;
|
|
149
|
+
minDeposit: number;
|
|
150
|
+
activeOperationId: number;
|
|
151
|
+
bonusPackId: number;
|
|
152
|
+
};
|
|
153
|
+
export type CasinoBonusFreeSpinOperation = CasinoBonusOnDepositOperation & {
|
|
154
|
+
channelType: ChannelType.CasinoBonusFreespin;
|
|
155
|
+
campaign: {
|
|
156
|
+
quantity: number;
|
|
157
|
+
gameId: number;
|
|
158
|
+
validFrom: number;
|
|
159
|
+
validUntil: number;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
export declare enum ChannelType {
|
|
163
|
+
TournamentPayoutCash = 44,
|
|
164
|
+
TournamentPayoutBonus = 45,
|
|
165
|
+
CashBonusExpiration = 46,
|
|
166
|
+
BonusCancellation = 47,
|
|
167
|
+
CashPromoAccural = 48,
|
|
168
|
+
BonusPromoAccural = 49,
|
|
169
|
+
CasinoBonusDeposit = 50,
|
|
170
|
+
CasinoBonusFreespin = 51,
|
|
171
|
+
BonusDeposit = 52,
|
|
172
|
+
Units = 53,
|
|
173
|
+
BonusRegistration = 54,
|
|
174
|
+
WeekCashback = 55,
|
|
175
|
+
NewLoyaltyLevel = 56,
|
|
176
|
+
VipClubLevel = 57,
|
|
177
|
+
RakeBack = 58,
|
|
178
|
+
Monthly = 59,
|
|
179
|
+
Weekly = 60,
|
|
180
|
+
Egt = 61,
|
|
181
|
+
Referral = 85
|
|
182
|
+
}
|
|
183
|
+
export type CancelOperationProps = {
|
|
184
|
+
requestId: ERequestIds;
|
|
185
|
+
status: number;
|
|
186
|
+
operationId: number;
|
|
187
|
+
};
|
|
188
|
+
export declare enum TransactionFilterType {
|
|
189
|
+
Deposit = 0,
|
|
190
|
+
Withdraw = 1,
|
|
191
|
+
CasinoBets = 2,
|
|
192
|
+
RakeBackHistory = 3,
|
|
193
|
+
NewVipLevelHistory = 4,
|
|
194
|
+
EgtHistory = 5,
|
|
195
|
+
MonthlyHistory = 6,
|
|
196
|
+
WeeklyHistory = 7,
|
|
197
|
+
TournamentPrizeHistory = 8,
|
|
198
|
+
Bonuses = 9,
|
|
199
|
+
ActiveTournament = 10,
|
|
200
|
+
ActiveWeekly = 11,
|
|
201
|
+
ActiveMonthly = 12,
|
|
202
|
+
ActiveRakeBack = 13,
|
|
203
|
+
Referral = 14,
|
|
204
|
+
SupportBonus = 15
|
|
205
|
+
}
|
|
206
|
+
export type MixerTransactionResponse = {
|
|
207
|
+
id: number;
|
|
208
|
+
creationTimestamp: number;
|
|
209
|
+
additionalInfo: MixerTransactionAdditionalInfo;
|
|
210
|
+
gameInfo: null | AdaptedGame;
|
|
211
|
+
operation: CommonOperationProperties | PaymentOperation | CasinoHistoryBet;
|
|
212
|
+
}[];
|
|
213
|
+
export type MixerTransactionAdditionalInfo = {
|
|
214
|
+
type: TransactionFilterType;
|
|
215
|
+
startTimestamp: number;
|
|
216
|
+
endTimestamp: number;
|
|
217
|
+
resultValue: number;
|
|
218
|
+
isRed: boolean;
|
|
219
|
+
isGreen: boolean;
|
|
220
|
+
status?: EOperationStatus;
|
|
221
|
+
canBeCanceled?: boolean;
|
|
222
|
+
} & ({
|
|
223
|
+
type: TransactionFilterType.CasinoBets;
|
|
224
|
+
betsAmount: number;
|
|
225
|
+
winsAmount: number;
|
|
226
|
+
status?: EOperationStatus;
|
|
227
|
+
gameId: number;
|
|
228
|
+
} | {
|
|
229
|
+
type: TransactionFilterType.NewVipLevelHistory | TransactionFilterType.EgtHistory;
|
|
230
|
+
level: number;
|
|
231
|
+
status?: EOperationStatus;
|
|
232
|
+
} | {
|
|
233
|
+
type: Exclude<TransactionFilterType, TransactionFilterType.CasinoBets>;
|
|
234
|
+
status: EOperationStatus;
|
|
235
|
+
});
|
|
236
|
+
export type SubscribeComposeTransactionsProps = BaseObservableSubscriber & {
|
|
237
|
+
[key: string]: unknown;
|
|
238
|
+
types: TransactionFilterType[];
|
|
239
|
+
range: [number, number];
|
|
240
|
+
};
|
|
241
|
+
export type BonusesResponse = {
|
|
242
|
+
bonusOnDeposit: CasinoBonusOnDepositOperation[];
|
|
243
|
+
freeSpins: CasinoBonusFreeSpinOperation[];
|
|
244
|
+
};
|
|
245
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionFilterType = exports.ChannelType = exports.EOperationStatus = exports.EOperationDirect = exports.EOperationType = exports.ITicketStatus = exports.ETypeBet = void 0;
|
|
4
|
+
var ETypeBet;
|
|
5
|
+
(function (ETypeBet) {
|
|
6
|
+
ETypeBet[ETypeBet["Ordinar"] = 1] = "Ordinar";
|
|
7
|
+
ETypeBet[ETypeBet["Express"] = 2] = "Express";
|
|
8
|
+
ETypeBet[ETypeBet["System"] = 3] = "System";
|
|
9
|
+
ETypeBet[ETypeBet["BetBuilder"] = 4] = "BetBuilder";
|
|
10
|
+
ETypeBet[ETypeBet["Tinder"] = 5] = "Tinder";
|
|
11
|
+
})(ETypeBet || (exports.ETypeBet = ETypeBet = {}));
|
|
12
|
+
var ITicketStatus;
|
|
13
|
+
(function (ITicketStatus) {
|
|
14
|
+
ITicketStatus[ITicketStatus["Unsettled"] = 0] = "Unsettled";
|
|
15
|
+
ITicketStatus[ITicketStatus["Settled"] = 1] = "Settled";
|
|
16
|
+
})(ITicketStatus || (exports.ITicketStatus = ITicketStatus = {}));
|
|
17
|
+
var EOperationType;
|
|
18
|
+
(function (EOperationType) {
|
|
19
|
+
EOperationType[EOperationType["RealCash"] = 0] = "RealCash";
|
|
20
|
+
EOperationType[EOperationType["BonusCash"] = 1] = "BonusCash";
|
|
21
|
+
EOperationType[EOperationType["Unit"] = 2] = "Unit";
|
|
22
|
+
})(EOperationType || (exports.EOperationType = EOperationType = {}));
|
|
23
|
+
var EOperationDirect;
|
|
24
|
+
(function (EOperationDirect) {
|
|
25
|
+
EOperationDirect[EOperationDirect["Deposit"] = 1] = "Deposit";
|
|
26
|
+
EOperationDirect[EOperationDirect["Withdraw"] = 2] = "Withdraw";
|
|
27
|
+
})(EOperationDirect || (exports.EOperationDirect = EOperationDirect = {}));
|
|
28
|
+
var EOperationStatus;
|
|
29
|
+
(function (EOperationStatus) {
|
|
30
|
+
EOperationStatus[EOperationStatus["Created"] = 0] = "Created";
|
|
31
|
+
EOperationStatus[EOperationStatus["Verified"] = 1] = "Verified";
|
|
32
|
+
EOperationStatus[EOperationStatus["InvalidOperation"] = 2] = "InvalidOperation";
|
|
33
|
+
EOperationStatus[EOperationStatus["Canceled"] = 3] = "Canceled";
|
|
34
|
+
EOperationStatus[EOperationStatus["WaitActivation"] = 4] = "WaitActivation";
|
|
35
|
+
EOperationStatus[EOperationStatus["InProcessActivation"] = 5] = "InProcessActivation";
|
|
36
|
+
EOperationStatus[EOperationStatus["InProcessActivationDisabled"] = 6] = "InProcessActivationDisabled";
|
|
37
|
+
EOperationStatus[EOperationStatus["RollingSpins"] = 7] = "RollingSpins";
|
|
38
|
+
EOperationStatus[EOperationStatus["RollingTime"] = 8] = "RollingTime";
|
|
39
|
+
})(EOperationStatus || (exports.EOperationStatus = EOperationStatus = {}));
|
|
40
|
+
var ChannelType;
|
|
41
|
+
(function (ChannelType) {
|
|
42
|
+
ChannelType[ChannelType["TournamentPayoutCash"] = 44] = "TournamentPayoutCash";
|
|
43
|
+
ChannelType[ChannelType["TournamentPayoutBonus"] = 45] = "TournamentPayoutBonus";
|
|
44
|
+
ChannelType[ChannelType["CashBonusExpiration"] = 46] = "CashBonusExpiration";
|
|
45
|
+
ChannelType[ChannelType["BonusCancellation"] = 47] = "BonusCancellation";
|
|
46
|
+
ChannelType[ChannelType["CashPromoAccural"] = 48] = "CashPromoAccural";
|
|
47
|
+
ChannelType[ChannelType["BonusPromoAccural"] = 49] = "BonusPromoAccural";
|
|
48
|
+
ChannelType[ChannelType["CasinoBonusDeposit"] = 50] = "CasinoBonusDeposit";
|
|
49
|
+
ChannelType[ChannelType["CasinoBonusFreespin"] = 51] = "CasinoBonusFreespin";
|
|
50
|
+
ChannelType[ChannelType["BonusDeposit"] = 52] = "BonusDeposit";
|
|
51
|
+
ChannelType[ChannelType["Units"] = 53] = "Units";
|
|
52
|
+
ChannelType[ChannelType["BonusRegistration"] = 54] = "BonusRegistration";
|
|
53
|
+
ChannelType[ChannelType["WeekCashback"] = 55] = "WeekCashback";
|
|
54
|
+
ChannelType[ChannelType["NewLoyaltyLevel"] = 56] = "NewLoyaltyLevel";
|
|
55
|
+
ChannelType[ChannelType["VipClubLevel"] = 57] = "VipClubLevel";
|
|
56
|
+
ChannelType[ChannelType["RakeBack"] = 58] = "RakeBack";
|
|
57
|
+
ChannelType[ChannelType["Monthly"] = 59] = "Monthly";
|
|
58
|
+
ChannelType[ChannelType["Weekly"] = 60] = "Weekly";
|
|
59
|
+
ChannelType[ChannelType["Egt"] = 61] = "Egt";
|
|
60
|
+
ChannelType[ChannelType["Referral"] = 85] = "Referral";
|
|
61
|
+
})(ChannelType || (exports.ChannelType = ChannelType = {}));
|
|
62
|
+
var TransactionFilterType;
|
|
63
|
+
(function (TransactionFilterType) {
|
|
64
|
+
TransactionFilterType[TransactionFilterType["Deposit"] = 0] = "Deposit";
|
|
65
|
+
TransactionFilterType[TransactionFilterType["Withdraw"] = 1] = "Withdraw";
|
|
66
|
+
TransactionFilterType[TransactionFilterType["CasinoBets"] = 2] = "CasinoBets";
|
|
67
|
+
TransactionFilterType[TransactionFilterType["RakeBackHistory"] = 3] = "RakeBackHistory";
|
|
68
|
+
TransactionFilterType[TransactionFilterType["NewVipLevelHistory"] = 4] = "NewVipLevelHistory";
|
|
69
|
+
TransactionFilterType[TransactionFilterType["EgtHistory"] = 5] = "EgtHistory";
|
|
70
|
+
TransactionFilterType[TransactionFilterType["MonthlyHistory"] = 6] = "MonthlyHistory";
|
|
71
|
+
TransactionFilterType[TransactionFilterType["WeeklyHistory"] = 7] = "WeeklyHistory";
|
|
72
|
+
TransactionFilterType[TransactionFilterType["TournamentPrizeHistory"] = 8] = "TournamentPrizeHistory";
|
|
73
|
+
TransactionFilterType[TransactionFilterType["Bonuses"] = 9] = "Bonuses";
|
|
74
|
+
TransactionFilterType[TransactionFilterType["ActiveTournament"] = 10] = "ActiveTournament";
|
|
75
|
+
TransactionFilterType[TransactionFilterType["ActiveWeekly"] = 11] = "ActiveWeekly";
|
|
76
|
+
TransactionFilterType[TransactionFilterType["ActiveMonthly"] = 12] = "ActiveMonthly";
|
|
77
|
+
TransactionFilterType[TransactionFilterType["ActiveRakeBack"] = 13] = "ActiveRakeBack";
|
|
78
|
+
TransactionFilterType[TransactionFilterType["Referral"] = 14] = "Referral";
|
|
79
|
+
TransactionFilterType[TransactionFilterType["SupportBonus"] = 15] = "SupportBonus";
|
|
80
|
+
})(TransactionFilterType || (exports.TransactionFilterType = TransactionFilterType = {}));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.adaptedOperations = exports.adaptedWithdrawOrDeposit = void 0;
|
|
4
|
+
const constants_1 = require("../../service/responseAdapter/constants");
|
|
5
|
+
const types_1 = require("./types");
|
|
6
|
+
// TODO Types
|
|
7
|
+
const adaptedWithdrawOrDeposit = (o) => {
|
|
8
|
+
const { amount, completionTimestamp, creationTimestamp, direction, id, status, type, } = o;
|
|
9
|
+
return {
|
|
10
|
+
amount,
|
|
11
|
+
completionTimestamp,
|
|
12
|
+
creationTimestamp,
|
|
13
|
+
direction,
|
|
14
|
+
id,
|
|
15
|
+
status,
|
|
16
|
+
type,
|
|
17
|
+
canBeCanceled: Boolean(o.postponedStatus === 1),
|
|
18
|
+
// TODO if Rostik approved this operation operation Will with postpouned === 2
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
exports.adaptedWithdrawOrDeposit = adaptedWithdrawOrDeposit;
|
|
22
|
+
// TODO add types
|
|
23
|
+
const adaptedOperations = (operations) => operations.map((o) => {
|
|
24
|
+
let bonusInfo = {};
|
|
25
|
+
if (o.provider === constants_1.BONUS_OPERATION_NUMBER &&
|
|
26
|
+
(o.channelType === types_1.ChannelType.CasinoBonusFreespin ||
|
|
27
|
+
o.channelType === types_1.ChannelType.CasinoBonusDeposit ||
|
|
28
|
+
o.channelType === types_1.ChannelType.RakeBack)) {
|
|
29
|
+
bonusInfo = {
|
|
30
|
+
wager: o.wager,
|
|
31
|
+
endActivationTime: o.endActivationTime * 1000,
|
|
32
|
+
minBet: o.minBet / 100,
|
|
33
|
+
maxBet: o.maxBet / 100,
|
|
34
|
+
minDeposit: o.minDeposit / 100,
|
|
35
|
+
maxBonus: o.maxBonus / 100,
|
|
36
|
+
rollingTime: o.rollingTime * 1000,
|
|
37
|
+
spinBet: o.spinBet / 100,
|
|
38
|
+
rolled: o.rolled / 100,
|
|
39
|
+
fullRolled: o.fullRolled / 100,
|
|
40
|
+
deposit: o.deposit / 100,
|
|
41
|
+
startTimestamp: o.startTimestamp * 1000,
|
|
42
|
+
endTimestamp: (o.endTimestamp || o.completionTimestamp) * 1000,
|
|
43
|
+
rakeBackBoost: o.rakeBackBoost ? o.rakeBackBoost / 100 : null,
|
|
44
|
+
};
|
|
45
|
+
if (o.channelType === types_1.ChannelType.CasinoBonusFreespin) {
|
|
46
|
+
bonusInfo = Object.assign(Object.assign({}, bonusInfo), { campaign: {
|
|
47
|
+
quantity: o.quantity || 0,
|
|
48
|
+
gameId: o.gameId || 0,
|
|
49
|
+
validFrom: o.validFrom * 1000 || 0,
|
|
50
|
+
validUntil: o.validUntil * 1000 || 0,
|
|
51
|
+
} });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (o.channelType === types_1.ChannelType.VipClubLevel ||
|
|
55
|
+
o.channelType === types_1.ChannelType.Egt) {
|
|
56
|
+
bonusInfo = {
|
|
57
|
+
rolled: o.rolled / 100,
|
|
58
|
+
level: o.tax / 100,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return Object.assign(Object.assign(Object.assign({}, o), { isCanceledByUser: Boolean(o.isCanceledByUser), isCancelableByUser: o.isCancelableByUser === 2, creationTimestamp: o.creationTimestamp * 1000, completionTimestamp: o.completionTimestamp * 1000,
|
|
62
|
+
// not important for payments
|
|
63
|
+
endTimestamp: (o.endTimestamp || o.completionTimestamp) * 1000, amount: o.amount / 100, fee: o.fee / 100, tax: o.tax / 100 }), bonusInfo);
|
|
64
|
+
});
|
|
65
|
+
exports.adaptedOperations = adaptedOperations;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const CURRENCIES: {
|
|
2
|
+
id: number;
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
shortView: string;
|
|
6
|
+
}[];
|
|
7
|
+
import { PaymentChannelType, RublesMethods, WellexPayMethods } from './types';
|
|
8
|
+
export declare const COINPAY_CRYPTO: PaymentChannelType[];
|
|
9
|
+
export declare const MONETICS_DEPOSIT: PaymentChannelType[];
|
|
10
|
+
export declare const VALIDATION_NEW_FLOW_RULES: {
|
|
11
|
+
1: string[];
|
|
12
|
+
2: string[];
|
|
13
|
+
3: string[];
|
|
14
|
+
4: string[];
|
|
15
|
+
5: string[];
|
|
16
|
+
6: string[];
|
|
17
|
+
7: string[];
|
|
18
|
+
9: string[];
|
|
19
|
+
10: string[];
|
|
20
|
+
11: string[];
|
|
21
|
+
13: string[];
|
|
22
|
+
14: string[];
|
|
23
|
+
17: string[];
|
|
24
|
+
18: string[];
|
|
25
|
+
20: string[];
|
|
26
|
+
};
|
|
27
|
+
export declare const MPAY_METHODS: PaymentChannelType[];
|
|
28
|
+
export declare const MPAY_METHODS_WITH_KIMLIK: PaymentChannelType[];
|
|
29
|
+
export declare const WELLEXPAY: WellexPayMethods[];
|
|
30
|
+
export declare const XOOM_PAY: PaymentChannelType[];
|
|
31
|
+
export declare const RUBLES: RublesMethods[];
|