@truelab/truelogic 3.2.3 → 3.3.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/103.min.js +1 -0
- package/dist/113.min.js +1 -0
- package/dist/172.min.js +1 -0
- package/dist/180.min.js +1 -0
- package/dist/203.min.js +1 -0
- package/dist/266.min.js +1 -0
- package/dist/546.min.js +1 -0
- package/dist/585.min.js +1 -0
- package/dist/59.min.js +1 -0
- package/dist/683.min.js +1 -0
- package/dist/728.min.js +1 -0
- package/dist/756.min.js +1 -0
- package/dist/761.min.js +1 -0
- package/dist/90.min.js +1 -0
- package/dist/929.min.js +1 -0
- package/dist/assets/cash-prize.4ef22f77cafcace9ef38.webp +0 -0
- package/dist/assets/locales/de.json +1 -0
- package/dist/assets/locales/en.json +1 -0
- package/dist/assets/locales/es.json +1 -0
- package/dist/assets/locales/fi.json +1 -0
- package/dist/assets/locales/fr.json +1 -0
- package/dist/assets/locales/hr.json +1 -0
- package/dist/assets/locales/nl.json +1 -0
- package/dist/assets/locales/no.json +1 -0
- package/dist/assets/locales/pt.json +1 -0
- package/dist/assets/locales/ru.json +1 -0
- package/dist/assets/locales/sr.json +1 -0
- package/dist/assets/locales/sv.json +1 -0
- package/dist/assets/locales/th.json +1 -0
- package/dist/assets/locales/tr.json +1 -0
- package/dist/assets/locales/zh.json +1 -0
- package/dist/truelogic.min.css +1 -1
- package/dist/truelogic.min.js +1 -1
- package/dist/types/config/webpack/types.d.ts +2 -0
- package/dist/types/docs/src/components/StorybookPreview.d.ts +4 -2
- package/dist/types/docs/src/theme/MDXComponents.d.ts +1 -9
- package/dist/types/src/app/lib/integration/index.d.ts +1 -0
- package/dist/types/src/app/lib/integration/socketEvents/useSocketEvents.d.ts +1 -0
- package/dist/types/src/app/lib/singletones/publicEmitter.d.ts +4 -1
- package/dist/types/src/app/store.d.ts +148 -28
- package/dist/types/src/entities/autoplay/index.d.ts +1 -0
- package/dist/types/src/entities/autoplay/lib/types.d.ts +1 -0
- package/dist/types/src/entities/complianceSettings/lib/isDisabledByCompliance.d.ts +1 -0
- package/dist/types/src/entities/gameInfo/index.d.ts +2 -11
- package/dist/types/src/entities/gameInfo/model/gameInfoSlice.d.ts +8 -13
- package/dist/types/src/entities/gameInfo/model/presets/getTruelabGamePreset.d.ts +3 -0
- package/dist/types/src/entities/gameInfo/model/types.d.ts +11 -44
- package/dist/types/src/entities/loading/index.d.ts +1 -1
- package/dist/types/src/entities/loading/model/loadingSlice.d.ts +3 -1
- package/dist/types/src/entities/prizeDrop/index.d.ts +7 -2
- package/dist/types/src/entities/prizeDrop/model/prizeDropSlice.d.ts +52 -4
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropBadge.d.ts +7 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropButton.d.ts +7 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/PrizeDropEvents.d.ts +1 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropCountDown.d.ts +5 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsBetStatus.d.ts +5 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsHeader.d.ts +8 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsMinBet.d.ts +6 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsPrizes.d.ts +5 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/components/PrizeDropEventsStats.d.ts +6 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvents/index.d.ts +1 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropInterval.d.ts +7 -0
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropPrizePool.d.ts +1 -0
- package/dist/types/src/entities/prizeDrop/ui/TabsHeader.d.ts +13 -0
- package/dist/types/src/entities/prizeDrop/ui/staticData.d.ts +2 -0
- package/dist/types/src/features/prizeDrop/api/apiPrizeDropCampaignsList.d.ts +2 -0
- package/dist/types/src/features/prizeDrop/api/apiPrizeDropJoinCampaign.d.ts +4 -0
- package/dist/types/src/features/prizeDrop/api/apiPrizeDropSocketCredentials.d.ts +2 -0
- package/dist/types/src/features/prizeDrop/index.d.ts +0 -0
- package/dist/types/src/sandbox/config.d.ts +31 -2
- package/dist/types/src/sandbox/presets/config/prizeDrop.d.ts +2 -0
- package/dist/types/src/sandbox/presets/config/prizeDropFreeRounds.d.ts +2 -0
- package/dist/types/src/sandbox/presets/config/prizeDropRestore.d.ts +2 -0
- package/dist/types/src/sandbox/presets/gameInfo/features.d.ts +3 -3
- package/dist/types/src/sandbox/presets/gameInfo/separator.d.ts +2 -2
- package/dist/types/src/sandbox/presets/index.d.ts +18 -3
- package/dist/types/src/sandbox/presets/prizeDrop/campaignsList.d.ts +4 -0
- package/dist/types/src/sandbox/presets/prizeDrop/joinCampaign.d.ts +3 -0
- package/dist/types/src/sandbox/presets/prizeDrop/socketCredentials.d.ts +2 -0
- package/dist/types/src/shared/api/config/types.d.ts +5 -0
- package/dist/types/src/shared/api/prizeDrop/campaignsList.d.ts +12 -0
- package/dist/types/src/shared/api/prizeDrop/index.d.ts +5 -0
- package/dist/types/src/shared/api/prizeDrop/joinCampaign.d.ts +15 -0
- package/dist/types/src/shared/api/prizeDrop/lib.d.ts +1 -0
- package/dist/types/src/shared/api/prizeDrop/socketCredentials.d.ts +15 -0
- package/dist/types/src/shared/api/prizeDrop/types.d.ts +4 -0
- package/dist/types/src/shared/lib/classes/cashService.d.ts +9 -3
- package/dist/types/src/shared/lib/classes/logger.d.ts +1 -0
- package/dist/types/src/shared/lib/functions/index.d.ts +2 -0
- package/dist/types/src/shared/lib/functions/retryImport.d.ts +1 -0
- package/dist/types/src/shared/lib/functions/tryCatch.d.ts +11 -0
- package/dist/types/src/shared/lib/store/redux.d.ts +74 -14
- package/dist/types/src/shared/lib/tests/decorators/InteractiveEventsDecorator.d.ts +3 -0
- package/dist/types/src/shared/lib/tests/decorators/StyleDecorator.d.ts +3 -3
- package/dist/types/src/shared/lib/tests/index.d.ts +1 -0
- package/dist/types/src/shared/lib/tests/utils/getPreloadedState.d.ts +37 -7
- package/dist/types/src/shared/lib/tests/utils/setupTestStore.d.ts +74 -14
- package/dist/types/src/shared/lib/types/complianceOptions.d.ts +7 -0
- package/dist/types/src/shared/localization/index.d.ts +1 -0
- package/dist/types/src/shared/localization/lib/langsImportFactory.d.ts +2 -0
- package/dist/types/src/shared/model/modals/modalsSlice.d.ts +2 -2
- package/dist/types/src/shared/model/prizeDrop/index.d.ts +1 -0
- package/dist/types/src/shared/model/prizeDrop/types.d.ts +54 -0
- package/dist/types/src/shared/model/welcome/types.d.ts +1 -0
- package/dist/types/src/shared/sockets/index.d.ts +2 -0
- package/dist/types/src/shared/sockets/prizeDropSocketService.d.ts +46 -0
- package/dist/types/src/shared/sockets/types.d.ts +48 -0
- package/dist/types/src/shared/ui/InfoConstructor/InfoConstructor.d.ts +6 -0
- package/dist/types/src/shared/ui/InfoConstructor/index.d.ts +5 -0
- package/dist/types/src/{entities/gameInfo/ui/GameInfoConstructor/items/GameInfoFeatureV1.d.ts → shared/ui/InfoConstructor/items/InfoFeatureV1.d.ts} +6 -5
- package/dist/types/src/{entities/gameInfo/ui/GameInfoConstructor/items/GameInfoFeatureV2.d.ts → shared/ui/InfoConstructor/items/InfoFeatureV2.d.ts} +6 -5
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoListItem.d.ts +12 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoSubTitle.d.ts +15 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoTableCell.d.ts +13 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoTableHead.d.ts +13 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoText.d.ts +13 -0
- package/dist/types/src/shared/ui/InfoConstructor/items/InfoTitle.d.ts +12 -0
- package/dist/types/src/shared/ui/InfoConstructor/model/types.d.ts +43 -0
- package/dist/types/src/truelogic.d.ts +24 -24
- package/dist/types/src/widgets/modals/index.d.ts +3 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/live/ModalPrizeDropLive.d.ts +1 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/live/ModalPrizeDropLive.stories.d.ts +22 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/result/ModalPrizeDropResult.d.ts +1 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/result/ModalPrizeDropResult.stories.d.ts +25 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/success/ModalPrizeDropSuccess.d.ts +1 -0
- package/dist/types/src/widgets/modals/ui/prizeDrop/success/ModalPrizeDropSuccess.stories.d.ts +22 -0
- package/package.json +5 -1
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/GameInfoConstructor.d.ts +0 -1
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoListItem.d.ts +0 -11
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoSubTitle.d.ts +0 -12
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoTableCell.d.ts +0 -11
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoTableHead.d.ts +0 -11
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoText.d.ts +0 -11
- package/dist/types/src/entities/gameInfo/ui/GameInfoConstructor/items/GameInfoTitle.d.ts +0 -11
- package/dist/types/src/entities/prizeDrop/ui/PrizeDropEvent.d.ts +0 -1
- package/dist/types/src/shared/ui/Tabs/Tabs.d.ts +0 -11
- package/dist/types/src/shared/ui/Tabs/index.d.ts +0 -1
|
@@ -6,6 +6,7 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
|
|
|
6
6
|
gameLoadingProgress: number;
|
|
7
7
|
imagesLoadingProgress: number;
|
|
8
8
|
areFontsLoaded: boolean;
|
|
9
|
+
areTranslationsLoaded: boolean;
|
|
9
10
|
isFinishedAnimation: boolean;
|
|
10
11
|
isPreloadSuccess: boolean;
|
|
11
12
|
isWaitingSuccess: boolean;
|
|
@@ -79,7 +80,7 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
|
|
|
79
80
|
isModalReady: boolean;
|
|
80
81
|
serviceErrorName: string;
|
|
81
82
|
serviceErrorMessage: string;
|
|
82
|
-
serviceAutoplayType: import("
|
|
83
|
+
serviceAutoplayType: import("../../../../entities/autoplay").TAutoplayServiceModalType;
|
|
83
84
|
};
|
|
84
85
|
app: {
|
|
85
86
|
screen: import("../../../model/app/appSlice").TScreen;
|
|
@@ -255,13 +256,13 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
|
|
|
255
256
|
fake: import("../../../api/roundsHistory").TApiRoundsHistoryFake;
|
|
256
257
|
};
|
|
257
258
|
gameInfo: {
|
|
258
|
-
|
|
259
|
+
deferredConfig: import("../../../../truelogic").TGameInfoConfig;
|
|
260
|
+
containers: import("../../../ui/InfoConstructor").TInfoContainer[];
|
|
259
261
|
background?: {
|
|
260
262
|
portrait?: string;
|
|
261
263
|
landscape?: string;
|
|
262
264
|
};
|
|
263
|
-
|
|
264
|
-
lastUpdate?: string;
|
|
265
|
+
preset?: import("../../../../entities/gameInfo").TGameInfoPreset;
|
|
265
266
|
};
|
|
266
267
|
apiRoundPlay: {
|
|
267
268
|
data: import("../../../api/round/play").TApiRoundPlayResponse;
|
|
@@ -314,9 +315,38 @@ export declare const getPreloadedState: (storePartial?: DeepPartial<TRootState>)
|
|
|
314
315
|
showed?: boolean;
|
|
315
316
|
};
|
|
316
317
|
prizeDrop: {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
rulesContainers: import("../../../ui/InfoConstructor").TInfoContainer[];
|
|
319
|
+
campaign?: import("../../../model/prizeDrop").TPrizeDropCampaign;
|
|
320
|
+
winDropItem?: import("../../../model/prizeDrop").TPrizeDropWinItem;
|
|
321
|
+
apiCampaignsList: {
|
|
322
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropCampaignsListResponse;
|
|
323
|
+
isPending: boolean;
|
|
324
|
+
error: {
|
|
325
|
+
name: string;
|
|
326
|
+
message: string;
|
|
327
|
+
};
|
|
328
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropCampaignsListFake;
|
|
329
|
+
};
|
|
330
|
+
apiJoinCampaign: {
|
|
331
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
332
|
+
isPending: boolean;
|
|
333
|
+
error: {
|
|
334
|
+
name: string;
|
|
335
|
+
message: string;
|
|
336
|
+
};
|
|
337
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
338
|
+
};
|
|
339
|
+
apiSocketCredentials: {
|
|
340
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropSocketCredentialsResponse;
|
|
341
|
+
isPending: boolean;
|
|
342
|
+
error: {
|
|
343
|
+
name: string;
|
|
344
|
+
message: string;
|
|
345
|
+
};
|
|
346
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropSocketCredentialsFake;
|
|
320
347
|
};
|
|
348
|
+
socketConnection?: import("../../../sockets").TPrizeDropSocketConnection;
|
|
349
|
+
restData?: import("../../../api/prizeDrop").TPrizeDropApiData;
|
|
350
|
+
hasDefferedModal?: boolean;
|
|
321
351
|
};
|
|
322
352
|
} & import("redux-persist/es/persistReducer").PersistPartial;
|
|
@@ -6,6 +6,7 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
|
|
|
6
6
|
gameLoadingProgress: number;
|
|
7
7
|
imagesLoadingProgress: number;
|
|
8
8
|
areFontsLoaded: boolean;
|
|
9
|
+
areTranslationsLoaded: boolean;
|
|
9
10
|
isFinishedAnimation: boolean;
|
|
10
11
|
isPreloadSuccess: boolean;
|
|
11
12
|
isWaitingSuccess: boolean;
|
|
@@ -79,7 +80,7 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
|
|
|
79
80
|
isModalReady: boolean;
|
|
80
81
|
serviceErrorName: string;
|
|
81
82
|
serviceErrorMessage: string;
|
|
82
|
-
serviceAutoplayType: import("
|
|
83
|
+
serviceAutoplayType: import("../../../../entities/autoplay").TAutoplayServiceModalType;
|
|
83
84
|
};
|
|
84
85
|
app: {
|
|
85
86
|
screen: import("../../../model/app/appSlice").TScreen;
|
|
@@ -255,13 +256,13 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
|
|
|
255
256
|
fake: import("../../../api/roundsHistory").TApiRoundsHistoryFake;
|
|
256
257
|
};
|
|
257
258
|
gameInfo: {
|
|
258
|
-
|
|
259
|
+
deferredConfig: import("../../../../truelogic").TGameInfoConfig;
|
|
260
|
+
containers: import("../../../ui/InfoConstructor").TInfoContainer[];
|
|
259
261
|
background?: {
|
|
260
262
|
portrait?: string;
|
|
261
263
|
landscape?: string;
|
|
262
264
|
};
|
|
263
|
-
|
|
264
|
-
lastUpdate?: string;
|
|
265
|
+
preset?: import("../../../../entities/gameInfo").TGameInfoPreset;
|
|
265
266
|
};
|
|
266
267
|
apiRoundPlay: {
|
|
267
268
|
data: import("../../../api/round/play").TApiRoundPlayResponse;
|
|
@@ -314,10 +315,39 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
|
|
|
314
315
|
showed?: boolean;
|
|
315
316
|
};
|
|
316
317
|
prizeDrop: {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
rulesContainers: import("../../../ui/InfoConstructor").TInfoContainer[];
|
|
319
|
+
campaign?: import("../../../model/prizeDrop").TPrizeDropCampaign;
|
|
320
|
+
winDropItem?: import("../../../model/prizeDrop").TPrizeDropWinItem;
|
|
321
|
+
apiCampaignsList: {
|
|
322
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropCampaignsListResponse;
|
|
323
|
+
isPending: boolean;
|
|
324
|
+
error: {
|
|
325
|
+
name: string;
|
|
326
|
+
message: string;
|
|
327
|
+
};
|
|
328
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropCampaignsListFake;
|
|
329
|
+
};
|
|
330
|
+
apiJoinCampaign: {
|
|
331
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
332
|
+
isPending: boolean;
|
|
333
|
+
error: {
|
|
334
|
+
name: string;
|
|
335
|
+
message: string;
|
|
336
|
+
};
|
|
337
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
320
338
|
};
|
|
339
|
+
apiSocketCredentials: {
|
|
340
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropSocketCredentialsResponse;
|
|
341
|
+
isPending: boolean;
|
|
342
|
+
error: {
|
|
343
|
+
name: string;
|
|
344
|
+
message: string;
|
|
345
|
+
};
|
|
346
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropSocketCredentialsFake;
|
|
347
|
+
};
|
|
348
|
+
socketConnection?: import("../../../sockets").TPrizeDropSocketConnection;
|
|
349
|
+
restData?: import("../../../api/prizeDrop").TPrizeDropApiData;
|
|
350
|
+
hasDefferedModal?: boolean;
|
|
321
351
|
};
|
|
322
352
|
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
323
353
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
@@ -328,6 +358,7 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
|
|
|
328
358
|
gameLoadingProgress: number;
|
|
329
359
|
imagesLoadingProgress: number;
|
|
330
360
|
areFontsLoaded: boolean;
|
|
361
|
+
areTranslationsLoaded: boolean;
|
|
331
362
|
isFinishedAnimation: boolean;
|
|
332
363
|
isPreloadSuccess: boolean;
|
|
333
364
|
isWaitingSuccess: boolean;
|
|
@@ -401,7 +432,7 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
|
|
|
401
432
|
isModalReady: boolean;
|
|
402
433
|
serviceErrorName: string;
|
|
403
434
|
serviceErrorMessage: string;
|
|
404
|
-
serviceAutoplayType: import("
|
|
435
|
+
serviceAutoplayType: import("../../../../entities/autoplay").TAutoplayServiceModalType;
|
|
405
436
|
};
|
|
406
437
|
app: {
|
|
407
438
|
screen: import("../../../model/app/appSlice").TScreen;
|
|
@@ -577,13 +608,13 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
|
|
|
577
608
|
fake: import("../../../api/roundsHistory").TApiRoundsHistoryFake;
|
|
578
609
|
};
|
|
579
610
|
gameInfo: {
|
|
580
|
-
|
|
611
|
+
deferredConfig: import("../../../../truelogic").TGameInfoConfig;
|
|
612
|
+
containers: import("../../../ui/InfoConstructor").TInfoContainer[];
|
|
581
613
|
background?: {
|
|
582
614
|
portrait?: string;
|
|
583
615
|
landscape?: string;
|
|
584
616
|
};
|
|
585
|
-
|
|
586
|
-
lastUpdate?: string;
|
|
617
|
+
preset?: import("../../../../entities/gameInfo").TGameInfoPreset;
|
|
587
618
|
};
|
|
588
619
|
apiRoundPlay: {
|
|
589
620
|
data: import("../../../api/round/play").TApiRoundPlayResponse;
|
|
@@ -636,10 +667,39 @@ export declare const setupTestStore: (storePartial?: DeepPartial<TRootState>) =>
|
|
|
636
667
|
showed?: boolean;
|
|
637
668
|
};
|
|
638
669
|
prizeDrop: {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
670
|
+
rulesContainers: import("../../../ui/InfoConstructor").TInfoContainer[];
|
|
671
|
+
campaign?: import("../../../model/prizeDrop").TPrizeDropCampaign;
|
|
672
|
+
winDropItem?: import("../../../model/prizeDrop").TPrizeDropWinItem;
|
|
673
|
+
apiCampaignsList: {
|
|
674
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropCampaignsListResponse;
|
|
675
|
+
isPending: boolean;
|
|
676
|
+
error: {
|
|
677
|
+
name: string;
|
|
678
|
+
message: string;
|
|
679
|
+
};
|
|
680
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropCampaignsListFake;
|
|
681
|
+
};
|
|
682
|
+
apiJoinCampaign: {
|
|
683
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropJoinCampaignResponse;
|
|
684
|
+
isPending: boolean;
|
|
685
|
+
error: {
|
|
686
|
+
name: string;
|
|
687
|
+
message: string;
|
|
688
|
+
};
|
|
689
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropJoinCampaignFake;
|
|
690
|
+
};
|
|
691
|
+
apiSocketCredentials: {
|
|
692
|
+
data: import("../../../api/prizeDrop").TApiPrizeDropSocketCredentialsResponse;
|
|
693
|
+
isPending: boolean;
|
|
694
|
+
error: {
|
|
695
|
+
name: string;
|
|
696
|
+
message: string;
|
|
697
|
+
};
|
|
698
|
+
fake: import("../../../api/prizeDrop").TApiPrizeDropSocketCredentialsFake;
|
|
642
699
|
};
|
|
700
|
+
socketConnection?: import("../../../sockets").TPrizeDropSocketConnection;
|
|
701
|
+
restData?: import("../../../api/prizeDrop").TPrizeDropApiData;
|
|
702
|
+
hasDefferedModal?: boolean;
|
|
643
703
|
};
|
|
644
704
|
}, undefined, import("redux").UnknownAction>;
|
|
645
705
|
}>, import("redux").StoreEnhancer]>>;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
/** @deprecated */
|
|
1
2
|
export type TComplianceOptions = {
|
|
3
|
+
/** @deprecated */
|
|
2
4
|
compliance?: {
|
|
5
|
+
/** @deprecated */
|
|
3
6
|
isHidden?: boolean;
|
|
7
|
+
/** @deprecated */
|
|
4
8
|
isBuyBonusInfo?: boolean;
|
|
9
|
+
/** @deprecated */
|
|
5
10
|
isDesktopInfo?: boolean;
|
|
11
|
+
/** @deprecated */
|
|
6
12
|
isAutoPlayInfo?: boolean;
|
|
13
|
+
/** @deprecated */
|
|
7
14
|
isFastPlayInfo?: boolean;
|
|
8
15
|
};
|
|
9
16
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { langsImportFactory } from './lib/langsImportFactory';
|
|
1
2
|
export type { TLangText, TLocalizationSettings, TTranslations } from './lib/types';
|
|
2
3
|
export { useTranslation } from './lib/useTranslation';
|
|
3
4
|
export { localizationReducer, setLocalizationConfig } from './model/localizationSlice';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { TAutoplayServiceModalType } from "../../../entities/autoplay";
|
|
1
2
|
import { TAppThunkAction } from "../../lib/store";
|
|
2
3
|
import { TMenuConfig } from '../menu';
|
|
3
|
-
export type
|
|
4
|
-
export type TModalName = 'menu' | 'bonusFeature' | 'autoplay' | 'bonusConfirm' | 'realityCheck' | 'realityCheckReminder' | 'settings' | 'payTable' | 'roundsHistory' | 'roundDetails' | 'replay' | 'serviceMaxBet' | 'serviceInsufficientFunds' | 'serviceRestore' | 'serviceMaxWin' | 'serviceQuitTheGame' | 'serviceConnectionLost' | 'serviceError' | 'serviceFatalError' | 'serviceAutoplay' | 'gameInfo' | 'freeRounds' | 'freeRoundsResult' | 'prizeDropCongratulation' | 'prizeDropUnclaimed' | 'prizeDrop';
|
|
4
|
+
export type TModalName = 'menu' | 'bonusFeature' | 'autoplay' | 'bonusConfirm' | 'realityCheck' | 'realityCheckReminder' | 'settings' | 'payTable' | 'roundsHistory' | 'roundDetails' | 'replay' | 'serviceMaxBet' | 'serviceInsufficientFunds' | 'serviceRestore' | 'serviceMaxWin' | 'serviceQuitTheGame' | 'serviceConnectionLost' | 'serviceError' | 'serviceFatalError' | 'serviceAutoplay' | 'gameInfo' | 'freeRounds' | 'freeRoundsResult' | 'prizeDropCongratulation' | 'prizeDropUnclaimed' | 'prizeDrop' | 'prizeDropSuccess' | 'prizeDropResult' | 'prizeDropLive';
|
|
5
5
|
type TModalConfigs = {
|
|
6
6
|
menu: TMenuConfig;
|
|
7
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TPrizeDropCampaign, TPrizeDropCampaignPrize, TPrizeDropCampaignStatus, TPrizeDropWinItem } from './types';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type TPrizeDropWinItem = {
|
|
2
|
+
direct: boolean;
|
|
3
|
+
campaignId: string;
|
|
4
|
+
dropId: string;
|
|
5
|
+
prize: {
|
|
6
|
+
prizeId: string;
|
|
7
|
+
type: string;
|
|
8
|
+
configCash?: {
|
|
9
|
+
cash: {
|
|
10
|
+
value: number;
|
|
11
|
+
currency?: string;
|
|
12
|
+
decimals: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type TPrizeDropCampaignPrize = {
|
|
18
|
+
prizeId: string;
|
|
19
|
+
type: 'cash';
|
|
20
|
+
topPrize: boolean;
|
|
21
|
+
totalCount: number;
|
|
22
|
+
leftCount: number;
|
|
23
|
+
configCash?: {
|
|
24
|
+
cash?: {
|
|
25
|
+
value: number;
|
|
26
|
+
currency: string;
|
|
27
|
+
decimals: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type TPrizeDropCampaignStatus = 'scheduled' | 'running' | 'finished' | 'cancelled';
|
|
32
|
+
export type TPrizeDropCampaign = {
|
|
33
|
+
campaignId: string;
|
|
34
|
+
joined: boolean;
|
|
35
|
+
status: TPrizeDropCampaignStatus;
|
|
36
|
+
dateStart: string;
|
|
37
|
+
dateEnd: string;
|
|
38
|
+
betAmount: number;
|
|
39
|
+
betTypes: string[];
|
|
40
|
+
prizesTotalCount: number;
|
|
41
|
+
prizesLeftCount: number;
|
|
42
|
+
winnersCount: number;
|
|
43
|
+
texts: {
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
rules: string;
|
|
47
|
+
};
|
|
48
|
+
prizes: TPrizeDropCampaignPrize[];
|
|
49
|
+
cashPrizePool?: {
|
|
50
|
+
value: number;
|
|
51
|
+
currency: string;
|
|
52
|
+
decimals: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EPrizeDropSocketEvents, TPrizeDropSocketEventPayloadCampaignUpdated, TPrizeDropSocketEventPayloadDrop } from './types';
|
|
2
|
+
type TEventMap = {
|
|
3
|
+
[EPrizeDropSocketEvents.CAMPAIGN_UPDATED]: TPrizeDropSocketEventPayloadCampaignUpdated;
|
|
4
|
+
[EPrizeDropSocketEvents.DROP]: TPrizeDropSocketEventPayloadDrop;
|
|
5
|
+
};
|
|
6
|
+
type TTypedEvent<K extends keyof TEventMap> = {
|
|
7
|
+
type: K;
|
|
8
|
+
payload: TEventMap[K];
|
|
9
|
+
timestamp?: number;
|
|
10
|
+
};
|
|
11
|
+
type TEventCallback<K extends keyof TEventMap> = (event: TTypedEvent<K>) => void;
|
|
12
|
+
type TConnectParams = {
|
|
13
|
+
url: string;
|
|
14
|
+
token: string;
|
|
15
|
+
campaignId: string;
|
|
16
|
+
};
|
|
17
|
+
declare class PrizeDropSocketService {
|
|
18
|
+
private socket;
|
|
19
|
+
private callbacks;
|
|
20
|
+
/**
|
|
21
|
+
* Opens Socket.io connection
|
|
22
|
+
*/
|
|
23
|
+
connect({ url, token, campaignId }: TConnectParams): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Disconnects the Socket.io connection
|
|
26
|
+
*/
|
|
27
|
+
disconnect(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Sends an event via Socket.io
|
|
30
|
+
*/
|
|
31
|
+
send<K extends keyof TEventMap>(event: TTypedEvent<K>): void;
|
|
32
|
+
/**
|
|
33
|
+
* Register a callback for a specific event type
|
|
34
|
+
*/
|
|
35
|
+
on<K extends keyof TEventMap>(eventType: K, cb: TEventCallback<K>): void;
|
|
36
|
+
/**
|
|
37
|
+
* Remove a previously registered callback
|
|
38
|
+
*/
|
|
39
|
+
off<K extends keyof TEventMap>(eventType: K, cb: TEventCallback<K>): void;
|
|
40
|
+
/**
|
|
41
|
+
* Emits an event to all registered callbacks
|
|
42
|
+
*/
|
|
43
|
+
private emit;
|
|
44
|
+
}
|
|
45
|
+
export declare const prizeDropSocketService: PrizeDropSocketService;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { TPrizeDropCampaignStatus } from '../model/prizeDrop';
|
|
2
|
+
export declare enum EPrizeDropSocketEvents {
|
|
3
|
+
CAMPAIGN_UPDATED = "campaignUpdated",
|
|
4
|
+
DROP = "drop"
|
|
5
|
+
}
|
|
6
|
+
export type TPrizeDropSocketConnection = {
|
|
7
|
+
url: string;
|
|
8
|
+
token: string;
|
|
9
|
+
isPending: boolean;
|
|
10
|
+
isSuccess: boolean;
|
|
11
|
+
error: {
|
|
12
|
+
name: string;
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type TPrizeDropSocketEventPayloadCampaignUpdated = {
|
|
17
|
+
campaignId: string;
|
|
18
|
+
status: TPrizeDropCampaignStatus;
|
|
19
|
+
prizesLeftCount: number;
|
|
20
|
+
winnersCount: number;
|
|
21
|
+
prizes: [
|
|
22
|
+
{
|
|
23
|
+
prizeId: string;
|
|
24
|
+
totalCount: number;
|
|
25
|
+
leftCount: number;
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
};
|
|
29
|
+
export type TPrizeDropSocketEventPayloadDrop = {
|
|
30
|
+
drops: [
|
|
31
|
+
{
|
|
32
|
+
direct: boolean;
|
|
33
|
+
campaignId: string;
|
|
34
|
+
dropId: string;
|
|
35
|
+
prize: {
|
|
36
|
+
prizeId: string;
|
|
37
|
+
type: string;
|
|
38
|
+
configCash?: {
|
|
39
|
+
cash: {
|
|
40
|
+
value: number;
|
|
41
|
+
currency?: string;
|
|
42
|
+
decimals: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { EFeatureAlignmentV1Type, TInfoFeatureV1 } from './items/InfoFeatureV1';
|
|
2
|
+
export { EFeatureWidthV2Type, TInfoFeatureV2 } from './items/InfoFeatureV2';
|
|
3
|
+
export { TInfoListItem } from './items/InfoListItem';
|
|
4
|
+
export { InfoText } from './items/InfoText';
|
|
5
|
+
export { TInfoContainer, TInfoItem, TInfoSeparator } from './model/types';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { TComplianceOptions } from "
|
|
2
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
3
3
|
export declare enum EFeatureAlignmentV1Type {
|
|
4
4
|
left = "left",
|
|
5
5
|
right = "right"
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type TInfoFeatureV1 = {
|
|
8
8
|
type: 'feature-v1';
|
|
9
9
|
alignment: `${EFeatureAlignmentV1Type}`;
|
|
10
10
|
img: string;
|
|
11
11
|
title?: string;
|
|
12
12
|
description?: string;
|
|
13
13
|
lineBreak?: boolean;
|
|
14
|
+
isHidden?: boolean;
|
|
14
15
|
} & TComplianceOptions;
|
|
15
|
-
type
|
|
16
|
-
item:
|
|
16
|
+
type TInfoFeatureV1Props = {
|
|
17
|
+
item: TInfoFeatureV1;
|
|
17
18
|
};
|
|
18
|
-
export declare const
|
|
19
|
+
export declare const InfoFeatureV1: FC<TInfoFeatureV1Props>;
|
|
19
20
|
export {};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { TComplianceOptions } from "
|
|
2
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
3
3
|
export declare enum EFeatureWidthV2Type {
|
|
4
4
|
half = "half",
|
|
5
5
|
full = "full"
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type TInfoFeatureV2 = {
|
|
8
8
|
type: 'feature-v2';
|
|
9
9
|
img: string;
|
|
10
10
|
width?: `${EFeatureWidthV2Type}`;
|
|
11
11
|
title?: string;
|
|
12
12
|
description?: string;
|
|
13
13
|
lineBreak?: boolean;
|
|
14
|
+
isHidden?: boolean;
|
|
14
15
|
} & TComplianceOptions;
|
|
15
|
-
type
|
|
16
|
-
item:
|
|
16
|
+
type TInfoFeatureV2Props = {
|
|
17
|
+
item: TInfoFeatureV2;
|
|
17
18
|
};
|
|
18
|
-
export declare const
|
|
19
|
+
export declare const InfoFeatureV2: FC<TInfoFeatureV2Props>;
|
|
19
20
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
3
|
+
export type TInfoListItem = {
|
|
4
|
+
type: 'list-item';
|
|
5
|
+
text: string;
|
|
6
|
+
isHidden?: boolean;
|
|
7
|
+
} & TComplianceOptions;
|
|
8
|
+
type TInfoListItemProps = {
|
|
9
|
+
item: TInfoListItem;
|
|
10
|
+
};
|
|
11
|
+
export declare const InfoListItem: FC<TInfoListItemProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
3
|
+
export type TInfoSubTitle = {
|
|
4
|
+
type: 'subtitle';
|
|
5
|
+
text: string;
|
|
6
|
+
noMargin?: boolean;
|
|
7
|
+
isHidden?: boolean;
|
|
8
|
+
} & TComplianceOptions;
|
|
9
|
+
type TInfoSubTitleProps = {
|
|
10
|
+
item: TInfoSubTitle;
|
|
11
|
+
isFirstElement: boolean;
|
|
12
|
+
noMargin?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const InfoSubTitle: FC<TInfoSubTitleProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
3
|
+
export type TInfoTableCell = {
|
|
4
|
+
type: 'table-cell';
|
|
5
|
+
values: [string, string];
|
|
6
|
+
equalWidthColumns?: boolean;
|
|
7
|
+
isHidden?: boolean;
|
|
8
|
+
} & TComplianceOptions;
|
|
9
|
+
type TInfoTableCellProps = {
|
|
10
|
+
item: TInfoTableCell;
|
|
11
|
+
};
|
|
12
|
+
export declare const InfoTableCell: FC<TInfoTableCellProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
3
|
+
export type TInfoTableHead = {
|
|
4
|
+
type: 'table-head';
|
|
5
|
+
values: [string, string];
|
|
6
|
+
equalWidthColumns?: boolean;
|
|
7
|
+
isHidden?: boolean;
|
|
8
|
+
} & TComplianceOptions;
|
|
9
|
+
type TInfoTableHeadProps = {
|
|
10
|
+
item: TInfoTableHead;
|
|
11
|
+
};
|
|
12
|
+
export declare const InfoTableHead: FC<TInfoTableHeadProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
3
|
+
export type TInfoText = {
|
|
4
|
+
type: 'text';
|
|
5
|
+
text: string;
|
|
6
|
+
dangerouslySetInnerHTML?: boolean;
|
|
7
|
+
isHidden?: boolean;
|
|
8
|
+
} & TComplianceOptions;
|
|
9
|
+
type TInfoTextProps = {
|
|
10
|
+
item: TInfoText;
|
|
11
|
+
};
|
|
12
|
+
export declare const InfoText: FC<TInfoTextProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
3
|
+
export type TInfoTitle = {
|
|
4
|
+
type: 'title';
|
|
5
|
+
text: string;
|
|
6
|
+
isHidden?: boolean;
|
|
7
|
+
} & TComplianceOptions;
|
|
8
|
+
type TInfoTitleProps = {
|
|
9
|
+
item: TInfoTitle;
|
|
10
|
+
};
|
|
11
|
+
export declare const InfoTitle: FC<TInfoTitleProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TComplianceOptions } from "../../../lib/types/complianceOptions";
|
|
2
|
+
import { TInfoFeatureV1 } from '../items/InfoFeatureV1';
|
|
3
|
+
import { TInfoFeatureV2 } from '../items/InfoFeatureV2';
|
|
4
|
+
import { TInfoListItem } from '../items/InfoListItem';
|
|
5
|
+
import { TInfoSubTitle } from '../items/InfoSubTitle';
|
|
6
|
+
import { TInfoTableCell } from '../items/InfoTableCell';
|
|
7
|
+
import { TInfoTableHead } from '../items/InfoTableHead';
|
|
8
|
+
import { TInfoText } from '../items/InfoText';
|
|
9
|
+
import { TInfoTitle } from '../items/InfoTitle';
|
|
10
|
+
export type TInfoSeparator = {
|
|
11
|
+
type: 'separator';
|
|
12
|
+
size?: 'default' | 'small';
|
|
13
|
+
isHidden?: boolean;
|
|
14
|
+
} & TComplianceOptions;
|
|
15
|
+
export type TInfoItem = TInfoTitle | TInfoFeatureV1 | TInfoFeatureV2 | TInfoSeparator | TInfoSubTitle | TInfoText | TInfoListItem | TInfoTableHead | TInfoTableCell;
|
|
16
|
+
export type TInfoContainer = {
|
|
17
|
+
type: TInfoTitle['type'];
|
|
18
|
+
items: TInfoTitle[];
|
|
19
|
+
} | {
|
|
20
|
+
type: TInfoFeatureV1['type'];
|
|
21
|
+
items: TInfoFeatureV1[];
|
|
22
|
+
} | {
|
|
23
|
+
type: TInfoFeatureV2['type'];
|
|
24
|
+
items: TInfoFeatureV2[];
|
|
25
|
+
} | {
|
|
26
|
+
type: TInfoSeparator['type'];
|
|
27
|
+
items: TInfoSeparator[];
|
|
28
|
+
} | {
|
|
29
|
+
type: TInfoSubTitle['type'];
|
|
30
|
+
items: TInfoSubTitle[];
|
|
31
|
+
} | {
|
|
32
|
+
type: TInfoText['type'];
|
|
33
|
+
items: TInfoText[];
|
|
34
|
+
} | {
|
|
35
|
+
type: TInfoListItem['type'];
|
|
36
|
+
items: TInfoListItem[];
|
|
37
|
+
} | {
|
|
38
|
+
type: TInfoTableHead['type'];
|
|
39
|
+
items: TInfoTableHead[];
|
|
40
|
+
} | {
|
|
41
|
+
type: TInfoTableCell['type'];
|
|
42
|
+
items: TInfoTableCell[];
|
|
43
|
+
};
|