feat: 백엔드 신스키마 (PlanOutput / 신규 analysis 라우트) 반영 + 화면·환경 적응

- orval SDK 재생성: generated/analyses → generated/analysis, planResponse* → planOutput 외 신규 모델 40여 개
- transformReport / useAnalysisPipeline 신스키마 적응
- plan/report 페이지·컴포넌트(다운로드 메뉴, ChannelOverview, ChannelStrategy, GuestPlanPage, UserPlanPage, GuestReportPage, UserReportPage, ReportBody, MultiChannelInput) 적응
- /dev/clinics 페이지 갱신
- orval.config / api.ts / package.json 환경설정 갱신
- .env.example: API 키 값 placeholder 로 비움 (이전에 실제 키가 들어있었음)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.7 committed 2026-05-18 15:19:48 +09:00
1 parent 93674e4856
commit a294637644
65 files changed
+890 -213

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ export const AnalysisStatus = {
discovering: 'discovering',
collecting: 'collecting',
analyzing: 'analyzing',
planning: 'planning',
completed: 'completed',
failed: 'failed',
} as const;
+20
View File
@@ -0,0 +1,20 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { AssetCardSource } from './assetCardSource';
import type { AssetCardType } from './assetCardType';
import type { AssetCardStatus } from './assetCardStatus';
export interface AssetCard {
id: string;
source: AssetCardSource;
sourceLabel: string;
type: AssetCardType;
title: string;
description: string;
repurposingSuggestions: string[];
status: AssetCardStatus;
}
+18
View File
@@ -0,0 +1,18 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type AssetCardSource = typeof AssetCardSource[keyof typeof AssetCardSource];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AssetCardSource = {
homepage: 'homepage',
naver_place: 'naver_place',
blog: 'blog',
social: 'social',
youtube: 'youtube',
} as const;
+16
View File
@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type AssetCardStatus = typeof AssetCardStatus[keyof typeof AssetCardStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AssetCardStatus = {
collected: 'collected',
pending: 'pending',
needs_creation: 'needs_creation',
} as const;
+16
View File
@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type AssetCardType = typeof AssetCardType[keyof typeof AssetCardType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AssetCardType = {
photo: 'photo',
video: 'video',
text: 'text',
} as const;
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { AssetCard } from './assetCard';
import type { YouTubeRepurposeItem } from './youTubeRepurposeItem';
export interface AssetCollectionData {
assets: AssetCard[];
youtubeRepurpose: YouTubeRepurposeItem[];
}
+21
View File
@@ -0,0 +1,21 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { ColorSwatch } from './colorSwatch';
import type { FontSpec } from './fontSpec';
import type { LogoUsageRule } from './logoUsageRule';
import type { ToneOfVoice } from './toneOfVoice';
import type { ChannelBrandingRule } from './channelBrandingRule';
import type { BrandInconsistency } from './brandInconsistency';
export interface BrandGuide {
colors: ColorSwatch[];
fonts: FontSpec[];
logoRules: LogoUsageRule[];
toneOfVoice: ToneOfVoice;
channelBranding: ChannelBrandingRule[];
brandInconsistencies: BrandInconsistency[];
}
@@ -0,0 +1,14 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { BrandInconsistencyValue } from './brandInconsistencyValue';
export interface BrandInconsistency {
field: string;
values: BrandInconsistencyValue[];
impact: string;
recommendation: string;
}
@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface BrandInconsistencyValue {
channel: string;
value: string;
isCorrect: boolean;
}
+13
View File
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { CalendarWeek } from './calendarWeek';
import type { ContentCountSummary } from './contentCountSummary';
export interface CalendarData {
weeks: CalendarWeek[];
monthlySummary: ContentCountSummary[];
}
+27
View File
@@ -0,0 +1,27 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { CalendarEntryContentType } from './calendarEntryContentType';
import type { CalendarEntryId } from './calendarEntryId';
import type { CalendarEntryDescription } from './calendarEntryDescription';
import type { CalendarEntryPillar } from './calendarEntryPillar';
import type { CalendarEntryStatus } from './calendarEntryStatus';
import type { CalendarEntryIsManualEdit } from './calendarEntryIsManualEdit';
import type { CalendarEntryAiPromptSeed } from './calendarEntryAiPromptSeed';
export interface CalendarEntry {
dayOfWeek: number;
channel: string;
channelIcon: string;
contentType: CalendarEntryContentType;
title: string;
id?: CalendarEntryId;
description?: CalendarEntryDescription;
pillar?: CalendarEntryPillar;
status?: CalendarEntryStatus;
isManualEdit?: CalendarEntryIsManualEdit;
aiPromptSeed?: CalendarEntryAiPromptSeed;
}
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type PlanResponseBrandGuide = { [key: string]: unknown };
export type CalendarEntryAiPromptSeed = string | null;
@@ -0,0 +1,17 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type CalendarEntryContentType = typeof CalendarEntryContentType[keyof typeof CalendarEntryContentType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const CalendarEntryContentType = {
video: 'video',
blog: 'blog',
social: 'social',
ad: 'ad',
} as const;
@@ -5,4 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export type PlanResponseContentStrategy = { [key: string]: unknown };
export type CalendarEntryDescription = string | null;
@@ -5,7 +5,4 @@
* OpenAPI spec version: 0.1.0
*/
export interface PlanCreate {
report_id: string;
regenerate?: boolean;
}
export type CalendarEntryId = 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 CalendarEntryIsManualEdit = boolean | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type CalendarEntryPillar = 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 CalendarEntryStatus = 'draft' | 'approved' | 'published' | null;
+13
View File
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { CalendarEntry } from './calendarEntry';
export interface CalendarWeek {
weekNumber: number;
label: string;
entries: CalendarEntry[];
}
@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { ChannelBrandingRuleCurrentStatus } from './channelBrandingRuleCurrentStatus';
export interface ChannelBrandingRule {
channel: string;
icon: string;
profilePhoto: string;
bannerSpec: string;
bioTemplate: string;
currentStatus: ChannelBrandingRuleCurrentStatus;
}
@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ChannelBrandingRuleCurrentStatus = typeof ChannelBrandingRuleCurrentStatus[keyof typeof ChannelBrandingRuleCurrentStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelBrandingRuleCurrentStatus = {
correct: 'correct',
incorrect: 'incorrect',
missing: 'missing',
} as const;
@@ -0,0 +1,22 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { ChannelStrategyCardPriority } from './channelStrategyCardPriority';
import type { ChannelStrategyCardCustomerJourneyStage } from './channelStrategyCardCustomerJourneyStage';
export interface ChannelStrategyCard {
channelId: string;
channelName: string;
icon: string;
currentStatus: string;
targetGoal: string;
contentTypes: string[];
postingFrequency: string;
tone: string;
formatGuidelines: string[];
priority: ChannelStrategyCardPriority;
customerJourneyStage?: ChannelStrategyCardCustomerJourneyStage;
}
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ChannelStrategyCardCustomerJourneyStage = 'awareness' | 'interest' | 'consideration' | 'conversion' | 'loyalty' | null;
@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ChannelStrategyCardPriority = typeof ChannelStrategyCardPriority[keyof typeof ChannelStrategyCardPriority];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChannelStrategyCardPriority = {
P0: 'P0',
P1: 'P1',
P2: 'P2',
} as const;
+12
View File
@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface ColorSwatch {
name: string;
hex: string;
usage: string;
}
@@ -0,0 +1,14 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { ContentCountSummaryType } from './contentCountSummaryType';
export interface ContentCountSummary {
type: ContentCountSummaryType;
label: string;
count: number;
color: string;
}
@@ -0,0 +1,17 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type ContentCountSummaryType = typeof ContentCountSummaryType[keyof typeof ContentCountSummaryType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ContentCountSummaryType = {
video: 'video',
blog: 'blog',
social: 'social',
ad: 'ad',
} as const;
+14
View File
@@ -0,0 +1,14 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface ContentPillar {
title: string;
description: string;
relatedUSP: string;
exampleTopics: string[];
color: string;
}
@@ -0,0 +1,18 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { ContentPillar } from './contentPillar';
import type { ContentTypeRow } from './contentTypeRow';
import type { WorkflowStep } from './workflowStep';
import type { RepurposingOutput } from './repurposingOutput';
export interface ContentStrategyData {
pillars: ContentPillar[];
typeMatrix: ContentTypeRow[];
workflow: WorkflowStep[];
repurposingSource: string;
repurposingOutputs: RepurposingOutput[];
}
+13
View File
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface ContentTypeRow {
format: string;
channels: string[];
frequency: string;
purpose: string;
}
+13
View File
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface FontSpec {
family: string;
weight: string;
usage: string;
sampleText: string;
}
+9
View File
@@ -0,0 +1,9 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { PlanOutput } from './planOutput';
export type GetPlan200 = PlanOutput | null;
+43 -5
View File
@@ -12,7 +12,30 @@ export * from './analysisStatus';
export * from './analysisStatusResponse';
export * from './analysisStatusResponseChannelErrors';
export * from './analysisStatusResponseCompletedAt';
export * from './assetCard';
export * from './assetCardSource';
export * from './assetCardStatus';
export * from './assetCardType';
export * from './assetCollectionData';
export * from './brandGuide';
export * from './brandInconsistency';
export * from './brandInconsistencyValue';
export * from './calendarData';
export * from './calendarEntry';
export * from './calendarEntryAiPromptSeed';
export * from './calendarEntryContentType';
export * from './calendarEntryDescription';
export * from './calendarEntryId';
export * from './calendarEntryIsManualEdit';
export * from './calendarEntryPillar';
export * from './calendarEntryStatus';
export * from './calendarWeek';
export * from './channelBrandingRule';
export * from './channelBrandingRuleCurrentStatus';
export * from './channelScore';
export * from './channelStrategyCard';
export * from './channelStrategyCardCustomerJourneyStage';
export * from './channelStrategyCardPriority';
export * from './channels';
export * from './channelsFacebook';
export * from './channelsGangnamUnni';
@@ -29,22 +52,37 @@ export * from './clinicResponseRawData';
export * from './clinicResponseRawDataAnyOf';
export * from './clinicResponseRoadAddress';
export * from './clinicResponseUrl';
export * from './colorSwatch';
export * from './contentCountSummary';
export * from './contentCountSummaryType';
export * from './contentPillar';
export * from './contentStrategyData';
export * from './contentTypeRow';
export * from './conversionStrategy';
export * from './fontSpec';
export * from './getPlan200';
export * from './getReport200';
export * from './hTTPValidationError';
export * from './planCreate';
export * from './planResponse';
export * from './planResponseBrandGuide';
export * from './planResponseContentStrategy';
export * from './logoUsageRule';
export * from './planOutput';
export * from './planOutputRepurposingProposals';
export * from './reportOutput';
export * from './reportOutputFacebook';
export * from './reportOutputGangnamUnni';
export * from './reportOutputInstagram';
export * from './reportOutputNaverBlog';
export * from './reportOutputYoutube';
export * from './repurposingOutput';
export * from './repurposingProposalItem';
export * from './repurposingProposalItemEstimatedEffort';
export * from './repurposingProposalItemPriority';
export * from './runSummary';
export * from './runSummaryCompletedAt';
export * from './runSummaryOverallScore';
export * from './toneOfVoice';
export * from './validationError';
export * from './validationErrorCtx';
export * from './validationErrorLocItem';
export * from './validationErrorLocItem';
export * from './workflowStep';
export * from './youTubeRepurposeItem';
export * from './youTubeRepurposeItemType';
+12
View File
@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface LogoUsageRule {
rule: string;
description: string;
correct: boolean;
}
+21
View File
@@ -0,0 +1,21 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { BrandGuide } from './brandGuide';
import type { ChannelStrategyCard } from './channelStrategyCard';
import type { ContentStrategyData } from './contentStrategyData';
import type { CalendarData } from './calendarData';
import type { AssetCollectionData } from './assetCollectionData';
import type { PlanOutputRepurposingProposals } from './planOutputRepurposingProposals';
export interface PlanOutput {
brandGuide: BrandGuide;
channelStrategies: ChannelStrategyCard[];
contentStrategy: ContentStrategyData;
calendar: CalendarData;
assetCollection: AssetCollectionData;
repurposingProposals?: PlanOutputRepurposingProposals;
}
@@ -0,0 +1,9 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { RepurposingProposalItem } from './repurposingProposalItem';
export type PlanOutputRepurposingProposals = RepurposingProposalItem[] | null;
-18
View File
@@ -1,18 +0,0 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { PlanResponseBrandGuide } from './planResponseBrandGuide';
import type { PlanResponseContentStrategy } from './planResponseContentStrategy';
export interface PlanResponse {
id: string;
analysis_run_id: string;
brand_guide: PlanResponseBrandGuide;
channel_strategies: unknown[];
content_strategy: PlanResponseContentStrategy;
calendar: unknown[];
created_at: string;
}
+12
View File
@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface RepurposingOutput {
format: string;
channel: string;
description: string;
}
@@ -0,0 +1,17 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { YouTubeRepurposeItem } from './youTubeRepurposeItem';
import type { RepurposingOutput } from './repurposingOutput';
import type { RepurposingProposalItemEstimatedEffort } from './repurposingProposalItemEstimatedEffort';
import type { RepurposingProposalItemPriority } from './repurposingProposalItemPriority';
export interface RepurposingProposalItem {
sourceVideo: YouTubeRepurposeItem;
outputs: RepurposingOutput[];
estimatedEffort: RepurposingProposalItemEstimatedEffort;
priority: RepurposingProposalItemPriority;
}
@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type RepurposingProposalItemEstimatedEffort = typeof RepurposingProposalItemEstimatedEffort[keyof typeof RepurposingProposalItemEstimatedEffort];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const RepurposingProposalItemEstimatedEffort = {
low: 'low',
medium: 'medium',
high: 'high',
} as const;
@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type RepurposingProposalItemPriority = typeof RepurposingProposalItemPriority[keyof typeof RepurposingProposalItemPriority];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const RepurposingProposalItemPriority = {
high: 'high',
medium: 'medium',
low: 'low',
} as const;
+13
View File
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface ToneOfVoice {
personality: string[];
communicationStyle: string;
doExamples: string[];
dontExamples: string[];
}
+14
View File
@@ -0,0 +1,14 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export interface WorkflowStep {
step: number;
name: string;
description: string;
owner: string;
duration: string;
}
@@ -0,0 +1,14 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
import type { YouTubeRepurposeItemType } from './youTubeRepurposeItemType';
export interface YouTubeRepurposeItem {
title: string;
views: number;
type: YouTubeRepurposeItemType;
repurposeAs: string[];
}
@@ -0,0 +1,15 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* FastAPI
* OpenAPI spec version: 0.1.0
*/
export type YouTubeRepurposeItemType = typeof YouTubeRepurposeItemType[keyof typeof YouTubeRepurposeItemType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const YouTubeRepurposeItemType = {
Short: 'Short',
Long: 'Long',
} as const;