teams: clean up memberships
Continuing the critical optmisations from !566 (merged), this MR tries to remove all relations: { group: { memberships : { ... } } }
from BE.
Main endpoint optimised this time: /v1/tickets/:accessID/document
Additionally:
- Assert judge is active in
isJudgeByEventUUID
- Only update
badge.lastEntry
forBadgeScanType.ENTRY
- Restrict
BadgeScanDTO
from being used forBadgeScanType.MERCH_SHOP
andBadgeScanType.SPONSOR
Clean up:
- Remove obsolete endpoint
GET competitions/:competitionUUID/teams/:slug
- Remove obsolete endpoint
GET teams/:teamID/hq
- Remove obsolete endpoint
GET teams/jamboree-attendance
- Remove obsolete function
searchTeamJamboreeAttendance
- Remove obsolete params
CompetitionSlugParams
,JamboreeTeamSearchParams
- Remove obsolete DTOs
TeamHqDTO
,TeamJamboreeTicketSummaryDTO
,TeamJamboreeAttendanceDTO