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 -1
View File
@@ -14,7 +14,7 @@ import ky, { type KyInstance } from 'ky'
const API_BASE_URL = (__VITE_API_BASE_URL__ ?? '').replace(/\/$/, '')
export const kyInstance: KyInstance = ky.create({
timeout: 10_000,
timeout: 60_000,
retry: 1,
// orval generated 타입이 4xx/5xx 응답도 data로 받아오므로 throw 비활성
throwHttpErrors: false,
@@ -64,7 +64,7 @@ export const getStartAnalysisUrl = () => {
return `/api/analyses`
return `/api/analysis`
}
export const startAnalysis = async (analysisCreate: AnalysisCreate, options?: RequestInit): Promise<startAnalysisResponse> => {
@@ -154,7 +154,7 @@ export const getGetAnalysisStatusUrl = (runId: string,) => {
return `/api/analyses/${runId}/status`
return `/api/analysis/${runId}/status`
}
export const getAnalysisStatus = async (runId: string, options?: RequestInit): Promise<getAnalysisStatusResponse> => {
@@ -174,7 +174,7 @@ export const getAnalysisStatus = async (runId: string, options?: RequestInit): P
export const getGetAnalysisStatusQueryKey = (runId?: string,) => {
return [
`/api/analyses/${runId}/status`
`/api/analysis/${runId}/status`
] as const;
}
+18 -113
View File
@@ -5,28 +5,23 @@
* OpenAPI spec version: 0.1.0
*/
import {
useMutation,
useQuery
} from '@tanstack/react-query';
import type {
DataTag,
DefinedInitialDataOptions,
DefinedUseQueryResult,
MutationFunction,
QueryClient,
QueryFunction,
QueryKey,
UndefinedInitialDataOptions,
UseMutationOptions,
UseMutationResult,
UseQueryOptions,
UseQueryResult
} from '@tanstack/react-query';
import type {
HTTPValidationError,
PlanCreate,
PlanResponse
GetPlan200,
HTTPValidationError
} from '../../model';
import { customFetcher } from '../../api';
@@ -37,100 +32,10 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
/**
* @summary Create Plan
*/
export type createPlanResponse201 = {
data: PlanResponse
status: 201
}
export type createPlanResponse422 = {
data: HTTPValidationError
status: 422
}
export type createPlanResponseSuccess = (createPlanResponse201) & {
headers: Headers;
};
export type createPlanResponseError = (createPlanResponse422) & {
headers: Headers;
};
export type createPlanResponse = (createPlanResponseSuccess | createPlanResponseError)
export const getCreatePlanUrl = () => {
return `/api/plans`
}
export const createPlan = async (planCreate: PlanCreate, options?: RequestInit): Promise<createPlanResponse> => {
return customFetcher<createPlanResponse>(getCreatePlanUrl(),
{
...options,
method: 'POST',
headers: { 'Content-Type': 'application/json', ...options?.headers },
body: JSON.stringify(
planCreate,)
}
);}
export const getCreatePlanMutationOptions = <TError = HTTPValidationError,
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPlan>>, TError,{data: PlanCreate}, TContext>, request?: SecondParameter<typeof customFetcher>}
): UseMutationOptions<Awaited<ReturnType<typeof createPlan>>, TError,{data: PlanCreate}, TContext> => {
const mutationKey = ['createPlan'];
const {mutation: mutationOptions, request: requestOptions} = options ?
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
options
: {...options, mutation: {...options.mutation, mutationKey}}
: {mutation: { mutationKey, }, request: undefined};
const mutationFn: MutationFunction<Awaited<ReturnType<typeof createPlan>>, {data: PlanCreate}> = (props) => {
const {data} = props ?? {};
return createPlan(data,requestOptions)
}
return { mutationFn, ...mutationOptions }}
export type CreatePlanMutationResult = NonNullable<Awaited<ReturnType<typeof createPlan>>>
export type CreatePlanMutationBody = PlanCreate
export type CreatePlanMutationError = HTTPValidationError
/**
* @summary Create Plan
*/
export const useCreatePlan = <TError = HTTPValidationError,
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPlan>>, TError,{data: PlanCreate}, TContext>, request?: SecondParameter<typeof customFetcher>}
, queryClient?: QueryClient): UseMutationResult<
Awaited<ReturnType<typeof createPlan>>,
TError,
{data: PlanCreate},
TContext
> => {
const mutationOptions = getCreatePlanMutationOptions(options);
return useMutation(mutationOptions, queryClient);
}
/**
* @summary Get Plan
*/
export type getPlanResponse200 = {
data: PlanResponse
data: GetPlan200
status: 200
}
@@ -148,17 +53,17 @@ export type getPlanResponseError = (getPlanResponse422) & {
export type getPlanResponse = (getPlanResponseSuccess | getPlanResponseError)
export const getGetPlanUrl = (id: string,) => {
export const getGetPlanUrl = (runId: string,) => {
return `/api/plans/${id}`
return `/api/plans/${runId}`
}
export const getPlan = async (id: string, options?: RequestInit): Promise<getPlanResponse> => {
export const getPlan = async (runId: string, options?: RequestInit): Promise<getPlanResponse> => {
return customFetcher<getPlanResponse>(getGetPlanUrl(id),
return customFetcher<getPlanResponse>(getGetPlanUrl(runId),
{
...options,
method: 'GET'
@@ -171,29 +76,29 @@ export const getPlan = async (id: string, options?: RequestInit): Promise<getPla
export const getGetPlanQueryKey = (id?: string,) => {
export const getGetPlanQueryKey = (runId?: string,) => {
return [
`/api/plans/${id}`
`/api/plans/${runId}`
] as const;
}
export const getGetPlanQueryOptions = <TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
export const getGetPlanQueryOptions = <TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
) => {
const {query: queryOptions, request: requestOptions} = options ?? {};
const queryKey = queryOptions?.queryKey ?? getGetPlanQueryKey(id);
const queryKey = queryOptions?.queryKey ?? getGetPlanQueryKey(runId);
const queryFn: QueryFunction<Awaited<ReturnType<typeof getPlan>>> = () => getPlan(id, requestOptions);
const queryFn: QueryFunction<Awaited<ReturnType<typeof getPlan>>> = () => getPlan(runId, requestOptions);
return { queryKey, queryFn, enabled: !!(id), staleTime: 60000, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData> & { queryKey: DataTag<QueryKey, TData> }
return { queryKey, queryFn, enabled: !!(runId), staleTime: 60000, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData> & { queryKey: DataTag<QueryKey, TData> }
}
export type GetPlanQueryResult = NonNullable<Awaited<ReturnType<typeof getPlan>>>
@@ -201,7 +106,7 @@ export type GetPlanQueryError = HTTPValidationError
export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(
id: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>> & Pick<
runId: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>> & Pick<
DefinedInitialDataOptions<
Awaited<ReturnType<typeof getPlan>>,
TError,
@@ -211,7 +116,7 @@ export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError =
, queryClient?: QueryClient
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>> & Pick<
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>> & Pick<
UndefinedInitialDataOptions<
Awaited<ReturnType<typeof getPlan>>,
TError,
@@ -221,7 +126,7 @@ export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError =
, queryClient?: QueryClient
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
, queryClient?: QueryClient
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
/**
@@ -229,11 +134,11 @@ export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError =
*/
export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
, queryClient?: QueryClient
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {
const queryOptions = getGetPlanQueryOptions(id,options)
const queryOptions = getGetPlanQueryOptions(runId,options)
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };
+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;