@orbit-software/sdk 1.75.0 → 1.80.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.
Files changed (237) hide show
  1. package/dist/esm/assets/icons/IconBalanceCoins.d.ts +3 -0
  2. package/dist/esm/{app/ui/components/IconBalanceCoin.d.ts → assets/icons/IconBalanceGems.d.ts} +1 -1
  3. package/dist/esm/assets/icons/IconUsdt.d.ts +3 -0
  4. package/dist/esm/components/BuyAdsFreeButton.d.ts +1 -0
  5. package/dist/esm/{features/profile/components → components}/OverlayProfile.d.ts +2 -2
  6. package/dist/esm/components/layout/BottomSentinel.d.ts +2 -0
  7. package/dist/esm/components/modals/BoxOpeningModal/AnimatedFullscreen.d.ts +14 -0
  8. package/dist/esm/components/modals/BoxOpeningModal/BoxOpeningModal.d.ts +2 -0
  9. package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/PrizeCarousel.d.ts +4 -3
  10. package/dist/esm/components/modals/BoxOpeningModal/RewardBoxRareBadge.d.ts +5 -0
  11. package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/RewardTypeBadge.d.ts +2 -2
  12. package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/RewardTypeImage.d.ts +3 -3
  13. package/dist/esm/{launcherSrc/features/profile → components/modals/BoxOpeningModal}/utils/findPrizeIndex.d.ts +1 -1
  14. package/dist/esm/components/modals/BoxOpeningModal/utils/generateExcitingPrizes.d.ts +9 -0
  15. package/dist/esm/components/modals/BoxOpeningModal/utils/sortPrizesDistributed.d.ts +2 -0
  16. package/dist/esm/components/modals/LevelInfoModal.d.ts +2 -0
  17. package/dist/esm/components/modals/ProfileInventoryModal.d.ts +2 -0
  18. package/dist/esm/components/modals/PurchaseAdsFreeModal.d.ts +2 -0
  19. package/dist/esm/components/modals/TopUpModal/TopUpModal.d.ts +2 -0
  20. package/dist/esm/components/{AnimatedBalance.d.ts → ui/AnimatedBalance.d.ts} +2 -1
  21. package/dist/esm/components/ui/BalanceHeader.d.ts +4 -0
  22. package/dist/esm/components/ui/Drawer.d.ts +9 -0
  23. package/dist/esm/components/ui/EventsStack.d.ts +6 -0
  24. package/dist/esm/components/ui/FormattedXP.d.ts +4 -0
  25. package/dist/esm/components/ui/Icon.d.ts +27 -0
  26. package/dist/esm/{launcherSrc/app/ui/components → components/ui}/XpProgress.d.ts +2 -4
  27. package/dist/esm/{launcherSrc/app/contexts → components/ui/snackbar}/SnackbarContext.d.ts +4 -2
  28. package/dist/esm/confirm/confirm.d.ts +2 -0
  29. package/dist/esm/constants/animations.d.ts +2 -0
  30. package/dist/esm/hooks/useAnimateNumber.d.ts +1 -0
  31. package/dist/esm/hooks/useLottie.d.ts +12 -0
  32. package/dist/esm/hooks/useThrottle.d.ts +1 -0
  33. package/dist/esm/i18n/generate-types.d.ts +1 -0
  34. package/dist/esm/i18n/generated-translation-type.d.ts +112 -0
  35. package/dist/esm/i18n/languages.d.ts +7 -0
  36. package/dist/esm/i18n/locales/en.json.d.ts +137 -0
  37. package/dist/esm/i18n/locales/es.json.d.ts +136 -0
  38. package/dist/esm/i18n/locales/hi.json.d.ts +137 -0
  39. package/dist/esm/i18n/locales/pt.json.d.ts +136 -0
  40. package/dist/esm/i18n/locales/ru.json.d.ts +137 -0
  41. package/dist/esm/i18n/types.d.ts +9 -0
  42. package/dist/esm/i18n/useTranslation.d.ts +6 -0
  43. package/dist/esm/lib/BannerManager.d.ts +36 -0
  44. package/dist/esm/lib/WebSocketManager.d.ts +3 -3
  45. package/dist/esm/lib/activity-detector.d.ts +1 -1
  46. package/dist/esm/lib/tma-network.d.ts +1 -1
  47. package/dist/esm/providers/BoxOpeningProvider.d.ts +21 -0
  48. package/dist/esm/providers/ConfettiProvider.d.ts +3 -0
  49. package/dist/esm/providers/I18nBackendLanguageProvider.d.ts +3 -0
  50. package/dist/esm/queries/box/useBoxRewards.d.ts +13 -0
  51. package/dist/esm/queries/box/useRevealReward.d.ts +10 -0
  52. package/dist/esm/queries/user/useCancelNoAds.d.ts +2 -0
  53. package/dist/esm/queries/user/useCreateInvoiceBuyNoAds.d.ts +3 -0
  54. package/dist/esm/queries/user/usePrices.d.ts +3 -0
  55. package/dist/esm/queries/user/useProfile.d.ts +4 -0
  56. package/dist/esm/queryClient.d.ts +2 -0
  57. package/dist/esm/sdk.d.ts +56 -31
  58. package/dist/esm/sdk.mjs +44640 -43919
  59. package/dist/esm/sdk.umd.js +134 -198
  60. package/dist/esm/stores/confettiStore.d.ts +8 -0
  61. package/dist/esm/stores/inventroryModalStore.d.ts +6 -0
  62. package/dist/esm/stores/topUpModalStore.d.ts +6 -0
  63. package/dist/esm/types/api.d.ts +39 -0
  64. package/dist/esm/utils/cn.d.ts +2 -0
  65. package/dist/esm/utils/formatter.d.ts +5 -0
  66. package/dist/esm/utils/price.d.ts +2 -0
  67. package/dist/esm/utils/shuffleArray.d.ts +1 -0
  68. package/dist/esm/utils/telegramLanguageCodeToFlagEmoji.d.ts +11 -0
  69. package/dist/stats-confirm.html +1 -1
  70. package/dist/stats-esm.html +1 -1
  71. package/dist/stats-umd-react.html +1 -1
  72. package/dist/stats-umd.html +1 -1
  73. package/dist/umd/sdk.umd.js +134 -198
  74. package/dist/umd_react/sdk_react.umd.js +191 -255
  75. package/package.json +28 -30
  76. package/dist/confirm/index.html +0 -24
  77. package/dist/esm/app/helpers.d.ts +0 -2
  78. package/dist/esm/app/ui/assets/IconBack.d.ts +0 -1
  79. package/dist/esm/app/ui/components/AvatarProgress.d.ts +0 -13
  80. package/dist/esm/app/ui/components/ClosableModal.d.ts +0 -12
  81. package/dist/esm/app/ui/components/IconBalanceDiamond.d.ts +0 -3
  82. package/dist/esm/app/ui/components/InputSwitch.d.ts +0 -9
  83. package/dist/esm/app/ui/components/Inventory/Inventory.d.ts +0 -2
  84. package/dist/esm/app/ui/components/Inventory/context.d.ts +0 -10
  85. package/dist/esm/app/ui/components/XsButton.d.ts +0 -6
  86. package/dist/esm/app/ui/hooks/useAnimateNumber.d.ts +0 -1
  87. package/dist/esm/app/utils.d.ts +0 -2
  88. package/dist/esm/components/AppContent/AppContent.d.ts +0 -10
  89. package/dist/esm/components/AppContent/BottomSentinel.d.ts +0 -2
  90. package/dist/esm/components/BuyShopItem.d.ts +0 -1
  91. package/dist/esm/components/ModalCardContent.d.ts +0 -5
  92. package/dist/esm/features/profile/assets/IconAd.d.ts +0 -1
  93. package/dist/esm/features/profile/assets/IconAddCircle.d.ts +0 -1
  94. package/dist/esm/features/profile/assets/IconChevronRight.d.ts +0 -2
  95. package/dist/esm/features/profile/assets/IconDrag.d.ts +0 -2
  96. package/dist/esm/features/profile/assets/IconEdit.d.ts +0 -2
  97. package/dist/esm/features/profile/assets/IconGame.d.ts +0 -2
  98. package/dist/esm/features/profile/assets/IconNoSign.d.ts +0 -1
  99. package/dist/esm/features/profile/assets/IconProfile.d.ts +0 -1
  100. package/dist/esm/features/profile/assets/profileBgGradients.d.ts +0 -6
  101. package/dist/esm/features/profile/components/BalanceConfetti.d.ts +0 -6
  102. package/dist/esm/features/profile/components/BuyMenu.d.ts +0 -8
  103. package/dist/esm/features/profile/components/CircleParticles.d.ts +0 -10
  104. package/dist/esm/features/profile/components/FormattedXP.d.ts +0 -8
  105. package/dist/esm/features/profile/components/LevelInfoModal.d.ts +0 -9
  106. package/dist/esm/features/profile/components/ModalContainer.d.ts +0 -6
  107. package/dist/esm/features/profile/components/PurchaseConfirm.d.ts +0 -9
  108. package/dist/esm/features/profile/components/TaskCard.d.ts +0 -21
  109. package/dist/esm/features/profile/components/XpProgress.d.ts +0 -14
  110. package/dist/esm/features/profile/components/adsFree/BuyAdsFreeButton.d.ts +0 -3
  111. package/dist/esm/features/profile/components/adsFree/PurchaseAdsFree.d.ts +0 -11
  112. package/dist/esm/features/profile/hooks/useAnimatedProfile.d.ts +0 -5
  113. package/dist/esm/features/profile/utils/getFormattedDate.d.ts +0 -1
  114. package/dist/esm/features/wages/components/ModalContainer.d.ts +0 -6
  115. package/dist/esm/features/wages/components/WageCollapsedOverlay.d.ts +0 -6
  116. package/dist/esm/features/wages/components/WageExpandedOverlay.d.ts +0 -7
  117. package/dist/esm/features/wages/components/WageMenu.d.ts +0 -4
  118. package/dist/esm/features/wages/index.d.ts +0 -3
  119. package/dist/esm/features/wages/utils/formatTime.d.ts +0 -1
  120. package/dist/esm/features/wages/utils/formatTimeWageItem.d.ts +0 -1
  121. package/dist/esm/features/wages/utils/getSecondsPassed.d.ts +0 -1
  122. package/dist/esm/i18n/locales/translations/en.json.d.ts +0 -300
  123. package/dist/esm/i18n/locales/translations/hi.json.d.ts +0 -300
  124. package/dist/esm/i18n/locales/translations/ru.json.d.ts +0 -300
  125. package/dist/esm/launcherSrc/App.d.ts +0 -2
  126. package/dist/esm/launcherSrc/api/types.d.ts +0 -211
  127. package/dist/esm/launcherSrc/api/userApi.d.ts +0 -24
  128. package/dist/esm/launcherSrc/app/components/DebugConsole.d.ts +0 -2
  129. package/dist/esm/launcherSrc/app/helpers.d.ts +0 -3
  130. package/dist/esm/launcherSrc/app/hooks/forceRerender.d.ts +0 -1
  131. package/dist/esm/launcherSrc/app/hooks/useMainButtonControl.d.ts +0 -7
  132. package/dist/esm/launcherSrc/app/hooks/useMiniApp.d.ts +0 -3
  133. package/dist/esm/launcherSrc/app/hooks.d.ts +0 -10
  134. package/dist/esm/launcherSrc/app/store.d.ts +0 -17
  135. package/dist/esm/launcherSrc/app/ui/assets/IconBack.d.ts +0 -1
  136. package/dist/esm/launcherSrc/app/ui/assets/IconCheck.d.ts +0 -2
  137. package/dist/esm/launcherSrc/app/ui/assets/IconCheckThin.d.ts +0 -2
  138. package/dist/esm/launcherSrc/app/ui/assets/IconCross.d.ts +0 -2
  139. package/dist/esm/launcherSrc/app/ui/assets/IconSearch.d.ts +0 -2
  140. package/dist/esm/launcherSrc/app/ui/components/AvatarProgress.d.ts +0 -13
  141. package/dist/esm/launcherSrc/app/ui/components/ClosableModal.d.ts +0 -10
  142. package/dist/esm/launcherSrc/app/ui/components/FormattedXP.d.ts +0 -8
  143. package/dist/esm/launcherSrc/app/ui/components/IconBalance.d.ts +0 -3
  144. package/dist/esm/launcherSrc/app/ui/components/InputSwitch.d.ts +0 -9
  145. package/dist/esm/launcherSrc/app/ui/components/Twemoji.d.ts +0 -8
  146. package/dist/esm/launcherSrc/app/ui/components/UICell.d.ts +0 -16
  147. package/dist/esm/launcherSrc/app/ui/components/UIDateInput.d.ts +0 -21
  148. package/dist/esm/launcherSrc/app/ui/components/UIDivider.d.ts +0 -4
  149. package/dist/esm/launcherSrc/app/ui/components/UIEmoji.d.ts +0 -8
  150. package/dist/esm/launcherSrc/app/ui/components/UIHero.d.ts +0 -10
  151. package/dist/esm/launcherSrc/app/ui/components/UISection.d.ts +0 -9
  152. package/dist/esm/launcherSrc/app/ui/components/UITextarea.d.ts +0 -7
  153. package/dist/esm/launcherSrc/app/ui/hooks/useAnimateNumber.d.ts +0 -1
  154. package/dist/esm/launcherSrc/app/utils.d.ts +0 -13
  155. package/dist/esm/launcherSrc/assets/Icon28Edit.d.ts +0 -2
  156. package/dist/esm/launcherSrc/assets/Icon28Game.d.ts +0 -1
  157. package/dist/esm/launcherSrc/assets/Icon28Link.d.ts +0 -1
  158. package/dist/esm/launcherSrc/features/games/assets/IconFilter.d.ts +0 -1
  159. package/dist/esm/launcherSrc/features/games/assets/IconPlayers.d.ts +0 -2
  160. package/dist/esm/launcherSrc/features/games/assets/IconQuestion.d.ts +0 -2
  161. package/dist/esm/launcherSrc/features/games/assets/IconQuestionCircle.d.ts +0 -2
  162. package/dist/esm/launcherSrc/features/games/assets/IconStar.d.ts +0 -4
  163. package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownFilled.d.ts +0 -2
  164. package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownOutlined.d.ts +0 -2
  165. package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpFilled.d.ts +0 -2
  166. package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpOutlined.d.ts +0 -2
  167. package/dist/esm/launcherSrc/features/games/components/GameItem.d.ts +0 -10
  168. package/dist/esm/launcherSrc/features/games/components/ResetStorageButton.d.ts +0 -3
  169. package/dist/esm/launcherSrc/features/games/components/ReviewModal.d.ts +0 -10
  170. package/dist/esm/launcherSrc/features/games/hooks/useGamesData.d.ts +0 -13
  171. package/dist/esm/launcherSrc/features/games/redux/gamesSlice.d.ts +0 -34
  172. package/dist/esm/launcherSrc/features/games/service/gamesService.d.ts +0 -3
  173. package/dist/esm/launcherSrc/features/leaderboard/components/Rating.d.ts +0 -1
  174. package/dist/esm/launcherSrc/features/leaderboard/components/RatingCard/RatingCard.d.ts +0 -10
  175. package/dist/esm/launcherSrc/features/leaderboard/components/RatingInfo/RatingInfo.d.ts +0 -1
  176. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/IconWreaths.d.ts +0 -3
  177. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/RatingLevel.d.ts +0 -6
  178. package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/lock.d.ts +0 -3
  179. package/dist/esm/launcherSrc/features/leaderboard/hooks/useLeaderboardData.d.ts +0 -10
  180. package/dist/esm/launcherSrc/features/leaderboard/index.d.ts +0 -1
  181. package/dist/esm/launcherSrc/features/leaderboard/redux/leaderboardSlice.d.ts +0 -18
  182. package/dist/esm/launcherSrc/features/leaderboard/services/leaderboardService.d.ts +0 -2
  183. package/dist/esm/launcherSrc/features/navigation/assets/IconGame.d.ts +0 -1
  184. package/dist/esm/launcherSrc/features/navigation/assets/IconProfile.d.ts +0 -1
  185. package/dist/esm/launcherSrc/features/navigation/assets/IconSmile.d.ts +0 -2
  186. package/dist/esm/launcherSrc/features/navigation/components/FloatingProfile.d.ts +0 -2
  187. package/dist/esm/launcherSrc/features/navigation/components/IconWithCounter.d.ts +0 -7
  188. package/dist/esm/launcherSrc/features/navigation/redux/navigationSlice.d.ts +0 -15
  189. package/dist/esm/launcherSrc/features/navigation/redux/tabsSlice.d.ts +0 -12
  190. package/dist/esm/launcherSrc/features/profile/assets/IconAd.d.ts +0 -1
  191. package/dist/esm/launcherSrc/features/profile/assets/IconAddCircle.d.ts +0 -1
  192. package/dist/esm/launcherSrc/features/profile/assets/IconChevronRight.d.ts +0 -2
  193. package/dist/esm/launcherSrc/features/profile/assets/IconColorPicker.d.ts +0 -1
  194. package/dist/esm/launcherSrc/features/profile/assets/IconCurrencyStar.d.ts +0 -3
  195. package/dist/esm/launcherSrc/features/profile/assets/IconGlobe.d.ts +0 -2
  196. package/dist/esm/launcherSrc/features/profile/assets/IconLock.d.ts +0 -2
  197. package/dist/esm/launcherSrc/features/profile/assets/IconNoSign.d.ts +0 -1
  198. package/dist/esm/launcherSrc/features/profile/assets/IconSignature.d.ts +0 -5
  199. package/dist/esm/launcherSrc/features/profile/assets/profileBgGradients.d.ts +0 -50
  200. package/dist/esm/launcherSrc/features/profile/components/AdsFree/BuyAdsFreeButton.d.ts +0 -0
  201. package/dist/esm/launcherSrc/features/profile/components/AdsFree/PurchaseAdsFree.d.ts +0 -9
  202. package/dist/esm/launcherSrc/features/profile/components/Balance/ProfileBalance.d.ts +0 -6
  203. package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyMenu.d.ts +0 -8
  204. package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/Ribbon.d.ts +0 -6
  205. package/dist/esm/launcherSrc/features/profile/components/BoxOpeningModal.d.ts +0 -3
  206. package/dist/esm/launcherSrc/features/profile/components/LevelInfoModal.d.ts +0 -9
  207. package/dist/esm/launcherSrc/features/profile/components/ProfileInventory.d.ts +0 -1
  208. package/dist/esm/launcherSrc/features/profile/components/ProfileLeaderboard.d.ts +0 -6
  209. package/dist/esm/launcherSrc/features/profile/components/ProfileReviews.d.ts +0 -6
  210. package/dist/esm/launcherSrc/features/profile/components/RewardBoxRareBadge.d.ts +0 -4
  211. package/dist/esm/launcherSrc/features/profile/components/particles/BalanceConfetti.d.ts +0 -6
  212. package/dist/esm/launcherSrc/features/profile/components/particles/CircleParticles.d.ts +0 -10
  213. package/dist/esm/launcherSrc/features/profile/components/particles/StarParticles.d.ts +0 -10
  214. package/dist/esm/launcherSrc/features/profile/contexts/BoxOpeningContext.d.ts +0 -12
  215. package/dist/esm/launcherSrc/features/profile/data/countries.d.ts +0 -10
  216. package/dist/esm/launcherSrc/features/profile/hooks/useProfileData.d.ts +0 -24
  217. package/dist/esm/launcherSrc/features/profile/redux/profileSlice.d.ts +0 -130
  218. package/dist/esm/launcherSrc/features/profile/services/buyMenuService.d.ts +0 -3
  219. package/dist/esm/launcherSrc/features/profile/services/profileService.d.ts +0 -12
  220. package/dist/esm/launcherSrc/i18n/index.d.ts +0 -2
  221. package/dist/esm/launcherSrc/index.d.ts +0 -0
  222. package/dist/esm/launcherSrc/setupTests.d.ts +0 -0
  223. package/dist/esm/launcherSrc/utils/openTelegramLinkFixed.d.ts +0 -1
  224. package/dist/esm/lib/init-sentry.d.ts +0 -5
  225. package/dist/esm/stores/buyShopModalStore.d.ts +0 -8
  226. package/dist/esm/stores/profileStore.d.ts +0 -17
  227. package/dist/esm/stores/wageStore.d.ts +0 -12
  228. package/dist/esm/{app/ui/assets → assets/icons}/IconClosePlain.d.ts +0 -0
  229. package/dist/esm/{features/profile/assets → assets/icons}/IconCurrencyStar.d.ts +0 -0
  230. package/dist/esm/{features/profile/assets → assets/icons}/IconTelegramStar.d.ts +0 -0
  231. package/dist/esm/{features/profile/assets → assets/lottie}/moneyTongue.json.d.ts +0 -0
  232. package/dist/esm/{features/profile/assets → assets/lottie}/newspaper.json.d.ts +0 -0
  233. package/dist/esm/{launcherSrc/features/profile/components/Balance → components/modals}/TopUpModal/BuyOption.d.ts +0 -0
  234. package/dist/esm/{features/profile/components → components/modals/TopUpModal}/Ribbon.d.ts +0 -0
  235. package/dist/esm/{launcherSrc/app/ui/components → components/ui/XsButton}/XsButton.d.ts +1 -1
  236. /package/dist/esm/{launcherSrc/features/profile/components → components/ui}/particles/ConfettiParticles.d.ts +0 -0
  237. /package/dist/esm/{features/profile/components → components/ui/particles}/StarParticles.d.ts +0 -0
