be-components 7.4.3 → 7.4.6

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 +1177 -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 +1158 -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 +818 -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 +19 -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 +21 -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 +917 -0
  44. package/src/index.tsx +6 -1
  45. package/src/types.d.ts +70 -0
package/src/index.tsx CHANGED
@@ -70,6 +70,8 @@ import ReferralCodeManager from './PartnerPortal/components/ReferralCodeManager'
70
70
  import FlashCampaignManager from './PartnerPortal/components/FlashCampaignManager';
71
71
  import MyAction from './MyAction';
72
72
  import BettorBotDashboard from './BettorBot';
73
+ import NotificationManager from './NotificationManager';
74
+ import { NotificationApi, NotificationHelpers } from './NotificationManager/api';
73
75
 
74
76
  export {
75
77
  Authenticator,
@@ -145,5 +147,8 @@ export {
145
147
  CompetitionCard,
146
148
  SquaresCompetitionCard,
147
149
  BracketCompetitionCard,
148
- SeasonCard
150
+ SeasonCard,
151
+ NotificationManager,
152
+ NotificationApi,
153
+ NotificationHelpers
149
154
  }
package/src/types.d.ts CHANGED
@@ -905,6 +905,76 @@ export interface GroupPlayerProps {
905
905
  last_update_datetime:any,
906
906
  }
907
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
+
908
978
  export interface GroupMessageProps {
909
979
  group_message_id:string,
910
980
  group_id:string,