be-components 7.4.2 → 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 (89) hide show
  1. package/lib/commonjs/ApiOverrides/index.js +4 -2
  2. package/lib/commonjs/ApiOverrides/index.js.map +1 -1
  3. package/lib/commonjs/BettorBot/api/index.js +64 -0
  4. package/lib/commonjs/BettorBot/api/index.js.map +1 -0
  5. package/lib/commonjs/BettorBot/components/BroadcastMessageCard.js +233 -0
  6. package/lib/commonjs/BettorBot/components/BroadcastMessageCard.js.map +1 -0
  7. package/lib/commonjs/BettorBot/components/ServerInfoCard.js +126 -0
  8. package/lib/commonjs/BettorBot/components/ServerInfoCard.js.map +1 -0
  9. package/lib/commonjs/BettorBot/index.js +532 -0
  10. package/lib/commonjs/BettorBot/index.js.map +1 -0
  11. package/lib/commonjs/NotificationManager/api/index.js +448 -0
  12. package/lib/commonjs/NotificationManager/api/index.js.map +1 -0
  13. package/lib/commonjs/NotificationManager/index.js +1159 -0
  14. package/lib/commonjs/NotificationManager/index.js.map +1 -0
  15. package/lib/commonjs/index.js +27 -0
  16. package/lib/commonjs/index.js.map +1 -1
  17. package/lib/commonjs/types.d.js.map +1 -1
  18. package/lib/module/ApiOverrides/index.js +4 -2
  19. package/lib/module/ApiOverrides/index.js.map +1 -1
  20. package/lib/module/BettorBot/api/index.js +57 -0
  21. package/lib/module/BettorBot/api/index.js.map +1 -0
  22. package/lib/module/BettorBot/components/BroadcastMessageCard.js +226 -0
  23. package/lib/module/BettorBot/components/BroadcastMessageCard.js.map +1 -0
  24. package/lib/module/BettorBot/components/ServerInfoCard.js +119 -0
  25. package/lib/module/BettorBot/components/ServerInfoCard.js.map +1 -0
  26. package/lib/module/BettorBot/index.js +524 -0
  27. package/lib/module/BettorBot/index.js.map +1 -0
  28. package/lib/module/NotificationManager/api/index.js +441 -0
  29. package/lib/module/NotificationManager/api/index.js.map +1 -0
  30. package/lib/module/NotificationManager/index.js +1140 -0
  31. package/lib/module/NotificationManager/index.js.map +1 -0
  32. package/lib/module/index.js +4 -1
  33. package/lib/module/index.js.map +1 -1
  34. package/lib/module/types.d.js.map +1 -1
  35. package/lib/typescript/lib/commonjs/ApiOverrides/index.d.ts.map +1 -1
  36. package/lib/typescript/lib/commonjs/BettorBot/api/index.d.ts +9 -0
  37. package/lib/typescript/lib/commonjs/BettorBot/api/index.d.ts.map +1 -0
  38. package/lib/typescript/lib/commonjs/BettorBot/components/BroadcastMessageCard.d.ts +10 -0
  39. package/lib/typescript/lib/commonjs/BettorBot/components/BroadcastMessageCard.d.ts.map +1 -0
  40. package/lib/typescript/lib/commonjs/BettorBot/components/ServerInfoCard.d.ts +10 -0
  41. package/lib/typescript/lib/commonjs/BettorBot/components/ServerInfoCard.d.ts.map +1 -0
  42. package/lib/typescript/lib/commonjs/BettorBot/index.d.ts +7 -0
  43. package/lib/typescript/lib/commonjs/BettorBot/index.d.ts.map +1 -0
  44. package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts +804 -0
  45. package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts.map +1 -0
  46. package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts +815 -0
  47. package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts.map +1 -0
  48. package/lib/typescript/lib/commonjs/index.d.ts +804 -0
  49. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
  50. package/lib/typescript/lib/module/ApiOverrides/index.d.ts.map +1 -1
  51. package/lib/typescript/lib/module/BettorBot/api/index.d.ts +8 -0
  52. package/lib/typescript/lib/module/BettorBot/api/index.d.ts.map +1 -0
  53. package/lib/typescript/lib/module/BettorBot/components/BroadcastMessageCard.d.ts +10 -0
  54. package/lib/typescript/lib/module/BettorBot/components/BroadcastMessageCard.d.ts.map +1 -0
  55. package/lib/typescript/lib/module/BettorBot/components/ServerInfoCard.d.ts +10 -0
  56. package/lib/typescript/lib/module/BettorBot/components/ServerInfoCard.d.ts.map +1 -0
  57. package/lib/typescript/lib/module/BettorBot/index.d.ts +7 -0
  58. package/lib/typescript/lib/module/BettorBot/index.d.ts.map +1 -0
  59. package/lib/typescript/lib/module/NotificationManager/api/index.d.ts +803 -0
  60. package/lib/typescript/lib/module/NotificationManager/api/index.d.ts.map +1 -0
  61. package/lib/typescript/lib/module/NotificationManager/index.d.ts +16 -0
  62. package/lib/typescript/lib/module/NotificationManager/index.d.ts.map +1 -0
  63. package/lib/typescript/lib/module/index.d.ts +5 -1
  64. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  65. package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
  66. package/lib/typescript/src/BettorBot/api/index.d.ts +9 -0
  67. package/lib/typescript/src/BettorBot/api/index.d.ts.map +1 -0
  68. package/lib/typescript/src/BettorBot/components/BroadcastMessageCard.d.ts +15 -0
  69. package/lib/typescript/src/BettorBot/components/BroadcastMessageCard.d.ts.map +1 -0
  70. package/lib/typescript/src/BettorBot/components/ServerInfoCard.d.ts +12 -0
  71. package/lib/typescript/src/BettorBot/components/ServerInfoCard.d.ts.map +1 -0
  72. package/lib/typescript/src/BettorBot/index.d.ts +9 -0
  73. package/lib/typescript/src/BettorBot/index.d.ts.map +1 -0
  74. package/lib/typescript/src/NotificationManager/api/index.d.ts +822 -0
  75. package/lib/typescript/src/NotificationManager/api/index.d.ts.map +1 -0
  76. package/lib/typescript/src/NotificationManager/index.d.ts +17 -0
  77. package/lib/typescript/src/NotificationManager/index.d.ts.map +1 -0
  78. package/lib/typescript/src/index.d.ts +4 -1
  79. package/lib/typescript/src/index.d.ts.map +1 -1
  80. package/package.json +1 -1
  81. package/src/ApiOverrides/index.ts +4 -2
  82. package/src/BettorBot/api/index.ts +49 -0
  83. package/src/BettorBot/components/BroadcastMessageCard.tsx +159 -0
  84. package/src/BettorBot/components/ServerInfoCard.tsx +73 -0
  85. package/src/BettorBot/index.tsx +295 -0
  86. package/src/NotificationManager/api/index.ts +134 -0
  87. package/src/NotificationManager/index.tsx +894 -0
  88. package/src/index.tsx +8 -1
  89. package/src/types.d.ts +118 -0
