Commit bfd6a2d
feat: Complete Access Review API with all features
Added:
- updateCampaign and completeCampaign endpoints
- Designated Owners CRUD (list, get, create, update, delete, getOwnersForSite)
- Notifications system (list, create, markRead, markAllRead, delete)
- Review item details (getItem)
- Bulk operations (bulkRetainAll)
- Campaign reports (getCampaignReport)
- Schedule runner (runSchedule)
- Auto-scheduler job for scheduled reviews
Features:
- Auto-create campaigns from schedules at next run time
- Auto-send reminder notifications (7, 3, 1 days before due)
- Auto-retain pending items for autoExecute schedules
- Overdue campaign notifications
Updated Prisma schema:
- DesignatedOwner model with userId, siteUrl, ownerType, notes, isActive
- AccessReviewNotification model with userId, title, message, readAt
- AccessReviewCampaign with scheduledReviewId field
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 065ca9d commit bfd6a2d
5 files changed
Lines changed: 941 additions & 14 deletions
File tree
- .github/workflows
- prisma
- src
- jobs
- trpc/routers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
211 | 218 | | |
212 | | - | |
213 | | - | |
| 219 | + | |
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
218 | 229 | | |
219 | 230 | | |
220 | | - | |
221 | | - | |
| 231 | + | |
222 | 232 | | |
223 | 233 | | |
224 | 234 | | |
225 | 235 | | |
226 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
227 | 239 | | |
| 240 | + | |
228 | 241 | | |
229 | 242 | | |
230 | 243 | | |
231 | 244 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
235 | 251 | | |
236 | 252 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
241 | 256 | | |
242 | 257 | | |
243 | | - | |
| 258 | + | |
| 259 | + | |
244 | 260 | | |
245 | 261 | | |
246 | 262 | | |
247 | 263 | | |
| 264 | + | |
248 | 265 | | |
249 | 266 | | |
250 | | - | |
| 267 | + | |
251 | 268 | | |
252 | 269 | | |
253 | 270 | | |
| |||
0 commit comments