IAM related required updates

This commit is contained in:
Stephanos A
2026-06-24 19:53:05 +03:00
parent d94e0e9d35
commit 58967e6e3d
19 changed files with 240 additions and 142 deletions

View File

@@ -7,6 +7,7 @@ import {
Post,
Patch,
Query,
SetMetadata,
UseGuards,
} from "@nestjs/common";
import {
@@ -17,7 +18,6 @@ import {
ApiQuery,
ApiResponse,
} from "@nestjs/swagger";
import { IsPublic } from "@tria-plc/api-common/modules/auth/decorators/public.decorator";
import { SeatsService } from "./seats.service";
import { HoldSeatsDto } from "./seats.dto";
import { JwtGuard } from "../../common/jwt.guard";
@@ -30,6 +30,7 @@ export class SeatsController {
// ── Seat Map ──────────────────────────────────────────────────────────────
@Get("seatmap/:scheduleId")
@SetMetadata('isPublic', true)
@ApiOperation({
summary: "Get seat map filtered by coach type",
description: `Returns all coaches of the given coachTypeId assigned to the schedule, each with their full seat list and real-time availability. Origin and destination are derived from the schedule. Omit coachTypeId to get all coaches.`,
@@ -103,6 +104,7 @@ This makes it clear which segment of the route each seat is held for, enabling s
}
@Post("hold")
@SetMetadata('isPublic', true)
@ApiOperation({
summary:
"Hold seats for 15 minutes before booking (Public - Guest booking supported)",