react-render-hooks 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/dist/index.js +1 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipAmount/index.d.ts +2 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipBets/index.d.ts +3 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipControllers/index.d.ts +3 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipEventCounter/index.d.ts +2 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipIsSelectedOdd/index.d.ts +8 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipMaxLimit/index.d.ts +6 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipPlaceBet/index.d.ts +3 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipShortInfo/index.d.ts +5 -0
- package/dist/lib/hooks/betting/betSlip/useBetSlipSpecialOdd/index.d.ts +11 -0
- package/dist/lib/hooks/betting/categories/useBettingCategoryIds/index.d.ts +10 -0
- package/dist/lib/hooks/betting/categories/useGetCategoryInfo/index.d.ts +7 -0
- package/dist/lib/hooks/betting/events/useBettingTopEvents/index.d.ts +3 -0
- package/dist/lib/hooks/betting/events/useEventDetailsMarketTabs/index.d.ts +9 -0
- package/dist/lib/hooks/betting/events/useEventDetailsMarketsByGroupId/index.d.ts +10 -0
- package/dist/lib/hooks/betting/events/useEventsByTournamentId/index.d.ts +11 -0
- package/dist/lib/hooks/betting/events/useScore/index.d.ts +8 -0
- package/dist/lib/hooks/betting/events/useShortEventInfo/index.d.ts +8 -0
- package/dist/lib/hooks/betting/lines/useAdditionalLines/index.d.ts +9 -0
- package/dist/lib/hooks/betting/lines/useCounterLines/index.d.ts +7 -0
- package/dist/lib/hooks/betting/lines/useGetLines/index.d.ts +16 -0
- package/dist/lib/hooks/betting/lines/useShortLineInfo/index.d.ts +10 -0
- package/dist/lib/hooks/betting/markets/useGetFilterMarketNames/index.d.ts +8 -0
- package/dist/lib/hooks/betting/markets/useGetMarketFilters/index.d.ts +8 -0
- package/dist/lib/hooks/betting/odd/useOdd/index.d.ts +10 -0
- package/dist/lib/hooks/betting/settings/useBettingAvailableStatus/index.d.ts +2 -0
- package/dist/lib/hooks/betting/settings/useBettingSettingStatus/index.d.ts +2 -0
- package/dist/lib/hooks/betting/sports/useBettingSports/index.d.ts +7 -0
- package/dist/lib/hooks/betting/sports/useBettingSportsById/index.d.ts +7 -0
- package/dist/lib/hooks/betting/tickets/useHistoryTickets/index.d.ts +7 -0
- package/dist/lib/hooks/betting/tickets/useTicketControllers/index.d.ts +2 -0
- package/dist/lib/hooks/betting/tickets/useTicketControllers/types.d.ts +11 -0
- package/dist/lib/hooks/betting/tickets/useTicketInfo/index.d.ts +9 -0
- package/dist/lib/hooks/betting/tickets/useTickets/index.d.ts +21 -0
- package/dist/lib/hooks/betting/tournaments/useBettingTopTournaments/index.d.ts +3 -0
- package/dist/lib/hooks/betting/tournaments/useBettingTournamentById/index.d.ts +7 -0
- package/dist/lib/hooks/betting/tournaments/useBettingTournamentsByCategoryIdOrSportId/index.d.ts +19 -0
- package/dist/lib/hooks/casino/useBattles/index.d.ts +4 -0
- package/dist/lib/hooks/casino/useCasinoCategories/index.d.ts +7 -0
- package/dist/lib/hooks/casino/useCasinoGame/index.d.ts +7 -0
- package/dist/lib/hooks/casino/useCasinoGames/index.d.ts +3 -0
- package/dist/lib/hooks/casino/useCasinoGames/types.d.ts +11 -0
- package/dist/lib/hooks/casino/useCasinoHomeCategories/index.d.ts +3 -0
- package/dist/lib/hooks/casino/useCasinoHomeCategories/types.d.ts +4 -0
- package/dist/lib/hooks/casino/useCasinoSubCategories/index.d.ts +7 -0
- package/dist/lib/hooks/casino/useCategoryInfoByCategoryId/index.d.ts +8 -0
- package/dist/lib/hooks/casino/useGetProviderGames/index.d.ts +11 -0
- package/dist/lib/hooks/casino/useHasDemoModeGame/index.d.ts +7 -0
- package/dist/lib/hooks/casino/useJackpots/index.d.ts +2 -0
- package/dist/lib/hooks/casino/useLastWinner/index.d.ts +8 -0
- package/dist/lib/hooks/casino/useProviders/index.d.ts +6 -0
- package/dist/lib/hooks/profile/avatars/useUserAvatar/index.d.ts +7 -0
- package/dist/lib/hooks/profile/avatars/useUserAvatarControllers/index.d.ts +16 -0
- package/dist/lib/hooks/profile/avatars/useUserAvatars/index.d.ts +6 -0
- package/dist/lib/hooks/profile/balance/useBalance/index.d.ts +2 -0
- package/dist/lib/hooks/profile/balance/useBonusCoins/index.d.ts +1 -0
- package/dist/lib/hooks/profile/bonuses/useAnyActiveBonuses/index.d.ts +1 -0
- package/dist/lib/hooks/profile/bonuses/useBonuses/index.d.ts +6 -0
- package/dist/lib/hooks/profile/depOdd/index.d.ts +1 -0
- package/dist/lib/hooks/profile/favorites/useFavoriteController/index.d.ts +9 -0
- package/dist/lib/hooks/profile/favorites/useFavoriteGames/index.d.ts +4 -0
- package/dist/lib/hooks/profile/favorites/useIsFavoriteGame/index.d.ts +6 -0
- package/dist/lib/hooks/profile/favorites/useIsFavoriteGame/types.d.ts +5 -0
- package/dist/lib/hooks/profile/kGames/bonusWheel/useBonusWheelController/index.d.ts +8 -0
- package/dist/lib/hooks/profile/kGames/dailyTasks/useActiveDailyTask/index.d.ts +2 -0
- package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTaskControllers/index.d.ts +3 -0
- package/dist/lib/hooks/profile/kGames/dailyTasks/useDailyTasks/index.d.ts +2 -0
- package/dist/lib/hooks/profile/operations/useCashBonus/index.d.ts +8 -0
- package/dist/lib/hooks/profile/operations/useGetPaymentsOperations/index.d.ts +6 -0
- package/dist/lib/hooks/profile/operations/useGetVipProgress/index.d.ts +10 -0
- package/dist/lib/hooks/profile/operations/useHistoryTransactions/index.d.ts +8 -0
- package/dist/lib/hooks/profile/operations/useMonthlyBonus/index.d.ts +2 -0
- package/dist/lib/hooks/profile/operations/useRakeBack/index.d.ts +2 -0
- package/dist/lib/hooks/profile/operations/useTournamentBonus/index.d.ts +6 -0
- package/dist/lib/hooks/profile/operations/useWagerBonuses/index.d.ts +1 -0
- package/dist/lib/hooks/profile/operations/useWeeklyBonus/index.d.ts +2 -0
- package/dist/lib/hooks/profile/payments/usePayments/adapters.d.ts +5 -0
- package/dist/lib/hooks/profile/payments/usePayments/index.d.ts +8 -0
- package/dist/lib/hooks/profile/payments/usePayments/types.d.ts +8 -0
- package/dist/lib/hooks/profile/promoCode/usePromoCodeControllers/index.d.ts +3 -0
- package/dist/lib/hooks/profile/referral/useReferralBalance/index.d.ts +6 -0
- package/dist/lib/hooks/profile/referral/useReferralClients/index.d.ts +2 -0
- package/dist/lib/hooks/profile/referral/useReferralControllers/index.d.ts +3 -0
- package/dist/lib/hooks/profile/referral/useReferralLink/index.d.ts +5 -0
- package/dist/lib/hooks/profile/useAuth/index.d.ts +2 -0
- package/dist/lib/hooks/profile/useCountryInfo/index.d.ts +2 -0
- package/dist/lib/hooks/profile/useCurrency/index.d.ts +2 -0
- package/dist/lib/hooks/profile/useUserInfo/index.d.ts +2 -0
- package/dist/lib/hooks/transport/useInitTransport/index.d.ts +12 -0
- package/dist/lib/hooks/transport/useTransportControllers/index.d.ts +15 -0
- package/dist/lib/hooks/transport/useUid/index.d.ts +2 -0
- package/dist/lib/hooks/transport/useUpdateSettings/index.d.ts +1 -0
- package/dist/lib/hooks/types.d.ts +15 -0
- package/dist/lib/index.d.ts +112 -0
- package/dist/lib/services/transport.d.ts +34 -0
- package/dist/lib/services/types.d.ts +12 -0
- package/dist/lib/utils/shared.d.ts +2 -0
- package/package.json +55 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ReturnBetSlipControllerTypes } from 'react-memory-optimization/dist/lib/store/betting/entities/betslip/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
export declare const useBetSlipControllers: ({ isConnectedApp, }: BaseHookType) => ReturnBetSlipControllerTypes;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReturnSubscribeBetSlipShortInfoProps } from 'react-memory-optimization/dist/lib/store/betting/entities/betslip/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType;
|
|
4
|
+
export declare const useBetSlipShortInfo: (props: Props) => ReturnSubscribeBetSlipShortInfoProps;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseHookType } from 'hooks/types';
|
|
2
|
+
type Props = BaseHookType & {
|
|
3
|
+
systemOdd: boolean;
|
|
4
|
+
expressOdd: boolean;
|
|
5
|
+
};
|
|
6
|
+
type Response = {
|
|
7
|
+
system?: number;
|
|
8
|
+
express?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const useBetSlipSpecialOdd: (props: Props) => Response;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Category } from 'react-memory-optimization/dist/lib/store/betting/entities/categories/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
categoryId: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const useGetCategoryInfo: ({ categoryId, isConnectedApp, }: Props) => Category | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReturnEventDetailsMarketTabs } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
eventUid: string;
|
|
5
|
+
isPrematch: boolean;
|
|
6
|
+
sportId: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const useEventDetailsMarketTabs: ({ isPrematch, eventUid, sportId, isConnectedApp, }: Props) => ReturnEventDetailsMarketTabs[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReturnEventDetailsMarketsByGroupIdProps } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
eventUid: string;
|
|
5
|
+
isPrematch: boolean;
|
|
6
|
+
groupId: number;
|
|
7
|
+
sportId: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const useEventDetailsMarketsByGroupId: (props: Props) => ReturnEventDetailsMarketsByGroupIdProps[];
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PrematchShortEventView } from 'react-memory-optimization/dist/lib/store/betting/entities/events/prematch/types';
|
|
2
|
+
import { LiveEventsShortEventView } from 'react-memory-optimization/dist/lib/store/betting/entities/events/live/types';
|
|
3
|
+
import { BaseHookType } from 'hooks/types';
|
|
4
|
+
type Props = BaseHookType & {
|
|
5
|
+
isPrematch: boolean;
|
|
6
|
+
tournamentId: number;
|
|
7
|
+
time: number | null;
|
|
8
|
+
};
|
|
9
|
+
type UseEventsByTournamentIdReturnType<T extends boolean> = T extends true ? PrematchShortEventView[] : LiveEventsShortEventView[];
|
|
10
|
+
export declare const useEventsByTournamentId: (props: Props) => UseEventsByTournamentIdReturnType<Props['isPrematch']>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ScoreReturnTypes } from 'react-memory-optimization/dist/lib/store/betting/entities/events/live/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
eventUid: string;
|
|
5
|
+
sportId: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const useScore: ({ eventUid, sportId, isConnectedApp }: Props) => ScoreReturnTypes;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReturnShortEventInfoProps } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
isPrematch: boolean;
|
|
5
|
+
eventUid: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const useShortEventInfo: (props: Props) => ReturnShortEventInfoProps;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseHookType } from 'hooks/types';
|
|
2
|
+
import { AdditionalLines } from 'react-memory-optimization/dist/lib/store/betting/services/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
comboMarketId?: number;
|
|
5
|
+
eventUid: string;
|
|
6
|
+
isPrematch: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const useAdditionalLines: (props: Props) => AdditionalLines[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OddResponse } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
eventUid: string;
|
|
5
|
+
marketId?: number;
|
|
6
|
+
isComboMarket?: boolean;
|
|
7
|
+
isPrematch: boolean;
|
|
8
|
+
} & ({
|
|
9
|
+
lineUid: string;
|
|
10
|
+
marginId?: number;
|
|
11
|
+
} | {
|
|
12
|
+
marketId: number;
|
|
13
|
+
lineUid?: string;
|
|
14
|
+
});
|
|
15
|
+
export declare const useGetLines: (props: Props) => OddResponse[];
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReturnSubscribeLineEntitiesProps } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
lineUid: string;
|
|
5
|
+
eventUid: string;
|
|
6
|
+
outcomeId: number;
|
|
7
|
+
isPrematch: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const useShortLineInfo: (props: Props) => ReturnSubscribeLineEntitiesProps;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseHookType } from 'hooks/types';
|
|
2
|
+
import { ComboMarket } from 'react-memory-optimization/dist/lib/binary/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
isPrematch: boolean;
|
|
5
|
+
sportId: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const useGetMarketFilters: (props: Props) => ComboMarket[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OddSubscriberResponse } from 'react-memory-optimization/dist/lib/store/betting/entities/events/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
eventUid: string;
|
|
5
|
+
outcomeId: number;
|
|
6
|
+
lineUid: string;
|
|
7
|
+
isPrematch: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const useOdd: (props: Props) => OddSubscriberResponse;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Sport } from 'react-memory-optimization/dist/lib/store/betting/entities/sports/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
isPrematch: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useBettingSports: ({ isPrematch, isConnectedApp }: Props) => Sport[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Sport } from 'react-memory-optimization/dist/lib/store/betting/entities/sports/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
sportId: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const useBettingSportsById: ({ sportId, isConnectedApp }: Props) => Sport;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseHookType } from 'hooks/types';
|
|
2
|
+
import { Ticket } from 'react-memory-optimization/dist/lib/store/betting/entities/tickets/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
range: [number, number];
|
|
5
|
+
};
|
|
6
|
+
export declare const useHistoryTickets: (props: Props) => Ticket[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseHookType } from 'hooks/types';
|
|
2
|
+
export type UseTicketsControllerProps = BaseHookType & {
|
|
3
|
+
ticketId: number;
|
|
4
|
+
};
|
|
5
|
+
export type CashOutProps = {
|
|
6
|
+
outputStake: number;
|
|
7
|
+
remainingStake: number;
|
|
8
|
+
};
|
|
9
|
+
export type ReturnTicketsControllerTypes = {
|
|
10
|
+
ticketCashOut: (props: CashOutProps) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseHookType } from 'hooks/types';
|
|
2
|
+
import { Ticket } from 'react-memory-optimization/dist/lib/store/betting/entities/tickets/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
ticketId: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const useTicketInfo: (props: Props) => Ticket & {
|
|
7
|
+
cashOutInfo: number | null;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseHookType } from 'hooks/types';
|
|
2
|
+
import { Ticket } from 'react-memory-optimization/dist/lib/store/betting/entities/tickets/types';
|
|
3
|
+
type Props = BaseHookType & ({
|
|
4
|
+
isAll?: boolean;
|
|
5
|
+
isCashOut?: boolean;
|
|
6
|
+
isLive?: boolean;
|
|
7
|
+
} & ({
|
|
8
|
+
isAll: true;
|
|
9
|
+
isCashOut?: false;
|
|
10
|
+
isLive?: false;
|
|
11
|
+
} | {
|
|
12
|
+
isCashOut: true;
|
|
13
|
+
isAll?: false;
|
|
14
|
+
isLive?: false;
|
|
15
|
+
} | {
|
|
16
|
+
isCashOut?: false;
|
|
17
|
+
isAll?: false;
|
|
18
|
+
isLive: true;
|
|
19
|
+
}));
|
|
20
|
+
export declare const useTickets: (props: Props) => Ticket[];
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tournament } from 'react-memory-optimization/dist/lib/store/betting/entities/tournaments/types';
|
|
2
|
+
import { BaseHookType } from 'hooks/types';
|
|
3
|
+
type Props = BaseHookType & {
|
|
4
|
+
tournamentId: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const useBettingTournamentById: ({ tournamentId, isConnectedApp, }: Props) => Tournament | null;
|
|
7
|
+
export {};
|
package/dist/lib/hooks/betting/tournaments/useBettingTournamentsByCategoryIdOrSportId/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseHookType } from 'hooks/types';
|
|
2
|
+
type Props = BaseHookType & {
|
|
3
|
+
isPrematch: boolean;
|
|
4
|
+
categoryId?: number;
|
|
5
|
+
sportId?: number;
|
|
6
|
+
time: number | null;
|
|
7
|
+
} & ({
|
|
8
|
+
sportId: number;
|
|
9
|
+
categoryId?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
sportId?: undefined;
|
|
12
|
+
categoryId: number;
|
|
13
|
+
});
|
|
14
|
+
export type ResponseTournamentInfo = {
|
|
15
|
+
id: number;
|
|
16
|
+
categoryId: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const useBettingTournamentsByCategoryIdOrSportId: (props: Props) => ResponseTournamentInfo[];
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ActiveTournaments, BattleDetails, HistoryTournaments, TournamentSubscribeProps } from 'react-memory-optimization/dist/lib/store/casino/entities/casinoTournaments/types';
|
|
2
|
+
type Props = TournamentSubscribeProps;
|
|
3
|
+
export declare const useBattles: (props: Props) => HistoryTournaments | ActiveTournaments | BattleDetails;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CasinoCategory } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
isWager?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useCasinoCategories: ({ isMobile, isWager }: Props) => CasinoCategory[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AdaptedGame } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
|
|
2
|
+
export type Props = {
|
|
3
|
+
categoryId: null | number;
|
|
4
|
+
subCategoryId: null | number;
|
|
5
|
+
page: number;
|
|
6
|
+
limit?: number;
|
|
7
|
+
search: string;
|
|
8
|
+
providerId: number | null;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
sortFn?: (a: AdaptedGame, b: AdaptedGame) => number;
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CasinoSubCategory } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
categoryId: number | null;
|
|
4
|
+
isMobile: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useCasinoSubCategories: (props: Props) => CasinoSubCategory[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CasinoCategory } from 'react-memory-optimization/dist/lib/store/casino/entities/categories/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
isConnectedApp: boolean;
|
|
4
|
+
isMobile: boolean;
|
|
5
|
+
categoryId: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const useCategoryInfoByCategoryId: (props: Props) => CasinoCategory[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CasinoGamesResponse } from 'react-memory-optimization/dist/lib/store/casino/entities/games/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
id: number;
|
|
4
|
+
page: number;
|
|
5
|
+
limit: number;
|
|
6
|
+
isMobile: boolean;
|
|
7
|
+
search?: string;
|
|
8
|
+
excludeGameId?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const useGetProviderGames: (props: Props) => CasinoGamesResponse;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReturnSubscribeCasinoLastWinnersProps } from 'react-memory-optimization/dist/lib/store/casino/entities/lastWinners/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
limit?: number;
|
|
5
|
+
type?: 'vipBet' | 'base';
|
|
6
|
+
};
|
|
7
|
+
export declare const useLastWinner: (props: Props) => ReturnSubscribeCasinoLastWinnersProps[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Provider, ObservableProviderGameCountSetting, ObservableProviderInfoSetting, ObservableProvidersSetting } from 'react-memory-optimization/dist/lib/store/casino/entities/providers/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
} & (ObservableProvidersSetting | ObservableProviderInfoSetting | ObservableProviderGameCountSetting);
|
|
5
|
+
export declare const useProviders: (props: Props) => Provider[] | null;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AvatarType } from 'react-memory-optimization/dist/lib/store/user/entities/avatar/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
isConnectedApp: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const useUserAvatarControllers: ({ isConnectedApp }: Props) => {
|
|
6
|
+
handleSaveAvatar: (id: AvatarType | null) => void;
|
|
7
|
+
handleBuyAvatar: (info: {
|
|
8
|
+
id: number;
|
|
9
|
+
price: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
handleBuyHero: (info: {
|
|
12
|
+
id: number;
|
|
13
|
+
price: number;
|
|
14
|
+
}) => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useBonusCoins: () => number | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAnyActiveBonuses: () => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useUserMinOdd: () => number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PrepareFavoriteEntitiesForSavingProps } from 'react-memory-optimization/dist/lib/store/user/entities/favorites/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
isConnectedApp: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type ReturnType = {
|
|
6
|
+
updateFavorites?: (d: PrepareFavoriteEntitiesForSavingProps) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useFavoriteController: ({ isConnectedApp, }: Props) => ReturnType;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CashBonusChannelType } from 'react-memory-optimization/dist/lib/store/operations/entities/cashBonuses/types';
|
|
2
|
+
import { CashBonuses } from 'react-memory-optimization/dist/lib/store/operations/entities/cashBonuses';
|
|
3
|
+
type ReturnTypeErgBonus = CashBonuses[];
|
|
4
|
+
type Props = {
|
|
5
|
+
channelType?: CashBonusChannelType;
|
|
6
|
+
};
|
|
7
|
+
export declare const useCashBonus: (props: Props) => ReturnTypeErgBonus | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MixerTransactionResponse, TransactionFilterType } from 'react-memory-optimization/dist/lib/store/operations/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
range: [number, number];
|
|
4
|
+
types: TransactionFilterType[];
|
|
5
|
+
withGameInfo?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const useHistoryTransactions: (props: Props) => MixerTransactionResponse;
|
|
8
|
+
export {};
|