package/src/index.tsx CHANGED
@@ -69,6 +69,9 @@ import CreateEmbed from './PartnerPortal/components/CreateEmbed';
69
69
  import ReferralCodeManager from './PartnerPortal/components/ReferralCodeManager';
70
70
  import FlashCampaignManager from './PartnerPortal/components/FlashCampaignManager';
71
71
  import MyAction from './MyAction';
72
+ import BettorBotDashboard from './BettorBot';
73
+ import NotificationManager from './NotificationManager';
74
+ import { NotificationApi, NotificationHelpers } from './NotificationManager/api';
72
75
 
73
76
  export {
74
77
  Authenticator,
@@ -80,6 +83,7 @@ export {
80
83
  DiscordConnectionManager,
81
84
  BEEventApi,
82
85
  FlashCampaignManager,
86
+ BettorBotDashboard,
83
87
  EmbedManager,
84
88
  RankingsCard,
85
89
  ManageFlashMarket,
@@ -143,5 +147,8 @@ export {
143
147
  CompetitionCard,
144
148
  SquaresCompetitionCard,
145
149
  BracketCompetitionCard,
146
- SeasonCard
150
+ SeasonCard,
151
+ NotificationManager,
152
+ NotificationApi,
153
+ NotificationHelpers
147
154
  }
package/src/types.d.ts CHANGED
@@ -133,6 +133,11 @@ export interface PublicPlayerProps {
133
133
 
134
134
 
135
135
  //DiscordPlayer
136
+ export interface DiscordPlayerStatsProps {
137
+ status: string,
138
+ player_ids:string[],
139
+ count: number
140
+ }
136
141
  export interface DiscordPlayerProps {
137
142
  discord_player_id:string,
138
143
  player_id:string,
@@ -900,6 +905,76 @@ export interface GroupPlayerProps {
900
905
  last_update_datetime:any,
901
906
  }
902
907
 
908
+
909
+ export interface NotificationGroupProps {
910
+ notification_group_id:string,
911
+ name: string,
912
+ description: string,
913
+ grouping_function: string,
914
+ player_count:number,
915
+ status: 'active'|'inactive',
916
+ create_datetime:any,
917
+ last_update_datetime: any
918
+ }
919
+
920
+ export interface NotificationGroupMemberProps {
921
+ notification_group_member_id:string,
922
+ notification_group_id:string,
923
+ batch_number:number,
924
+ player_ids:string[],
925
+ create_datetime: any,
926
+ player_count:number
927
+ last_update_datetime: any
928
+ }
929
+
930
+ export interface NotificationOptionProps {
931
+ id:string,
932
+ body:string,
933
+ icon:string,
934
+ type:string,
935
+ data: {
936
+ id:string,
937
+ player_id:string,
938
+ pageStack:string,
939
+ page:string,
940
+ pageParams:any,
941
+ origin?:string,
942
+ url?:string ,
943
+ path_name?:string,
944
+ params?:any
945
+ }
946
+ }
947
+
948
+
949
+ export interface PlayerNotificationProps {
950
+ player_notification_id:string,
951
+ player_id:string,
952
+ type:'order_notifications'|'competition_notifications'|'social_notifications',
953
+ notify_body_type:string,
954
+ title:string,
955
+ options:NotificationOptionProps,
956
+ body:string,
957
+ template?:{
958
+ email_template:EmailTemplateProps,
959
+ parameters: {
960
+ param_name: string,
961
+ value:string
962
+ }[]
963
+ },
964
+ status:string,
965
+ template_id?:string,
966
+ link_override?:string,
967
+ sms_override?:boolean,
968
+ sms_number?:string,
969
+ from_sms_override?:string
970
+ email_override?:boolean,
971
+ email_address?:string,
972
+ expire_time:number,
973
+ create_datetime:any,
974
+ last_update_datetime:any,
975
+ original_type?:string
976
+ }
977
+
903
978
  export interface GroupMessageProps {
904
979
  group_message_id:string,
905
980
  group_id:string,
@@ -3152,3 +3227,46 @@ export interface CompanyEmbedProps {
3152
3227
  create_datetime:any,
3153
3228
  last_update_datetime:any
3154
3229
  }
3230
+
3231
+
3232
+
3233
+
3234
+ export interface BroadcastTarget {
3235
+ guild_id: string;
3236
+ channel_id?: string;
3237
+ }
3238
+
3239
+ export interface BroadcastResult {
3240
+ guild_id: string;
3241
+ channel_id?: string;
3242
+ success: boolean;
3243
+ error?: string;
3244
+ }
3245
+
3246
+
3247
+ export interface AccessibleChannel {
3248
+ id: string;
3249
+ name: string;
3250
+ type: ChannelType;
3251
+ }
3252
+
3253
+ export interface ServerInfo {
3254
+ id: string;
3255
+ name: string;
3256
+ icon: string | null;
3257
+ memberCount: number;
3258
+ ownerId: string;
3259
+ description: string | null;
3260
+ premiumTier: GuildPremiumTier;
3261
+ premiumSubscriptionCount: number | null;
3262
+ createdAt: Date;
3263
+ features: string[];
3264
+ vanityURL: string | null;
3265
+ accessibleChannels: AccessibleChannel[];
3266
+ }
3267
+
3268
+ export interface ServersResponse {
3269
+ totalGuilds: number;
3270
+ servers: ServerInfo[];
3271
+ error?:string
3272
+ }