Compare commits

...
10 Commits
Author SHA1 Message Date
minaChoiandClaude Opus 4.7 5839001e82 chore: orval 재생성 + report 정합 + /test fixture 정리
- orval: youtube/instagram/facebook 의 split 타입을 inline 으로 복귀, facebookPageEngagement·postFrequency 추가
- report: mainCTA → mainCta 로 백엔드 명세 정합 (transformer 가 항상 빈 문자열로 떨어지던 버그)
- report: additionalDomains 의 purpose 비면 ' — ' 표시 안 함
- /test fixture 에서 나나성형외과 제거 (10 → 9)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 22:51:44 +09:00
minaChoiandClaude Opus 4.7 ea7b21dee3 fix(dev): /dev/clinics 페이지 제거 — list 엔드포인트 사라져 빌드 깨짐
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 09:45:26 +09:00
minaChoiandClaude Opus 4.7 b4691b029a dev(test): /test prefill 칩 그룹 + clinic_registry 기반 10개 fixture 재구성
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 09:42:23 +09:00
minaChoiandClaude Opus 4.7 4f6c30e249 fix(report): Instagram audit 에서 릴스 수 행 제거 — 백엔드 미수집
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 09:42:18 +09:00
minaChoiandClaude Opus 4.7 03c3c7ab21 fix(report): youtube_audit null 가드 + clinic overview 게이트 완화
- weeklyViewGrowth/estimatedMonthlyRevenue/avgVideoLength/uploadFrequency/subscriberRank 를 nullable 로 타입 표시, YouTubeAudit 컴포넌트에서 null 접근 가드
- ClinicSnapshot 게이트를 name 필수 → 의미있는 필드 하나라도 있으면 렌더로 완화

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 09:42:14 +09:00
minaChoiandClaude Opus 4.7 156dad59dc chore(api): orval 재생성 — clinic_snapshot/youtube_audit/instagram_account/facebook_page nullable 필드 분리, priceRange/clinicResponseRawData 제거
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 09:42:07 +09:00
minaChoiandClaude Opus 4.7 2db78e6bec chore(api): orval 재생성 — 채널 5종(tiktok·instagram_en·facebook_en·kakao_talk·naver_cafe) 추가, clinic list 엔드포인트 제거, missing→N/A
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-29 10:49:53 +09:00
minaChoiandClaude Opus 4.7 046d36302a dev(test): /test 타이틀 'prefill 테스트' 로 단순화 + 선택 병원 표시 제거
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 16:47:14 +09:00
minaChoiandClaude Opus 4.7 f74e74a45b revert: YouTube 재생목록 chip 원본 디자인으로 복원 + repurpose 스크롤바 표시
- YouTubeAudit: '재생목록' chip 을 원본(흰색 단순 chip, Play 아이콘 제거)으로 복원
- AssetCollection: Top Videos for Repurposing 가로 스크롤바 hide 제거

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 16:29:14 +09:00
minaChoiandClaude Opus 4.7 bf90e8d242 fix(brand-consistency): 0개 불일치 → '전 채널 일치' 로 표기
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 09:21:43 +09:00
49 changed files with 349 additions and 587 deletions

No files matched your search

