feat(backend): 장소·축제·공연·전시 데이터 기반(장소 DB·동기화·조회 API) #1

Merged
ttipo merged 30 commits from feat/place-db into main 2026-11-04 13:25:51 +09:00
Showing only changes of commit 94c8693dad - Show all commits
@@ -7,6 +7,7 @@ import {
isErrorCode,
resolveCodeByStatus,
} from './error-codes';
import type { ErrorCodeDefinition } from './error-codes';
import { BusinessException } from './business.exception';
describe('에러 코드 레지스트리', () => {
@@ -45,7 +46,8 @@ describe('에러 코드 레지스트리', () => {
});
it('클라이언트 전용 코드(AUTH_002)는 서버가 상태 역매핑으로 선택하지 않는다', () => {
const clientOnlyCodes = Object.entries(ERROR_CODES)
// 코드마다 리터럴 타입이 달라 공통 정의 타입으로 넓혀야 선택 속성(clientOnly)을 읽을 수 있다
const clientOnlyCodes = Object.entries<ErrorCodeDefinition>(ERROR_CODES)
.filter(([, definition]) => definition.clientOnly)
.map(([code]) => code);