@@ -1,24 +0,0 @@
1
- export declare const useProfileData: () => {
2
- profile: import('../../../api/types').User | null;
3
- tasks: import('../../../api/types').Task[];
4
- dailyStreak: number;
5
- inventory: import('../../../api/types').InventoryItem[];
6
- handleBuyNoAds: () => Promise<import('../../../api/types').ServiceInvoiceCreatedResponse>;
7
- handleCancelNoAds: () => Promise<void>;
8
- claimTask: (id: number) => Promise<import('../../../api/types').ClaimTaskResponse>;
9
- profileLoading: boolean;
10
- profileLoaded: boolean;
11
- profileError: string | null;
12
- handleNewBalance: (balance: number) => Promise<void>;
13
- handleNewXp: (xp: number) => Promise<void>;
14
- handleToggleAdsFree: () => Promise<void>;
15
- handleResetTasks: () => Promise<void>;
16
- handleResetProfile: () => Promise<void>;
17
- handleChangeBackground: (backgroundName: string) => Promise<void>;
18
- handleFetchProfile: () => Promise<void>;
19
- animatedXp: number;
20
- animatedBalance: number;
21
- animatedLevel: number;
22
- dailyModalOpen: boolean;
23
- handleChangeDailyModalOpen: (isOpen: boolean) => void;
24
- };
@@ -1,130 +0,0 @@
1
- import { InventoryItem, ProfilePostRequest, Task, TasksResponse, Trophy, User } 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
- inventory: InventoryItem[];
12
- trophies: Trophy[];
13
- }
14
- export declare const fetchProfile: import('@reduxjs/toolkit').AsyncThunk<User, void, {
15
- state?: unknown;
16
- dispatch?: import('@reduxjs/toolkit').Dispatch;
17
- extra?: unknown;
18
- rejectValue?: unknown;
19
- serializedErrorType?: unknown;
20
- pendingMeta?: unknown;
21
- fulfilledMeta?: unknown;
22
- rejectedMeta?: unknown;
23
- }>;
24
- export declare const postProfile: import('@reduxjs/toolkit').AsyncThunk<void, ProfilePostRequest, {
25
- state?: unknown;
26
- dispatch?: import('@reduxjs/toolkit').Dispatch;
27
- extra?: unknown;
28
- rejectValue?: unknown;
29
- serializedErrorType?: unknown;
30
- pendingMeta?: unknown;
31
- fulfilledMeta?: unknown;
32
- rejectedMeta?: unknown;
33
- }>;
34
- export declare const fetchTasks: import('@reduxjs/toolkit').AsyncThunk<TasksResponse, void, {
35
- state?: unknown;
36
- dispatch?: import('@reduxjs/toolkit').Dispatch;
37
- extra?: unknown;
38
- rejectValue?: unknown;
39
- serializedErrorType?: unknown;
40
- pendingMeta?: unknown;
41
- fulfilledMeta?: unknown;
42
- rejectedMeta?: unknown;
43
- }>;
44
- export declare const mintTask: import('@reduxjs/toolkit').AsyncThunk<import('../../../api/types').ClaimTaskResponse, number, {
45
- state?: unknown;
46
- dispatch?: import('@reduxjs/toolkit').Dispatch;
47
- extra?: unknown;
48
- rejectValue?: unknown;
49
- serializedErrorType?: unknown;
50
- pendingMeta?: unknown;
51
- fulfilledMeta?: unknown;
52
- rejectedMeta?: unknown;
53
- }>;
54
- export declare const setBalance: import('@reduxjs/toolkit').AsyncThunk<{
55
- balance: number;
56
- }, number, {
57
- dispatch: AppDispatch;
58
- state?: unknown;
59
- extra?: unknown;
60
- rejectValue?: unknown;
61
- serializedErrorType?: unknown;
62
- pendingMeta?: unknown;
63
- fulfilledMeta?: unknown;
64
- rejectedMeta?: unknown;
65
- }>;
66
- export declare const setXP: import('@reduxjs/toolkit').AsyncThunk<{
67
- xp: number;
68
- }, number, {
69
- dispatch: AppDispatch;
70
- state?: unknown;
71
- extra?: unknown;
72
- rejectValue?: unknown;
73
- serializedErrorType?: unknown;
74
- pendingMeta?: unknown;
75
- fulfilledMeta?: unknown;
76
- rejectedMeta?: unknown;
77
- }>;
78
- export declare const addNoAds: import('@reduxjs/toolkit').AsyncThunk<void, void, {
79
- state?: unknown;
80
- dispatch?: import('@reduxjs/toolkit').Dispatch;
81
- extra?: unknown;
82
- rejectValue?: unknown;
83
- serializedErrorType?: unknown;
84
- pendingMeta?: unknown;
85
- fulfilledMeta?: unknown;
86
- rejectedMeta?: unknown;
87
- }>;
88
- export declare const invoiceNoAdsCreate: import('@reduxjs/toolkit').AsyncThunk<import('../../../api/types').ServiceInvoiceCreatedResponse, void, {
89
- state?: unknown;
90
- dispatch?: import('@reduxjs/toolkit').Dispatch;
91
- extra?: unknown;
92
- rejectValue?: unknown;
93
- serializedErrorType?: unknown;
94
- pendingMeta?: unknown;
95
- fulfilledMeta?: unknown;
96
- rejectedMeta?: unknown;
97
- }>;
98
- export declare const invoiceCancelNoAdsCreate: import('@reduxjs/toolkit').AsyncThunk<void, void, {
99
- state?: unknown;
100
- dispatch?: import('@reduxjs/toolkit').Dispatch;
101
- extra?: unknown;
102
- rejectValue?: unknown;
103
- serializedErrorType?: unknown;
104
- pendingMeta?: unknown;
105
- fulfilledMeta?: unknown;
106
- rejectedMeta?: unknown;
107
- }>;
108
- export declare const clearItems: import('@reduxjs/toolkit').AsyncThunk<void, void, {
109
- state?: unknown;
110
- dispatch?: import('@reduxjs/toolkit').Dispatch;
111
- extra?: unknown;
112
- rejectValue?: unknown;
113
- serializedErrorType?: unknown;
114
- pendingMeta?: unknown;
115
- fulfilledMeta?: unknown;
116
- rejectedMeta?: unknown;
117
- }>;
118
- export declare const resetTasks: import('@reduxjs/toolkit').AsyncThunk<void, void, {
119
- state?: unknown;
120
- dispatch?: import('@reduxjs/toolkit').Dispatch;
121
- extra?: unknown;
122
- rejectValue?: unknown;
123
- serializedErrorType?: unknown;
124
- pendingMeta?: unknown;
125
- fulfilledMeta?: unknown;
126
- rejectedMeta?: unknown;
127
- }>;
128
- export declare const setDailyModalOpen: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "profileSlice/setDailyModalOpen">;
129
- declare const _default: import('@reduxjs/toolkit').Reducer<ProfileState>;
130
- export default _default;
@@ -1,3 +0,0 @@
1
- import { PricesResponse } from '../../../api/types';
2
- export declare const getInvoice: (amount: number, toUserId: number) => Promise<import('../../../api/types').InvoiceResponse>;
3
- export declare const getPrices: () => Promise<PricesResponse>;
@@ -1,12 +0,0 @@
1
- import { ClaimTaskResponse, ProfilePostRequest, ServiceInvoiceCreatedResponse, TasksResponse, User } from '../../../api/types';
2
- export declare const fetchProfileData: () => Promise<User>;
3
- export declare const postProfileData: (req: ProfilePostRequest) => Promise<void>;
4
- export declare const setProfileBalance: (balance: number) => Promise<void>;
5
- export declare const setProfileXP: (xp: number) => Promise<void>;
6
- export declare const setNoAds: () => Promise<void>;
7
- export declare const setClearItems: () => Promise<void>;
8
- export declare const tasks: () => Promise<TasksResponse>;
9
- export declare const mint: (id: number) => Promise<ClaimTaskResponse>;
10
- export declare const resetTasksData: () => Promise<void>;
11
- export declare const createInvoiceBuyNoAds: () => Promise<ServiceInvoiceCreatedResponse>;
12
- export declare const createInvoiceCancelNoAds: () => Promise<void>;
@@ -1,2 +0,0 @@
1
- import { default as i18n } from 'i18next';
2
- export default i18n;
File without changes
File without changes
@@ -1 +0,0 @@
1
- export declare const openTelegramLinkFixed: (link: string, openLinkText?: string) => void;
@@ -1,5 +0,0 @@
1
- /**
2
- * Initializes Sentry safely with a fallback for frozen/sealed consoles.
3
- * @param dsn Sentry DSN string
4
- */
5
- export declare function initSentry(dsn: string): void;
@@ -1,8 +0,0 @@
1
- interface BuyShopModalState {
2
- isOpen: boolean;
3
- open: () => void;
4
- close: () => void;
5
- onOpenChange: (isOpen: boolean) => void;
6
- }
7
- export declare const useBuyShopModalStore: import('zustand').UseBoundStore<import('zustand').StoreApi<BuyShopModalState>>;
8
- export {};
@@ -1,17 +0,0 @@
1
- import { CryptoSteamSDKProfile, CryptoSteamSDKShopItem, CryptoSteamSDKTask } from '../sdk';
2
- interface ProfileState {
3
- profile: CryptoSteamSDKProfile | null;
4
- loading: boolean;
5
- loaded: boolean;
6
- error: string | null;
7
- shopItems: CryptoSteamSDKShopItem[];
8
- tasks: CryptoSteamSDKTask[];
9
- updateProfile: (loading?: boolean) => Promise<void>;
10
- updateShopItems: () => Promise<void>;
11
- updateTasks: () => Promise<void>;
12
- updateBalance: (account: "gems" | "coins" | "exp" | "usdt", balance: number) => Promise<void>;
13
- claimTask: (taskId: number) => Promise<void>;
14
- fullUpdate: () => Promise<void>;
15
- }
16
- declare const useProfileStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ProfileState>>;
17
- export { useProfileStore };
@@ -1,12 +0,0 @@
1
- import { CryptoSteamSDKWage } from '../sdk';
2
- interface WageState {
3
- wage: CryptoSteamSDKWage | null;
4
- loading: boolean;
5
- loaded: boolean;
6
- error: string | null;
7
- claimWage: (id: number) => Promise<void>;
8
- startWage: (id: number) => Promise<void>;
9
- getWages: (loading: boolean) => Promise<CryptoSteamSDKWage>;
10
- }
11
- declare const useWageStore: import('zustand').UseBoundStore<import('zustand').StoreApi<WageState>>;
12
- export { useWageStore };
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { Button } from '@telegram-apps/telegram-ui';
2
+ import { default as React } from 'react';
3
3
  interface XsButtonProps extends Omit<React.ComponentProps<typeof Button>, 'size'> {
4
4
  }
5
5
  export declare const XsButton: React.ForwardRefExoticComponent<Omit<XsButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;