be-components 7.4.3 → 7.4.4

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 (45) hide show
  1. package/lib/commonjs/ApiOverrides/index.js +0 -2
  2. package/lib/commonjs/ApiOverrides/index.js.map +1 -1
  3. package/lib/commonjs/NotificationManager/api/index.js +448 -0
  4. package/lib/commonjs/NotificationManager/api/index.js.map +1 -0
  5. package/lib/commonjs/NotificationManager/index.js +1159 -0
  6. package/lib/commonjs/NotificationManager/index.js.map +1 -0
  7. package/lib/commonjs/index.js +20 -0
  8. package/lib/commonjs/index.js.map +1 -1
  9. package/lib/commonjs/types.d.js.map +1 -1
  10. package/lib/module/ApiOverrides/index.js +0 -2
  11. package/lib/module/ApiOverrides/index.js.map +1 -1
  12. package/lib/module/NotificationManager/api/index.js +441 -0
  13. package/lib/module/NotificationManager/api/index.js.map +1 -0
  14. package/lib/module/NotificationManager/index.js +1140 -0
  15. package/lib/module/NotificationManager/index.js.map +1 -0
  16. package/lib/module/index.js +3 -1
  17. package/lib/module/index.js.map +1 -1
  18. package/lib/module/types.d.js.map +1 -1
  19. package/lib/typescript/lib/commonjs/ApiOverrides/index.d.ts.map +1 -1
  20. package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts +804 -0
  21. package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts.map +1 -0
  22. package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts +815 -0
  23. package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts.map +1 -0
  24. package/lib/typescript/lib/commonjs/index.d.ts +803 -0
  25. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
  26. package/lib/typescript/lib/module/ApiOverrides/index.d.ts.map +1 -1
  27. package/lib/typescript/lib/module/NotificationManager/api/index.d.ts +803 -0
  28. package/lib/typescript/lib/module/NotificationManager/api/index.d.ts.map +1 -0
  29. package/lib/typescript/lib/module/NotificationManager/index.d.ts +16 -0
  30. package/lib/typescript/lib/module/NotificationManager/index.d.ts.map +1 -0
  31. package/lib/typescript/lib/module/index.d.ts +4 -1
  32. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  33. package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
  34. package/lib/typescript/src/NotificationManager/api/index.d.ts +822 -0
  35. package/lib/typescript/src/NotificationManager/api/index.d.ts.map +1 -0
  36. package/lib/typescript/src/NotificationManager/index.d.ts +17 -0
  37. package/lib/typescript/src/NotificationManager/index.d.ts.map +1 -0
  38. package/lib/typescript/src/index.d.ts +3 -1
  39. package/lib/typescript/src/index.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/src/ApiOverrides/index.ts +0 -2
  42. package/src/NotificationManager/api/index.ts +134 -0
  43. package/src/NotificationManager/index.tsx +894 -0
  44. package/src/index.tsx +6 -1
  45. package/src/types.d.ts +70 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/NotificationManager/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIpI,MAAM,WAAW,uBAAuB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAG0D,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;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17 @@
1
+ import React from 'react';
2
+ import { NotificationApi, NotificationHelpers } from './api';
3
+ import type { PlayerNotificationProps, MyPlayerProps, FocusPositionProps } from '../types';
4
+ type NotificationManagerProps = {
5
+ player_ids: string[];
6
+ me: MyPlayerProps;
7
+ notification_type?: 'order_notifications' | 'competition_notifications' | 'social_notifications';
8
+ default_path_name?: string;
9
+ onFocusPosition?: (pos: FocusPositionProps) => void;
10
+ default_params?: Record<string, string>;
11
+ onComplete?: (notification: PlayerNotificationProps) => void;
12
+ onClose?: () => void;
13
+ };
14
+ declare const NotificationManager: ({ player_ids, me, notification_type, default_path_name, onFocusPosition, default_params, onComplete, onClose }: NotificationManagerProps) => React.JSX.Element;
15
+ export default NotificationManager;
16
+ export { NotificationApi, NotificationHelpers };
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/NotificationManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAA0B,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAKnH,KAAK,wBAAwB,GAAG;IAC5B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,EAAE,EAAE,aAAa,CAAC;IAClB,iBAAiB,CAAC,EAAE,qBAAqB,GAAG,2BAA2B,GAAG,sBAAsB,CAAC;IACjG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAC,CAAC,GAAG,EAAC,kBAAkB,KAAK,IAAI,CAAC;IAClD,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,UAAU,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAUF,QAAA,MAAM,mBAAmB,GAAI,gHAS1B,wBAAwB,sBAo1B1B,CAAC;AAEF,eAAe,mBAAmB,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
@@ -68,5 +68,7 @@ import ReferralCodeManager from './PartnerPortal/components/ReferralCodeManager'
68
68
  import FlashCampaignManager from './PartnerPortal/components/FlashCampaignManager';
