// ADDRESS MAPPER의 LV1 ID를 통해 하위(LV2, LV3, LV4) ID 검색 import {HTTPNoBody} from '@fastify-modular/route'; import {pito} from 'pito'; export const FindMapperSubLevelsOption = pito.Obj({ id: pito.Str(), // LV1 ID }); export const FindMapperSubLevelsOutput = pito.Obj({ found: pito.Arr( pito.Obj({ level: pito.Int(), lv1Id: pito.Str(), lv2Id: pito.Opt(pito.Str()), lv3Id: pito.Opt(pito.Str()), }), ), }); export type FindMapperSubLevelsOption = pito.Type; export type FindMapperSubLevelsOutput = pito.Type; // OpenApiMapper의 LV1 ID를 통해 하위 LV2, LV3, LV4 ID 목록 검색 export const FindMapperSubLevels = HTTPNoBody('GET', '/api/v1/address/find-mapper-sub-levels', 'address') .query(FindMapperSubLevelsOption) .response(FindMapperSubLevelsOutput) .build();