Assist_Design/apps/bff/src/modules/support/support.controller.ts
barsa 8c89109213 Update worktree setup and enhance BFF with SupportModule integration
- Changed worktree setup command from npm to pnpm for improved package management.
- Added SupportModule to app.module.ts and router.config.ts for better support case handling.
- Refactored OrderEventsService to utilize OrderUpdateEventPayload for improved type safety.
- Updated InvoicesList component to use INVOICE_STATUS for status filtering and improved type definitions.
- Enhanced SimActions and SimDetailsCard components to utilize SimStatus for better state management.
- Refactored Subscription components to leverage new utility functions for status handling and billing cycle labels.
- Improved SupportCasesView with better state management and error handling.
- Updated API query keys to include support cases for better data retrieval.
2025-11-18 14:06:27 +09:00

25 lines
778 B
TypeScript

import { Controller, Get, Query, Request } from "@nestjs/common";
import { SupportService } from "./support.service";
import { ZodValidationPipe } from "@customer-portal/validation/nestjs";
import {
supportCaseFilterSchema,
type SupportCaseFilter,
type SupportCaseList,
} from "@customer-portal/domain/support";
import type { RequestWithUser } from "@bff/modules/auth/auth.types";
@Controller("support")
export class SupportController {
constructor(private readonly supportService: SupportService) {}
@Get("cases")
async listCases(
@Request() _req: RequestWithUser,
@Query(new ZodValidationPipe(supportCaseFilterSchema))
filters: SupportCaseFilter
): Promise<SupportCaseList> {
void _req;
return this.supportService.listCases(filters);
}
}