react-memory-optimization 0.0.74 → 0.0.76
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.
|
@@ -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
|
}
|