69
69
  import MyAction from './MyAction';
70
70
  import BettorBotDashboard from './BettorBot';
71
- export { Authenticator, Observer, MyAction, CreateEmbed, ReferralCodeManager, CreateEngagement, DiscordConnectionManager, BEEventApi, FlashCampaignManager, BettorBotDashboard, EmbedManager, RankingsCard, ManageFlashMarket, BELinkApi, PartnerPortal, SquaresManager, GuideView, BetMatch, ManageFilter, Ticker, Premium, CreateGroupWizard, LeaderboardCard, GroupComponent, LocationTracker, BEClarity, FlashMarket, ContactsCard, PlayerRecommender, GolfScoreboard, ContactsSelector, Campaign, BEPostHog, ManageBracketCompetitionForm, NotificationModule, FlashHolder, useNotifications, ClaritySmartEvents, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Share, Checkout, MarketComponents, EventComponents, PollCampaign, PollCampaignApi, PollApi, MarketMaker, CompetitionModule, SeasonManager, CreateCompetitionForm, CreateSeasonForm, SeasonModule, AdminCompetitionList, AdServer, Leaderboard, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule, CompetitionCard, SquaresCompetitionCard, BracketCompetitionCard, SeasonCard };
71
+ import NotificationManager from './NotificationManager';
72
+ import { NotificationApi, NotificationHelpers } from './NotificationManager/api';
73
+ export { Authenticator, Observer, MyAction, CreateEmbed, ReferralCodeManager, CreateEngagement, DiscordConnectionManager, BEEventApi, FlashCampaignManager, BettorBotDashboard, EmbedManager, RankingsCard, ManageFlashMarket, BELinkApi, PartnerPortal, SquaresManager, GuideView, BetMatch, ManageFilter, Ticker, Premium, CreateGroupWizard, LeaderboardCard, GroupComponent, LocationTracker, BEClarity, FlashMarket, ContactsCard, PlayerRecommender, GolfScoreboard, ContactsSelector, Campaign, BEPostHog, ManageBracketCompetitionForm, NotificationModule, FlashHolder, useNotifications, ClaritySmartEvents, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Share, Checkout, MarketComponents, EventComponents, PollCampaign, PollCampaignApi, PollApi, MarketMaker, CompetitionModule, SeasonManager, CreateCompetitionForm, CreateSeasonForm, SeasonModule, AdminCompetitionList, AdServer, Leaderboard, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule, CompetitionCard, SquaresCompetitionCard, BracketCompetitionCard, SeasonCard, NotificationManager, NotificationApi, NotificationHelpers };
72
74
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,eAAe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EACd,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EACf,SAAS,EACT,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,4BAA4B,EAC5B,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACX,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,QAAQ,M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D,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEjF,OAAO,EACL,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,cAAc,EACd,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EACf,SAAS,EACT,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,4BAA4B,EAC5B,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACpB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-components",
3
- "version": "7.4.3",
3
+ "version": "7.4.4",
4
4
  "description": "Components for BettorEdge Apps",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -206,8 +206,6 @@ const APIOverrides = {
206
206
  getCompanyEmbedByIdentifier: async(identifier:string):Promise<{ company_embed:CompanyEmbedProps, embed:EmbedProps, embed_properties:EmbedPropertyProps[] }|undefined> => {
207
207
  let AUTH_SVC_API = ENDPOINTS['AUTH_SVC_API']
208
208
  try {
209
- console.log(AUTH_SVC_API)
210
- console.log(identifier)
211
209
  const resp = await axios.get(`${AUTH_SVC_API}/v1/embeds/company/identifier/${identifier}`);
212
210
  return resp.data
213
211
  } catch (e) {
@@ -0,0 +1,134 @@
1
+ import axios from 'axios';
2
+ import { APIOverrides } from '../../ApiOverrides';
3
+ import type { NotificationGroupMemberProps, NotificationGroupProps, PlayerNotificationProps, PublicPlayerProps } from '../../types';
4
+
5
+ let AUTH_SVC_API = '';
6
+
7
+ export interface CreateNotificationProps {
8
+ player_id?: string;
9
+ player_ids?: string[];
10
+ title: string;
11
+ message: string;
12
+ notification_type: 'info' | 'success' | 'warning' | 'error' | 'promo';
13
+ action_url?: string;
14
+ image_url?: string;
15
+ metadata?: Record<string, any>;
16
+ }
17
+
18
+ export const NotificationHelpers = {
19
+ app_paths: [
20
+ // Account Routes
21
+ { label: 'Account Home', path_name: '/account', params: {}, requiredParams: [] as string[], primary: false },
22
+ { label: 'Account Analytics', path_name: '/account/analytics', params: {}, requiredParams: [], primary: false },
23
+ { label: 'Account Discord', path_name: '/account/discord', params: {}, requiredParams: [], primary: false },
24
+ { label: 'Account Funds', path_name: '/account/funds', params: {}, requiredParams: [], primary: false },
25
+ { label: 'Account Notifications', path_name: '/account/notifications', params: {}, requiredParams: [], primary: false },
26
+ { label: 'Account Premium', path_name: '/account/premium', params: {}, requiredParams: [], primary: false },
27
+ { label: 'Account Rebates', path_name: '/account/rebates', params: {}, requiredParams: [], primary: false },
28
+ { label: 'Account Refer', path_name: '/account/refer', params: {}, requiredParams: [], primary: false },
29
+ { label: 'Account Verify', path_name: '/account/verify', params: {}, requiredParams: [], primary: false },
30
+ { label: 'Account Orders', path_name: '/account/orders/[contest_id]', params: { contest_id: '' }, requiredParams: ['contest_id'], primary: false },
31
+ { label: 'Account Rebate', path_name: '/account/rebate/[rebate_id]', params: { rebate_id: '' }, requiredParams: ['rebate_id'], primary: false },
32
+
33
+ // Competition Routes - PRIMARY
34
+ { label: 'Competitions Home', path_name: '/competitions', params: {}, requiredParams: [], primary: false },
35
+ { label: 'Bracket Competition', path_name: '/competitions/bracket/[bracket_competition_id]', params: { bracket_competition_id: '', mode: '' }, requiredParams: ['bracket_competition_id'], primary: true },
36
+ { label: 'Competition', path_name: '/competitions/competition/[competition_id]', params: { competition_id: '' }, requiredParams: ['competition_id'], primary: true },
37
+ { label: 'Season', path_name: '/competitions/season/[season_id]', params: { season_id: '' }, requiredParams: ['season_id'], primary: false },
38
+ { label: 'Squares Competition', path_name: '/competitions/squares/[sq_comp_id]', params: { sq_comp_id: '' }, requiredParams: ['sq_comp_id'], primary: true },
39
+ { label: 'Trivia', path_name: '/competitions/trivia/[trivia_id]', params: { trivia_id: '' }, requiredParams: ['trivia_id'], primary: false },
40
+
41
+ // Market Routes - PRIMARY
42
+ { label: 'Markets Home', path_name: '/markets', params: {}, requiredParams: [], primary: false },
43
+ { label: 'Favorites', path_name: '/markets/favorites', params: {}, requiredParams: [], primary: false },
44
+ { label: 'Filters', path_name: '/markets/filters', params: {}, requiredParams: [], primary: false },
45
+ { label: 'Live Markets', path_name: '/markets/live', params: {}, requiredParams: [], primary: false },
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 },
48
+ { label: 'Contest', path_name: '/markets/contest/[contest_id]', params: { contest_id: '', contest_type: '' }, requiredParams: ['contest_id', 'contest_type'], primary: true },
49
+ { label: 'Filter', path_name: '/markets/filter/[player_filter_id]', params: { player_filter_id: '', mode: '' }, requiredParams: ['player_filter_id'], primary: false },
50
+ { label: 'Fund', path_name: '/markets/fund/[fund_id]', params: { fund_id: '' }, requiredParams: ['fund_id'], primary: false },
51
+ { label: 'Hedge', path_name: '/markets/hedge/[hedge_id]', params: { hedge_id: '' }, requiredParams: ['hedge_id'], primary: false },
52
+ { label: 'Hedges', path_name: '/markets/hedges/[contest_id]', params: { contest_id: '' }, requiredParams: ['contest_id'], primary: false },
53
+ { label: 'League', path_name: '/markets/league/[league_id]', params: { league_id: '' }, requiredParams: ['league_id'], primary: false },
54
+ { label: 'Market', path_name: '/markets/market/[contest_id]', params: { contest_id: '', contest_type: '', market_id: '', side_type: '', side_id: '' }, requiredParams: ['contest_id', 'contest_type', 'market_id'], primary: true },
55
+ { label: 'Team', path_name: '/markets/team/[team_id]', params: { team_id: '' }, requiredParams: ['team_id'], primary: false },
56
+
57
+ // Partner Routes
58
+ { label: 'Partner Home', path_name: '/partner', params: {}, requiredParams: [], primary: false },
59
+ { label: 'BettorBot', path_name: '/partner/bettorbot', params: {}, requiredParams: [], primary: false },
60
+ { label: 'Flash Campaign', path_name: '/partner/flash/[flash_campaign_id]', params: { flash_campaign_id: '' }, requiredParams: ['flash_campaign_id'], primary: false },
61
+
62
+ // Social Routes
63
+ { label: 'Social Home', path_name: '/social', params: {}, requiredParams: [], primary: false },
64
+ { label: 'Contacts', path_name: '/social/contacts', params: {}, requiredParams: [], primary: false },
65
+ { label: 'Feed', path_name: '/social/feed', params: {}, requiredParams: [], primary: false },
66
+ { label: 'Groups', path_name: '/social/groups', params: {}, requiredParams: [], primary: false },
67
+ { label: 'Leaders', path_name: '/social/leaders', params: {}, requiredParams: [], primary: false },
68
+ { label: 'Players', path_name: '/social/players', params: {}, requiredParams: [], primary: false },
69
+ { label: 'Post Activity', path_name: '/social/activity/[post_id]', params: { post_id: '' }, requiredParams: ['post_id'], primary: false },
70
+ { label: 'Campaign', path_name: '/social/campaign/[campaign_id]', params: { campaign_id: '' }, requiredParams: ['campaign_id'], primary: false },
71
+ { label: 'Chat', path_name: '/social/chat/[player_id]', params: { player_id: '' }, requiredParams: ['player_id'], primary: false },
72
+ { label: 'Company', path_name: '/social/company/[company_id]', params: { company_id: '' }, requiredParams: ['company_id'], primary: false },
73
+ { label: 'Group', path_name: '/social/group/[group_id]', params: { group_id: '' }, requiredParams: ['group_id'], primary: false },
74
+ { label: 'Head to Head', path_name: '/social/h2h/[player_id]', params: { player_id: '' }, requiredParams: ['player_id'], primary: false },
75
+ { label: 'Order', path_name: '/social/order/[order_id]', params: { order_id: '' }, requiredParams: ['order_id'], primary: false },
76
+ { label: 'Player Profile', path_name: '/social/player/[player_id]', params: { player_id: '' }, requiredParams: ['player_id'], primary: false },
77
+ { label: 'Podcast', path_name: '/social/podcast/[podcast_id]', params: { podcast_id: '' }, requiredParams: ['podcast_id'], primary: false },
78
+ { label: 'Share', path_name: '/social/share/[content_id]', params: { content_id: '' }, requiredParams: ['content_id'], primary: false },
79
+
80
+ // Custom
81
+ { label: 'Custom Path', path_name: 'custom', params: {}, requiredParams: [], primary: false }
82
+ ]
83
+ };
84
+
85
+ export const NotificationApi = {
86
+ setEnvironment: () => {
87
+ const endpoints = APIOverrides.getEndpoints();
88
+ AUTH_SVC_API = endpoints['AUTH_SVC_API'] as string;
89
+ },
90
+
91
+ /**
92
+ * Get players by player IDs
93
+ */
94
+ getPlayersByPlayerIds: async(player_ids: string[]): Promise<PublicPlayerProps[]> => {
95
+ try {
96
+ if(player_ids.length === 0) { return [] }
97
+ const resp = await axios.post(`${AUTH_SVC_API}/v1/players/bulk/get`, { player_ids });
98
+ return resp.data.players;
99
+ } catch (e) {
100
+ console.log('Error fetching players:', e);
101
+ return [];
102
+ }
103
+ },
104
+
105
+ /**
106
+ * Send notifications to multiple players
107
+ */
108
+ broadcastNotifications: async(player_notification: PlayerNotificationProps, player_ids: string[]): Promise<{ message: string }> => {
109
+ try {
110
+ const resp = await axios.post(`${AUTH_SVC_API}/v1/notifications/bulk/send`, { player_notification, player_ids });
111
+ console.log(resp.data)
112
+ return resp.data;
113
+ } catch (e) {
114
+ console.log('Error broadcasting notifications:', e);
115
+ throw e;
116
+ }
117
+ },
118
+ getActiveNotificationGroups: async():Promise<NotificationGroupProps[]> => {
119
+ try {
120
+ const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/groups/active`);
121
+ return resp.data.notification_groups
122
+ } catch (e) {
123
+ return []
124
+ }
125
+ },
126
+ getNotificationGroupMembersByGroup: async(notification_group_id:string):Promise<NotificationGroupMemberProps[]> => {
127
+ try {
128
+ const resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/group/members/${notification_group_id}`);
129
+ return resp.data.notification_group_members
130
+ } catch (e) {
131
+ return []
132
+ }
133
+ }
134
+ }