be-components 7.6.3 → 7.6.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 (138) hide show
  1. package/lib/commonjs/NotificationManager/NotificationManagerTabs.js +188 -0
  2. package/lib/commonjs/NotificationManager/NotificationManagerTabs.js.map +1 -0
  3. package/lib/commonjs/NotificationManager/api/index.js +235 -6
  4. package/lib/commonjs/NotificationManager/api/index.js.map +1 -1
  5. package/lib/commonjs/NotificationManager/components/GroupManagement.js +1038 -0
  6. package/lib/commonjs/NotificationManager/components/GroupManagement.js.map +1 -0
  7. package/lib/commonjs/NotificationManager/components/JobManagement.js +783 -0
  8. package/lib/commonjs/NotificationManager/components/JobManagement.js.map +1 -0
  9. package/lib/commonjs/NotificationManager/components/ScheduleNotification.js +407 -0
  10. package/lib/commonjs/NotificationManager/components/ScheduleNotification.js.map +1 -0
  11. package/lib/commonjs/NotificationManager/components/index.js +56 -0
  12. package/lib/commonjs/NotificationManager/components/index.js.map +1 -0
  13. package/lib/commonjs/NotificationManager/components/shared/DateTimePicker.js +113 -0
  14. package/lib/commonjs/NotificationManager/components/shared/DateTimePicker.js.map +1 -0
  15. package/lib/commonjs/NotificationManager/components/shared/GroupSelector.js +191 -0
  16. package/lib/commonjs/NotificationManager/components/shared/GroupSelector.js.map +1 -0
  17. package/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.js +509 -0
  18. package/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.js.map +1 -0
  19. package/lib/commonjs/NotificationManager/components/shared/StatusBadge.js +69 -0
  20. package/lib/commonjs/NotificationManager/components/shared/StatusBadge.js.map +1 -0
  21. package/lib/commonjs/NotificationManager/index.js +38 -23
  22. package/lib/commonjs/NotificationManager/index.js.map +1 -1
  23. package/lib/commonjs/index.js +7 -0
  24. package/lib/commonjs/index.js.map +1 -1
  25. package/lib/commonjs/types.d.js +2 -0
  26. package/lib/commonjs/types.d.js.map +1 -1
  27. package/lib/module/NotificationManager/NotificationManagerTabs.js +180 -0
  28. package/lib/module/NotificationManager/NotificationManagerTabs.js.map +1 -0
  29. package/lib/module/NotificationManager/api/index.js +235 -6
  30. package/lib/module/NotificationManager/api/index.js.map +1 -1
  31. package/lib/module/NotificationManager/components/GroupManagement.js +1030 -0
  32. package/lib/module/NotificationManager/components/GroupManagement.js.map +1 -0
  33. package/lib/module/NotificationManager/components/JobManagement.js +775 -0
  34. package/lib/module/NotificationManager/components/JobManagement.js.map +1 -0
  35. package/lib/module/NotificationManager/components/ScheduleNotification.js +399 -0
  36. package/lib/module/NotificationManager/components/ScheduleNotification.js.map +1 -0
  37. package/lib/module/NotificationManager/components/index.js +8 -0
  38. package/lib/module/NotificationManager/components/index.js.map +1 -0
  39. package/lib/module/NotificationManager/components/shared/DateTimePicker.js +106 -0
  40. package/lib/module/NotificationManager/components/shared/DateTimePicker.js.map +1 -0
  41. package/lib/module/NotificationManager/components/shared/GroupSelector.js +184 -0
  42. package/lib/module/NotificationManager/components/shared/GroupSelector.js.map +1 -0
  43. package/lib/module/NotificationManager/components/shared/NotificationBuilderForm.js +501 -0
  44. package/lib/module/NotificationManager/components/shared/NotificationBuilderForm.js.map +1 -0
  45. package/lib/module/NotificationManager/components/shared/StatusBadge.js +62 -0
  46. package/lib/module/NotificationManager/components/shared/StatusBadge.js.map +1 -0
  47. package/lib/module/NotificationManager/index.js +32 -23
  48. package/lib/module/NotificationManager/index.js.map +1 -1
  49. package/lib/module/index.js +2 -1
  50. package/lib/module/index.js.map +1 -1
  51. package/lib/module/types.d.js +2 -0
  52. package/lib/module/types.d.js.map +1 -1
  53. package/lib/typescript/lib/commonjs/NotificationManager/NotificationManagerTabs.d.ts +17 -0
  54. package/lib/typescript/lib/commonjs/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
  55. package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts +17 -2
  56. package/lib/typescript/lib/commonjs/NotificationManager/api/index.d.ts.map +1 -1
  57. package/lib/typescript/lib/commonjs/NotificationManager/components/GroupManagement.d.ts +6 -0
  58. package/lib/typescript/lib/commonjs/NotificationManager/components/GroupManagement.d.ts.map +1 -0
  59. package/lib/typescript/lib/commonjs/NotificationManager/components/JobManagement.d.ts +7 -0
  60. package/lib/typescript/lib/commonjs/NotificationManager/components/JobManagement.d.ts.map +1 -0
  61. package/lib/typescript/lib/commonjs/NotificationManager/components/ScheduleNotification.d.ts +8 -0
  62. package/lib/typescript/lib/commonjs/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
  63. package/lib/typescript/lib/commonjs/NotificationManager/components/index.d.ts +9 -0
  64. package/lib/typescript/lib/commonjs/NotificationManager/components/index.d.ts.map +1 -0
  65. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/DateTimePicker.d.ts +9 -0
  66. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
  67. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/GroupSelector.d.ts +13 -0
  68. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
  69. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.d.ts +10 -0
  70. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
  71. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/StatusBadge.d.ts +6 -0
  72. package/lib/typescript/lib/commonjs/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
  73. package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts +18 -2
  74. package/lib/typescript/lib/commonjs/NotificationManager/index.d.ts.map +1 -1
  75. package/lib/typescript/lib/commonjs/index.d.ts +18 -2
  76. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
  77. package/lib/typescript/lib/module/NotificationManager/NotificationManagerTabs.d.ts +17 -0
  78. package/lib/typescript/lib/module/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
  79. package/lib/typescript/lib/module/NotificationManager/api/index.d.ts +17 -2
  80. package/lib/typescript/lib/module/NotificationManager/api/index.d.ts.map +1 -1
  81. package/lib/typescript/lib/module/NotificationManager/components/GroupManagement.d.ts +6 -0
  82. package/lib/typescript/lib/module/NotificationManager/components/GroupManagement.d.ts.map +1 -0
  83. package/lib/typescript/lib/module/NotificationManager/components/JobManagement.d.ts +7 -0
  84. package/lib/typescript/lib/module/NotificationManager/components/JobManagement.d.ts.map +1 -0
  85. package/lib/typescript/lib/module/NotificationManager/components/ScheduleNotification.d.ts +8 -0
  86. package/lib/typescript/lib/module/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
  87. package/lib/typescript/lib/module/NotificationManager/components/index.d.ts +8 -0
  88. package/lib/typescript/lib/module/NotificationManager/components/index.d.ts.map +1 -0
  89. package/lib/typescript/lib/module/NotificationManager/components/shared/DateTimePicker.d.ts +9 -0
  90. package/lib/typescript/lib/module/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
  91. package/lib/typescript/lib/module/NotificationManager/components/shared/GroupSelector.d.ts +13 -0
  92. package/lib/typescript/lib/module/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
  93. package/lib/typescript/lib/module/NotificationManager/components/shared/NotificationBuilderForm.d.ts +10 -0
  94. package/lib/typescript/lib/module/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
  95. package/lib/typescript/lib/module/NotificationManager/components/shared/StatusBadge.d.ts +6 -0
  96. package/lib/typescript/lib/module/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
  97. package/lib/typescript/lib/module/NotificationManager/index.d.ts +1 -0
  98. package/lib/typescript/lib/module/NotificationManager/index.d.ts.map +1 -1
  99. package/lib/typescript/lib/module/index.d.ts +2 -1
  100. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  101. package/lib/typescript/src/NotificationManager/NotificationManagerTabs.d.ts +20 -0
  102. package/lib/typescript/src/NotificationManager/NotificationManagerTabs.d.ts.map +1 -0
  103. package/lib/typescript/src/NotificationManager/api/index.d.ts +74 -3
  104. package/lib/typescript/src/NotificationManager/api/index.d.ts.map +1 -1
  105. package/lib/typescript/src/NotificationManager/components/GroupManagement.d.ts +8 -0
  106. package/lib/typescript/src/NotificationManager/components/GroupManagement.d.ts.map +1 -0
  107. package/lib/typescript/src/NotificationManager/components/JobManagement.d.ts +9 -0
  108. package/lib/typescript/src/NotificationManager/components/JobManagement.d.ts.map +1 -0
  109. package/lib/typescript/src/NotificationManager/components/ScheduleNotification.d.ts +10 -0
  110. package/lib/typescript/src/NotificationManager/components/ScheduleNotification.d.ts.map +1 -0
  111. package/lib/typescript/src/NotificationManager/components/index.d.ts +8 -0
  112. package/lib/typescript/src/NotificationManager/components/index.d.ts.map +1 -0
  113. package/lib/typescript/src/NotificationManager/components/shared/DateTimePicker.d.ts +12 -0
  114. package/lib/typescript/src/NotificationManager/components/shared/DateTimePicker.d.ts.map +1 -0
  115. package/lib/typescript/src/NotificationManager/components/shared/GroupSelector.d.ts +16 -0
  116. package/lib/typescript/src/NotificationManager/components/shared/GroupSelector.d.ts.map +1 -0
  117. package/lib/typescript/src/NotificationManager/components/shared/NotificationBuilderForm.d.ts +12 -0
  118. package/lib/typescript/src/NotificationManager/components/shared/NotificationBuilderForm.d.ts.map +1 -0
  119. package/lib/typescript/src/NotificationManager/components/shared/StatusBadge.d.ts +8 -0
  120. package/lib/typescript/src/NotificationManager/components/shared/StatusBadge.d.ts.map +1 -0
  121. package/lib/typescript/src/NotificationManager/index.d.ts +1 -0
  122. package/lib/typescript/src/NotificationManager/index.d.ts.map +1 -1
  123. package/lib/typescript/src/index.d.ts +2 -1
  124. package/lib/typescript/src/index.d.ts.map +1 -1
  125. package/package.json +1 -1
  126. package/src/NotificationManager/NotificationManagerTabs.tsx +178 -0
  127. package/src/NotificationManager/api/index.ts +239 -6
  128. package/src/NotificationManager/components/GroupManagement.tsx +854 -0
  129. package/src/NotificationManager/components/JobManagement.tsx +569 -0
  130. package/src/NotificationManager/components/ScheduleNotification.tsx +388 -0
  131. package/src/NotificationManager/components/index.ts +7 -0
  132. package/src/NotificationManager/components/shared/DateTimePicker.tsx +94 -0
  133. package/src/NotificationManager/components/shared/GroupSelector.tsx +130 -0
  134. package/src/NotificationManager/components/shared/NotificationBuilderForm.tsx +364 -0
  135. package/src/NotificationManager/components/shared/StatusBadge.tsx +72 -0
  136. package/src/NotificationManager/index.tsx +43 -24
  137. package/src/index.tsx +2 -0
  138. package/src/types.d.ts +38 -3
@@ -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,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,iBAAiB,MAAM,eAAe,CAAC;AAC9C,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,WAAW,MAAM,WAAW,CAAC;AACpC,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,aAAa,MAAM,WAAW,CAAC;AAC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ACpB,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"}
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,OAA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,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.6.3",
3
+ "version": "7.6.4",
4
4
  "description": "Components for BettorEdge Apps",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -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
 
@@ -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 resp = await axios.post(`${AUTH_SVC_API}/v1/notifications/bulk/send`, { player_notification, player_ids });
111
- console.log(resp.data)
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 resp = await axios.get(`${AUTH_SVC_API}/v1/notifications/groups/active`);
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
  }