plan report 이름 통일 및 코드 정리
This commit is contained in:
1 parent
9b4e99abf9
commit
42e09ae2d1
9 files changed
+312
-135
No files matched your search
@@ -25,7 +25,7 @@ class FontSpec(BaseModel):
|
||||
family: str
|
||||
weight: str
|
||||
usage: str
|
||||
sampleText: str
|
||||
sample_text: str
|
||||
|
||||
|
||||
class LogoUsageRule(BaseModel):
|
||||
@@ -36,29 +36,29 @@ class LogoUsageRule(BaseModel):
|
||||
|
||||
class ToneOfVoice(BaseModel):
|
||||
personality: list[str]
|
||||
communicationStyle: str
|
||||
doExamples: list[str]
|
||||
dontExamples: list[str]
|
||||
communication_style: str
|
||||
do_examples: list[str]
|
||||
dont_examples: list[str]
|
||||
|
||||
|
||||
class ChannelBrandingRule(BaseModel):
|
||||
channel: str
|
||||
icon: str
|
||||
profilePhoto: str
|
||||
bannerSpec: str
|
||||
bioTemplate: str
|
||||
currentStatus: Literal["correct", "incorrect", "missing"]
|
||||
profile_photo: str
|
||||
banner_spec: str
|
||||
bio_template: str
|
||||
current_status: Literal["correct", "incorrect", "missing"]
|
||||
|
||||
|
||||
class BrandInconsistencyValue(BaseModel):
|
||||
class BrandPlanInconsistencyValue(BaseModel):
|
||||
channel: str
|
||||
value: str
|
||||
isCorrect: bool
|
||||
is_correct: bool
|
||||
|
||||
|
||||
class BrandInconsistency(BaseModel):
|
||||
class BrandPlanInconsistency(BaseModel):
|
||||
field: str
|
||||
values: list[BrandInconsistencyValue]
|
||||
values: list[BrandPlanInconsistencyValue]
|
||||
impact: str
|
||||
recommendation: str
|
||||
|
||||
@@ -66,26 +66,26 @@ class BrandInconsistency(BaseModel):
|
||||
class BrandGuide(BaseModel):
|
||||
colors: list[ColorSwatch]
|
||||
fonts: list[FontSpec]
|
||||
logoRules: list[LogoUsageRule]
|
||||
toneOfVoice: ToneOfVoice
|
||||
channelBranding: list[ChannelBrandingRule]
|
||||
brandInconsistencies: list[BrandInconsistency]
|
||||
logo_rules: list[LogoUsageRule]
|
||||
tone_of_voice: ToneOfVoice
|
||||
channel_branding: list[ChannelBrandingRule]
|
||||
brand_inconsistencies: list[BrandPlanInconsistency]
|
||||
|
||||
|
||||
# --- ChannelStrategy ---
|
||||
|
||||
class ChannelStrategyCard(BaseModel):
|
||||
channelId: str
|
||||
channelName: str
|
||||
channel_id: str
|
||||
channel_name: str
|
||||
icon: str
|
||||
currentStatus: str
|
||||
targetGoal: str
|
||||
contentTypes: list[str]
|
||||
postingFrequency: str
|
||||
current_status: str
|
||||
target_goal: str
|
||||
content_types: list[str]
|
||||
posting_frequency: str
|
||||
tone: str
|
||||
formatGuidelines: list[str]
|
||||
format_guidelines: list[str]
|
||||
priority: Literal["P0", "P1", "P2"]
|
||||
customerJourneyStage: Literal["awareness", "interest", "consideration", "conversion", "loyalty"] | None = None
|
||||
customer_journey_stage: Literal["awareness", "interest", "consideration", "conversion", "loyalty"] | None = None
|
||||
|
||||
|
||||
# --- ContentStrategy ---
|
||||
@@ -93,8 +93,8 @@ class ChannelStrategyCard(BaseModel):
|
||||
class ContentPillar(BaseModel):
|
||||
title: str
|
||||
description: str
|
||||
relatedUSP: str
|
||||
exampleTopics: list[str]
|
||||
related_usp: str
|
||||
example_topics: list[str]
|
||||
color: str
|
||||
|
||||
|
||||
@@ -121,30 +121,30 @@ class RepurposingOutput(BaseModel):
|
||||
|
||||
class ContentStrategyData(BaseModel):
|
||||
pillars: list[ContentPillar]
|
||||
typeMatrix: list[ContentTypeRow]
|
||||
type_matrix: list[ContentTypeRow]
|
||||
workflow: list[WorkflowStep]
|
||||
repurposingSource: str
|
||||
repurposingOutputs: list[RepurposingOutput]
|
||||
repurposing_source: str
|
||||
repurposing_outputs: list[RepurposingOutput]
|
||||
|
||||
|
||||
# --- Calendar ---
|
||||
|
||||
class CalendarEntry(BaseModel):
|
||||
dayOfWeek: int
|
||||
day_of_week: int
|
||||
channel: str
|
||||
channelIcon: str
|
||||
contentType: Literal["video", "blog", "social", "ad"]
|
||||
channel_icon: str
|
||||
content_type: Literal["video", "blog", "social", "ad"]
|
||||
title: str
|
||||
id: str | None = None
|
||||
description: str | None = None
|
||||
pillar: str | None = None
|
||||
status: Literal["draft", "approved", "published"] | None = None
|
||||
isManualEdit: bool | None = None
|
||||
aiPromptSeed: str | None = None
|
||||
is_manual_edit: bool | None = None
|
||||
ai_prompt_seed: str | None = None
|
||||
|
||||
|
||||
class CalendarWeek(BaseModel):
|
||||
weekNumber: int
|
||||
week_number: int
|
||||
label: str
|
||||
entries: list[CalendarEntry]
|
||||
|
||||
@@ -158,7 +158,7 @@ class ContentCountSummary(BaseModel):
|
||||
|
||||
class CalendarData(BaseModel):
|
||||
weeks: list[CalendarWeek]
|
||||
monthlySummary: list[ContentCountSummary]
|
||||
monthly_summary: list[ContentCountSummary]
|
||||
|
||||
|
||||
# --- AssetCollection ---
|
||||
@@ -166,11 +166,11 @@ class CalendarData(BaseModel):
|
||||
class AssetCard(BaseModel):
|
||||
id: str
|
||||
source: Literal["homepage", "naver_place", "blog", "social", "youtube"]
|
||||
sourceLabel: str
|
||||
source_label: str
|
||||
type: Literal["photo", "video", "text"]
|
||||
title: str
|
||||
description: str
|
||||
repurposingSuggestions: list[str]
|
||||
repurposing_suggestions: list[str]
|
||||
status: Literal["collected", "pending", "needs_creation"]
|
||||
|
||||
|
||||
@@ -178,62 +178,29 @@ class YouTubeRepurposeItem(BaseModel):
|
||||
title: str
|
||||
views: int
|
||||
type: Literal["Short", "Long"]
|
||||
repurposeAs: list[str]
|
||||
repurpose_as: list[str]
|
||||
|
||||
|
||||
class AssetCollectionData(BaseModel):
|
||||
assets: list[AssetCard]
|
||||
youtubeRepurpose: list[YouTubeRepurposeItem]
|
||||
youtube_repurpose: list[YouTubeRepurposeItem]
|
||||
|
||||
|
||||
# --- Repurposing ---
|
||||
|
||||
class RepurposingProposalItem(BaseModel):
|
||||
sourceVideo: YouTubeRepurposeItem
|
||||
source_video: YouTubeRepurposeItem
|
||||
outputs: list[RepurposingOutput]
|
||||
estimatedEffort: Literal["low", "medium", "high"]
|
||||
estimated_effort: Literal["low", "medium", "high"]
|
||||
priority: Literal["high", "medium", "low"]
|
||||
|
||||
|
||||
# --- Workflow ---
|
||||
|
||||
class WorkflowVideoDraft(BaseModel):
|
||||
script: str
|
||||
shootingGuide: list[str]
|
||||
duration: str
|
||||
|
||||
|
||||
# class WorkflowImageTextDraft(BaseModel):
|
||||
# type: Literal["cardnews", "blog"]
|
||||
# headline: str
|
||||
# copy: list[str]
|
||||
# layoutHint: str | None = None
|
||||
|
||||
|
||||
# class WorkflowItem(BaseModel):
|
||||
# id: str
|
||||
# title: str
|
||||
# contentType: Literal["video", "image-text"]
|
||||
# channel: str
|
||||
# channelIcon: str
|
||||
# stage: Literal["planning", "ai-draft", "review", "approved", "scheduled"]
|
||||
# userNotes: str | None = None
|
||||
# videoDraft: WorkflowVideoDraft | None = None
|
||||
# imageTextDraft: WorkflowImageTextDraft | None = None
|
||||
# scheduledDate: str | None = None
|
||||
|
||||
|
||||
# class WorkflowData(BaseModel):
|
||||
# items: list[WorkflowItem]
|
||||
|
||||
|
||||
# --- PlanOutput ---
|
||||
|
||||
class PlanOutput(BaseModel):
|
||||
brandGuide: BrandGuide
|
||||
channelStrategies: list[ChannelStrategyCard]
|
||||
contentStrategy: ContentStrategyData
|
||||
brand_guide: BrandGuide
|
||||
channel_strategies: list[ChannelStrategyCard]
|
||||
content_strategy: ContentStrategyData
|
||||
calendar: CalendarData
|
||||
assetCollection: AssetCollectionData
|
||||
repurposingProposals: list[RepurposingProposalItem] | None = None
|
||||
#workflow: WorkflowData | None = None
|
||||
asset_collection: AssetCollectionData
|
||||
repurposing_proposals: list[RepurposingProposalItem] | None = None
|
||||
@@ -1,13 +1,6 @@
|
||||
from __future__ import annotations
|
||||
from typing import Literal
|
||||
from pydantic import BaseModel
|
||||
|
||||
Severity = Literal["critical", "warning", "good", "excellent", "unknown"]
|
||||
ChannelStatus = Literal["active", "inactive", "unknown", "not_found"]
|
||||
DataSource = Literal["registry", "scrape"]
|
||||
Language = Literal["KR", "EN"]
|
||||
VideoType = Literal["Short", "Long"]
|
||||
AnnotationType = Literal["highlight", "arrow", "text"]
|
||||
from models.status import Severity, ChannelStatus, DataSource, Language, VideoType, AnnotationType
|
||||
|
||||
|
||||
class ScreenshotAnnotation(BaseModel):
|
||||
|
||||
Reference in new issue
Block a user