react-memory-optimization 0.0.75 → 0.0.77
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/bundle.js +1 -1
- package/dist/lib/service/responseAdapter/utils.js +2 -1
- package/dist/lib/store/casino/entities/casinoTournaments/types.d.ts +4 -0
- package/dist/lib/store/casino/entities/games/types.d.ts +4 -3
- package/dist/lib/store/casino/services/index.d.ts +5 -3
- package/package.json +1 -1
|
@@ -38,13 +38,14 @@ const adaptedCasinoTournament = (result) => {
|
|
|
38
38
|
Object.values(result.tournaments).forEach(({ tournament }) => {
|
|
39
39
|
const { startDate, endDate,
|
|
40
40
|
// @ts-ignore
|
|
41
|
-
players = [], amount, status, id, } = tournament;
|
|
41
|
+
players = [], amount, status, id, position, } = tournament;
|
|
42
42
|
const data = {
|
|
43
43
|
id,
|
|
44
44
|
status,
|
|
45
45
|
startDate: startDate * 1000,
|
|
46
46
|
endDate: endDate * 1000,
|
|
47
47
|
amount: amount / 100,
|
|
48
|
+
position,
|
|
48
49
|
};
|
|
49
50
|
const adaptedPlayers = players.map((p) => (Object.assign(Object.assign({}, p), { rolled: p.rolled / 100, payout: p.payout / 100, payoutBonus: p.payoutBonus / 100 })));
|
|
50
51
|
const tournamentInfo = Object.assign(Object.assign({}, data), { players: adaptedPlayers, playerLength: adaptedPlayers.length });
|
|
@@ -10,6 +10,7 @@ export type TournamentInfo = {
|
|
|
10
10
|
players: TournamentPlayer[];
|
|
11
11
|
startDate: number;
|
|
12
12
|
status: ECasinoTournamentStatus;
|
|
13
|
+
position: number;
|
|
13
14
|
};
|
|
14
15
|
export type TournamentPlayer = {
|
|
15
16
|
id: number;
|
|
@@ -60,6 +61,7 @@ export type ResponseProviderTournament = {
|
|
|
60
61
|
};
|
|
61
62
|
startDate: string;
|
|
62
63
|
endDate: string;
|
|
64
|
+
position: number;
|
|
63
65
|
rules: {
|
|
64
66
|
[key: string]: string[];
|
|
65
67
|
};
|
|
@@ -67,6 +69,7 @@ export type ResponseProviderTournament = {
|
|
|
67
69
|
export type ProviderTournament = Omit<ResponseProviderTournament, 'startDate' | 'endDate'> & {
|
|
68
70
|
startDate: number;
|
|
69
71
|
endDate: number;
|
|
72
|
+
position: number;
|
|
70
73
|
};
|
|
71
74
|
export type RequestCommands = {
|
|
72
75
|
socket: boolean;
|
|
@@ -156,6 +159,7 @@ export type NewFormatProviderTournamentEntity = {
|
|
|
156
159
|
rules: {
|
|
157
160
|
[en: string]: string[];
|
|
158
161
|
};
|
|
162
|
+
position: number;
|
|
159
163
|
};
|
|
160
164
|
export type NewFormatStore = {
|
|
161
165
|
active: NewFormatProviderTournamentEntity[];
|
|
@@ -50,6 +50,7 @@ export type ObservableSettingGame = {
|
|
|
50
50
|
isGameInfo: true;
|
|
51
51
|
gameId: number;
|
|
52
52
|
force?: boolean;
|
|
53
|
+
relations?: ('category' | 'category.subCategory')[];
|
|
53
54
|
};
|
|
54
55
|
export type ObservableSettingGameDemoMode = {
|
|
55
56
|
isGameDemoMode: true;
|
|
@@ -63,15 +64,15 @@ export type ObservableSettingGames = {
|
|
|
63
64
|
page: number;
|
|
64
65
|
providerId: number | null;
|
|
65
66
|
limit: number;
|
|
66
|
-
excludeGameId?: number;
|
|
67
67
|
search: string;
|
|
68
68
|
sortType?: ESortType;
|
|
69
69
|
providerNames: string[];
|
|
70
|
+
excludeGameIds?: number[];
|
|
70
71
|
};
|
|
71
72
|
export type GetSearchingGamesProps = {
|
|
72
73
|
providerId: number;
|
|
73
74
|
isMobile: boolean;
|
|
74
|
-
|
|
75
|
+
excludeGameIds?: number[];
|
|
75
76
|
search: string;
|
|
76
77
|
sortFn: (g1: AdaptedGame, g2: AdaptedGame) => number;
|
|
77
78
|
};
|
|
@@ -80,7 +81,7 @@ export type ObservableCasinoProviderGamesSetting = {
|
|
|
80
81
|
page: number;
|
|
81
82
|
search?: string;
|
|
82
83
|
providerId?: number | null;
|
|
83
|
-
|
|
84
|
+
excludeGameIds?: number[];
|
|
84
85
|
limit: number;
|
|
85
86
|
isMobile: boolean;
|
|
86
87
|
sortType?: ESortType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Casino } from '..';
|
|
2
|
-
import { CasinoCategory, ECasinoCategoryIds, ResponseEncodeConfig } from '../entities/categories/types';
|
|
2
|
+
import { CasinoCategory, CasinoSubCategory, ECasinoCategoryIds, ResponseEncodeConfig } from '../entities/categories/types';
|
|
3
3
|
import { AdaptedGame, AdaptedGames, EAdaptedGameSpecialLabel, GetSearchingGamesProps } from '../entities/games/types';
|
|
4
4
|
import { GetProviderInfo, Provider, Providers } from '../entities/providers/types';
|
|
5
5
|
import { InitialProviders, InstanceProviders } from '../types';
|
|
@@ -19,7 +19,7 @@ export declare class CasinoServices {
|
|
|
19
19
|
startCasinoConfigSubscribers(): void;
|
|
20
20
|
getAvailableGames(isMobile: boolean): AdaptedGames;
|
|
21
21
|
getGamesByIds(gameIds: number[], isMobile: boolean): AdaptedGame[];
|
|
22
|
-
getGamesByProvider(isMobile: boolean, providerId: number,
|
|
22
|
+
getGamesByProvider(isMobile: boolean, providerId: number, excludeGameIds?: number[]): AdaptedGame[];
|
|
23
23
|
getGameById(isMobile: boolean, isForce?: boolean): (gameId: number) => AdaptedGame;
|
|
24
24
|
filteredProviders(restrictionProviders: InstanceProviders, currentProviders: Providers | InitialProviders): Providers;
|
|
25
25
|
getSubCategoryGames(categoryId: number, subCategoryId: number, isMobile: boolean): number[];
|
|
@@ -34,7 +34,7 @@ export declare class CasinoServices {
|
|
|
34
34
|
haveDesktopGame: boolean;
|
|
35
35
|
haveMobileGame: boolean;
|
|
36
36
|
};
|
|
37
|
-
getSearchingGames({ providerId, isMobile,
|
|
37
|
+
getSearchingGames({ providerId, isMobile, excludeGameIds, search, sortFn, }: GetSearchingGamesProps): number[];
|
|
38
38
|
isWebPImg(): boolean;
|
|
39
39
|
isVerticalImg(): boolean;
|
|
40
40
|
filteredCasinoGames(providers: InitialProviders): void;
|
|
@@ -69,4 +69,6 @@ export declare class CasinoServices {
|
|
|
69
69
|
getGamesSortFnByType(type: ESortType): (a: AdaptedGame, b: AdaptedGame) => number;
|
|
70
70
|
fetchingPromotions(path: string): Promise<null | PromotionEntity>;
|
|
71
71
|
promotionAdapter(promotion: PromotionEntity): PromotionAdaptedEntity | null;
|
|
72
|
+
getCategoryByGameId(gameId: number, isMobile: boolean): null | CasinoCategory;
|
|
73
|
+
getSubCategoryByGameId(categoryId: number, gameId: number, isMobile: boolean): null | CasinoSubCategory;
|
|
72
74
|
}
|