@truelab/truelogic 3.15.0 → 3.16.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/487.min.js +1 -1
- package/dist/80.cb1ec166.css +3 -0
- package/dist/80.min.js +1 -1
- package/dist/preloader.html +1 -1
- package/dist/truelogic.min.css +1 -1
- package/dist/truelogic.min.js +1 -1
- package/dist/types/src/app/lib/singletones/publicEmitter.d.ts +2 -0
- package/dist/types/src/app/store.d.ts +15 -0
- package/dist/types/src/entities/appearance/index.d.ts +1 -0
- package/dist/types/src/entities/appearance/model/appearanceSlice.d.ts +5 -0
- package/dist/types/src/entities/appearance/model/appearanceSlice.test.d.ts +1 -0
- package/dist/types/src/entities/autoplay/model/autoPlaySlice.d.ts +3 -0
- package/dist/types/src/entities/bonus/model/bonusSlice.d.ts +15 -0
- package/dist/types/src/entities/loading/index.d.ts +1 -0
- package/dist/types/src/entities/loading/ui/default/GameLoader.d.ts +2 -2
- package/dist/types/src/entities/loading/ui/default/GameLoaderWithCustomLogo.d.ts +8 -0
- package/dist/types/src/modules/promoLobby/app/model/promoLobbySlice.d.ts +1 -2
- package/dist/types/src/modules/promoLobby/app/store/index.d.ts +1 -0
- package/dist/types/src/modules/promoLobby/app/store/promoLobbyStore.d.ts +41 -596
- package/dist/types/src/modules/promoLobby/app/store/reduxContext.d.ts +9 -363
- package/dist/types/src/modules/promoLobby/app/store/rootStateTypes.d.ts +18 -0
- package/dist/types/src/modules/promoLobby/entities/convert/model/convertSlice.d.ts +1 -1
- package/dist/types/src/modules/promoLobby/entities/notification/model/notificationSlice.d.ts +1 -2
- package/dist/types/src/modules/promoLobby/entities/prizeDrop/model/prizeDropSlice.d.ts +16 -43
- package/dist/types/src/modules/promoLobby/entities/prizeDrop/model/types.d.ts +31 -0
- package/dist/types/src/modules/promoLobby/entities/rewardsHub/model/rewardsSlice.d.ts +1 -1
- package/dist/types/src/modules/promoLobby/entities/transaction/model/transactionSlice.d.ts +1 -1
- package/dist/types/src/modules/promoLobby/shared/lib/tests/utils/getPreloadedState.d.ts +1 -122
- package/dist/types/src/modules/promoLobby/shared/lib/tests/utils/setupTestStore.d.ts +14 -238
- package/dist/types/src/modules/promoLobby/shared/modals/modalsSlice.d.ts +1 -2
- package/dist/types/src/sandbox/config.d.ts +8 -0
- package/dist/types/src/sandbox/gui/sections/configuration/appearance.d.ts +2 -0
- package/dist/types/src/shared/lib/store/redux.d.ts +6 -0
- package/dist/types/src/shared/lib/tests/utils/getPreloadedState.d.ts +3 -0
- package/dist/types/src/shared/lib/tests/utils/setupTestStore.d.ts +6 -0
- package/dist/types/src/shared/model/appearance/index.d.ts +1 -0
- package/dist/types/src/shared/model/appearance/types.d.ts +4 -0
- package/dist/types/src/shared/model/loading/types.d.ts +2 -0
- package/dist/types/src/shared/model/topLine/types.d.ts +1 -0
- package/dist/types/src/shared/ui/CustomLogoBlock/CustomLogoBlock.d.ts +7 -0
- package/dist/types/src/shared/ui/CustomLogoBlock/index.d.ts +1 -0
- package/dist/types/src/shared/ui/LoadingButton/LoadingButton.stories.d.ts +1 -0
- package/dist/types/src/shared/ui/ProgressBar/pro/ProgressBarPro.d.ts +4 -1
- package/dist/types/src/shared/ui/ProgressBar/pro/ProgressBarPro.stories.d.ts +3 -1
- package/package.json +3 -3
- package/dist/80.3e7f3592.css +0 -3
|
@@ -7,369 +7,15 @@ import type { UnknownAction } from 'redux';
|
|
|
7
7
|
* If we used the default context for PromoLobbyProvider, it would shadow the main store and break
|
|
8
8
|
* useAppSelector/useAppDispatch inside PromoLobby subtree.
|
|
9
9
|
*/
|
|
10
|
-
export declare const PromoLobbyReduxContext: import("react").Context<ReactReduxContextValue<
|
|
11
|
-
convert: {
|
|
12
|
-
amount: string;
|
|
13
|
-
lastResultCash: string | null;
|
|
14
|
-
apiConvert: {
|
|
15
|
-
data: import("../../../../shared/api/modules/promoLobby/wallet").TApiWalletConvertResponse;
|
|
16
|
-
isPending: boolean;
|
|
17
|
-
error: {
|
|
18
|
-
name: string;
|
|
19
|
-
message: string;
|
|
20
|
-
code?: string;
|
|
21
|
-
languageKey?: string | null;
|
|
22
|
-
} | null;
|
|
23
|
-
fake: import("../../../../shared/api/modules/promoLobby/wallet").TApiWalletConvertFake;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
modals: {
|
|
27
|
-
hasOpened: boolean;
|
|
28
|
-
current: import("../../shared/modals").TModalName[];
|
|
29
|
-
isModalReady: boolean;
|
|
30
|
-
};
|
|
31
|
-
notification: {
|
|
32
|
-
viewedRewardDropIds: string[];
|
|
33
|
-
viewedCampaignIds: string[];
|
|
34
|
-
};
|
|
35
|
-
prizeDrop: {
|
|
36
|
-
campaigns: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign[];
|
|
37
|
-
activeCampaign?: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
38
|
-
displayedCampaign?: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
39
|
-
campaignsQueue: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign[];
|
|
40
|
-
prizeDropLiveShownCampaignIds: string[];
|
|
41
|
-
apiLobbyInit: {
|
|
42
|
-
data: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropLobbyInitResponse;
|
|
43
|
-
isPending: boolean;
|
|
44
|
-
error: {
|
|
45
|
-
name: string;
|
|
46
|
-
message: string;
|
|
47
|
-
code?: string;
|
|
48
|
-
languageKey?: string;
|
|
49
|
-
};
|
|
50
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropLobbyInitFake;
|
|
51
|
-
};
|
|
52
|
-
apiJoinCampaign: {
|
|
53
|
-
data: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
54
|
-
isPending: boolean;
|
|
55
|
-
error: {
|
|
56
|
-
name: string;
|
|
57
|
-
message: string;
|
|
58
|
-
code?: string;
|
|
59
|
-
languageKey?: string;
|
|
60
|
-
};
|
|
61
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
62
|
-
};
|
|
63
|
-
socketConnection?: {
|
|
64
|
-
data: null;
|
|
65
|
-
isPending: boolean;
|
|
66
|
-
error: {
|
|
67
|
-
name: string;
|
|
68
|
-
message: string;
|
|
69
|
-
code?: string;
|
|
70
|
-
languageKey?: string;
|
|
71
|
-
};
|
|
72
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TSocketPrizeDropFake;
|
|
73
|
-
} & {
|
|
74
|
-
isSuccess: boolean;
|
|
75
|
-
};
|
|
76
|
-
restData?: import("../../../../shared/api/modules/promoLobby/prizeDrop").TPrizeDropApiData;
|
|
77
|
-
defferedCampaign?: import("../../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
|
|
78
|
-
};
|
|
79
|
-
promoLobby: {
|
|
80
|
-
activeScreen: import("../model").TPromoLobbyScreen;
|
|
81
|
-
topBarScreen: import("../model/types").TPromoLobbyTopBarScreen | null;
|
|
82
|
-
screenHistory: import("../model/types").TPromoLobbyScreenHistoryEntry[];
|
|
83
|
-
uiBlockers: import("../model/types").TPromoLobbyUIBlocker[];
|
|
84
|
-
lang: string | null;
|
|
85
|
-
};
|
|
86
|
-
rewards: {
|
|
87
|
-
rewards: import("../../../../shared/model/prizeDrop").TReward[];
|
|
88
|
-
rewardsQueue: import("../../entities/rewardsHub").TRewardQueueEntry[];
|
|
89
|
-
winReward: import("../../../../shared/model/prizeDrop").TReward | null;
|
|
90
|
-
hasDefferedRewardModal: boolean;
|
|
91
|
-
apiRewardsList: {
|
|
92
|
-
data: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsListResponse;
|
|
93
|
-
isPending: boolean;
|
|
94
|
-
error: {
|
|
95
|
-
name: string;
|
|
96
|
-
message: string;
|
|
97
|
-
code?: string;
|
|
98
|
-
languageKey?: string;
|
|
99
|
-
} | null;
|
|
100
|
-
fake: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsListFake;
|
|
101
|
-
};
|
|
102
|
-
apiClaim: {
|
|
103
|
-
data: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsClaimResponse;
|
|
104
|
-
isPending: boolean;
|
|
105
|
-
error: {
|
|
106
|
-
name: string;
|
|
107
|
-
message: string;
|
|
108
|
-
code?: string;
|
|
109
|
-
languageKey?: string;
|
|
110
|
-
} | null;
|
|
111
|
-
fake: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsClaimFake;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
transaction: {
|
|
115
|
-
transactions: import("../../entities/transaction").TTransaction[];
|
|
116
|
-
hasMore: boolean;
|
|
117
|
-
currentPage: number;
|
|
118
|
-
apiTransactions: {
|
|
119
|
-
data: import("../../../../shared/api/modules/promoLobby/wallet").TApiTransactionsResponse;
|
|
120
|
-
isPending: boolean;
|
|
121
|
-
error: {
|
|
122
|
-
name: string;
|
|
123
|
-
message: string;
|
|
124
|
-
code?: string;
|
|
125
|
-
languageKey?: string | null;
|
|
126
|
-
} | null;
|
|
127
|
-
fake: import("../../../../shared/api/modules/promoLobby/wallet").TApiTransactionsFake;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
wallet: import("../../entities/wallet/model/walletSlice").TWalletState;
|
|
131
|
-
} & import("redux-persist/es/persistReducer").PersistPartial, UnknownAction>>;
|
|
10
|
+
export declare const PromoLobbyReduxContext: import("react").Context<ReactReduxContextValue<import("./rootStateTypes").TPromoLobbyRootState, UnknownAction>>;
|
|
132
11
|
export declare const usePromoLobbyDispatch: import("react-redux").UseDispatch<import("redux-thunk").ThunkDispatch<{
|
|
133
|
-
convert:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
name: string;
|
|
141
|
-
message: string;
|
|
142
|
-
code?: string;
|
|
143
|
-
languageKey?: string | null;
|
|
144
|
-
} | null;
|
|
145
|
-
fake: import("../../../../shared/api/modules/promoLobby/wallet").TApiWalletConvertFake;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
modals: {
|
|
149
|
-
hasOpened: boolean;
|
|
150
|
-
current: import("../../shared/modals").TModalName[];
|
|
151
|
-
isModalReady: boolean;
|
|
152
|
-
};
|
|
153
|
-
notification: {
|
|
154
|
-
viewedRewardDropIds: string[];
|
|
155
|
-
viewedCampaignIds: string[];
|
|
156
|
-
};
|
|
157
|
-
prizeDrop: {
|
|
158
|
-
campaigns: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign[];
|
|
159
|
-
activeCampaign?: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
160
|
-
displayedCampaign?: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
161
|
-
campaignsQueue: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign[];
|
|
162
|
-
prizeDropLiveShownCampaignIds: string[];
|
|
163
|
-
apiLobbyInit: {
|
|
164
|
-
data: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropLobbyInitResponse;
|
|
165
|
-
isPending: boolean;
|
|
166
|
-
error: {
|
|
167
|
-
name: string;
|
|
168
|
-
message: string;
|
|
169
|
-
code?: string;
|
|
170
|
-
languageKey?: string;
|
|
171
|
-
};
|
|
172
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropLobbyInitFake;
|
|
173
|
-
};
|
|
174
|
-
apiJoinCampaign: {
|
|
175
|
-
data: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
176
|
-
isPending: boolean;
|
|
177
|
-
error: {
|
|
178
|
-
name: string;
|
|
179
|
-
message: string;
|
|
180
|
-
code?: string;
|
|
181
|
-
languageKey?: string;
|
|
182
|
-
};
|
|
183
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
184
|
-
};
|
|
185
|
-
socketConnection?: {
|
|
186
|
-
data: null;
|
|
187
|
-
isPending: boolean;
|
|
188
|
-
error: {
|
|
189
|
-
name: string;
|
|
190
|
-
message: string;
|
|
191
|
-
code?: string;
|
|
192
|
-
languageKey?: string;
|
|
193
|
-
};
|
|
194
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TSocketPrizeDropFake;
|
|
195
|
-
} & {
|
|
196
|
-
isSuccess: boolean;
|
|
197
|
-
};
|
|
198
|
-
restData?: import("../../../../shared/api/modules/promoLobby/prizeDrop").TPrizeDropApiData;
|
|
199
|
-
defferedCampaign?: import("../../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
|
|
200
|
-
};
|
|
201
|
-
promoLobby: {
|
|
202
|
-
activeScreen: import("../model").TPromoLobbyScreen;
|
|
203
|
-
topBarScreen: import("../model/types").TPromoLobbyTopBarScreen | null;
|
|
204
|
-
screenHistory: import("../model/types").TPromoLobbyScreenHistoryEntry[];
|
|
205
|
-
uiBlockers: import("../model/types").TPromoLobbyUIBlocker[];
|
|
206
|
-
lang: string | null;
|
|
207
|
-
};
|
|
208
|
-
rewards: {
|
|
209
|
-
rewards: import("../../../../shared/model/prizeDrop").TReward[];
|
|
210
|
-
rewardsQueue: import("../../entities/rewardsHub").TRewardQueueEntry[];
|
|
211
|
-
winReward: import("../../../../shared/model/prizeDrop").TReward | null;
|
|
212
|
-
hasDefferedRewardModal: boolean;
|
|
213
|
-
apiRewardsList: {
|
|
214
|
-
data: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsListResponse;
|
|
215
|
-
isPending: boolean;
|
|
216
|
-
error: {
|
|
217
|
-
name: string;
|
|
218
|
-
message: string;
|
|
219
|
-
code?: string;
|
|
220
|
-
languageKey?: string;
|
|
221
|
-
} | null;
|
|
222
|
-
fake: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsListFake;
|
|
223
|
-
};
|
|
224
|
-
apiClaim: {
|
|
225
|
-
data: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsClaimResponse;
|
|
226
|
-
isPending: boolean;
|
|
227
|
-
error: {
|
|
228
|
-
name: string;
|
|
229
|
-
message: string;
|
|
230
|
-
code?: string;
|
|
231
|
-
languageKey?: string;
|
|
232
|
-
} | null;
|
|
233
|
-
fake: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsClaimFake;
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
transaction: {
|
|
237
|
-
transactions: import("../../entities/transaction").TTransaction[];
|
|
238
|
-
hasMore: boolean;
|
|
239
|
-
currentPage: number;
|
|
240
|
-
apiTransactions: {
|
|
241
|
-
data: import("../../../../shared/api/modules/promoLobby/wallet").TApiTransactionsResponse;
|
|
242
|
-
isPending: boolean;
|
|
243
|
-
error: {
|
|
244
|
-
name: string;
|
|
245
|
-
message: string;
|
|
246
|
-
code?: string;
|
|
247
|
-
languageKey?: string | null;
|
|
248
|
-
} | null;
|
|
249
|
-
fake: import("../../../../shared/api/modules/promoLobby/wallet").TApiTransactionsFake;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
12
|
+
convert: import("../../entities/convert/model/convertSlice").TConvertState;
|
|
13
|
+
modals: import("../../shared/modals/modalsSlice").TModalsState;
|
|
14
|
+
notification: import("../../entities/notification/model/notificationSlice").TNotificationState;
|
|
15
|
+
prizeDrop: import("../../entities/prizeDrop/model/types").TPrizeDropState;
|
|
16
|
+
promoLobby: import("../model/promoLobbySlice").TPromoLobbyState;
|
|
17
|
+
rewards: import("../../entities/rewardsHub/model/rewardsSlice").TRewardsState;
|
|
18
|
+
transaction: import("../../entities/transaction/model/transactionSlice").TTransactionState;
|
|
252
19
|
wallet: import("../../entities/wallet/model/walletSlice").TWalletState;
|
|
253
20
|
} & import("redux-persist/es/persistReducer").PersistPartial, import("./promoLobbyStore").TPromoLobbyMainApi, UnknownAction> & import("redux").Dispatch<import("redux").Action>>;
|
|
254
|
-
export declare const usePromoLobbySelector: import("react-redux").UseSelector<
|
|
255
|
-
convert: {
|
|
256
|
-
amount: string;
|
|
257
|
-
lastResultCash: string | null;
|
|
258
|
-
apiConvert: {
|
|
259
|
-
data: import("../../../../shared/api/modules/promoLobby/wallet").TApiWalletConvertResponse;
|
|
260
|
-
isPending: boolean;
|
|
261
|
-
error: {
|
|
262
|
-
name: string;
|
|
263
|
-
message: string;
|
|
264
|
-
code?: string;
|
|
265
|
-
languageKey?: string | null;
|
|
266
|
-
} | null;
|
|
267
|
-
fake: import("../../../../shared/api/modules/promoLobby/wallet").TApiWalletConvertFake;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
modals: {
|
|
271
|
-
hasOpened: boolean;
|
|
272
|
-
current: import("../../shared/modals").TModalName[];
|
|
273
|
-
isModalReady: boolean;
|
|
274
|
-
};
|
|
275
|
-
notification: {
|
|
276
|
-
viewedRewardDropIds: string[];
|
|
277
|
-
viewedCampaignIds: string[];
|
|
278
|
-
};
|
|
279
|
-
prizeDrop: {
|
|
280
|
-
campaigns: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign[];
|
|
281
|
-
activeCampaign?: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
282
|
-
displayedCampaign?: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign;
|
|
283
|
-
campaignsQueue: import("../../../../shared/model/prizeDrop").TPrizeDropCampaign[];
|
|
284
|
-
prizeDropLiveShownCampaignIds: string[];
|
|
285
|
-
apiLobbyInit: {
|
|
286
|
-
data: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropLobbyInitResponse;
|
|
287
|
-
isPending: boolean;
|
|
288
|
-
error: {
|
|
289
|
-
name: string;
|
|
290
|
-
message: string;
|
|
291
|
-
code?: string;
|
|
292
|
-
languageKey?: string;
|
|
293
|
-
};
|
|
294
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropLobbyInitFake;
|
|
295
|
-
};
|
|
296
|
-
apiJoinCampaign: {
|
|
297
|
-
data: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
298
|
-
isPending: boolean;
|
|
299
|
-
error: {
|
|
300
|
-
name: string;
|
|
301
|
-
message: string;
|
|
302
|
-
code?: string;
|
|
303
|
-
languageKey?: string;
|
|
304
|
-
};
|
|
305
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
306
|
-
};
|
|
307
|
-
socketConnection?: {
|
|
308
|
-
data: null;
|
|
309
|
-
isPending: boolean;
|
|
310
|
-
error: {
|
|
311
|
-
name: string;
|
|
312
|
-
message: string;
|
|
313
|
-
code?: string;
|
|
314
|
-
languageKey?: string;
|
|
315
|
-
};
|
|
316
|
-
fake: import("../../../../shared/api/modules/promoLobby/prizeDrop").TSocketPrizeDropFake;
|
|
317
|
-
} & {
|
|
318
|
-
isSuccess: boolean;
|
|
319
|
-
};
|
|
320
|
-
restData?: import("../../../../shared/api/modules/promoLobby/prizeDrop").TPrizeDropApiData;
|
|
321
|
-
defferedCampaign?: import("../../shared/sockets").TPrizeDropSocketEventPayloadCampaignUpdated;
|
|
322
|
-
};
|
|
323
|
-
promoLobby: {
|
|
324
|
-
activeScreen: import("../model").TPromoLobbyScreen;
|
|
325
|
-
topBarScreen: import("../model/types").TPromoLobbyTopBarScreen | null;
|
|
326
|
-
screenHistory: import("../model/types").TPromoLobbyScreenHistoryEntry[];
|
|
327
|
-
uiBlockers: import("../model/types").TPromoLobbyUIBlocker[];
|
|
328
|
-
lang: string | null;
|
|
329
|
-
};
|
|
330
|
-
rewards: {
|
|
331
|
-
rewards: import("../../../../shared/model/prizeDrop").TReward[];
|
|
332
|
-
rewardsQueue: import("../../entities/rewardsHub").TRewardQueueEntry[];
|
|
333
|
-
winReward: import("../../../../shared/model/prizeDrop").TReward | null;
|
|
334
|
-
hasDefferedRewardModal: boolean;
|
|
335
|
-
apiRewardsList: {
|
|
336
|
-
data: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsListResponse;
|
|
337
|
-
isPending: boolean;
|
|
338
|
-
error: {
|
|
339
|
-
name: string;
|
|
340
|
-
message: string;
|
|
341
|
-
code?: string;
|
|
342
|
-
languageKey?: string;
|
|
343
|
-
} | null;
|
|
344
|
-
fake: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsListFake;
|
|
345
|
-
};
|
|
346
|
-
apiClaim: {
|
|
347
|
-
data: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsClaimResponse;
|
|
348
|
-
isPending: boolean;
|
|
349
|
-
error: {
|
|
350
|
-
name: string;
|
|
351
|
-
message: string;
|
|
352
|
-
code?: string;
|
|
353
|
-
languageKey?: string;
|
|
354
|
-
} | null;
|
|
355
|
-
fake: import("../../../../shared/api/modules/promoLobby/rewards").TApiRewardsClaimFake;
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
transaction: {
|
|
359
|
-
transactions: import("../../entities/transaction").TTransaction[];
|
|
360
|
-
hasMore: boolean;
|
|
361
|
-
currentPage: number;
|
|
362
|
-
apiTransactions: {
|
|
363
|
-
data: import("../../../../shared/api/modules/promoLobby/wallet").TApiTransactionsResponse;
|
|
364
|
-
isPending: boolean;
|
|
365
|
-
error: {
|
|
366
|
-
name: string;
|
|
367
|
-
message: string;
|
|
368
|
-
code?: string;
|
|
369
|
-
languageKey?: string | null;
|
|
370
|
-
} | null;
|
|
371
|
-
fake: import("../../../../shared/api/modules/promoLobby/wallet").TApiTransactionsFake;
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
wallet: import("../../entities/wallet/model/walletSlice").TWalletState;
|
|
375
|
-
} & import("redux-persist/es/persistReducer").PersistPartial>;
|
|
21
|
+
export declare const usePromoLobbySelector: import("react-redux").UseSelector<import("./rootStateTypes").TPromoLobbyRootState>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TPromoLobbyState } from '../../../../modules/promoLobby/app/model/promoLobbySlice';
|
|
2
|
+
import type { TConvertState } from '../../../../modules/promoLobby/entities/convert/model/convertSlice';
|
|
3
|
+
import type { TNotificationState } from '../../../../modules/promoLobby/entities/notification/model/notificationSlice';
|
|
4
|
+
import type { TPrizeDropState } from '../../../../modules/promoLobby/entities/prizeDrop/model/types';
|
|
5
|
+
import type { TRewardsState } from '../../../../modules/promoLobby/entities/rewardsHub/model/rewardsSlice';
|
|
6
|
+
import type { TTransactionState } from '../../../../modules/promoLobby/entities/transaction/model/transactionSlice';
|
|
7
|
+
import type { TWalletState } from '../../../../modules/promoLobby/entities/wallet/model/walletSlice';
|
|
8
|
+
import type { TModalsState } from '../../../../modules/promoLobby/shared/modals/modalsSlice';
|
|
9
|
+
export type TPromoLobbyRootState = {
|
|
10
|
+
convert: TConvertState;
|
|
11
|
+
modals: TModalsState;
|
|
12
|
+
notification: TNotificationState;
|
|
13
|
+
prizeDrop: TPrizeDropState;
|
|
14
|
+
promoLobby: TPromoLobbyState;
|
|
15
|
+
rewards: TRewardsState;
|
|
16
|
+
transaction: TTransactionState;
|
|
17
|
+
wallet: TWalletState;
|
|
18
|
+
};
|
package/dist/types/src/modules/promoLobby/entities/notification/model/notificationSlice.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type TNotificationState = {
|
|
1
|
+
export type TNotificationState = {
|
|
2
2
|
/** Persisted: reward drop ids that user has already seen in Lobby */
|
|
3
3
|
viewedRewardDropIds: string[];
|
|
4
4
|
/** Persisted: campaign ids that user has already seen in Lobby */
|
|
@@ -45,4 +45,3 @@ export declare const notificationSlice: import("@reduxjs/toolkit").Slice<TNotifi
|
|
|
45
45
|
}, "notification", "notification", import("@reduxjs/toolkit").SliceSelectors<TNotificationState>>;
|
|
46
46
|
export declare const markNotificationRewardViewed: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "notification/markNotificationRewardViewed">, markNotificationRewardsViewed: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string[], "notification/markNotificationRewardsViewed">, clearNotificationViewedReward: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "notification/clearNotificationViewedReward">, markNotificationCampaignViewed: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "notification/markNotificationCampaignViewed">, markNotificationCampaignsViewed: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string[], "notification/markNotificationCampaignsViewed">, clearNotificationViewedCampaign: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "notification/clearNotificationViewedCampaign">;
|
|
47
47
|
export declare const notificationReducer: import("redux").Reducer<TNotificationState>;
|
|
48
|
-
export {};
|
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
import { TPromoLobbyThunkAction } from '../../../../../modules/promoLobby/shared/lib/types';
|
|
2
2
|
import { TPrizeDropSocketEventPayloadCampaignUpdated } from '../../../../../modules/promoLobby/shared/sockets';
|
|
3
|
-
import { TApiPrizeDropJoinCampaignError, TApiPrizeDropJoinCampaignFake, TApiPrizeDropJoinCampaignPayload, TApiPrizeDropJoinCampaignResponse, TApiPrizeDropLobbyInitError, TApiPrizeDropLobbyInitFake, TApiPrizeDropLobbyInitResponse,
|
|
3
|
+
import { TApiPrizeDropJoinCampaignError, TApiPrizeDropJoinCampaignFake, TApiPrizeDropJoinCampaignPayload, TApiPrizeDropJoinCampaignResponse, TApiPrizeDropLobbyInitError, TApiPrizeDropLobbyInitFake, TApiPrizeDropLobbyInitResponse, TSocketPrizeDropFake } from '../../../../../shared/api/modules/promoLobby/prizeDrop';
|
|
4
4
|
import { TPrizeDropCampaign } from '../../../../../shared/model/prizeDrop';
|
|
5
|
+
import type { TPrizeDropState } from './types';
|
|
5
6
|
export type TPrizeDropMode = 'live' | 'upcoming' | 'ended';
|
|
6
|
-
|
|
7
|
-
data: D;
|
|
8
|
-
isPending: boolean;
|
|
9
|
-
error: {
|
|
10
|
-
name: string;
|
|
11
|
-
message: string;
|
|
12
|
-
code?: string;
|
|
13
|
-
languageKey?: string;
|
|
14
|
-
};
|
|
15
|
-
fake: F;
|
|
16
|
-
};
|
|
17
|
-
type TPrizeDropsState = {
|
|
18
|
-
campaigns: TPrizeDropCampaign[];
|
|
19
|
-
activeCampaign?: TPrizeDropCampaign;
|
|
20
|
-
displayedCampaign?: TPrizeDropCampaign;
|
|
21
|
-
/** Queue of running campaigns to show join modals for */
|
|
22
|
-
campaignsQueue: TPrizeDropCampaign[];
|
|
23
|
-
/** Campaign IDs for which prizeDropLive modal was already shown (persisted) */
|
|
24
|
-
prizeDropLiveShownCampaignIds: string[];
|
|
25
|
-
apiLobbyInit: TApiData<TApiPrizeDropLobbyInitResponse, TApiPrizeDropLobbyInitFake>;
|
|
26
|
-
apiJoinCampaign: TApiData<TApiPrizeDropJoinCampaignResponse, TApiPrizeDropJoinCampaignFake>;
|
|
27
|
-
socketConnection?: TApiData<null, TSocketPrizeDropFake> & {
|
|
28
|
-
isSuccess: boolean;
|
|
29
|
-
};
|
|
30
|
-
restData?: TPrizeDropApiData;
|
|
31
|
-
defferedCampaign?: TPrizeDropSocketEventPayloadCampaignUpdated;
|
|
32
|
-
};
|
|
33
|
-
export declare const persistPrizeDropTransform: import("redux-persist").Transform<Partial<TPrizeDropsState>, Partial<TPrizeDropsState>, any, any>;
|
|
7
|
+
export declare const persistPrizeDropTransform: import("redux-persist").Transform<Partial<TPrizeDropState>, Partial<TPrizeDropState>, any, any>;
|
|
34
8
|
export declare const setPrizeDropActiveCampaign: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropCampaign, "prizeDrop/setPrizeDropActiveCampaign">, setPrizeDropDisplayedCampaign: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropCampaign, "prizeDrop/setPrizeDropDisplayedCampaign">, setPrizeDropSocketEventCampaignUpdated: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropSocketEventPayloadCampaignUpdated, "prizeDrop/setPrizeDropSocketEventCampaignUpdated">, setApiPrizeDropLobbyInitFake: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TApiPrizeDropLobbyInitFake, "prizeDrop/setApiPrizeDropLobbyInitFake">, setApiPrizeDropJoinCampaignFake: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TApiPrizeDropJoinCampaignFake, "prizeDrop/setApiPrizeDropJoinCampaignFake">, setPrizeDropRestData: import("@reduxjs/toolkit").ActionCreatorWithNonInferrablePayload<"prizeDrop/setPrizeDropRestData">, fetchApiPrizeDropLobbyInit: import("@reduxjs/toolkit").AsyncThunk<TApiPrizeDropLobbyInitResponse, void, {
|
|
35
9
|
rejectValue: TApiPrizeDropLobbyInitError;
|
|
36
10
|
}>, fetchApiPrizeDropJoinCampaign: import("@reduxjs/toolkit").AsyncThunk<TApiPrizeDropJoinCampaignResponse, TApiPrizeDropJoinCampaignPayload, {
|
|
@@ -41,32 +15,31 @@ export declare const setPrizeDropActiveCampaign: import("@reduxjs/toolkit").Acti
|
|
|
41
15
|
campaignId: string;
|
|
42
16
|
}, "prizeDrop/joinPrizeDropCampaign">, setPrizeDropDefferedCampaign: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropSocketEventPayloadCampaignUpdated, "prizeDrop/setPrizeDropDefferedCampaign">, clearPrizeDropDefferedCampaign: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"prizeDrop/clearPrizeDropDefferedCampaign">, setPrizeDropCampaignsQueue: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropCampaign[], "prizeDrop/setPrizeDropCampaignsQueue">, shiftPrizeDropFromCampaignsQueue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"prizeDrop/shiftPrizeDropFromCampaignsQueue">, clearPrizeDropCampaignsQueue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"prizeDrop/clearPrizeDropCampaignsQueue">, addPrizeDropLiveShownCampaignId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, "prizeDrop/addPrizeDropLiveShownCampaignId">, clearPrizeDropJoinCampaignError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"prizeDrop/clearPrizeDropJoinCampaignError">, clearPrizeDropJoinCampaignData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"prizeDrop/clearPrizeDropJoinCampaignData">, setPrizeDropCampaigns: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<TPrizeDropCampaign[], "prizeDrop/setPrizeDropCampaigns">;
|
|
43
17
|
export declare const isPrizeDropActive: import("reselect").Selector<{
|
|
44
|
-
prizeDrop:
|
|
18
|
+
prizeDrop: TPrizeDropState;
|
|
45
19
|
}, boolean, []> & {
|
|
46
|
-
unwrapped: (state:
|
|
20
|
+
unwrapped: (state: TPrizeDropState) => boolean;
|
|
47
21
|
}, getPrizeDropMode: import("reselect").Selector<{
|
|
48
|
-
prizeDrop:
|
|
22
|
+
prizeDrop: TPrizeDropState;
|
|
49
23
|
}, TPrizeDropMode, [campaignId: string]> & {
|
|
50
|
-
unwrapped: (state:
|
|
24
|
+
unwrapped: (state: TPrizeDropState, campaignId: string) => TPrizeDropMode;
|
|
51
25
|
}, isPrizeDropJoined: import("reselect").Selector<{
|
|
52
|
-
prizeDrop:
|
|
26
|
+
prizeDrop: TPrizeDropState;
|
|
53
27
|
}, boolean, []> & {
|
|
54
|
-
unwrapped: (state:
|
|
28
|
+
unwrapped: (state: TPrizeDropState) => boolean;
|
|
55
29
|
}, getPrizeDropMaxPrize: import("reselect").Selector<{
|
|
56
|
-
prizeDrop:
|
|
30
|
+
prizeDrop: TPrizeDropState;
|
|
57
31
|
}, import("../../../../../shared/model/prizeDrop").TPrizeDropCampaignPrize, []> & {
|
|
58
|
-
unwrapped: (state:
|
|
32
|
+
unwrapped: (state: TPrizeDropState) => import("../../../../../shared/model/prizeDrop").TPrizeDropCampaignPrize;
|
|
59
33
|
}, hasPrizeDropActiveCampaign: import("reselect").Selector<{
|
|
60
|
-
prizeDrop:
|
|
34
|
+
prizeDrop: TPrizeDropState;
|
|
61
35
|
}, boolean, []> & {
|
|
62
|
-
unwrapped: (state:
|
|
36
|
+
unwrapped: (state: TPrizeDropState) => boolean;
|
|
63
37
|
}, displayPrizeDropJoinButton: import("reselect").Selector<{
|
|
64
|
-
prizeDrop:
|
|
38
|
+
prizeDrop: TPrizeDropState;
|
|
65
39
|
}, boolean, []> & {
|
|
66
|
-
unwrapped: (state:
|
|
40
|
+
unwrapped: (state: TPrizeDropState) => boolean;
|
|
67
41
|
};
|
|
68
|
-
export declare const prizeDropReducer: import("redux").Reducer<
|
|
42
|
+
export declare const prizeDropReducer: import("redux").Reducer<TPrizeDropState>;
|
|
69
43
|
export declare const handlePrizeDropSocketEventWalletStatus: TPromoLobbyThunkAction;
|
|
70
44
|
/** Close campaign modal and show next from queue if any. Call when user closes prizeDropLive (Later) or prizeDropJoinError. */
|
|
71
45
|
export declare const closePrizeDropCampaignModalAndShowNext: TPromoLobbyThunkAction;
|
|
72
|
-
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { TPrizeDropSocketEventPayloadCampaignUpdated } from '../../../../../modules/promoLobby/shared/sockets';
|
|
2
|
+
import type { TApiPrizeDropJoinCampaignFake, TApiPrizeDropJoinCampaignResponse, TApiPrizeDropLobbyInitFake, TApiPrizeDropLobbyInitResponse, TPrizeDropApiData, TSocketPrizeDropFake } from '../../../../../shared/api/modules/promoLobby/prizeDrop';
|
|
3
|
+
import type { TPrizeDropCampaign } from '../../../../../shared/model/prizeDrop';
|
|
4
|
+
type TApiData<D, F> = {
|
|
5
|
+
data: D;
|
|
6
|
+
isPending: boolean;
|
|
7
|
+
error: {
|
|
8
|
+
name: string;
|
|
9
|
+
message: string;
|
|
10
|
+
code?: string;
|
|
11
|
+
languageKey?: string;
|
|
12
|
+
} | null;
|
|
13
|
+
fake: F | null;
|
|
14
|
+
};
|
|
15
|
+
export type TPrizeDropState = {
|
|
16
|
+
campaigns: TPrizeDropCampaign[];
|
|
17
|
+
activeCampaign?: TPrizeDropCampaign;
|
|
18
|
+
displayedCampaign?: TPrizeDropCampaign;
|
|
19
|
+
/** Queue of running campaigns to show join modals for */
|
|
20
|
+
campaignsQueue: TPrizeDropCampaign[];
|
|
21
|
+
/** Campaign IDs for which prizeDropLive modal was already shown (persisted) */
|
|
22
|
+
prizeDropLiveShownCampaignIds: string[];
|
|
23
|
+
apiLobbyInit: TApiData<TApiPrizeDropLobbyInitResponse, TApiPrizeDropLobbyInitFake>;
|
|
24
|
+
apiJoinCampaign: TApiData<TApiPrizeDropJoinCampaignResponse, TApiPrizeDropJoinCampaignFake>;
|
|
25
|
+
socketConnection?: TApiData<null, TSocketPrizeDropFake> & {
|
|
26
|
+
isSuccess: boolean;
|
|
27
|
+
};
|
|
28
|
+
restData?: TPrizeDropApiData;
|
|
29
|
+
defferedCampaign?: TPrizeDropSocketEventPayloadCampaignUpdated;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -20,7 +20,7 @@ type TApiData<D, F> = {
|
|
|
20
20
|
};
|
|
21
21
|
export declare const REWARD_FLOW_MODAL_NAMES: TModalName[];
|
|
22
22
|
export declare const getRewardModalNameForQueueEntry: (entry: TRewardQueueEntry) => TModalName;
|
|
23
|
-
type TRewardsState = {
|
|
23
|
+
export type TRewardsState = {
|
|
24
24
|
rewards: TReward[];
|
|
25
25
|
rewardsQueue: TRewardQueueEntry[];
|
|
26
26
|
winReward: TReward | null;
|