+72 -84
View File
@@ -2,7 +2,7 @@
* /test 페이지 + 향후 E2E·부하 테스트용 목업 병원 URL 데이터.
*
* 7개 채널: homepage, youtube, instagram, facebook, naverPlace, naverBlog, gangnamUnni
* 빈 채널은 분석에서 제외됨. naverPlace는 수동 확인 필요(숫자 ID 기반).
* 빈 채널은 분석에서 제외됨.
*/
export interface ChannelUrls {
@@ -24,121 +24,109 @@ export const CLINICS: ClinicFixture[] = [
{
label: '뷰성형외과',
urls: {
homepage: 'viewclinic.com',
youtube: 'youtube.com/channel/UCQqqH3Klj2HQSHNNSVug-CQ',
instagram: 'instagram.com/viewplastic',
facebook: 'facebook.com/viewps1',
naverPlace: 'https://naver.me/x9BxGXkK',
naverBlog: 'blog.naver.com/viewclinicps',
gangnamUnni: 'gangnamunni.com/hospitals/189',
homepage: 'https://www.viewclinic.com',
youtube: 'https://www.youtube.com/@ViewclinicKR',
instagram: 'https://www.instagram.com/viewplastic/',
facebook: 'https://www.facebook.com/viewps1/',
naverPlace: 'https://m.place.naver.com/hospital/11709005',
naverBlog: 'https://blog.naver.com/viewclinicps',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/189',
},
},
{
label: '바노바기 성형외과',
label: '바노바기성형외과',
urls: {
homepage: 'banobagi.com',
youtube: 'youtube.com/c/banobagips',
instagram: 'instagram.com/banobagi_ps',
facebook: 'facebook.com/BanobagiPlasticSurgery',
naverPlace: 'https://naver.me/xxY2yLr5',
naverBlog: 'blog.naver.com/banobagiprs',
gangnamUnni: 'gangnamunni.com/hospitals/23',
homepage: 'https://www.banobagi.com',
youtube: 'https://www.youtube.com/c/banobagips',
instagram: 'https://www.instagram.com/banobagi_ps/',
facebook: 'https://www.facebook.com/BanobagiPlasticSurgery',
naverPlace: 'https://m.place.naver.com/hospital/21033469',
naverBlog: 'https://blog.naver.com/banobagips',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/23',
},
},
{
label: 'ID 성형외과',
label: '아이디병원',
urls: {
homepage: 'idhospital.com',
youtube: 'youtube.com/user/IDhospital',
instagram: 'instagram.com/idhospital',
facebook: 'facebook.com/idhospital0050',
naverPlace: 'https://naver.me/GtURpCEn',
naverBlog: '',
gangnamUnni: 'gangnamunni.com/hospitals/257',
homepage: 'https://www.idhospital.com',
youtube: 'https://www.youtube.com/user/IDhospital',
instagram: 'https://www.instagram.com/idhospital',
facebook: 'https://www.facebook.com/idhospital0050',
naverPlace: 'https://m.place.naver.com/hospital/11548359',
naverBlog: 'https://blog.naver.com/idfacial',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/257',
},
},
{
label: 'JK 성형외과',
label: '그랜드성형외과',
urls: {
homepage: 'jkplastic.com',
youtube: 'youtube.com/channel/UC5F8dEt32hdp3cTeFyls4qg',
instagram: 'instagram.com/jkplasticsurgery_kr',
facebook: 'facebook.com/jkmedicalgroup',
naverPlace: 'https://naver.me/x67y6cAc',
naverBlog: 'blog.naver.com/jkstory1',
gangnamUnni: 'gangnamunni.com/hospitals/858',
homepage: 'https://www.grandsurgery.com',
youtube: 'https://www.youtube.com/channel/UCU2o_aHqsNFuqwtdzVM3xbQ',
instagram: 'https://www.instagram.com/grand_korea/',
facebook: 'https://www.facebook.com/grandps.korea',
naverPlace: 'https://m.place.naver.com/hospital/12322994',
naverBlog: 'https://blog.naver.com/grandprs',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/62',
},
},
{
label: '그랜드 성형외과',
label: '원진성형외과',
urls: {
homepage: 'grandsurgery.com',
youtube: 'youtube.com/channel/UCU2o_aHqsNFuqwtdzVM3xbQ',
instagram: 'instagram.com/grand_korea',
facebook: 'facebook.com/grandps.korea',
naverPlace: 'https://naver.me/Fw7MYKWK',
naverBlog: 'blog.naver.com/grandprs',
gangnamUnni: 'gangnamunni.com/hospitals/62',
homepage: 'https://www.k-wonjin.co.kr',
youtube: 'https://www.youtube.com/@wjwonjin',
instagram: 'https://www.instagram.com/wonjin_official/',
facebook: 'https://www.facebook.com/KwonjinPS',
naverPlace: 'https://m.place.naver.com/hospital/11887873',
naverBlog: 'https://blog.naver.com/popokpop',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/2500',
},
},
{
label: 'BK 성형외과',
label: '디에이성형외과',
urls: {
homepage: 'bkhospital.com',
youtube: 'youtube.com/channel/UChJONft3hemy5DGbXUveTFg',
instagram: 'instagram.com/bkhospital_korea',
facebook: '',
naverPlace: 'https://naver.me/517CTH3W',
naverBlog: '',
gangnamUnni: '',
homepage: 'https://daprs.com',
youtube: 'https://www.youtube.com/channel/UC0wlA-w5JIt0G0EeWQf65AQ',
instagram: 'https://www.instagram.com/da_plastic_surgery',
facebook: 'https://www.facebook.com/daprs/',
naverPlace: 'https://m.place.naver.com/hospital/33084820',
naverBlog: 'https://blog.naver.com/daprs',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/250',
},
},
{
label: '톡스앤필',
label: '노트성형외과',
urls: {
homepage: 'toxnfill.com',
youtube: 'youtube.com/channel/UCFpFZkm7mclD-z_-j7FTUag',
instagram: 'instagram.com/toxnfill_official',
facebook: 'facebook.com/toxnfill.official',
naverPlace: 'https://naver.me/FvEmJIHA',
naverBlog: 'blog.naver.com/toxnfill',
gangnamUnni: 'gangnamunni.com/hospitals/3702',
homepage: 'http://notebreast.com',
youtube: 'https://www.youtube.com/channel/UC2OIyb2serotqDyEzQYyCtA',
instagram: 'https://www.instagram.com/note.prs/',
facebook: 'https://www.facebook.com/noteprs2/',
naverPlace: 'https://m.place.naver.com/hospital/1572670484',
naverBlog: 'https://blog.naver.com/noteprs01',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/2186',
},
},
{
label: '더 압구정 성형외과',
label: '에이비성형외과',
urls: {
homepage: 'theclinic.co.kr',
youtube: 'youtube.com/user/theplasticsurgery1',
instagram: 'instagram.com/the_plasticsurgery',
facebook: 'facebook.com/THEPS16445998',
naverPlace: '',
naverBlog: 'blog.naver.com/with_theps',
gangnamUnni: 'gangnamunni.com/hospitals/30',
homepage: 'https://www.abps.co.kr',
youtube: 'https://www.youtube.com/@abplasticsurgery',
instagram: 'https://www.instagram.com/ab_plasticsurgery_kr/',
facebook: 'https://www.facebook.com/profile.php?id=100063560996454',
naverPlace: 'https://m.place.naver.com/hospital/1304260302',
naverBlog: 'https://blog.naver.com/abps20',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/3004',
},
},
{
label: '라마르 성형외과',
label: '제이준성형외과',
urls: {
homepage: 'lamarps.com',
youtube: '',
instagram: '',
facebook: '',
naverPlace: '',
naverBlog: '',
gangnamUnni: '',
},
},
{
label: '오라클 성형외과',
urls: {
homepage: 'oracleclinic.com',
youtube: 'youtube.com/@oracle_medical_group',
instagram: 'instagram.com/oraclemedicalgroup',
facebook: 'facebook.com/oracleclinickr',
naverPlace: 'https://naver.me/GhbU3VtK',
naverBlog: '',
gangnamUnni: 'gangnamunni.com/hospitals/125',
homepage: 'http://www.jjprs.com',
youtube: 'https://www.youtube.com/channel/UC1p4msJnetDKeOW-B4nlwZA',
instagram: 'https://www.instagram.com/jayjunps/',
facebook: 'https://www.facebook.com/jayjunps',
naverPlace: 'https://m.place.naver.com/hospital/36294945',
naverBlog: 'https://blog.naver.com/gusrlf00',
gangnamUnni: 'https://www.gangnamunni.com/hospitals/139',
},
},
]
-159
View File
@@ -1,159 +0,0 @@
/**
* Dev: 클리닉 리스트 페이지.
*
* 백엔드 `GET /api/clinics` (getClinics) 응답을 표로 확인하는 개발용 화면.
* 운영 도메인 노출 방지는 라우트 단의 DevOnly 가드에 위임.
*/
import { useState } from 'react';
import { Link } from 'react-router';
import { useGetClinics } from '@/shared/api/generated/clinics/clinics';
import { PageContainer } from '@/shared/ui/page-container';
import { Spinner } from '@/shared/ui/spinner';
import { EmptyState } from '@/shared/ui/empty-state';
import { Button } from '@/shared/ui/button';
const PAGE_SIZE = 50;
function formatDate(raw: string): string {
try {
return new Date(raw).toLocaleString('ko-KR', {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
});
} catch {
return raw;
}
}
export default function ClinicsPage() {
const [offset, setOffset] = useState(0);
const { data, isLoading, error, refetch, isFetching } = useGetClinics(
{ limit: PAGE_SIZE, offset },
{ query: { staleTime: 0 } },
);
const items = data?.status === 200 ? data.data.items : [];
const total = data?.status === 200 ? data.data.total : 0;
return (
<div className="pt-20 pb-16">
<PageContainer>
<header className="flex items-end justify-between mb-6 gap-4">
<div>
<p className="text-xs font-semibold text-[#6C5CE7] tracking-widest uppercase mb-2">
Dev · Clinics
</p>
<h1 className="font-serif text-3xl font-bold text-[#0A1128]">
클리닉 리스트
</h1>
<p className="text-sm text-slate-500 mt-1">
GET /api/clinics · limit={PAGE_SIZE} · offset={offset} · total={total}
</p>
</div>
<div className="flex items-center gap-2">
<Button
variant="outline"
size="sm"
onClick={() => refetch()}
disabled={isFetching}
>
{isFetching ? <Spinner size="xs" /> : null}
새로고침
</Button>
</div>
</header>
{isLoading ? (
<div className="flex items-center justify-center py-20">
<Spinner size="lg" className="text-[#6C5CE7]" />
</div>
) : error ? (
<div className="rounded-xl border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-700">
클리닉 리스트 조회 실패: {String((error as Error)?.message ?? error)}
</div>
) : items.length === 0 ? (
<EmptyState size="lg" hint="등록된 클리닉이 없습니다." />
) : (
<div className="overflow-x-auto rounded-2xl border border-slate-200 bg-white shadow-[3px_4px_12px_rgba(0,0,0,0.04)]">
<table className="w-full text-sm">
<thead className="bg-slate-50 text-slate-600">
<tr>
<th className="text-left px-4 py-3 font-medium">병원명</th>
<th className="text-left px-4 py-3 font-medium">EN</th>
<th className="text-left px-4 py-3 font-medium">상태</th>
<th className="text-left px-4 py-3 font-medium">URL</th>
<th className="text-left px-4 py-3 font-medium">주소</th>
<th className="text-left px-4 py-3 font-medium">생성일</th>
<th className="text-left px-4 py-3 font-medium font-mono text-xs">hospital_id</th>
</tr>
</thead>
<tbody className="divide-y divide-slate-100">
{items.map((c) => (
<tr key={c.hospital_id} className="hover:bg-slate-50/50">
<td className="px-4 py-3 font-medium text-[#0A1128]">
<Link
to={`/clinics/${c.hospital_id}`}
className="text-[#0A1128] hover:text-[#6C5CE7] hover:underline"
>
{c.hospital_name}
</Link>
</td>
<td className="px-4 py-3 text-slate-600">{c.hospital_name_en ?? '—'}</td>
<td className="px-4 py-3">
<span className="inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-slate-100 text-slate-700">
{c.status}
</span>
</td>
<td className="px-4 py-3 text-slate-600 max-w-[240px] truncate">
{c.url ? (
<a
href={c.url}
target="_blank"
rel="noreferrer"
className="text-[#6C5CE7] hover:underline"
>
{c.url}
</a>
) : (
'—'
)}
</td>
<td className="px-4 py-3 text-slate-600 max-w-[260px] truncate">{c.road_address ?? '—'}</td>
<td className="px-4 py-3 text-slate-500 whitespace-nowrap">{formatDate(c.created_at)}</td>
<td className="px-4 py-3 font-mono text-xs text-slate-400">{c.hospital_id}</td>
</tr>
))}
</tbody>
</table>
</div>
)}
<div className="flex items-center justify-end gap-2 mt-4">
<span className="text-xs text-slate-500 mr-2">
{total > 0 ? `${offset + 1}-${Math.min(offset + items.length, total)} / ${total}` : ''}
</span>
<Button
variant="outline"
size="sm"
onClick={() => setOffset((o) => Math.max(0, o - PAGE_SIZE))}
disabled={offset === 0 || isFetching}
>
이전
</Button>
<Button
variant="outline"
size="sm"
onClick={() => setOffset((o) => o + PAGE_SIZE)}
disabled={offset + items.length >= total || isFetching}
>
다음
</Button>
</div>
</PageContainer>
</div>
);
}
+40 -22
View File
@@ -1,26 +1,26 @@
/**
* /test — 랜덤 병원 fixture를 디폴트로 채워 분석 플로우를 빠르게 검증하는 dev 페이지.
* /test — 고정 병원 fixture 를 디폴트로 채워 분석 플로우를 빠르게 검증하는 dev 페이지.
*
* - 진입 시 CLINICS 중 1개를 랜덤 선택해 form prefill
* - "다른 병원 랜덤" 버튼으로 재선택 가능
* - DevOnly 가드 아래 등록되어 localhost에서만 접근
* - 상단 칩 그룹으로 10개 fixture 중 선택 (디폴트 PINNED_LABEL)
* - 선택 변경 시 MultiChannelInput 을 `key` 로 강제 리마운트 → 깔끔 prefill
* - DevOnly 가드 아래 등록되어 localhost 에서만 접근
*/
import { useState } from 'react'
import { useNavigate } from 'react-router'
import MultiChannelInput, { type AnalyzePayload } from '@/features/channels/components/MultiChannelInput'
import { CLINICS } from '../fixtures/mockUrls'
// 현재는 뷰성형외과만 prefill 한다. CLINICS 의 다른 fixture 는 삭제하지 않고 보존.
const PINNED_LABEL = '뷰성형외과'
function pickIndex(): number {
function pickInitialIndex(): number {
const i = CLINICS.findIndex((c) => c.label === PINNED_LABEL)
return i >= 0 ? i : 0
}
export default function TestPrefillPage() {
const navigate = useNavigate()
const index = pickIndex()
const clinic = CLINICS[index]
const [selectedIdx, setSelectedIdx] = useState<number>(pickInitialIndex)
const clinic = CLINICS[selectedIdx]
const handleAnalyze = (payload: AnalyzePayload) => {
navigate('/report/loading', {
@@ -34,24 +34,42 @@ export default function TestPrefillPage() {
return (
<section className="min-h-screen pt-28 pb-12 px-6 bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50">
<div className="max-w-4xl mx-auto">
<div className="mb-8 flex items-center justify-between gap-4">
<div>
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-amber-100 text-amber-800 text-xs font-medium mb-3">
DEV · /test
</div>
<h1 className="text-3xl font-bold text-primary-900">
랜덤 병원 분석 테스트
</h1>
<p className="mt-2 text-sm text-slate-600">
선택된 병원: <span className="font-semibold text-primary-900">{clinic.label}</span>
{' '}<span className="text-slate-400">({index + 1} / {CLINICS.length})</span>
</p>
<div className="mb-8">
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-amber-100 text-amber-800 text-xs font-medium mb-3">
DEV · /test
</div>
{/* 현재 PINNED_LABEL 하나만 사용하므로 랜덤 버튼은 숨김.
필요 시 pickIndex() 를 다시 randomize 하고 이 버튼을 복구. */}
<h1 className="text-3xl font-bold text-primary-900">
prefill 테스트
</h1>
<p className="mt-2 text-sm text-slate-600">
병원을 선택하면 아래 입력 폼이 해당 fixture URL 로 자동 채워집니다.
</p>
</div>
<div className="mb-6 flex flex-wrap gap-2" role="tablist" aria-label="병원 fixture 선택">
{CLINICS.map((c, i) => {
const active = i === selectedIdx
return (
<button
key={c.label}
type="button"
role="tab"
aria-selected={active}
onClick={() => setSelectedIdx(i)}
className={
active
? 'px-3 py-1.5 rounded-full text-xs font-medium bg-gradient-to-r from-[#4F1DA1] to-[#021341] text-white shadow-sm'
: 'px-3 py-1.5 rounded-full text-xs font-medium bg-white/80 backdrop-blur-sm text-slate-700 border border-slate-200 hover:border-slate-300 hover:bg-white transition'
}
>
{c.label}
</button>
)
})}
</div>
<MultiChannelInput
key={clinic.label}
variant="hero"
initialUrls={clinic.urls}
onAnalyze={handleAnalyze}
-2
View File
@@ -2,7 +2,6 @@ import { lazy } from 'react'
import DevOnly from './components/DevOnly'
const ComponentsPage = lazy(() => import('./pages/ComponentsPage'))
const ClinicsPage = lazy(() => import('./pages/ClinicsPage'))
const TestPrefillPage = lazy(() => import('./pages/TestPrefillPage'))
// `/dev/*` 와 `/test` 는 DevOnly 가드를 거쳐 로컬호스트에서만 접근 가능.
@@ -11,7 +10,6 @@ export const devRoutes = [
element: <DevOnly />,
children: [
{ path: 'dev/components', element: <ComponentsPage /> },
{ path: 'dev/clinics', element: <ClinicsPage /> },
{ path: 'test', element: <TestPrefillPage /> },
],
},
@@ -155,7 +155,7 @@ export default function AssetCollection({ data }: AssetCollectionProps) {
<h3 className="font-serif text-2xl font-bold text-brand-navy mb-4">
YouTube Top Videos for Repurposing
</h3>
<div className="flex overflow-x-auto gap-4 pb-4 scrollbar-hide" style={{ scrollbarWidth: 'none' }}>
<div className="flex overflow-x-auto gap-4 pb-4">
{data.youtubeRepurpose.map((video, i) => (
<motion.div
key={video.title}
+17 -11
View File
@@ -439,17 +439,23 @@ function BrandConsistencyTab({ inconsistencies }: { inconsistencies: BrandIncons
onClick={() => setExpanded(expanded === i ? null : i)}
className="w-full flex items-center justify-between p-5 h-auto text-left hover:bg-slate-50/50 rounded-none"
>
<div className="flex items-center gap-3">
<div className="w-8 h-8 rounded-lg bg-brand-navy flex items-center justify-center text-white text-xs font-bold">
{item.values.filter((v) => !v.isCorrect).length}
</div>
<div>
<p className="font-semibold text-brand-navy">{item.field}</p>
<p className="text-xs text-slate-500">
{item.values.filter((v) => !v.isCorrect).length}개 채널 불일치
</p>
</div>
</div>
{(() => {
const mismatchCount = item.values.filter((v) => !v.isCorrect).length;
const isAllConsistent = mismatchCount === 0;
return (
<div className="flex items-center gap-3">
<div className={`w-8 h-8 rounded-lg flex items-center justify-center text-white text-xs font-bold ${isAllConsistent ? 'bg-brand-purple-soft' : 'bg-brand-navy'}`}>
{isAllConsistent ? <CheckFilled size={14} /> : mismatchCount}
</div>
<div>
<p className="font-semibold text-brand-navy">{item.field}</p>
<p className="text-xs text-slate-500">
{isAllConsistent ? '전 채널 일치' : `${mismatchCount}개 채널 불일치`}
</p>
</div>
</div>
);
})()}
<ArrowRight
size={16}
className={`text-slate-400 transition-transform ${
@@ -201,17 +201,23 @@ function BrandConsistencyMap({ inconsistencies }: { inconsistencies: BrandIncons
onClick={() => setExpanded(expanded === i ? null : i)}
className="w-full flex items-center justify-between p-5 h-auto text-left hover:bg-slate-50/50 rounded-none"
>
<div className="flex items-center gap-3">
<div className="w-8 h-8 rounded-lg bg-primary-900 flex items-center justify-center text-white text-xs font-bold">
{item.values.filter(v => !v.isCorrect).length}
</div>
<div>
<p className="font-semibold text-brand-navy">{item.field}</p>
<p className="text-xs text-slate-500">
{item.values.filter(v => !v.isCorrect).length}개 채널 불일치
</p>
</div>
</div>
{(() => {
const mismatchCount = item.values.filter(v => !v.isCorrect).length;
const isAllConsistent = mismatchCount === 0;
return (
<div className="flex items-center gap-3">
<div className={`w-8 h-8 rounded-lg flex items-center justify-center text-white text-xs font-bold ${isAllConsistent ? 'bg-brand-purple-soft' : 'bg-primary-900'}`}>
{isAllConsistent ? <CheckCircle2 size={14} /> : mismatchCount}
</div>
<div>
<p className="font-semibold text-brand-navy">{item.field}</p>
<p className="text-xs text-slate-500">
{isAllConsistent ? '전 채널 일치' : `${mismatchCount}개 채널 불일치`}
</p>
</div>
</div>
);
})()}
<ArrowRight
size={16}
className={`text-slate-400 transition-transform ${expanded === i ? 'rotate-90' : ''}`}
@@ -1,8 +1,7 @@
import { motion } from 'motion/react';
import { Instagram, AlertCircle, FileText, Users, Eye, ExternalLink } from 'lucide-react';
import { Instagram, ExternalLink } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import { EmptyState } from './ui/EmptyState';
import { MetricCard } from './ui/MetricCard';
import { DiagnosisRow } from './ui/DiagnosisRow';
import type { InstagramAudit as InstagramAuditType, InstagramAccount } from '@/features/report/types/report';
@@ -68,25 +67,12 @@ function AccountCard({ account, index }: { key?: string | number; account: Insta
</div>
</div>
{/* Format & reels */}
{/* Format */}
<div className="space-y-2 mb-4">
<div className="flex items-center justify-between text-sm">
<span className="text-slate-500">콘텐츠 포맷</span>
<span className="font-medium text-[#0A1128]">{account.contentFormat}</span>
</div>
<div className="flex items-center justify-between text-sm">
<span className="text-slate-500">릴스 수</span>
<span className={`font-medium ${account.reelsCount === 0 ? 'text-[#7C3A4B]' : 'text-[#0A1128]'}`}>
{account.reelsCount === 0 ? (
<span className="inline-flex items-center gap-1">
<AlertCircle size={14} className="text-[#D4889A]" />
0 (미운영)
</span>
) : (
account.reelsCount
)}
</span>
</div>
</div>
{/* Highlights */}
@@ -86,13 +86,14 @@ export default function OtherChannels({ channels, website }: OtherChannelsProps)
<div className="mt-2 space-y-1">
{website.additionalDomains.map((d) => (
<p key={d.domain} className="text-sm text-slate-600">
{d.domain} — <span className="text-slate-400">{d.purpose}</span>
{d.domain}
{d.purpose && <> — <span className="text-slate-400">{d.purpose}</span></>}
</p>
))}
</div>
)}
<p className="text-sm text-slate-500 mt-2">
주요 CTA: <span className="font-medium text-[#0A1128]">{website.mainCTA}</span>
주요 CTA: <span className="font-medium text-[#0A1128]">{website.mainCta}</span>
</p>
</div>
+19 -1
View File
@@ -32,6 +32,24 @@ function nonEmpty<T>(arr: T[] | null | undefined): arr is T[] {
return Array.isArray(arr) && arr.length > 0;
}
function hasClinicSnapshotData(s: MarketingReport['clinicSnapshot'] | null | undefined): boolean {
if (!s) return false;
return !!(
s.name ||
s.nameEn ||
s.location ||
s.phone ||
s.domain ||
s.established ||
(s.staffCount ?? 0) > 0 ||
(s.overallRating ?? 0) > 0 ||
(s.totalReviews ?? 0) > 0 ||
s.leadDoctor?.name ||
nonEmpty(s.certifications) ||
s.registryData
);
}
export default function ReportBody({ data }: ReportBodyProps) {
// 각 audit에서 핸들 끌어와 헤더의 바로가기 버튼에 전달
const socialHandles = {
@@ -56,7 +74,7 @@ export default function ReportBody({ data }: ReportBodyProps) {
/>
<SectionErrorBoundary>
{hasValue(data.clinicSnapshot) && data.clinicSnapshot.name ? (
{hasClinicSnapshotData(data.clinicSnapshot) ? (
<ClinicSnapshot data={data.clinicSnapshot} targetUrl={data.targetUrl} socialHandles={socialHandles} />
) : (
<EmptySection id="clinic-snapshot" title="Clinic Overview" subtitle="병원 기본 정보" />
+21 -13
View File
@@ -1,5 +1,5 @@
import { motion } from 'motion/react';
import { Youtube, Users, Video, Eye, TrendingUp, ExternalLink, Play } from 'lucide-react';
import { Youtube, Users, Video, Eye, TrendingUp, ExternalLink } from 'lucide-react';
import { SectionWrapper } from './ui/SectionWrapper';
import { EmptyState } from './ui/EmptyState';
import { MetricCard } from './ui/MetricCard';
@@ -33,7 +33,7 @@ export default function YouTubeAudit({ data }: YouTubeAuditProps) {
label="구독자"
value={formatNumber(data.subscribers)}
icon={<Users size={20} />}
subtext={data.subscriberRank}
subtext={data.subscriberRank ?? undefined}
/>
<MetricCard
label="총 영상 수"
@@ -45,13 +45,22 @@ export default function YouTubeAudit({ data }: YouTubeAuditProps) {
value={formatNumber(data.totalViews)}
icon={<Eye size={20} />}
/>
<MetricCard
label="주간 성장"
value={`+${formatNumber(data.weeklyViewGrowth.absolute)}`}
icon={<TrendingUp size={20} />}
subtext={`${data.weeklyViewGrowth.percentage > 0 ? '+' : ''}${data.weeklyViewGrowth.percentage}%`}
trend={data.weeklyViewGrowth.percentage > 0 ? 'up' : data.weeklyViewGrowth.percentage < 0 ? 'down' : 'neutral'}
/>
{data.weeklyViewGrowth ? (
<MetricCard
label="주간 성장"
value={`${data.weeklyViewGrowth.absolute >= 0 ? '+' : ''}${formatNumber(data.weeklyViewGrowth.absolute)}`}
icon={<TrendingUp size={20} />}
subtext={`${data.weeklyViewGrowth.percentage > 0 ? '+' : ''}${data.weeklyViewGrowth.percentage}%`}
trend={data.weeklyViewGrowth.percentage > 0 ? 'up' : data.weeklyViewGrowth.percentage < 0 ? 'down' : 'neutral'}
/>
) : (
<MetricCard
label="주간 성장"
value="-"
icon={<TrendingUp size={20} />}
subtext="데이터 없음"
/>
)}
</div>
{/* Channel info card */}
@@ -86,8 +95,8 @@ export default function YouTubeAudit({ data }: YouTubeAuditProps) {
<p className="text-sm text-slate-600 mb-4">{data.channelDescription}</p>
<div className="flex flex-wrap gap-3 text-sm text-slate-500">
<span>개설일: {data.channelCreatedDate}</span>
<span>평균 영상 길이: {data.avgVideoLength}</span>
<span>업로드 빈도: {data.uploadFrequency}</span>
<span>평균 영상 길이: {data.avgVideoLength ?? '-'}</span>
<span>업로드 빈도: {data.uploadFrequency ?? '-'}</span>
</div>
{/* Linked URLs */}
@@ -123,9 +132,8 @@ export default function YouTubeAudit({ data }: YouTubeAuditProps) {
{data.playlists.map((pl) => (
<span
key={pl}
className="inline-flex items-center gap-1.5 rounded-full bg-rose-50 border border-rose-200 px-3 py-1 text-sm font-medium text-rose-700"
className="rounded-full bg-white/60 backdrop-blur-sm border border-white/40 px-3 py-1 text-sm font-medium text-slate-700"
>
<Play size={12} className="text-rose-500 fill-rose-500" />
{pl}
</span>
))}
+1 -1
View File
@@ -206,7 +206,7 @@ function buildReportCsv(report: MarketingReport): string {
title: 'Website Audit',
rows: [
['Primary Domain', 'Main CTA', 'SNS Links On Site'],
[w.primaryDomain, w.mainCTA, w.snsLinksOnSite ? 'Y' : 'N'],
[w.primaryDomain, w.mainCta, w.snsLinksOnSite ? 'Y' : 'N'],
],
});
if (w.trackingPixels?.length) {
+2 -2
View File
@@ -33,7 +33,7 @@ interface ApiReport {
trackingPixels?: { name: string; installed: boolean }[];
snsLinksOnSite?: boolean;
additionalDomains?: { domain: string; purpose: string }[];
mainCTA?: string;
mainCta?: string;
}>;
competitors?: {
name: string;
@@ -663,7 +663,7 @@ export function transformApiReport(
name: (p as { name?: string }).name || '',
installed: (p as { installed?: boolean }).installed ?? false,
})),
mainCTA: r.channelAnalysis?.website?.mainCTA || '',
mainCta: r.channelAnalysis?.website?.mainCta || '',
},
problemDiagnosis: buildDiagnosis(r),
+6 -6
View File
@@ -87,12 +87,12 @@ export interface YouTubeAudit {
subscribers: number;
totalVideos: number;
totalViews: number;
weeklyViewGrowth: { absolute: number; percentage: number };
estimatedMonthlyRevenue: { min: number; max: number };
avgVideoLength: string;
uploadFrequency: string;
weeklyViewGrowth: { absolute: number; percentage: number } | null;
estimatedMonthlyRevenue: { min: number; max: number } | null;
avgVideoLength: string | null;
uploadFrequency: string | null;
channelCreatedDate: string;
subscriberRank: string;
subscriberRank: string | null;
channelDescription: string;
linkedUrls: { label: string; url: string }[];
playlists: string[];
@@ -174,7 +174,7 @@ export interface WebsiteAudit {
snsLinksOnSite: boolean;
snsLinksDetail?: { platform: string; url: string; location: string }[];
trackingPixels: TrackingPixel[];
mainCTA: string;
mainCta: string;
}
export interface AsIsToBeItem {
-128
View File
@@ -27,9 +27,7 @@ import type {
ClinicCreate,
ClinicCreateResponse,
ClinicHistoryResponse,
ClinicListResponse,
ClinicResponse,
GetClinicsParams,
HTTPValidationError
} from '../../model';
@@ -40,132 +38,6 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
/**
* @summary Get Clinics
*/
export type getClinicsResponse200 = {
data: ClinicListResponse
status: 200
}
export type getClinicsResponse422 = {
data: HTTPValidationError
status: 422
}
export type getClinicsResponseSuccess = (getClinicsResponse200) & {
headers: Headers;
};
export type getClinicsResponseError = (getClinicsResponse422) & {
headers: Headers;
};
export type getClinicsResponse = (getClinicsResponseSuccess | getClinicsResponseError)
export const getGetClinicsUrl = (params?: GetClinicsParams,) => {
const normalizedParams = new URLSearchParams();
Object.entries(params || {}).forEach(([key, value]) => {
if (value !== undefined) {
normalizedParams.append(key, value === null ? 'null' : value.toString())
}
});
const stringifiedParams = normalizedParams.toString();
return stringifiedParams.length > 0 ? `/api/clinics?${stringifiedParams}` : `/api/clinics`
}
export const getClinics = async (params?: GetClinicsParams, options?: RequestInit): Promise<getClinicsResponse> => {
return customFetcher<getClinicsResponse>(getGetClinicsUrl(params),
{
...options,
method: 'GET'
}
);}
export const getGetClinicsQueryKey = (params?: GetClinicsParams,) => {
return [
`/api/clinics`, ...(params ? [params]: [])
] as const;
}
export const getGetClinicsQueryOptions = <TData = Awaited<ReturnType<typeof getClinics>>, TError = HTTPValidationError>(params?: GetClinicsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinics>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
) => {
const {query: queryOptions, request: requestOptions} = options ?? {};
const queryKey = queryOptions?.queryKey ?? getGetClinicsQueryKey(params);
const queryFn: QueryFunction<Awaited<ReturnType<typeof getClinics>>> = () => getClinics(params, requestOptions);
return { queryKey, queryFn, staleTime: 60000, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getClinics>>, TError, TData> & { queryKey: DataTag<QueryKey, TData> }
}
export type GetClinicsQueryResult = NonNullable<Awaited<ReturnType<typeof getClinics>>>
export type GetClinicsQueryError = HTTPValidationError
export function useGetClinics<TData = Awaited<ReturnType<typeof getClinics>>, TError = HTTPValidationError>(
params: undefined | GetClinicsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinics>>, TError, TData>> & Pick<
DefinedInitialDataOptions<
Awaited<ReturnType<typeof getClinics>>,
TError,
Awaited<ReturnType<typeof getClinics>>
> , 'initialData'
>, request?: SecondParameter<typeof customFetcher>}
, queryClient?: QueryClient
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
export function useGetClinics<TData = Awaited<ReturnType<typeof getClinics>>, TError = HTTPValidationError>(
params?: GetClinicsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinics>>, TError, TData>> & Pick<
UndefinedInitialDataOptions<
Awaited<ReturnType<typeof getClinics>>,
TError,
Awaited<ReturnType<typeof getClinics>>
> , 'initialData'
>, request?: SecondParameter<typeof customFetcher>}
, queryClient?: QueryClient
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
export function useGetClinics<TData = Awaited<ReturnType<typeof getClinics>>, TError = HTTPValidationError>(
params?: GetClinicsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinics>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
, queryClient?: QueryClient
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
/**
* @summary Get Clinics
*/
export function useGetClinics<TData = Awaited<ReturnType<typeof getClinics>>, TError = HTTPValidationError>(
params?: GetClinicsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinics>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
, queryClient?: QueryClient
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {
const queryOptions = getGetClinicsQueryOptions(params,options)
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };
query.queryKey = queryOptions.queryKey ;
return query;
}
/**
* @summary Create Clinic
*/
@@ -12,5 +12,5 @@ export type ChannelBrandingRuleCurrentStatus = typeof ChannelBrandingRuleCurrent
export const ChannelBrandingRuleCurrentStatus = {
correct: 'correct',
incorrect: 'incorrect',
missing: 'missing',
'N/A': 'N/A',
} as const;
+1 -1
View File
@@ -10,7 +10,7 @@ export interface ChannelScore {
channel: string;
icon: string;
score: number;
maxScore: number;
maxScore?: number;
status: Severity;
headline: string;
}
+10
View File
@@ -9,6 +9,11 @@ import type { ChannelsInstagram } from './channelsInstagram';
import type { ChannelsFacebook } from './channelsFacebook';
import type { ChannelsNaverBlog } from './channelsNaverBlog';
import type { ChannelsGangnamUnni } from './channelsGangnamUnni';
import type { ChannelsTiktok } from './channelsTiktok';
import type { ChannelsInstagramEn } from './channelsInstagramEn';
import type { ChannelsFacebookEn } from './channelsFacebookEn';
import type { ChannelsKakaoTalk } from './channelsKakaoTalk';
import type { ChannelsNaverCafe } from './channelsNaverCafe';
export interface Channels {
youtube?: ChannelsYoutube;
@@ -16,4 +21,9 @@ export interface Channels {
facebook?: ChannelsFacebook;
naver_blog?: ChannelsNaverBlog;
gangnam_unni?: ChannelsGangnamUnni;
tiktok?: ChannelsTiktok;
instagram_en?: ChannelsInstagramEn;
facebook_en?: ChannelsFacebookEn;
kakao_talk?: ChannelsKakaoTalk;
naver_cafe?: ChannelsNaverCafe;
}
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type FacebookPageEngagement = string | null;
export type ChannelsFacebookEn = string | null;
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type ClinicListItemRoadAddress = string | null;
export type ChannelsInstagramEn = string | null;
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type ClinicListItemUrl = string | null;
export type ChannelsKakaoTalk = string | null;
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type ClinicResponseUrl = string | null;
export type ChannelsNaverCafe = string | null;
+8
View File
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ChannelsTiktok = string | null;
-20
View File
@@ -1,20 +0,0 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { ClinicListItemHospitalNameEn } from './clinicListItemHospitalNameEn';
import type { ClinicListItemRoadAddress } from './clinicListItemRoadAddress';
import type { ClinicListItemUrl } from './clinicListItemUrl';
export interface ClinicListItem {
hospital_id: string;
hospital_name: string;
hospital_name_en: ClinicListItemHospitalNameEn;
road_address: ClinicListItemRoadAddress;
url: ClinicListItemUrl;
status: string;
created_at: string;
updated_at: string;
}
@@ -1,12 +0,0 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { ClinicListItem } from './clinicListItem';
export interface ClinicListResponse {
items: ClinicListItem[];
total: number;
}
-4
View File
@@ -6,17 +6,13 @@
*/
import type { ClinicResponseHospitalNameEn } from './clinicResponseHospitalNameEn';
import type { ClinicResponseRoadAddress } from './clinicResponseRoadAddress';
import type { ClinicResponseUrl } from './clinicResponseUrl';
import type { ClinicResponseRawData } from './clinicResponseRawData';
export interface ClinicResponse {
hospital_id: string;
hospital_name: string;
hospital_name_en: ClinicResponseHospitalNameEn;
road_address: ClinicResponseRoadAddress;
url: ClinicResponseUrl;
status: string;
raw_data: ClinicResponseRawData;
created_at: string;
updated_at: string;
}
@@ -1,9 +0,0 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { ClinicResponseRawDataAnyOf } from './clinicResponseRawDataAnyOf';
export type ClinicResponseRawData = ClinicResponseRawDataAnyOf | null;
+19 -18
View File
@@ -4,30 +4,31 @@
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { LeadDoctor } from './leadDoctor';
import type { PriceRange } from './priceRange';
import type { ClinicSnapshotName } from './clinicSnapshotName';
import type { ClinicSnapshotNameEn } from './clinicSnapshotNameEn';
import type { ClinicSnapshotStaffCount } from './clinicSnapshotStaffCount';
import type { ClinicSnapshotLeadDoctor } from './clinicSnapshotLeadDoctor';
import type { ClinicSnapshotOverallRating } from './clinicSnapshotOverallRating';
import type { ClinicSnapshotTotalReviews } from './clinicSnapshotTotalReviews';
import type { ClinicSnapshotLocation } from './clinicSnapshotLocation';
import type { ClinicSnapshotPhone } from './clinicSnapshotPhone';
import type { ClinicSnapshotDomain } from './clinicSnapshotDomain';
import type { ClinicSnapshotLogoImages } from './clinicSnapshotLogoImages';
import type { ClinicSnapshotBrandColors } from './clinicSnapshotBrandColors';
import type { ClinicSnapshotSource } from './clinicSnapshotSource';
import type { ClinicSnapshotRegistryData } from './clinicSnapshotRegistryData';
export interface ClinicSnapshot {
name: string;
nameEn: string;
established: string;
yearsInBusiness: number;
staffCount: number;
leadDoctor: LeadDoctor;
overallRating: number;
totalReviews: number;
priceRange: PriceRange;
certifications: string[];
mediaAppearances: string[];
medicalTourism: string[];
location: string;
nearestStation: string;
phone: string;
domain: string;
name?: ClinicSnapshotName;
nameEn?: ClinicSnapshotNameEn;
staffCount?: ClinicSnapshotStaffCount;
leadDoctor?: ClinicSnapshotLeadDoctor;
overallRating?: ClinicSnapshotOverallRating;
totalReviews?: ClinicSnapshotTotalReviews;
certifications?: string[];
location?: ClinicSnapshotLocation;
phone?: ClinicSnapshotPhone;
domain?: ClinicSnapshotDomain;
logoImages?: ClinicSnapshotLogoImages;
brandColors?: ClinicSnapshotBrandColors;
source?: ClinicSnapshotSource;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ClinicSnapshotDomain = string | null;
@@ -4,5 +4,6 @@
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { LeadDoctor } from './leadDoctor';
export type ClinicListItemHospitalNameEn = string | null;
export type ClinicSnapshotLeadDoctor = LeadDoctor | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ClinicSnapshotLocation = string | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ClinicSnapshotName = string | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ClinicSnapshotNameEn = string | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ClinicSnapshotOverallRating = number | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ClinicSnapshotPhone = string | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ClinicSnapshotStaffCount = number | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ClinicSnapshotTotalReviews = number | null;
+5 -4
View File
@@ -7,10 +7,11 @@
import type { FacebookPage } from './facebookPage';
import type { DiagnosisItem } from './diagnosisItem';
import type { BrandInconsistency } from './brandInconsistency';
import type { FacebookAuditConsolidationRecommendation } from './facebookAuditConsolidationRecommendation';
export interface FacebookAudit {
pages: FacebookPage[];
diagnosis: DiagnosisItem[];
brandInconsistencies: BrandInconsistency[];
consolidationRecommendation: string;
pages?: FacebookPage[];
diagnosis?: DiagnosisItem[];
brandInconsistencies?: BrandInconsistency[];
consolidationRecommendation?: FacebookAuditConsolidationRecommendation;
}
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type ClinicResponseRawDataAnyOf = { [key: string]: unknown };
export type FacebookAuditConsolidationRecommendation = string | null;
+4 -5
View File
@@ -5,9 +5,8 @@
* OpenAPI spec version: 0.1.0
*/
import type { Language } from './language';
import type { FacebookPagePostFrequency } from './facebookPagePostFrequency';
import type { FacebookPageHasWhatsapp } from './facebookPageHasWhatsapp';
import type { FacebookPageTopContentType } from './facebookPageTopContentType';
import type { FacebookPageEngagement } from './facebookPageEngagement';
export interface FacebookPage {
url: string;
@@ -24,8 +23,8 @@ export interface FacebookPage {
linkedDomain: string;
reviews: number;
recentPostAge: string;
hasWhatsapp: boolean;
postFrequency?: FacebookPagePostFrequency;
hasWhatsapp?: FacebookPageHasWhatsapp;
postFrequency: string;
topContentType?: FacebookPageTopContentType;
engagement?: FacebookPageEngagement;
engagement: string;
}
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type FacebookPageHasWhatsapp = boolean | null;
@@ -1,8 +0,0 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type FacebookPagePostFrequency = string | null;
-11
View File
@@ -1,11 +0,0 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type GetClinicsParams = {
limit?: number;
offset?: number;
};
+16 -12
View File
@@ -46,30 +46,36 @@ export * from './channelStrategyCardCustomerJourneyStage';
export * from './channelStrategyCardPriority';
export * from './channels';
export * from './channelsFacebook';
export * from './channelsFacebookEn';
export * from './channelsGangnamUnni';
export * from './channelsInstagram';
export * from './channelsInstagramEn';
export * from './channelsKakaoTalk';
export * from './channelsNaverBlog';
export * from './channelsNaverCafe';
export * from './channelsTiktok';
export * from './channelsYoutube';
export * from './clinicCreate';
export * from './clinicCreateResponse';
export * from './clinicHistoryResponse';
export * from './clinicHistoryResponseMetricsTimeseries';
export * from './clinicListItem';
export * from './clinicListItemHospitalNameEn';
export * from './clinicListItemRoadAddress';
export * from './clinicListItemUrl';
export * from './clinicListResponse';
export * from './clinicResponse';
export * from './clinicResponseHospitalNameEn';
export * from './clinicResponseRawData';
export * from './clinicResponseRawDataAnyOf';
export * from './clinicResponseRoadAddress';
export * from './clinicResponseUrl';
export * from './clinicSnapshot';
export * from './clinicSnapshotBrandColors';
export * from './clinicSnapshotDomain';
export * from './clinicSnapshotLeadDoctor';
export * from './clinicSnapshotLocation';
export * from './clinicSnapshotLogoImages';
export * from './clinicSnapshotName';
export * from './clinicSnapshotNameEn';
export * from './clinicSnapshotOverallRating';
export * from './clinicSnapshotPhone';
export * from './clinicSnapshotRegistryData';
export * from './clinicSnapshotSource';
export * from './clinicSnapshotStaffCount';
export * from './clinicSnapshotTotalReviews';
export * from './colorSwatch';
export * from './contentCountSummary';
export * from './contentCountSummaryType';
@@ -81,9 +87,9 @@ export * from './diagnosisItem';
export * from './diagnosisItemEvidenceIds';
export * from './estimatedRevenue';
export * from './facebookAudit';
export * from './facebookAuditConsolidationRecommendation';
export * from './facebookPage';
export * from './facebookPageEngagement';
export * from './facebookPagePostFrequency';
export * from './facebookPageHasWhatsapp';
export * from './facebookPageTopContentType';
export * from './fileListItem';
export * from './fileListItemSizeBytes';
@@ -91,7 +97,6 @@ export * from './fileType';
export * from './fileUploadResponse';
export * from './fileUploadResponseSizeBytes';
export * from './fontSpec';
export * from './getClinicsParams';
export * from './hTTPValidationError';
export * from './instagramAccount';
export * from './instagramAudit';
@@ -116,7 +121,6 @@ export * from './planApiResponseClinicName';
export * from './planApiResponseClinicNameEn';
export * from './planApiResponseRepurposingProposals';
export * from './platformStrategy';
export * from './priceRange';
export * from './registryData';
export * from './registryDataBranches';
export * from './registryDataBrandGroup';
+2 -2
View File
@@ -8,6 +8,6 @@ import type { InstagramAccount } from './instagramAccount';
import type { DiagnosisItem } from './diagnosisItem';
export interface InstagramAudit {
accounts: InstagramAccount[];
diagnosis: DiagnosisItem[];
accounts?: InstagramAccount[];
diagnosis?: DiagnosisItem[];
}
+1
View File
@@ -12,4 +12,5 @@ export type Language = typeof Language[keyof typeof Language];
export const Language = {
KR: 'KR',
EN: 'EN',
WW: 'WW',
} as const;
-12
View File
@@ -1,12 +0,0 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface PriceRange {
min: string;
max: string;
currency: string;
}
+1 -1
View File
@@ -10,7 +10,7 @@ import type { TrackingPixel } from './trackingPixel';
export interface WebsiteAudit {
primaryDomain: string;
additionalDomains: AdditionalDomain[];
additionalDomains?: AdditionalDomain[];
snsLinksOnSite: boolean;
snsLinksDetail?: WebsiteAuditSnsLinksDetail;
trackingPixels: TrackingPixel[];
+1 -2
View File
@@ -21,10 +21,9 @@ export interface YouTubeAudit {
avgVideoLength: string;
uploadFrequency: string;
channelCreatedDate: string;
subscriberRank: string;
channelDescription: string;
linkedUrls: LinkedUrl[];
playlists: string[];
topVideos: TopVideo[];
topVideos?: TopVideo[];
diagnosis: DiagnosisItem[];
}