mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
80b6739362
A trip can now show one journal from the Journey addon as its own: any journal its owner picks, and one journal on as many trips as they like. The trip members chosen for the link get into the journal as viewers or editors, see it in their own journal list and follow it live, for as long as the link holds them and they stay on the trip. That access is never copied into journey_contributors. It is read where journal access is read: the contributor repository answers with the stronger of a direct role and a link role, the journal list and the live update recipients take the link members in, and the photo access check goes the same way. Every one of those reads starts from linkReach, which only counts members still on the linking trip, so unlinking, deselecting someone and their leaving the trip all end exactly what the link gave. A member who leaves is also taken off the link, so coming back later does not quietly reopen the journal. Linking or changing the members takes the journal's owner and the new journal_link trip permission (trip owner by default); unlinking takes either. /api/trips/:tripId/journal answers the link as each member may see it, /candidates says who a journal would be opened to for the first time, and four MCP tools do the same over the same service. A trip:journal:changed event tells the trip to look again.
144 lines
4.5 KiB
JSON
144 lines
4.5 KiB
JSON
{
|
|
"Addons": "addons",
|
|
"AppSettings": "settings",
|
|
"AssignmentParticipants": "assignments",
|
|
"AuditLog": "audit",
|
|
"BucketList": "atlas",
|
|
"BudgetCategoryOrder": "budget",
|
|
"BudgetItemMembers": "budget",
|
|
"BudgetItemPayers": "budget",
|
|
"BudgetItems": "budget",
|
|
"BudgetSettlements": "budget",
|
|
"Categories": "categories",
|
|
"CollabLinks": "collab",
|
|
"CollabMessageReactions": "collab",
|
|
"CollabMessages": "collab",
|
|
"CollabNotes": "collab",
|
|
"CollabPollVotes": "collab",
|
|
"CollabPolls": "collab",
|
|
"CollectionLabels": "collections",
|
|
"CollectionMembers": "collections",
|
|
"CollectionPlaceRatings": "collections",
|
|
"CollectionPlaces": "collections",
|
|
"Collections": "collections",
|
|
"DawarichConnections": "integrations",
|
|
"DawarichVisitSuggestions": "integrations",
|
|
"DayAccommodations": "accommodations",
|
|
"DayAssignments": "assignments",
|
|
"DayNotes": "day-notes",
|
|
"Days": "days",
|
|
"DocumentConnections": "doc-sync",
|
|
"DocumentProviderFields": "doc-sync",
|
|
"DocumentProviders": "doc-sync",
|
|
"DocumentSyncItems": "doc-sync",
|
|
"FerrataTiles": "ferratas",
|
|
"FileLinks": "files",
|
|
"GoogleApiUsage": "google-quota",
|
|
"GooglePlacePhotoMeta": "place-photos",
|
|
"HiddenCountries": "atlas",
|
|
"HiddenRegions": "atlas",
|
|
"IdempotencyKeys": "common",
|
|
"InviteTokens": "auth",
|
|
"JourneyBooks": "journey",
|
|
"JourneyContributors": "journey",
|
|
"JourneyEntries": "journey",
|
|
"JourneyEntryPhotos": "journey",
|
|
"JourneyPhotos": "journey",
|
|
"JourneyShareTokens": "journey",
|
|
"JourneyTrips": "journey",
|
|
"Journeys": "journey",
|
|
"McpTokens": "tokens",
|
|
"NotificationChannelPreferences": "notifications",
|
|
"Notifications": "notifications",
|
|
"OauthClients": "oauth",
|
|
"OauthConsents": "oauth",
|
|
"OauthTokens": "oauth",
|
|
"PackingBags": "packing",
|
|
"PackingCategoryAssignees": "packing",
|
|
"PackingItemContributors": "packing",
|
|
"PackingItems": "packing",
|
|
"PackingTemplateCategories": "packing",
|
|
"PackingTemplateItems": "packing",
|
|
"PackingTemplates": "packing",
|
|
"PaddleFeatures": "paddle-obstacles",
|
|
"PaddleRegions": "paddle-obstacles",
|
|
"PasswordResetTokens": "auth",
|
|
"PhotoProviderFields": "addons",
|
|
"PhotoProviders": "addons",
|
|
"Photos": "photos",
|
|
"PlaceDetailsCache": "maps",
|
|
"PlaceRatings": "places",
|
|
"PlaceRegions": "atlas",
|
|
"PlaceShadowPicks": "place-shadow",
|
|
"Places": "places",
|
|
"PluginActions": "plugins",
|
|
"PluginCapabilityAudit": "plugins",
|
|
"PluginEgressHosts": "plugins",
|
|
"PluginEntityMetadata": "plugins",
|
|
"PluginErrorLog": "plugins",
|
|
"PluginMetaMigrations": "plugins",
|
|
"PluginOauthState": "plugins",
|
|
"PluginOauthTokens": "plugins",
|
|
"PluginScheduledTasks": "plugins",
|
|
"PluginSettingsFields": "plugins",
|
|
"PluginUserConfig": "plugins",
|
|
"PluginUserErasureQueue": "plugins",
|
|
"Plugins": "plugins",
|
|
"PushSubscriptions": "notifications",
|
|
"ReservationDayPositions": "reservations",
|
|
"ReservationEndpoints": "reservations",
|
|
"ReservationEndpointsEntity": "reservations",
|
|
"ReservationTravelers": "reservations",
|
|
"ReservationTravelersEntity": "reservations",
|
|
"Reservations": "reservations",
|
|
"RoadtripDayBoundaries": "roadtrip",
|
|
"RoadtripDayTracks": "roadtrip",
|
|
"RoadtripPreferences": "roadtrip",
|
|
"RoadtripPreferencesEntity": "roadtrip",
|
|
"RoadtripVias": "roadtrip",
|
|
"RouteUsageDaily": "route-usage",
|
|
"SchedulerLeases": "scheduling",
|
|
"SchoolHolidayCountries": "school-holidays",
|
|
"SchoolHolidayPeriods": "school-holidays",
|
|
"SchoolHolidayRegions": "school-holidays",
|
|
"Settings": "settings",
|
|
"ShareTokens": "share",
|
|
"Tags": "tags",
|
|
"TodoCategoryAssignees": "todo",
|
|
"TodoItems": "todo",
|
|
"TourObstacleReviews": "tours",
|
|
"TourSources": "tours",
|
|
"TourTypes": "tours",
|
|
"TourWaypoints": "tours",
|
|
"Tours": "tours",
|
|
"TrekPhotoCacheMeta": "memories",
|
|
"TrekPhotos": "photos",
|
|
"TripAlbumLinks": "memories",
|
|
"TripDocumentLinks": "doc-sync",
|
|
"TripFiles": "files",
|
|
"TripInviteTokens": "trip-invite",
|
|
"TripJournalLinkMembers": "journey",
|
|
"TripJournalLinks": "journey",
|
|
"TripMembers": "trip-membership",
|
|
"TripPhotos": "photos",
|
|
"Trips": "trips",
|
|
"UserNoticeDismissals": "system-notices",
|
|
"UserSessions": "sessions",
|
|
"Users": "auth",
|
|
"VacayCompanyHolidays": "vacay",
|
|
"VacayEntries": "vacay",
|
|
"VacayHolidayCalendars": "vacay",
|
|
"VacayPlanMembers": "vacay",
|
|
"VacayPlans": "vacay",
|
|
"VacayShares": "vacay",
|
|
"VacayUserColors": "vacay",
|
|
"VacayUserSettingsEntity": "vacay",
|
|
"VacayUserYears": "vacay",
|
|
"VacayYears": "vacay",
|
|
"VisitedCountries": "atlas",
|
|
"VisitedRegions": "atlas",
|
|
"WandererConnections": "wanderer",
|
|
"WebauthnChallenges": "auth",
|
|
"WebauthnCredentials": "auth"
|
|
}
|