be-components 7.6.3 → 7.6.5
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/lib/commonjs/Components/Spring.js +9 -52
- package/lib/commonjs/Components/Spring.js.map +1 -1
- package/lib/commonjs/NotificationManager/NotificationManagerTabs.js +188 -0
- package/lib/commonjs/NotificationManager/NotificationManagerTabs.js.map +1 -0
- package/lib/commonjs/NotificationManager/api/index.js +237 -7
- package/lib/commonjs/NotificationManager/api/index.js.map +1 -1
- package/lib/commonjs/NotificationManager/components/GroupManagement.js +1038 -0
- package/lib/commonjs/NotificationManager/components/GroupManagement.js.map +1 -0
- package/lib/commonjs/NotificationManager/components/JobManagement.js +783 -0
- package/lib/commonjs/NotificationManager/components/JobManagement.js.map +1 -0
- package/lib/commonjs/NotificationManager/components/ScheduleNotification.js +407 -0
- package/lib/commonjs/NotificationManager/components/ScheduleNotification.js.map +1 -0
- package/lib/commonjs/NotificationManager/components/index.js +56 -0
- package/lib/commonjs/NotificationManager/components/index.js.map +1 -0
- package/lib/commonjs/NotificationManager/components/shared/DateTimePicker.js +113 -0
- package/lib/commonjs/NotificationManager/components/shared/DateTimePicker.js.map +1 -0
- package/lib/commonjs/NotificationManager/components/shared/GroupSelector.js +191 -0
- package/lib/commonjs/NotificationManager/components/shared/GroupSelector.js.map +1 -0
- package/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.js +509 -0
- package/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.js.map +1 -0
- package/lib/commonjs/NotificationManager/components/shared/StatusBadge.js +69 -0
- package/lib/commonjs/NotificationManager/components/shared/StatusBadge.js.map +1 -0
- package/lib/commonjs/NotificationManager/index.js +38 -23
- package/lib/commonjs/NotificationManager/index.js.map +1 -1
- package/lib/commonjs/Notifications/index.js +2 -2
- package/lib/commonjs/Notifications/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BettorVouch.js +1 -1
- package/lib/commonjs/ProfileManager/Components/BettorVouch.js.map +1 -1
- package/lib/commonjs/SocialComponents/PostCard/index.js +1 -1
- package/lib/commonjs/SocialComponents/PostCard/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.d.js +2 -0
- package/lib/commonjs/types.d.js.map +1 -1
- package/lib/module/Components/Spring.js +10 -53
- package/lib/module/Components/Spring.js.map +1 -1
- package/lib/module/NotificationManager/NotificationManagerTabs.js +180 -0
- package/lib/module/NotificationManager/NotificationManagerTabs.js.map +1 -0
- package/lib/module/NotificationManager/api/index.js +237 -7
- package/lib/module/NotificationManager/api/index.js.map +1 -1
- package/lib/module/NotificationManager/components/GroupManagement.js +1030 -0
- package/lib/module/NotificationManager/components/GroupManagement.js.map +1 -0
- package/lib/module/NotificationManager/components/JobManagement.js +775 -0
- package/lib/module/NotificationManager/components/JobManagement.js.map +1 -0
- package/lib/module/NotificationManager/components/ScheduleNotification.js +399 -0
- package/lib/module/NotificationManager/components/ScheduleNotification.js.map +1 -0
- package/lib/module/NotificationManager/components/index.js +8 -0
- package/lib/module/NotificationManager/components/index.js.map +1 -0
- package/lib/module/NotificationManager/components/shared/DateTimePicker.js +106 -0
- package/lib/module/NotificationManager/components/shared/DateTimePicker.js.map +1 -0
- package/lib/module/NotificationManager/components/shared/GroupSelector.js +184 -0
- package/lib/module/NotificationManager/components/shared/GroupSelector.js.map +1 -0
- package/lib/module/NotificationManager/components/shared/NotificationBuilderForm.js +501 -0
- package/lib/module/NotificationManager/components/shared/NotificationBuilderForm.js.map +1 -0
- package/lib/module/NotificationManager/components/shared/StatusBadge.js +62 -0
- package/lib/module/NotificationManager/components/shared/StatusBadge.js.map +1 -0
- package/lib/module/NotificationManager/index.js +32 -23
- package/lib/module/NotificationManager/index.js.map +1 -1
- package/lib/module/Notifications/index.js +2 -2
- package/lib/module/Notifications/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BettorVouch.js +1 -1
- package/lib/module/ProfileManager/Components/BettorVouch.js.map +1 -1
- package/lib/module/SocialComponents/PostCard/index.js +1 -1
- package/lib/module/SocialComponents/PostCard/index.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.d.js +2 -0
- package/lib/module/types.d.js.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Spring.d.ts +1 -5
- package/lib/typescript/lib/commonjs/Components/Spring.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/NotificationManager/NotificationManagerTabs.d.ts +17 -0
- package/lib/typescript/lib/commonjs/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts +75 -2
- package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/NotificationManager/components/GroupManagement.d.ts +6 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/GroupManagement.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/JobManagement.d.ts +7 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/JobManagement.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/ScheduleNotification.d.ts +8 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/index.d.ts +9 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/shared/DateTimePicker.d.ts +9 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/shared/GroupSelector.d.ts +13 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.d.ts +10 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/shared/StatusBadge.d.ts +6 -0
- package/lib/typescript/lib/commonjs/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts +76 -2
- package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +76 -2
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/AdServer/index.d.ts +1 -3
- package/lib/typescript/lib/module/AdServer/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts +1 -3
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +1 -3
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +1 -3
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts +1 -3
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts +1 -3
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetRouter/index.d.ts +1 -3
- package/lib/typescript/lib/module/BetRouter/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Bracket/components/BracketCompetitionCard.d.ts +1 -3
- package/lib/typescript/lib/module/Bracket/components/BracketCompetitionCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Bracket/components/BracketCompetitionSelector.d.ts +1 -3
- package/lib/typescript/lib/module/Bracket/components/BracketCompetitionSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/Bracket/components/EditPlayerBracket.d.ts +1 -3
- package/lib/typescript/lib/module/Bracket/components/EditPlayerBracket.d.ts.map +1 -1
- package/lib/typescript/lib/module/Bracket/components/Navigator.d.ts +1 -3
- package/lib/typescript/lib/module/Bracket/components/Navigator.d.ts.map +1 -1
- package/lib/typescript/lib/module/Bracket/components/PlayerBracketManager.d.ts +1 -3
- package/lib/typescript/lib/module/Bracket/components/PlayerBracketManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Bracket/components/RoomHome.d.ts +1 -3
- package/lib/typescript/lib/module/Bracket/components/RoomHome.d.ts.map +1 -1
- package/lib/typescript/lib/module/Campaign/components/AutoManager.d.ts +1 -3
- package/lib/typescript/lib/module/Campaign/components/AutoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Campaign/components/ProgressTimer.d.ts +1 -3
- package/lib/typescript/lib/module/Campaign/components/ProgressTimer.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts +1 -3
- package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -3
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionCard.d.ts +1 -3
- package/lib/typescript/lib/module/Competition/components/CompetitionCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -3
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +1 -3
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -3
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionTypeCard.d.ts +1 -3
- package/lib/typescript/lib/module/Competition/components/CompetitionTypeCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/MatchMarketCard.d.ts +1 -3
- package/lib/typescript/lib/module/Competition/components/MatchMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -3
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts +1 -3
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionMatchMarketCard.d.ts +1 -3
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionMatchMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts +1 -3
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts +1 -3
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +1 -3
- package/lib/typescript/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +1 -3
- package/lib/typescript/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +1 -3
- package/lib/typescript/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Spring.d.ts +3 -1126
- package/lib/typescript/lib/module/Components/Spring.d.ts.map +1 -1
- package/lib/typescript/lib/module/EventComponents/TeamProfile/index.d.ts +1 -3
- package/lib/typescript/lib/module/EventComponents/TeamProfile/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/FlashMarket/components/MarketTimer.d.ts +1 -3
- package/lib/typescript/lib/module/FlashMarket/components/MarketTimer.d.ts.map +1 -1
- package/lib/typescript/lib/module/FlashMarket/components/ProgressTimer.d.ts +1 -3
- package/lib/typescript/lib/module/FlashMarket/components/ProgressTimer.d.ts.map +1 -1
- package/lib/typescript/lib/module/FlashMarket/index.d.ts +1 -3
- package/lib/typescript/lib/module/FlashMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Guide/index.d.ts +1 -3
- package/lib/typescript/lib/module/Guide/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Leaders/components/LeaderboardCard.d.ts +1 -3
- package/lib/typescript/lib/module/Leaders/components/LeaderboardCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/BetScopeIndicator.d.ts +1 -3
- package/lib/typescript/lib/module/MarketComponents/components/BetScopeIndicator.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/EventScoringCard.d.ts +1 -3
- package/lib/typescript/lib/module/MarketComponents/components/EventScoringCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +1 -3
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/OrderGradeBar.d.ts +1 -3
- package/lib/typescript/lib/module/MarketComponents/components/OrderGradeBar.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +1 -3
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketMaker/components/ManageFundForm.d.ts +1 -3
- package/lib/typescript/lib/module/MarketMaker/components/ManageFundForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketMaker/components/OrderForm.d.ts +1 -3
- package/lib/typescript/lib/module/MarketMaker/components/OrderForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketMaker/components/SetMarketForm.d.ts +1 -3
- package/lib/typescript/lib/module/MarketMaker/components/SetMarketForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/NotificationManager/NotificationManagerTabs.d.ts +17 -0
- package/lib/typescript/lib/module/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/api/index.d.ts +75 -2
- package/lib/typescript/lib/module/NotificationManager/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/NotificationManager/components/GroupManagement.d.ts +6 -0
- package/lib/typescript/lib/module/NotificationManager/components/GroupManagement.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/components/JobManagement.d.ts +7 -0
- package/lib/typescript/lib/module/NotificationManager/components/JobManagement.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/components/ScheduleNotification.d.ts +8 -0
- package/lib/typescript/lib/module/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/components/index.d.ts +8 -0
- package/lib/typescript/lib/module/NotificationManager/components/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/components/shared/DateTimePicker.d.ts +9 -0
- package/lib/typescript/lib/module/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/components/shared/GroupSelector.d.ts +13 -0
- package/lib/typescript/lib/module/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/components/shared/NotificationBuilderForm.d.ts +10 -0
- package/lib/typescript/lib/module/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/components/shared/StatusBadge.d.ts +6 -0
- package/lib/typescript/lib/module/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
- package/lib/typescript/lib/module/NotificationManager/index.d.ts +1 -0
- package/lib/typescript/lib/module/NotificationManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Observer/Observer.d.ts +1 -3
- package/lib/typescript/lib/module/Observer/Observer.d.ts.map +1 -1
- package/lib/typescript/lib/module/PlayerRecommender/components/ContactsSelector.d.ts +1 -3
- package/lib/typescript/lib/module/PlayerRecommender/components/ContactsSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/Premium/components/ALaCartePremium.d.ts +1 -3
- package/lib/typescript/lib/module/Premium/components/ALaCartePremium.d.ts.map +1 -1
- package/lib/typescript/lib/module/RankingsCard/index.d.ts +1 -3
- package/lib/typescript/lib/module/RankingsCard/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/components/TagSelector.d.ts +1 -3
- package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/components/TagSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/GifSelector/WebSelector.d.ts +1 -3
- package/lib/typescript/lib/module/SocialComponents/GifSelector/WebSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/PlayerFollowButton.d.ts +1 -3
- package/lib/typescript/lib/module/SocialComponents/PlayerFollowButton.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/PlayerProfile/components/PostsList.d.ts +1 -3
- package/lib/typescript/lib/module/SocialComponents/PlayerProfile/components/PostsList.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/PostCard/components/DraftTextViewer.d.ts +1 -3
- package/lib/typescript/lib/module/SocialComponents/PostCard/components/DraftTextViewer.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/Poster/index.d.ts +1 -3
- package/lib/typescript/lib/module/SocialComponents/Poster/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Socket/index.d.ts +1 -3
- package/lib/typescript/lib/module/Socket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/Countdown.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/Countdown.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOfferCard.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/SquareOfferCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -3
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts +1 -3
- package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/VerifyACHAccount.d.ts +1 -3
- package/lib/typescript/lib/module/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts +1 -3
- package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +2 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/AutoPageFlatList.d.ts +1 -1
- package/lib/typescript/src/Components/AutoPageFlatList.d.ts.map +1 -1
- package/lib/typescript/src/Components/Spring.d.ts +1 -1
- package/lib/typescript/src/Components/Spring.d.ts.map +1 -1
- package/lib/typescript/src/NotificationManager/NotificationManagerTabs.d.ts +20 -0
- package/lib/typescript/src/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/api/index.d.ts +132 -3
- package/lib/typescript/src/NotificationManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/NotificationManager/components/GroupManagement.d.ts +8 -0
- package/lib/typescript/src/NotificationManager/components/GroupManagement.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/components/JobManagement.d.ts +9 -0
- package/lib/typescript/src/NotificationManager/components/JobManagement.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/components/ScheduleNotification.d.ts +10 -0
- package/lib/typescript/src/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/components/index.d.ts +8 -0
- package/lib/typescript/src/NotificationManager/components/index.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/components/shared/DateTimePicker.d.ts +12 -0
- package/lib/typescript/src/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/components/shared/GroupSelector.d.ts +16 -0
- package/lib/typescript/src/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/components/shared/NotificationBuilderForm.d.ts +12 -0
- package/lib/typescript/src/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/components/shared/StatusBadge.d.ts +8 -0
- package/lib/typescript/src/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
- package/lib/typescript/src/NotificationManager/index.d.ts +1 -0
- package/lib/typescript/src/NotificationManager/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +36 -35
- package/src/Components/AutoPageFlatList.tsx +1 -1
- package/src/Components/Spring.tsx +13 -44
- package/src/NotificationManager/NotificationManagerTabs.tsx +178 -0
- package/src/NotificationManager/api/index.ts +240 -7
- package/src/NotificationManager/components/GroupManagement.tsx +854 -0
- package/src/NotificationManager/components/JobManagement.tsx +569 -0
- package/src/NotificationManager/components/ScheduleNotification.tsx +388 -0
- package/src/NotificationManager/components/index.ts +7 -0
- package/src/NotificationManager/components/shared/DateTimePicker.tsx +94 -0
- package/src/NotificationManager/components/shared/GroupSelector.tsx +130 -0
- package/src/NotificationManager/components/shared/NotificationBuilderForm.tsx +364 -0
- package/src/NotificationManager/components/shared/StatusBadge.tsx +72 -0
- package/src/NotificationManager/index.tsx +43 -24
- package/src/Notifications/index.tsx +2 -2
- package/src/ProfileManager/Components/BettorVouch.tsx +1 -1
- package/src/SocialComponents/PostCard/index.tsx +1 -1
- package/src/index.tsx +2 -0
- package/src/types.d.ts +38 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Modal
|
|
3
|
-
import { useSpring, animated } from '@react-spring/web';
|
|
2
|
+
import { Modal } from 'react-native';
|
|
4
3
|
import Text from './Text';
|
|
5
4
|
|
|
6
5
|
type SpringViewProps = {
|
|
@@ -11,52 +10,22 @@ type SpringViewProps = {
|
|
|
11
10
|
to:number,
|
|
12
11
|
children: any
|
|
13
12
|
}
|
|
14
|
-
const SpringView = ({ style, children
|
|
13
|
+
const SpringView = ({ style, children }:SpringViewProps) => {
|
|
15
14
|
|
|
16
|
-
let config:any = {
|
|
17
|
-
from: { x: from},
|
|
18
|
-
to: { x: to },
|
|
19
|
-
friction: 120,
|
|
20
|
-
tension: 280,
|
|
21
|
-
//...style
|
|
22
|
-
}
|
|
23
|
-
if(slide == 'vertical'){
|
|
24
|
-
config = {
|
|
25
|
-
from: { y: from},
|
|
26
|
-
to: { y: to },
|
|
27
|
-
//delay: 500,
|
|
28
|
-
onResolve: () => { if(onResolve){ onResolve() } },
|
|
29
|
-
//...style
|
|
30
|
-
// easing: easings.easeInBounce
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
15
|
|
|
16
|
+
//const props = useSpring(config)
|
|
34
17
|
|
|
35
18
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</animated.div>
|
|
47
|
-
)
|
|
48
|
-
} else {
|
|
49
|
-
return (
|
|
50
|
-
<Modal
|
|
51
|
-
style={{ ...style }}
|
|
52
|
-
animationType="slide"
|
|
53
|
-
visible={true}
|
|
54
|
-
>
|
|
55
|
-
<Text>HEY THIS SHOULD BE IN HERE!!!</Text>
|
|
56
|
-
{children}
|
|
57
|
-
</Modal>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
19
|
+
return (
|
|
20
|
+
<Modal
|
|
21
|
+
style={{ ...style }}
|
|
22
|
+
animationType="slide"
|
|
23
|
+
visible={true}
|
|
24
|
+
>
|
|
25
|
+
<Text>HEY THIS SHOULD BE IN HERE!!!</Text>
|
|
26
|
+
{children}
|
|
27
|
+
</Modal>
|
|
28
|
+
)
|
|
60
29
|
|
|
61
30
|
|
|
62
31
|
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { TouchableOpacity, type ViewStyle } from 'react-native';
|
|
3
|
+
import { View, Text } from '../Components/Themed';
|
|
4
|
+
import { useColors } from '../constants/useColors';
|
|
5
|
+
import { Icons } from '../Components';
|
|
6
|
+
import NotificationManager from './index';
|
|
7
|
+
import GroupManagement from './components/GroupManagement';
|
|
8
|
+
import ScheduleNotification from './components/ScheduleNotification';
|
|
9
|
+
import JobManagement from './components/JobManagement';
|
|
10
|
+
import type { NotificationManagerTab, MyPlayerProps, FocusPositionProps, NotificationJobProps, PlayerNotificationProps } from '../types';
|
|
11
|
+
|
|
12
|
+
interface NotificationManagerTabsProps {
|
|
13
|
+
player_ids?: string[];
|
|
14
|
+
me: MyPlayerProps;
|
|
15
|
+
header_style?: ViewStyle;
|
|
16
|
+
footer_style?: ViewStyle;
|
|
17
|
+
float?: boolean;
|
|
18
|
+
notification_type?: 'order_notifications' | 'competition_notifications' | 'social_notifications';
|
|
19
|
+
default_path_name?: string;
|
|
20
|
+
default_params?: Record<string, string>;
|
|
21
|
+
onFocusPosition?: (pos: FocusPositionProps) => void;
|
|
22
|
+
onComplete?: (notification: PlayerNotificationProps) => void;
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
defaultTab?: NotificationManagerTab;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const NotificationManagerTabs = ({
|
|
28
|
+
player_ids = [],
|
|
29
|
+
me,
|
|
30
|
+
header_style,
|
|
31
|
+
footer_style,
|
|
32
|
+
float,
|
|
33
|
+
notification_type,
|
|
34
|
+
default_path_name,
|
|
35
|
+
default_params,
|
|
36
|
+
onFocusPosition,
|
|
37
|
+
onComplete,
|
|
38
|
+
onClose,
|
|
39
|
+
defaultTab = 'send'
|
|
40
|
+
}: NotificationManagerTabsProps) => {
|
|
41
|
+
const Colors = useColors();
|
|
42
|
+
const [activeTab, setActiveTab] = useState<NotificationManagerTab>(defaultTab);
|
|
43
|
+
const [editingJob, setEditingJob] = useState<NotificationJobProps | null>(null);
|
|
44
|
+
|
|
45
|
+
const tabs: { key: NotificationManagerTab; label: string; icon: React.ReactNode }[] = [
|
|
46
|
+
{
|
|
47
|
+
key: 'send',
|
|
48
|
+
label: 'Send Now',
|
|
49
|
+
icon: <Icons.SendIcon size={16} color={activeTab === 'send' ? Colors.text.white : Colors.text.h2} />
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: 'schedule',
|
|
53
|
+
label: 'Schedule',
|
|
54
|
+
icon: <Icons.ActivityIcon size={16} color={activeTab === 'schedule' ? Colors.text.white : Colors.text.h2} />
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: 'jobs',
|
|
58
|
+
label: 'Manage Jobs',
|
|
59
|
+
icon: <Icons.ListIcon size={16} color={activeTab === 'jobs' ? Colors.text.white : Colors.text.h2} />
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
key: 'groups',
|
|
63
|
+
label: 'Manage Groups',
|
|
64
|
+
icon: <Icons.ContactsIcon size={16} color={activeTab === 'groups' ? Colors.text.white : Colors.text.h2} />
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
const handleEditJob = (job: NotificationJobProps) => {
|
|
69
|
+
setEditingJob(job);
|
|
70
|
+
setActiveTab('schedule');
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const handleJobSaved = () => {
|
|
74
|
+
setEditingJob(null);
|
|
75
|
+
setActiveTab('jobs');
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const renderTabContent = () => {
|
|
79
|
+
switch (activeTab) {
|
|
80
|
+
case 'send':
|
|
81
|
+
return (
|
|
82
|
+
<NotificationManager
|
|
83
|
+
player_ids={player_ids}
|
|
84
|
+
me={me}
|
|
85
|
+
header_style={header_style}
|
|
86
|
+
footer_style={footer_style}
|
|
87
|
+
float={float !== undefined ? float : false}
|
|
88
|
+
notification_type={notification_type}
|
|
89
|
+
default_path_name={default_path_name}
|
|
90
|
+
default_params={default_params}
|
|
91
|
+
onFocusPosition={onFocusPosition}
|
|
92
|
+
onComplete={onComplete}
|
|
93
|
+
onClose={undefined} // Handled by tabs header
|
|
94
|
+
/>
|
|
95
|
+
);
|
|
96
|
+
case 'groups':
|
|
97
|
+
return <GroupManagement onFocusPosition={onFocusPosition} />;
|
|
98
|
+
case 'schedule':
|
|
99
|
+
return (
|
|
100
|
+
<ScheduleNotification
|
|
101
|
+
onFocusPosition={onFocusPosition}
|
|
102
|
+
editingJob={editingJob}
|
|
103
|
+
onJobSaved={handleJobSaved}
|
|
104
|
+
/>
|
|
105
|
+
);
|
|
106
|
+
case 'jobs':
|
|
107
|
+
return <JobManagement onEditJob={handleEditJob} />;
|
|
108
|
+
default:
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<View float style={{ flex: 1 }}>
|
|
115
|
+
{/* Header with Tabs */}
|
|
116
|
+
<View type='header' style={{ borderBottomWidth: 1, borderBottomColor: Colors.borders.light }}>
|
|
117
|
+
<View transparent style={{ flexDirection: 'row', alignItems: 'center', padding: 10 }}>
|
|
118
|
+
<View transparent style={{ flex: 1 }}>
|
|
119
|
+
<Text theme='h1'>Notification Manager</Text>
|
|
120
|
+
<Text theme='description' style={{ marginTop: 3 }}>
|
|
121
|
+
Send, schedule, and manage notifications
|
|
122
|
+
</Text>
|
|
123
|
+
</View>
|
|
124
|
+
{onClose && (
|
|
125
|
+
<TouchableOpacity onPress={onClose} style={{ padding: 8 }}>
|
|
126
|
+
<Icons.CloseIcon size={16} color={Colors.text.h1} />
|
|
127
|
+
</TouchableOpacity>
|
|
128
|
+
)}
|
|
129
|
+
</View>
|
|
130
|
+
|
|
131
|
+
{/* Tab Navigation */}
|
|
132
|
+
<View transparent style={{ flexDirection: 'row', paddingHorizontal: 10, paddingBottom: 10 }}>
|
|
133
|
+
{tabs.map((tab) => {
|
|
134
|
+
const isActive = activeTab === tab.key;
|
|
135
|
+
return (
|
|
136
|
+
<TouchableOpacity
|
|
137
|
+
key={tab.key}
|
|
138
|
+
onPress={() => {
|
|
139
|
+
if (tab.key !== 'schedule') {
|
|
140
|
+
setEditingJob(null);
|
|
141
|
+
}
|
|
142
|
+
setActiveTab(tab.key);
|
|
143
|
+
}}
|
|
144
|
+
style={{
|
|
145
|
+
flex: 1,
|
|
146
|
+
paddingVertical: 10,
|
|
147
|
+
paddingHorizontal: 12,
|
|
148
|
+
marginHorizontal: 4,
|
|
149
|
+
borderRadius: 8,
|
|
150
|
+
backgroundColor: isActive ? Colors.buttons.background.action : Colors.views.background,
|
|
151
|
+
flexDirection: 'row',
|
|
152
|
+
alignItems: 'center',
|
|
153
|
+
justifyContent: 'center'
|
|
154
|
+
}}
|
|
155
|
+
>
|
|
156
|
+
{tab.icon}
|
|
157
|
+
<Text
|
|
158
|
+
theme={isActive ? 'h2' : 'description'}
|
|
159
|
+
color={isActive ? Colors.text.white : Colors.text.h2}
|
|
160
|
+
style={{ marginLeft: 6, fontSize: 12, fontWeight: '600' }}
|
|
161
|
+
>
|
|
162
|
+
{tab.label}
|
|
163
|
+
</Text>
|
|
164
|
+
</TouchableOpacity>
|
|
165
|
+
);
|
|
166
|
+
})}
|
|
167
|
+
</View>
|
|
168
|
+
</View>
|
|
169
|
+
|
|
170
|
+
{/* Tab Content */}
|
|
171
|
+
<View style={{ flex: 1 }}>
|
|
172
|
+
{renderTabContent()}
|
|
173
|
+
</View>
|
|
174
|
+
</View>
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export default NotificationManagerTabs;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { APIOverrides } from '../../ApiOverrides';
|
|
3
|
-
import type { NotificationGroupMemberProps, NotificationGroupProps, PlayerNotificationProps, PublicPlayerProps } from '../../types';
|
|
3
|
+
import type { NotificationGroupMemberProps, NotificationGroupProps, NotificationJobProps, PlayerNotificationProps, PublicPlayerProps } from '../../types';
|
|
4
4
|
|
|
5
5
|
let AUTH_SVC_API = '';
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ export const NotificationHelpers = {
|
|
|
44
44
|
{ label: 'Filters', path_name: '/markets/filters', params: {}, requiredParams: [], primary: false },
|
|
45
45
|
{ label: 'Live Markets', path_name: '/markets/live', params: {}, requiredParams: [], primary: false },
|
|
46
46
|
{ label: 'Parlays', path_name: '/markets/parlays', params: {}, requiredParams: [], primary: false },
|
|
47
|
-
{ label: 'Market Activity', path_name: '/markets/activity/[content_id]', params: { content_id: '' }, requiredParams: ['content_id'], primary: false },
|
|
47
|
+
{ label: 'Market Activity', path_name: '/markets/activity/[content_id]', params: { content_id: '', content_type: '' }, requiredParams: ['content_id'], primary: false },
|
|
48
48
|
{ label: 'Contest', path_name: '/markets/contest/[contest_id]', params: { contest_id: '', contest_type: '' }, requiredParams: ['contest_id', 'contest_type'], primary: true },
|
|
49
49
|
{ label: 'Filter', path_name: '/markets/filter/[player_filter_id]', params: { player_filter_id: '', mode: '' }, requiredParams: ['player_filter_id'], primary: false },
|
|
50
50
|
{ label: 'Fund', path_name: '/markets/fund/[fund_id]', params: { fund_id: '' }, requiredParams: ['fund_id'], primary: false },
|
|
@@ -104,22 +104,34 @@ export const NotificationApi = {
|
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* Send notifications to multiple players
|
|
107
|
+
* @param player_notification - The notification to send
|
|
108
|
+
* @param player_ids - Array of player IDs (must be empty if notification_group_id is provided)
|
|
109
|
+
* @param notification_group_id - Optional group ID (server will fetch members)
|
|
107
110
|
*/
|
|
108
|
-
broadcastNotifications: async(player_notification: PlayerNotificationProps, player_ids: string[]): Promise<{ message: string }> => {
|
|
111
|
+
broadcastNotifications: async(player_notification: PlayerNotificationProps, player_ids: string[], notification_group_id?: string): Promise<{ message: string }> => {
|
|
109
112
|
try {
|
|
110
|
-
const
|
|
111
|
-
|
|
113
|
+
const requestBody = notification_group_id
|
|
114
|
+
? { player_notification, notification_group_id, player_ids: [] }
|
|
115
|
+
: { player_notification, player_ids };
|
|
116
|
+
|
|
117
|
+
const resp = await axios.post(`${AUTH_SVC_API}/v1/notifications/bulk/send`, requestBody);
|
|
112
118
|
return resp.data;
|
|
113
119
|
} catch (e) {
|
|
114
120
|
console.log('Error broadcasting notifications:', e);
|
|
115
121
|
throw e;
|
|
116
122
|
}
|
|
117
123
|
},
|
|
118
|
-
getActiveNotificationGroups: async():Promise<NotificationGroupProps[]> => {
|
|
124
|
+
getActiveNotificationGroups: async(limit?: number, offset?: number):Promise<NotificationGroupProps[]> => {
|
|
119
125
|
try {
|
|
120
|
-
const
|
|
126
|
+
const params = new URLSearchParams();
|
|
127
|
+
params.append('status', 'active');
|
|
128
|
+
if (limit !== undefined) params.append('limit', limit.toString());
|
|
129
|
+
if (offset !== undefined) params.append('offset', offset.toString());
|
|
130
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/groups?${params.toString()}`);
|
|
131
|
+
console.log('getActiveNotificationGroups response:', resp.data);
|
|
121
132
|
return resp.data.notification_groups
|
|
122
133
|
} catch (e) {
|
|
134
|
+
console.log('getActiveNotificationGroups error:', e);
|
|
123
135
|
return []
|
|
124
136
|
}
|
|
125
137
|
},
|
|
@@ -130,5 +142,226 @@ export const NotificationApi = {
|
|
|
130
142
|
} catch (e) {
|
|
131
143
|
return []
|
|
132
144
|
}
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
// Group Management Functions
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Get all notification groups
|
|
151
|
+
*/
|
|
152
|
+
getAllNotificationGroups: async(limit?: number, offset?: number, search?: string): Promise<NotificationGroupProps[]> => {
|
|
153
|
+
try {
|
|
154
|
+
const params = new URLSearchParams();
|
|
155
|
+
if (limit !== undefined) params.append('limit', limit.toString());
|
|
156
|
+
if (offset !== undefined) params.append('offset', offset.toString());
|
|
157
|
+
if (search) params.append('search', search);
|
|
158
|
+
const queryString = params.toString() ? `?${params.toString()}` : '';
|
|
159
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/groups${queryString}`);
|
|
160
|
+
return resp.data.notification_groups;
|
|
161
|
+
} catch (e) {
|
|
162
|
+
console.log('Error fetching notification groups:', e);
|
|
163
|
+
return [];
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Get notification groups by status
|
|
169
|
+
*/
|
|
170
|
+
getNotificationGroupsByStatus: async(status: 'active' | 'inactive', limit?: number, offset?: number, search?: string): Promise<NotificationGroupProps[]> => {
|
|
171
|
+
try {
|
|
172
|
+
const params = new URLSearchParams();
|
|
173
|
+
params.append('status', status);
|
|
174
|
+
if (limit !== undefined) params.append('limit', limit.toString());
|
|
175
|
+
if (offset !== undefined) params.append('offset', offset.toString());
|
|
176
|
+
if (search) params.append('search', search);
|
|
177
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/groups?${params.toString()}`);
|
|
178
|
+
return resp.data.notification_groups;
|
|
179
|
+
} catch (e) {
|
|
180
|
+
console.log('Error fetching notification groups by status:', e);
|
|
181
|
+
return [];
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Get a single notification group by ID
|
|
187
|
+
*/
|
|
188
|
+
getNotificationGroupById: async(notification_group_id: string): Promise<NotificationGroupProps | null> => {
|
|
189
|
+
try {
|
|
190
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/groups/id/${notification_group_id}`);
|
|
191
|
+
return resp.data.notification_group;
|
|
192
|
+
} catch (e) {
|
|
193
|
+
console.log('Error fetching notification group:', e);
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Create a new notification group
|
|
200
|
+
*/
|
|
201
|
+
createNotificationGroup: async(notification_group: Partial<NotificationGroupProps>): Promise<NotificationGroupProps | null> => {
|
|
202
|
+
try {
|
|
203
|
+
const resp = await axios.post(`${AUTH_SVC_API}/v1/notifications/groups/create`, { notification_group });
|
|
204
|
+
return resp.data.notification_group;
|
|
205
|
+
} catch (e) {
|
|
206
|
+
console.log('Error creating notification group:', e);
|
|
207
|
+
throw e;
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Update an existing notification group
|
|
213
|
+
*/
|
|
214
|
+
updateNotificationGroup: async(notification_group: NotificationGroupProps): Promise<NotificationGroupProps | null> => {
|
|
215
|
+
try {
|
|
216
|
+
const resp = await axios.put(`${AUTH_SVC_API}/v1/notifications/groups/${notification_group.notification_group_id}`, { notification_group });
|
|
217
|
+
return resp.data.notification_group;
|
|
218
|
+
} catch (e) {
|
|
219
|
+
console.log('Error updating notification group:', e);
|
|
220
|
+
throw e;
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Inactivate a notification group
|
|
226
|
+
*/
|
|
227
|
+
inactivateNotificationGroup: async(notification_group_id: string): Promise<{ message: string }> => {
|
|
228
|
+
try {
|
|
229
|
+
const resp = await axios.put(`${AUTH_SVC_API}/v1/notifications/groups/${notification_group_id}/inactivate`);
|
|
230
|
+
return resp.data;
|
|
231
|
+
} catch (e) {
|
|
232
|
+
console.log('Error inactivating notification group:', e);
|
|
233
|
+
throw e;
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Trigger grouping function to update group members, or manually add members via player_ids array
|
|
239
|
+
*/
|
|
240
|
+
updateGroupMembers: async(notification_group_id: string, player_ids?: string[]): Promise<{ message: string }> => {
|
|
241
|
+
try {
|
|
242
|
+
const body: any = { notification_group_id };
|
|
243
|
+
if (player_ids && player_ids.length > 0) {
|
|
244
|
+
body.player_ids = player_ids;
|
|
245
|
+
}
|
|
246
|
+
const resp = await axios.post(`${AUTH_SVC_API}/v1/notifications/group/members/load`, body);
|
|
247
|
+
return resp.data;
|
|
248
|
+
} catch (e) {
|
|
249
|
+
console.log('Error updating group members:', e);
|
|
250
|
+
throw e;
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
// Job Management Functions
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Get all notification jobs
|
|
258
|
+
*/
|
|
259
|
+
getAllNotificationJobs: async(limit?: number, offset?: number): Promise<NotificationJobProps[]> => {
|
|
260
|
+
try {
|
|
261
|
+
const params = new URLSearchParams();
|
|
262
|
+
if (limit !== undefined) params.append('limit', limit.toString());
|
|
263
|
+
if (offset !== undefined) params.append('offset', offset.toString());
|
|
264
|
+
const queryString = params.toString() ? `?${params.toString()}` : '';
|
|
265
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/jobs${queryString}`);
|
|
266
|
+
return resp.data.notification_jobs;
|
|
267
|
+
} catch (e) {
|
|
268
|
+
console.log('Error fetching notification jobs:', e);
|
|
269
|
+
return [];
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Get notification jobs by status
|
|
275
|
+
*/
|
|
276
|
+
getNotificationJobsByStatus: async(status: string, limit?: number, offset?: number): Promise<NotificationJobProps[]> => {
|
|
277
|
+
try {
|
|
278
|
+
const params = new URLSearchParams();
|
|
279
|
+
params.append('status', status);
|
|
280
|
+
if (limit !== undefined) params.append('limit', limit.toString());
|
|
281
|
+
if (offset !== undefined) params.append('offset', offset.toString());
|
|
282
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/jobs?${params.toString()}`);
|
|
283
|
+
return resp.data.notification_jobs;
|
|
284
|
+
} catch (e) {
|
|
285
|
+
console.log('Error fetching notification jobs by status:', e);
|
|
286
|
+
return [];
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Get notification jobs by group ID
|
|
292
|
+
*/
|
|
293
|
+
getNotificationJobsByGroup: async(notification_group_id: string): Promise<NotificationJobProps[]> => {
|
|
294
|
+
try {
|
|
295
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/jobs/group/${notification_group_id}`);
|
|
296
|
+
return resp.data.notification_jobs;
|
|
297
|
+
} catch (e) {
|
|
298
|
+
console.log('Error fetching notification jobs by group:', e);
|
|
299
|
+
return [];
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Get a single notification job by ID
|
|
305
|
+
*/
|
|
306
|
+
getNotificationJobById: async(notification_job_id: string): Promise<NotificationJobProps | null> => {
|
|
307
|
+
try {
|
|
308
|
+
const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/jobs/${notification_job_id}`);
|
|
309
|
+
return resp.data.notification_job;
|
|
310
|
+
} catch (e) {
|
|
311
|
+
console.log('Error fetching notification job:', e);
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Create a new notification job
|
|
318
|
+
*/
|
|
319
|
+
createNotificationJob: async(notification_job: Partial<NotificationJobProps>): Promise<NotificationJobProps | null> => {
|
|
320
|
+
try {
|
|
321
|
+
const resp = await axios.post(`${AUTH_SVC_API}/v1/notifications/jobs/create`, { notification_job });
|
|
322
|
+
return resp.data.notification_job;
|
|
323
|
+
} catch (e) {
|
|
324
|
+
console.log('Error creating notification job:', e);
|
|
325
|
+
throw e;
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Update an existing notification job
|
|
331
|
+
*/
|
|
332
|
+
updateNotificationJob: async(notification_job: NotificationJobProps): Promise<NotificationJobProps | null> => {
|
|
333
|
+
try {
|
|
334
|
+
const resp = await axios.put(`${AUTH_SVC_API}/v1/notifications/jobs/${notification_job.notification_job_id}`, { notification_job });
|
|
335
|
+
return resp.data.notification_job;
|
|
336
|
+
} catch (e) {
|
|
337
|
+
console.log('Error updating notification job:', e);
|
|
338
|
+
throw e;
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Finalize a notification job (mark as ready for sending)
|
|
344
|
+
*/
|
|
345
|
+
finalizeNotificationJob: async(notification_job_id: string): Promise<{ message: string }> => {
|
|
346
|
+
try {
|
|
347
|
+
const resp = await axios.put(`${AUTH_SVC_API}/v1/notifications/jobs/${notification_job_id}/finalize`);
|
|
348
|
+
return resp.data;
|
|
349
|
+
} catch (e) {
|
|
350
|
+
console.log('Error finalizing notification job:', e);
|
|
351
|
+
throw e;
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Cancel a notification job
|
|
357
|
+
*/
|
|
358
|
+
cancelNotificationJob: async(notification_job_id: string): Promise<{ message: string }> => {
|
|
359
|
+
try {
|
|
360
|
+
const resp = await axios.delete(`${AUTH_SVC_API}/v1/notifications/jobs/${notification_job_id}`);
|
|
361
|
+
return resp.data;
|
|
362
|
+
} catch (e) {
|
|
363
|
+
console.log('Error cancelling notification job:', e);
|
|
364
|
+
throw e;
|
|
365
|
+
}
|
|
133
366
|
}
|
|
134
367
|
}
|