@orbit-software/sdk 1.10.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/esm/Overlay.d.ts +2 -0
- package/dist/esm/app/helpers.d.ts +2 -0
- package/dist/esm/app/ui/assets/IconBack.d.ts +1 -0
- package/dist/esm/app/ui/assets/IconClosePlain.d.ts +3 -0
- package/dist/esm/app/ui/components/AvatarProgress.d.ts +13 -0
- package/dist/esm/app/ui/components/ClosableModal.d.ts +11 -0
- package/dist/esm/app/ui/components/IconBalance.d.ts +3 -0
- package/dist/esm/app/ui/components/InputSwitch.d.ts +9 -0
- package/dist/esm/app/ui/components/Inventory/Inventory.d.ts +2 -0
- package/dist/esm/app/ui/components/Inventory/context.d.ts +10 -0
- package/dist/esm/app/ui/components/XsButton.d.ts +6 -0
- package/dist/esm/app/ui/hooks/useAnimateNumber.d.ts +1 -0
- package/dist/esm/app/utils.d.ts +2 -0
- package/dist/esm/boolean-D78EXBUO.mjs +1986 -0
- package/dist/esm/bootstrap.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconAd.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconAddCircle.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconCurrencyStar.d.ts +3 -0
- package/dist/esm/features/profile/assets/IconDrag.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconEdit.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconGame.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconNoSign.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconProfile.d.ts +1 -0
- package/dist/esm/features/profile/assets/moneyTongue.json.d.ts +3 -0
- package/dist/esm/features/profile/assets/newspaper.json.d.ts +3 -0
- package/dist/esm/features/profile/assets/profileBgGradients.d.ts +6 -0
- package/dist/esm/features/profile/components/Avatars.d.ts +8 -0
- package/dist/esm/features/profile/components/BalanceConfetti.d.ts +6 -0
- package/dist/esm/features/profile/components/BuyMenu.d.ts +8 -0
- package/dist/esm/features/profile/components/CircleParticles.d.ts +10 -0
- package/dist/esm/features/profile/components/FormattedXP.d.ts +8 -0
- package/dist/esm/features/profile/components/LevelInfoModal.d.ts +9 -0
- package/dist/esm/features/profile/components/ModalContainer.d.ts +6 -0
- package/dist/esm/features/profile/components/OverlayProfile.d.ts +8 -0
- package/dist/esm/features/profile/components/Profile.d.ts +3 -0
- package/dist/esm/features/profile/components/PurchaseConfirm.d.ts +9 -0
- package/dist/esm/features/profile/components/Ribbon.d.ts +6 -0
- package/dist/esm/features/profile/components/StarParticles.d.ts +10 -0
- package/dist/esm/features/profile/components/TaskCard.d.ts +21 -0
- package/dist/esm/features/profile/components/XpProgress.d.ts +14 -0
- package/dist/esm/features/profile/hooks/useAnimatedProfile.d.ts +5 -0
- package/dist/esm/gaussian-splat-compression-CzzkTP3L.mjs +1632 -0
- package/dist/esm/hooks/useForceRerender.d.ts +1 -0
- package/dist/esm/hooks/useMiniApp.d.ts +3 -0
- package/dist/esm/howler-Mh6LB0k5.mjs +572 -0
- package/dist/esm/i18n/index.d.ts +2 -0
- package/dist/esm/i18n/locales/translations/en.json.d.ts +213 -0
- package/dist/esm/i18n/locales/translations/ru.json.d.ts +210 -0
- package/dist/esm/launcherSrc/App.d.ts +2 -0
- package/dist/esm/launcherSrc/api/client.d.ts +3 -0
- package/dist/esm/launcherSrc/api/types.d.ts +181 -0
- package/dist/esm/launcherSrc/api/userApi.d.ts +22 -0
- package/dist/esm/launcherSrc/app/components/DebugConsole.d.ts +2 -0
- package/dist/esm/launcherSrc/app/contexts/SnackbarContext.d.ts +18 -0
- package/dist/esm/launcherSrc/app/helpers.d.ts +5 -0
- package/dist/esm/launcherSrc/app/hooks/forceRerender.d.ts +1 -0
- package/dist/esm/launcherSrc/app/hooks/useMainButtonControl.d.ts +7 -0
- package/dist/esm/launcherSrc/app/hooks/useMiniApp.d.ts +3 -0
- package/dist/esm/launcherSrc/app/hooks.d.ts +11 -0
- package/dist/esm/launcherSrc/app/store.d.ts +19 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconBack.d.ts +1 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCheck.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCheckThin.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCross.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconSearch.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/components/AvatarProgress.d.ts +13 -0
- package/dist/esm/launcherSrc/app/ui/components/ClosableModal.d.ts +10 -0
- package/dist/esm/launcherSrc/app/ui/components/FormattedXP.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/IconBalance.d.ts +3 -0
- package/dist/esm/launcherSrc/app/ui/components/InputSwitch.d.ts +9 -0
- package/dist/esm/launcherSrc/app/ui/components/Twemoji.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/UICell.d.ts +16 -0
- package/dist/esm/launcherSrc/app/ui/components/UIDateInput.d.ts +21 -0
- package/dist/esm/launcherSrc/app/ui/components/UIDivider.d.ts +4 -0
- package/dist/esm/launcherSrc/app/ui/components/UIEmoji.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/UIHero.d.ts +10 -0
- package/dist/esm/launcherSrc/app/ui/components/UISection.d.ts +9 -0
- package/dist/esm/launcherSrc/app/ui/components/UITextarea.d.ts +7 -0
- package/dist/esm/launcherSrc/app/ui/components/XpProgress.d.ts +13 -0
- package/dist/esm/launcherSrc/app/ui/components/XsButton.d.ts +6 -0
- package/dist/esm/launcherSrc/app/ui/hooks/useAnimateNumber.d.ts +1 -0
- package/dist/esm/launcherSrc/app/utils.d.ts +13 -0
- package/dist/esm/launcherSrc/assets/Icon28Edit.d.ts +2 -0
- package/dist/esm/launcherSrc/assets/Icon28Game.d.ts +1 -0
- package/dist/esm/launcherSrc/assets/Icon28Link.d.ts +1 -0
- package/dist/esm/launcherSrc/features/admin/components/Admin.d.ts +3 -0
- package/dist/esm/launcherSrc/features/admin/components/OverlayControl.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconFilter.d.ts +1 -0
- package/dist/esm/launcherSrc/features/games/assets/IconPlayers.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconQuestion.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconQuestionCircle.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconStar.d.ts +4 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownFilled.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownOutlined.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpFilled.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpOutlined.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/components/GameItem.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GamePage.d.ts +6 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GameReview.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GameReviews.d.ts +9 -0
- package/dist/esm/launcherSrc/features/games/components/Games.d.ts +3 -0
- package/dist/esm/launcherSrc/features/games/components/ResetStorageButton.d.ts +3 -0
- package/dist/esm/launcherSrc/features/games/components/ReviewModal.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/hooks/useGamesData.d.ts +13 -0
- package/dist/esm/launcherSrc/features/games/redux/gamesSlice.d.ts +34 -0
- package/dist/esm/launcherSrc/features/games/service/gamesService.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/Rating.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingCard/RatingCard.d.ts +10 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingInfo/RatingInfo.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/IconWreaths.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/RatingLevel.d.ts +6 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/lock.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/hooks/useLeaderboardData.d.ts +10 -0
- package/dist/esm/launcherSrc/features/leaderboard/index.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/redux/leaderboardSlice.d.ts +18 -0
- package/dist/esm/launcherSrc/features/leaderboard/services/leaderboardService.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconGame.d.ts +1 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconProfile.d.ts +1 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconSmile.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/components/FloatingProfile.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/components/IconWithCounter.d.ts +7 -0
- package/dist/esm/launcherSrc/features/navigation/redux/navigationSlice.d.ts +15 -0
- package/dist/esm/launcherSrc/features/navigation/redux/tabsSlice.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconAd.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconAddCircle.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconChevronRight.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconColorPicker.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconCurrencyStar.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconGlobe.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconLock.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconNoSign.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconSignature.d.ts +5 -0
- package/dist/esm/launcherSrc/features/profile/assets/profileBgGradients.d.ts +50 -0
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/BuyAdsFreeButton.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/PurchaseAdsFree.d.ts +9 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/AvatarCreation.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/Avatars.d.ts +11 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/EditAvatarButton.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/ProfileBalance.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyMenu.d.ts +8 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyOption.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/Ribbon.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/BoxOpeningModal.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/DailyModal.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FIllBirthdate.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillCountry.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillEmail.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfile.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfileLayout.d.ts +4 -0
- package/dist/esm/launcherSrc/features/profile/components/LevelInfoModal.d.ts +9 -0
- package/dist/esm/launcherSrc/features/profile/components/Profile.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileGames.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileInventory.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileLeaderboard.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileReviews.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileTrophies.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/Tasks/TaskCard.d.ts +24 -0
- package/dist/esm/launcherSrc/features/profile/components/Tasks/Tasks.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/BalanceConfetti.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/CircleParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/ConfettiParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/StarParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/contexts/BoxOpeningContext.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/data/countries.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/hooks/useProfileData.d.ts +26 -0
- package/dist/esm/launcherSrc/features/profile/redux/profileSlice.d.ts +131 -0
- package/dist/esm/launcherSrc/features/profile/redux/shopSlice.d.ts +18 -0
- package/dist/esm/launcherSrc/features/profile/services/buyMenuService.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/services/profileService.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/services/shopService.d.ts +2 -0
- package/dist/esm/launcherSrc/i18n/index.d.ts +2 -0
- package/dist/esm/launcherSrc/index.d.ts +0 -0
- package/dist/esm/launcherSrc/setupTests.d.ts +0 -0
- package/dist/esm/launcherSrc/utils/openTelegramLinkFixed.d.ts +1 -0
- package/dist/esm/navmesh-BbINhDrO.mjs +1336 -0
- package/dist/esm/opentype-PR7hcvG5.mjs +4286 -0
- package/dist/esm/physics-B9pWoHiG.mjs +4375 -0
- package/dist/esm/process-DGf1Bnd3.mjs +2274 -0
- package/dist/esm/sdk-4y_oRGP7.mjs +76474 -0
- package/dist/esm/sdk.d.ts +130 -0
- package/dist/esm/sdk.mjs +9 -0
- package/dist/esm/sdk.umd.js +8382 -0
- package/dist/esm/stores/profileStore.d.ts +16 -0
- package/dist/esm/ui-C32u2WA-.mjs +2678 -0
- package/dist/esm/utils/global.d.ts +1 -0
- package/dist/umd/sdk.umd.js +8382 -0
- package/dist/umd_react/sdk_react.umd.js +8562 -0
- package/index.html +13 -0
- package/package.json +96 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const profileBgGradients: readonly [{
|
|
2
|
+
readonly name: "Dreamy Sunrise";
|
|
3
|
+
readonly deg: 0;
|
|
4
|
+
readonly value: string;
|
|
5
|
+
}, {
|
|
6
|
+
readonly name: "Ocean Twilight";
|
|
7
|
+
readonly deg: 60;
|
|
8
|
+
readonly value: string;
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "Tropical Sunset";
|
|
11
|
+
readonly deg: 120;
|
|
12
|
+
readonly value: string;
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "Fire & Fuchsia";
|
|
15
|
+
readonly deg: 180;
|
|
16
|
+
readonly value: string;
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "Pastel Bloom";
|
|
19
|
+
readonly deg: 240;
|
|
20
|
+
readonly value: string;
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "Mystic Cloud";
|
|
23
|
+
readonly deg: 300;
|
|
24
|
+
readonly value: string;
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "Aurora Glow";
|
|
27
|
+
readonly deg: 360;
|
|
28
|
+
readonly value: string;
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "Forest Mist";
|
|
31
|
+
readonly deg: 420;
|
|
32
|
+
readonly value: string;
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "Golden Horizon";
|
|
35
|
+
readonly deg: 480;
|
|
36
|
+
readonly value: string;
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "Deep Sea Blush";
|
|
39
|
+
readonly deg: 540;
|
|
40
|
+
readonly value: string;
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "Rainbow Whirl";
|
|
43
|
+
readonly deg: 600;
|
|
44
|
+
readonly value: string;
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "Velvet Mirage";
|
|
47
|
+
readonly deg: 660;
|
|
48
|
+
readonly value: string;
|
|
49
|
+
}];
|
|
50
|
+
export default profileBgGradients;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ShopItem } from '../../../../api/types';
|
|
3
|
+
interface PurchaseAdsFreeProps {
|
|
4
|
+
shopItem: ShopItem;
|
|
5
|
+
balance: number;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const PurchaseAdsFree: React.FC<PurchaseAdsFreeProps>;
|
|
9
|
+
export default PurchaseAdsFree;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { User } from '../../../../api/types';
|
|
3
|
+
interface AvatarsProps {
|
|
4
|
+
profile: User | null;
|
|
5
|
+
handleChangeBackground: (backgroundName: string) => void;
|
|
6
|
+
background: string;
|
|
7
|
+
setBackground: (background: string) => void;
|
|
8
|
+
backgroundStyle: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
export declare const Avatars: React.FC<AvatarsProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EditAvatarButton: React.FC;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ClaimFunction = (taskId?: number, param?: boolean) => void;
|
|
3
|
+
interface TaskCardProps {
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
reward: number;
|
|
8
|
+
isClaimable: boolean;
|
|
9
|
+
isDone: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
taskId?: number;
|
|
12
|
+
taskActionText?: string;
|
|
13
|
+
taskCompletedText?: string;
|
|
14
|
+
handleClaim: ClaimFunction;
|
|
15
|
+
getUpTo?: boolean;
|
|
16
|
+
playConfetti?: boolean;
|
|
17
|
+
isNavigationAction?: boolean;
|
|
18
|
+
isGameTask?: boolean;
|
|
19
|
+
isReviewTask?: boolean;
|
|
20
|
+
taskType?: "invite" | "fill_profile" | "game" | "daily" | "default";
|
|
21
|
+
rewardType?: "coin" | "box";
|
|
22
|
+
}
|
|
23
|
+
export declare const TaskCard: React.FC<TaskCardProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CircleParticlesProps {
|
|
3
|
+
count?: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
delay?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const CircleParticles: React.FC<CircleParticlesProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ConfettiParticlesProps {
|
|
3
|
+
count?: number;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
delay?: number;
|
|
6
|
+
margin?: number;
|
|
7
|
+
padding?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const ConfettiParticles: React.FC<ConfettiParticlesProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface StarParticlesProps {
|
|
3
|
+
count?: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
delay?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const StarParticles: React.FC<StarParticlesProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
interface BoxOpeningContextType {
|
|
3
|
+
isBoxOpeningModalOpen: boolean;
|
|
4
|
+
currentBoxId: number | undefined;
|
|
5
|
+
openBoxModal: (boxId: number) => void;
|
|
6
|
+
closeBoxModal: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const BoxOpeningProvider: React.FC<{
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const useBoxOpening: () => BoxOpeningContextType;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const useProfileData: () => {
|
|
2
|
+
profile: import('../../../api/types').User | null;
|
|
3
|
+
shopItems: import('../../../api/types').ShopItem[];
|
|
4
|
+
tasks: import('../../../api/types').Task[];
|
|
5
|
+
dailyStreak: number;
|
|
6
|
+
inventory: import('../../../api/types').InventoryItem[];
|
|
7
|
+
claimTask: (id: number) => Promise<import('../../../api/types').ClaimTaskResponse>;
|
|
8
|
+
profileLoading: boolean;
|
|
9
|
+
profileLoaded: boolean;
|
|
10
|
+
profileError: string | null;
|
|
11
|
+
shopLoading: boolean;
|
|
12
|
+
shopError: string | null;
|
|
13
|
+
handleNewBalance: (balance: number) => Promise<void>;
|
|
14
|
+
handleNewXp: (xp: number) => Promise<void>;
|
|
15
|
+
handleToggleAdsFree: () => Promise<void>;
|
|
16
|
+
handleResetTasks: () => Promise<void>;
|
|
17
|
+
handleResetProfile: () => Promise<void>;
|
|
18
|
+
handleChangeBackground: (backgroundName: string) => Promise<void>;
|
|
19
|
+
animatedXp: number;
|
|
20
|
+
animatedBalance: number;
|
|
21
|
+
animatedLevel: number;
|
|
22
|
+
dailyModalOpen: boolean;
|
|
23
|
+
handleChangeDailyModalOpen: (isOpen: boolean) => void;
|
|
24
|
+
recentlyPlayed: import('../../../api/types').ShortGameInfo[];
|
|
25
|
+
trophies: import('../../../api/types').Trophy[];
|
|
26
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { ProfilePostRequest, RecentlyPlayedGamesResponse, Task, TasksResponse, User, ShortGameInfo, InventoryItem, Trophy, TrophiesResponse } from '../../../api/types';
|
|
2
|
+
import { AppDispatch } from '../../../app/store';
|
|
3
|
+
export interface ProfileState {
|
|
4
|
+
currentUser: User | null;
|
|
5
|
+
tasks: Task[];
|
|
6
|
+
dailyStreak: number;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
loaded: boolean;
|
|
9
|
+
error: string | null;
|
|
10
|
+
dailyModalOpen: boolean;
|
|
11
|
+
recentlyPlayed: ShortGameInfo[];
|
|
12
|
+
inventory: InventoryItem[];
|
|
13
|
+
trophies: Trophy[];
|
|
14
|
+
}
|
|
15
|
+
export declare const fetchProfile: import('@reduxjs/toolkit').AsyncThunk<User, void, {
|
|
16
|
+
state?: unknown;
|
|
17
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
18
|
+
extra?: unknown;
|
|
19
|
+
rejectValue?: unknown;
|
|
20
|
+
serializedErrorType?: unknown;
|
|
21
|
+
pendingMeta?: unknown;
|
|
22
|
+
fulfilledMeta?: unknown;
|
|
23
|
+
rejectedMeta?: unknown;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const fetchTrophies: import('@reduxjs/toolkit').AsyncThunk<TrophiesResponse, void, {
|
|
26
|
+
state?: unknown;
|
|
27
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
28
|
+
extra?: unknown;
|
|
29
|
+
rejectValue?: unknown;
|
|
30
|
+
serializedErrorType?: unknown;
|
|
31
|
+
pendingMeta?: unknown;
|
|
32
|
+
fulfilledMeta?: unknown;
|
|
33
|
+
rejectedMeta?: unknown;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const postProfile: import('@reduxjs/toolkit').AsyncThunk<void, ProfilePostRequest, {
|
|
36
|
+
state?: unknown;
|
|
37
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
38
|
+
extra?: unknown;
|
|
39
|
+
rejectValue?: unknown;
|
|
40
|
+
serializedErrorType?: unknown;
|
|
41
|
+
pendingMeta?: unknown;
|
|
42
|
+
fulfilledMeta?: unknown;
|
|
43
|
+
rejectedMeta?: unknown;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const fetchTasks: import('@reduxjs/toolkit').AsyncThunk<TasksResponse, void, {
|
|
46
|
+
state?: unknown;
|
|
47
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
48
|
+
extra?: unknown;
|
|
49
|
+
rejectValue?: unknown;
|
|
50
|
+
serializedErrorType?: unknown;
|
|
51
|
+
pendingMeta?: unknown;
|
|
52
|
+
fulfilledMeta?: unknown;
|
|
53
|
+
rejectedMeta?: unknown;
|
|
54
|
+
}>;
|
|
55
|
+
export declare const mintTask: import('@reduxjs/toolkit').AsyncThunk<import('../../../api/types').ClaimTaskResponse, number, {
|
|
56
|
+
state?: unknown;
|
|
57
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
58
|
+
extra?: unknown;
|
|
59
|
+
rejectValue?: unknown;
|
|
60
|
+
serializedErrorType?: unknown;
|
|
61
|
+
pendingMeta?: unknown;
|
|
62
|
+
fulfilledMeta?: unknown;
|
|
63
|
+
rejectedMeta?: unknown;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const setBalance: import('@reduxjs/toolkit').AsyncThunk<{
|
|
66
|
+
balance: number;
|
|
67
|
+
}, number, {
|
|
68
|
+
dispatch: AppDispatch;
|
|
69
|
+
state?: unknown;
|
|
70
|
+
extra?: unknown;
|
|
71
|
+
rejectValue?: unknown;
|
|
72
|
+
serializedErrorType?: unknown;
|
|
73
|
+
pendingMeta?: unknown;
|
|
74
|
+
fulfilledMeta?: unknown;
|
|
75
|
+
rejectedMeta?: unknown;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const setXP: import('@reduxjs/toolkit').AsyncThunk<{
|
|
78
|
+
xp: number;
|
|
79
|
+
}, number, {
|
|
80
|
+
dispatch: AppDispatch;
|
|
81
|
+
state?: unknown;
|
|
82
|
+
extra?: unknown;
|
|
83
|
+
rejectValue?: unknown;
|
|
84
|
+
serializedErrorType?: unknown;
|
|
85
|
+
pendingMeta?: unknown;
|
|
86
|
+
fulfilledMeta?: unknown;
|
|
87
|
+
rejectedMeta?: unknown;
|
|
88
|
+
}>;
|
|
89
|
+
export declare const addNoAds: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
90
|
+
state?: unknown;
|
|
91
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
92
|
+
extra?: unknown;
|
|
93
|
+
rejectValue?: unknown;
|
|
94
|
+
serializedErrorType?: unknown;
|
|
95
|
+
pendingMeta?: unknown;
|
|
96
|
+
fulfilledMeta?: unknown;
|
|
97
|
+
rejectedMeta?: unknown;
|
|
98
|
+
}>;
|
|
99
|
+
export declare const clearItems: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
100
|
+
state?: unknown;
|
|
101
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
102
|
+
extra?: unknown;
|
|
103
|
+
rejectValue?: unknown;
|
|
104
|
+
serializedErrorType?: unknown;
|
|
105
|
+
pendingMeta?: unknown;
|
|
106
|
+
fulfilledMeta?: unknown;
|
|
107
|
+
rejectedMeta?: unknown;
|
|
108
|
+
}>;
|
|
109
|
+
export declare const resetTasks: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
110
|
+
state?: unknown;
|
|
111
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
112
|
+
extra?: unknown;
|
|
113
|
+
rejectValue?: unknown;
|
|
114
|
+
serializedErrorType?: unknown;
|
|
115
|
+
pendingMeta?: unknown;
|
|
116
|
+
fulfilledMeta?: unknown;
|
|
117
|
+
rejectedMeta?: unknown;
|
|
118
|
+
}>;
|
|
119
|
+
export declare const fetchRecentlyPlayed: import('@reduxjs/toolkit').AsyncThunk<RecentlyPlayedGamesResponse, number, {
|
|
120
|
+
state?: unknown;
|
|
121
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
122
|
+
extra?: unknown;
|
|
123
|
+
rejectValue?: unknown;
|
|
124
|
+
serializedErrorType?: unknown;
|
|
125
|
+
pendingMeta?: unknown;
|
|
126
|
+
fulfilledMeta?: unknown;
|
|
127
|
+
rejectedMeta?: unknown;
|
|
128
|
+
}>;
|
|
129
|
+
export declare const setDailyModalOpen: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "profileSlice/setDailyModalOpen">;
|
|
130
|
+
declare const _default: import('@reduxjs/toolkit').Reducer<ProfileState>;
|
|
131
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ShopItem } from '../../../api/types';
|
|
2
|
+
export interface ShopState {
|
|
3
|
+
items: ShopItem[];
|
|
4
|
+
loading: boolean;
|
|
5
|
+
error: string | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const fetchShopItems: import('@reduxjs/toolkit').AsyncThunk<ShopItem[], void, {
|
|
8
|
+
state?: unknown;
|
|
9
|
+
dispatch?: import('@reduxjs/toolkit').Dispatch;
|
|
10
|
+
extra?: unknown;
|
|
11
|
+
rejectValue?: unknown;
|
|
12
|
+
serializedErrorType?: unknown;
|
|
13
|
+
pendingMeta?: unknown;
|
|
14
|
+
fulfilledMeta?: unknown;
|
|
15
|
+
rejectedMeta?: unknown;
|
|
16
|
+
}>;
|
|
17
|
+
declare const _default: import('@reduxjs/toolkit').Reducer<ShopState>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getInvoice: (amount: number, toUserId: number) => Promise<import('../../../api/types').InvoiceResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TasksResponse, User, ProfilePostRequest, ClaimTaskResponse, RecentlyPlayedGamesResponse, TrophiesResponse } from '../../../api/types';
|
|
2
|
+
export declare const fetchProfileData: () => Promise<User>;
|
|
3
|
+
export declare const fetchTrophiesData: () => Promise<TrophiesResponse>;
|
|
4
|
+
export declare const postProfileData: (req: ProfilePostRequest) => Promise<void>;
|
|
5
|
+
export declare const setProfileBalance: (balance: number) => Promise<void>;
|
|
6
|
+
export declare const setProfileXP: (xp: number) => Promise<void>;
|
|
7
|
+
export declare const setNoAds: () => Promise<void>;
|
|
8
|
+
export declare const setClearItems: () => Promise<void>;
|
|
9
|
+
export declare const tasks: () => Promise<TasksResponse>;
|
|
10
|
+
export declare const mint: (id: number) => Promise<ClaimTaskResponse>;
|
|
11
|
+
export declare const resetTasksData: () => Promise<void>;
|
|
12
|
+
export declare const getRecentlyPlayed: (userId: number) => Promise<RecentlyPlayedGamesResponse>;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const openTelegramLinkFixed: (link: string, openLinkText?: string) => void;
|