From 5839001e82604228dbd20fc6a3506c9f604de1af Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Thu, 4 Jun 2026 22:51:44 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20orval=20=EC=9E=AC=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?+=20report=20=EC=A0=95=ED=95=A9=20+=20/test=20fixture=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- src/features/dev/fixtures/mockUrls.ts | 12 ----- .../report/components/OtherChannels.tsx | 5 +- src/features/report/hooks/useExportCSV.ts | 2 +- src/features/report/lib/transformReport.ts | 4 +- src/features/report/types/report.ts | 2 +- src/shared/api/model/channelScore.ts | 2 +- src/shared/api/model/facebookPage.ts | 49 +++++++------------ src/shared/api/model/facebookPageBio.ts | 8 --- src/shared/api/model/facebookPageCategory.ts | 8 --- .../api/model/facebookPageEngagement.ts | 8 --- src/shared/api/model/facebookPageFollowers.ts | 8 --- src/shared/api/model/facebookPageFollowing.ts | 8 --- src/shared/api/model/facebookPageLabel.ts | 8 --- src/shared/api/model/facebookPageLanguage.ts | 9 ---- src/shared/api/model/facebookPageLink.ts | 8 --- .../api/model/facebookPageLinkedDomain.ts | 8 --- src/shared/api/model/facebookPageLogo.ts | 8 --- .../api/model/facebookPageLogoDescription.ts | 8 --- src/shared/api/model/facebookPagePageName.ts | 8 --- .../api/model/facebookPagePostFrequency.ts | 8 --- .../api/model/facebookPageRecentPostAge.ts | 8 --- src/shared/api/model/facebookPageReviews.ts | 8 --- src/shared/api/model/facebookPageUrl.ts | 8 --- src/shared/api/model/index.ts | 39 --------------- src/shared/api/model/instagramAccount.ts | 39 ++++++--------- src/shared/api/model/instagramAccountBio.ts | 8 --- .../api/model/instagramAccountCategory.ts | 8 --- .../model/instagramAccountContentFormat.ts | 8 --- .../api/model/instagramAccountFollowers.ts | 8 --- .../api/model/instagramAccountFollowing.ts | 8 --- .../api/model/instagramAccountHandle.ts | 8 --- src/shared/api/model/instagramAccountLabel.ts | 8 --- .../api/model/instagramAccountLanguage.ts | 9 ---- src/shared/api/model/instagramAccountPosts.ts | 8 --- .../api/model/instagramAccountProfileLink.ts | 8 --- .../api/model/instagramAccountProfilePhoto.ts | 8 --- .../api/model/instagramAccountReelsCount.ts | 8 --- src/shared/api/model/websiteAudit.ts | 2 +- src/shared/api/model/youTubeAudit.ts | 41 ++++++---------- .../api/model/youTubeAuditAvgVideoLength.ts | 8 --- .../model/youTubeAuditChannelCreatedDate.ts | 8 --- .../model/youTubeAuditChannelDescription.ts | 8 --- .../api/model/youTubeAuditChannelName.ts | 8 --- .../youTubeAuditEstimatedMonthlyRevenue.ts | 9 ---- src/shared/api/model/youTubeAuditHandle.ts | 8 --- .../api/model/youTubeAuditSubscribers.ts | 8 --- .../api/model/youTubeAuditTotalVideos.ts | 8 --- .../api/model/youTubeAuditTotalViews.ts | 8 --- .../api/model/youTubeAuditUploadFrequency.ts | 8 --- .../api/model/youTubeAuditWeeklyViewGrowth.ts | 9 ---- 50 files changed, 56 insertions(+), 457 deletions(-) delete mode 100644 src/shared/api/model/facebookPageBio.ts delete mode 100644 src/shared/api/model/facebookPageCategory.ts delete mode 100644 src/shared/api/model/facebookPageEngagement.ts delete mode 100644 src/shared/api/model/facebookPageFollowers.ts delete mode 100644 src/shared/api/model/facebookPageFollowing.ts delete mode 100644 src/shared/api/model/facebookPageLabel.ts delete mode 100644 src/shared/api/model/facebookPageLanguage.ts delete mode 100644 src/shared/api/model/facebookPageLink.ts delete mode 100644 src/shared/api/model/facebookPageLinkedDomain.ts delete mode 100644 src/shared/api/model/facebookPageLogo.ts delete mode 100644 src/shared/api/model/facebookPageLogoDescription.ts delete mode 100644 src/shared/api/model/facebookPagePageName.ts delete mode 100644 src/shared/api/model/facebookPagePostFrequency.ts delete mode 100644 src/shared/api/model/facebookPageRecentPostAge.ts delete mode 100644 src/shared/api/model/facebookPageReviews.ts delete mode 100644 src/shared/api/model/facebookPageUrl.ts delete mode 100644 src/shared/api/model/instagramAccountBio.ts delete mode 100644 src/shared/api/model/instagramAccountCategory.ts delete mode 100644 src/shared/api/model/instagramAccountContentFormat.ts delete mode 100644 src/shared/api/model/instagramAccountFollowers.ts delete mode 100644 src/shared/api/model/instagramAccountFollowing.ts delete mode 100644 src/shared/api/model/instagramAccountHandle.ts delete mode 100644 src/shared/api/model/instagramAccountLabel.ts delete mode 100644 src/shared/api/model/instagramAccountLanguage.ts delete mode 100644 src/shared/api/model/instagramAccountPosts.ts delete mode 100644 src/shared/api/model/instagramAccountProfileLink.ts delete mode 100644 src/shared/api/model/instagramAccountProfilePhoto.ts delete mode 100644 src/shared/api/model/instagramAccountReelsCount.ts delete mode 100644 src/shared/api/model/youTubeAuditAvgVideoLength.ts delete mode 100644 src/shared/api/model/youTubeAuditChannelCreatedDate.ts delete mode 100644 src/shared/api/model/youTubeAuditChannelDescription.ts delete mode 100644 src/shared/api/model/youTubeAuditChannelName.ts delete mode 100644 src/shared/api/model/youTubeAuditEstimatedMonthlyRevenue.ts delete mode 100644 src/shared/api/model/youTubeAuditHandle.ts delete mode 100644 src/shared/api/model/youTubeAuditSubscribers.ts delete mode 100644 src/shared/api/model/youTubeAuditTotalVideos.ts delete mode 100644 src/shared/api/model/youTubeAuditTotalViews.ts delete mode 100644 src/shared/api/model/youTubeAuditUploadFrequency.ts delete mode 100644 src/shared/api/model/youTubeAuditWeeklyViewGrowth.ts diff --git a/src/features/dev/fixtures/mockUrls.ts b/src/features/dev/fixtures/mockUrls.ts index 4068f5f..007a1a1 100644 --- a/src/features/dev/fixtures/mockUrls.ts +++ b/src/features/dev/fixtures/mockUrls.ts @@ -81,18 +81,6 @@ export const CLINICS: ClinicFixture[] = [ gangnamUnni: 'https://www.gangnamunni.com/hospitals/2500', }, }, - { - label: '나나성형외과', - urls: { - homepage: 'https://www.nanaprs.com', - youtube: 'https://www.youtube.com/@Nanaprstv', - instagram: 'https://www.instagram.com/nanaprs/', - facebook: 'https://www.facebook.com/nanaprs2', - naverPlace: 'https://m.place.naver.com/hospital/1518147116', - naverBlog: 'https://blog.naver.com/nanaprs1', - gangnamUnni: 'https://www.gangnamunni.com/hospitals/938', - }, - }, { label: '디에이성형외과', urls: { diff --git a/src/features/report/components/OtherChannels.tsx b/src/features/report/components/OtherChannels.tsx index 98fb3c1..052bbec 100644 --- a/src/features/report/components/OtherChannels.tsx +++ b/src/features/report/components/OtherChannels.tsx @@ -86,13 +86,14 @@ export default function OtherChannels({ channels, website }: OtherChannelsProps)
{website.additionalDomains.map((d) => (

- {d.domain} — {d.purpose} + {d.domain} + {d.purpose && <> — {d.purpose}}

))}
)}

- 주요 CTA: {website.mainCTA} + 주요 CTA: {website.mainCta}

diff --git a/src/features/report/hooks/useExportCSV.ts b/src/features/report/hooks/useExportCSV.ts index 3100853..865127c 100644 --- a/src/features/report/hooks/useExportCSV.ts +++ b/src/features/report/hooks/useExportCSV.ts @@ -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) { diff --git a/src/features/report/lib/transformReport.ts b/src/features/report/lib/transformReport.ts index 385b17f..44b4bfc 100644 --- a/src/features/report/lib/transformReport.ts +++ b/src/features/report/lib/transformReport.ts @@ -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), diff --git a/src/features/report/types/report.ts b/src/features/report/types/report.ts index a580e8a..7fae630 100644 --- a/src/features/report/types/report.ts +++ b/src/features/report/types/report.ts @@ -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 { diff --git a/src/shared/api/model/channelScore.ts b/src/shared/api/model/channelScore.ts index 8cd3275..d964384 100644 --- a/src/shared/api/model/channelScore.ts +++ b/src/shared/api/model/channelScore.ts @@ -10,7 +10,7 @@ export interface ChannelScore { channel: string; icon: string; score: number; - maxScore: number; + maxScore?: number; status: Severity; headline: string; } diff --git a/src/shared/api/model/facebookPage.ts b/src/shared/api/model/facebookPage.ts index 0257e86..c22c12b 100644 --- a/src/shared/api/model/facebookPage.ts +++ b/src/shared/api/model/facebookPage.ts @@ -4,42 +4,27 @@ * FastAPI * OpenAPI spec version: 0.1.0 */ -import type { FacebookPageUrl } from './facebookPageUrl'; -import type { FacebookPagePageName } from './facebookPagePageName'; -import type { FacebookPageLanguage } from './facebookPageLanguage'; -import type { FacebookPageLabel } from './facebookPageLabel'; -import type { FacebookPageFollowers } from './facebookPageFollowers'; -import type { FacebookPageFollowing } from './facebookPageFollowing'; -import type { FacebookPageCategory } from './facebookPageCategory'; -import type { FacebookPageBio } from './facebookPageBio'; -import type { FacebookPageLogo } from './facebookPageLogo'; -import type { FacebookPageLogoDescription } from './facebookPageLogoDescription'; -import type { FacebookPageLink } from './facebookPageLink'; -import type { FacebookPageLinkedDomain } from './facebookPageLinkedDomain'; -import type { FacebookPageReviews } from './facebookPageReviews'; -import type { FacebookPageRecentPostAge } from './facebookPageRecentPostAge'; +import type { Language } from './language'; import type { FacebookPageHasWhatsapp } from './facebookPageHasWhatsapp'; -import type { FacebookPagePostFrequency } from './facebookPagePostFrequency'; import type { FacebookPageTopContentType } from './facebookPageTopContentType'; -import type { FacebookPageEngagement } from './facebookPageEngagement'; export interface FacebookPage { - url?: FacebookPageUrl; - pageName?: FacebookPagePageName; - language?: FacebookPageLanguage; - label?: FacebookPageLabel; - followers?: FacebookPageFollowers; - following?: FacebookPageFollowing; - category?: FacebookPageCategory; - bio?: FacebookPageBio; - logo?: FacebookPageLogo; - logoDescription?: FacebookPageLogoDescription; - link?: FacebookPageLink; - linkedDomain?: FacebookPageLinkedDomain; - reviews?: FacebookPageReviews; - recentPostAge?: FacebookPageRecentPostAge; + url: string; + pageName: string; + language: Language; + label: string; + followers: number; + following: number; + category: string; + bio: string; + logo: string; + logoDescription: string; + link: string; + linkedDomain: string; + reviews: number; + recentPostAge: string; hasWhatsapp?: FacebookPageHasWhatsapp; - postFrequency?: FacebookPagePostFrequency; + postFrequency: string; topContentType?: FacebookPageTopContentType; - engagement?: FacebookPageEngagement; + engagement: string; } diff --git a/src/shared/api/model/facebookPageBio.ts b/src/shared/api/model/facebookPageBio.ts deleted file mode 100644 index 4100ad2..0000000 --- a/src/shared/api/model/facebookPageBio.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageBio = string | null; diff --git a/src/shared/api/model/facebookPageCategory.ts b/src/shared/api/model/facebookPageCategory.ts deleted file mode 100644 index 89ad68f..0000000 --- a/src/shared/api/model/facebookPageCategory.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageCategory = string | null; diff --git a/src/shared/api/model/facebookPageEngagement.ts b/src/shared/api/model/facebookPageEngagement.ts deleted file mode 100644 index afeda68..0000000 --- a/src/shared/api/model/facebookPageEngagement.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageEngagement = string | null; diff --git a/src/shared/api/model/facebookPageFollowers.ts b/src/shared/api/model/facebookPageFollowers.ts deleted file mode 100644 index 209c6c9..0000000 --- a/src/shared/api/model/facebookPageFollowers.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageFollowers = number | null; diff --git a/src/shared/api/model/facebookPageFollowing.ts b/src/shared/api/model/facebookPageFollowing.ts deleted file mode 100644 index b68c683..0000000 --- a/src/shared/api/model/facebookPageFollowing.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageFollowing = number | null; diff --git a/src/shared/api/model/facebookPageLabel.ts b/src/shared/api/model/facebookPageLabel.ts deleted file mode 100644 index 37ebb07..0000000 --- a/src/shared/api/model/facebookPageLabel.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageLabel = string | null; diff --git a/src/shared/api/model/facebookPageLanguage.ts b/src/shared/api/model/facebookPageLanguage.ts deleted file mode 100644 index 6e75973..0000000 --- a/src/shared/api/model/facebookPageLanguage.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ -import type { Language } from './language'; - -export type FacebookPageLanguage = Language | null; diff --git a/src/shared/api/model/facebookPageLink.ts b/src/shared/api/model/facebookPageLink.ts deleted file mode 100644 index 663fd33..0000000 --- a/src/shared/api/model/facebookPageLink.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageLink = string | null; diff --git a/src/shared/api/model/facebookPageLinkedDomain.ts b/src/shared/api/model/facebookPageLinkedDomain.ts deleted file mode 100644 index 7e2c751..0000000 --- a/src/shared/api/model/facebookPageLinkedDomain.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageLinkedDomain = string | null; diff --git a/src/shared/api/model/facebookPageLogo.ts b/src/shared/api/model/facebookPageLogo.ts deleted file mode 100644 index efb882f..0000000 --- a/src/shared/api/model/facebookPageLogo.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageLogo = string | null; diff --git a/src/shared/api/model/facebookPageLogoDescription.ts b/src/shared/api/model/facebookPageLogoDescription.ts deleted file mode 100644 index 41f7110..0000000 --- a/src/shared/api/model/facebookPageLogoDescription.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageLogoDescription = string | null; diff --git a/src/shared/api/model/facebookPagePageName.ts b/src/shared/api/model/facebookPagePageName.ts deleted file mode 100644 index f48ada5..0000000 --- a/src/shared/api/model/facebookPagePageName.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPagePageName = string | null; diff --git a/src/shared/api/model/facebookPagePostFrequency.ts b/src/shared/api/model/facebookPagePostFrequency.ts deleted file mode 100644 index 1e5d9d5..0000000 --- a/src/shared/api/model/facebookPagePostFrequency.ts +++ /dev/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; diff --git a/src/shared/api/model/facebookPageRecentPostAge.ts b/src/shared/api/model/facebookPageRecentPostAge.ts deleted file mode 100644 index a560c48..0000000 --- a/src/shared/api/model/facebookPageRecentPostAge.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageRecentPostAge = string | null; diff --git a/src/shared/api/model/facebookPageReviews.ts b/src/shared/api/model/facebookPageReviews.ts deleted file mode 100644 index 8609504..0000000 --- a/src/shared/api/model/facebookPageReviews.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageReviews = number | null; diff --git a/src/shared/api/model/facebookPageUrl.ts b/src/shared/api/model/facebookPageUrl.ts deleted file mode 100644 index 4bd8ee5..0000000 --- a/src/shared/api/model/facebookPageUrl.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type FacebookPageUrl = string | null; diff --git a/src/shared/api/model/index.ts b/src/shared/api/model/index.ts index 56972e4..bb65baa 100644 --- a/src/shared/api/model/index.ts +++ b/src/shared/api/model/index.ts @@ -89,24 +89,8 @@ export * from './estimatedRevenue'; export * from './facebookAudit'; export * from './facebookAuditConsolidationRecommendation'; export * from './facebookPage'; -export * from './facebookPageBio'; -export * from './facebookPageCategory'; -export * from './facebookPageEngagement'; -export * from './facebookPageFollowers'; -export * from './facebookPageFollowing'; export * from './facebookPageHasWhatsapp'; -export * from './facebookPageLabel'; -export * from './facebookPageLanguage'; -export * from './facebookPageLink'; -export * from './facebookPageLinkedDomain'; -export * from './facebookPageLogo'; -export * from './facebookPageLogoDescription'; -export * from './facebookPagePageName'; -export * from './facebookPagePostFrequency'; -export * from './facebookPageRecentPostAge'; -export * from './facebookPageReviews'; export * from './facebookPageTopContentType'; -export * from './facebookPageUrl'; export * from './fileListItem'; export * from './fileListItemSizeBytes'; export * from './fileType'; @@ -115,18 +99,6 @@ export * from './fileUploadResponseSizeBytes'; export * from './fontSpec'; export * from './hTTPValidationError'; export * from './instagramAccount'; -export * from './instagramAccountBio'; -export * from './instagramAccountCategory'; -export * from './instagramAccountContentFormat'; -export * from './instagramAccountFollowers'; -export * from './instagramAccountFollowing'; -export * from './instagramAccountHandle'; -export * from './instagramAccountLabel'; -export * from './instagramAccountLanguage'; -export * from './instagramAccountPosts'; -export * from './instagramAccountProfileLink'; -export * from './instagramAccountProfilePhoto'; -export * from './instagramAccountReelsCount'; export * from './instagramAudit'; export * from './kPIMetric'; export * from './language'; @@ -192,16 +164,5 @@ export * from './websiteAuditSnsLinksDetail'; export * from './weeklyViewGrowth'; export * from './workflowStep'; export * from './youTubeAudit'; -export * from './youTubeAuditAvgVideoLength'; -export * from './youTubeAuditChannelCreatedDate'; -export * from './youTubeAuditChannelDescription'; -export * from './youTubeAuditChannelName'; -export * from './youTubeAuditEstimatedMonthlyRevenue'; -export * from './youTubeAuditHandle'; -export * from './youTubeAuditSubscribers'; -export * from './youTubeAuditTotalVideos'; -export * from './youTubeAuditTotalViews'; -export * from './youTubeAuditUploadFrequency'; -export * from './youTubeAuditWeeklyViewGrowth'; export * from './youTubeRepurposeItem'; export * from './youTubeRepurposeItemType'; \ No newline at end of file diff --git a/src/shared/api/model/instagramAccount.ts b/src/shared/api/model/instagramAccount.ts index f72f48f..44cf3c4 100644 --- a/src/shared/api/model/instagramAccount.ts +++ b/src/shared/api/model/instagramAccount.ts @@ -4,31 +4,20 @@ * FastAPI * OpenAPI spec version: 0.1.0 */ -import type { InstagramAccountHandle } from './instagramAccountHandle'; -import type { InstagramAccountLanguage } from './instagramAccountLanguage'; -import type { InstagramAccountLabel } from './instagramAccountLabel'; -import type { InstagramAccountPosts } from './instagramAccountPosts'; -import type { InstagramAccountFollowers } from './instagramAccountFollowers'; -import type { InstagramAccountFollowing } from './instagramAccountFollowing'; -import type { InstagramAccountCategory } from './instagramAccountCategory'; -import type { InstagramAccountProfileLink } from './instagramAccountProfileLink'; -import type { InstagramAccountReelsCount } from './instagramAccountReelsCount'; -import type { InstagramAccountContentFormat } from './instagramAccountContentFormat'; -import type { InstagramAccountProfilePhoto } from './instagramAccountProfilePhoto'; -import type { InstagramAccountBio } from './instagramAccountBio'; +import type { Language } from './language'; export interface InstagramAccount { - handle?: InstagramAccountHandle; - language?: InstagramAccountLanguage; - label?: InstagramAccountLabel; - posts?: InstagramAccountPosts; - followers?: InstagramAccountFollowers; - following?: InstagramAccountFollowing; - category?: InstagramAccountCategory; - profileLink?: InstagramAccountProfileLink; - highlights?: string[]; - reelsCount?: InstagramAccountReelsCount; - contentFormat?: InstagramAccountContentFormat; - profilePhoto?: InstagramAccountProfilePhoto; - bio?: InstagramAccountBio; + handle: string; + language: Language; + label: string; + posts: number; + followers: number; + following: number; + category: string; + profileLink: string; + highlights: string[]; + reelsCount: number; + contentFormat: string; + profilePhoto: string; + bio: string; } diff --git a/src/shared/api/model/instagramAccountBio.ts b/src/shared/api/model/instagramAccountBio.ts deleted file mode 100644 index 5469734..0000000 --- a/src/shared/api/model/instagramAccountBio.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountBio = string | null; diff --git a/src/shared/api/model/instagramAccountCategory.ts b/src/shared/api/model/instagramAccountCategory.ts deleted file mode 100644 index 822a7de..0000000 --- a/src/shared/api/model/instagramAccountCategory.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountCategory = string | null; diff --git a/src/shared/api/model/instagramAccountContentFormat.ts b/src/shared/api/model/instagramAccountContentFormat.ts deleted file mode 100644 index b6c07b2..0000000 --- a/src/shared/api/model/instagramAccountContentFormat.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountContentFormat = string | null; diff --git a/src/shared/api/model/instagramAccountFollowers.ts b/src/shared/api/model/instagramAccountFollowers.ts deleted file mode 100644 index c9fe729..0000000 --- a/src/shared/api/model/instagramAccountFollowers.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountFollowers = number | null; diff --git a/src/shared/api/model/instagramAccountFollowing.ts b/src/shared/api/model/instagramAccountFollowing.ts deleted file mode 100644 index c75096b..0000000 --- a/src/shared/api/model/instagramAccountFollowing.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountFollowing = number | null; diff --git a/src/shared/api/model/instagramAccountHandle.ts b/src/shared/api/model/instagramAccountHandle.ts deleted file mode 100644 index 99eb1d4..0000000 --- a/src/shared/api/model/instagramAccountHandle.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountHandle = string | null; diff --git a/src/shared/api/model/instagramAccountLabel.ts b/src/shared/api/model/instagramAccountLabel.ts deleted file mode 100644 index 5132f38..0000000 --- a/src/shared/api/model/instagramAccountLabel.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountLabel = string | null; diff --git a/src/shared/api/model/instagramAccountLanguage.ts b/src/shared/api/model/instagramAccountLanguage.ts deleted file mode 100644 index 53936e4..0000000 --- a/src/shared/api/model/instagramAccountLanguage.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ -import type { Language } from './language'; - -export type InstagramAccountLanguage = Language | null; diff --git a/src/shared/api/model/instagramAccountPosts.ts b/src/shared/api/model/instagramAccountPosts.ts deleted file mode 100644 index d3bbaa0..0000000 --- a/src/shared/api/model/instagramAccountPosts.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountPosts = number | null; diff --git a/src/shared/api/model/instagramAccountProfileLink.ts b/src/shared/api/model/instagramAccountProfileLink.ts deleted file mode 100644 index 1eb98f5..0000000 --- a/src/shared/api/model/instagramAccountProfileLink.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountProfileLink = string | null; diff --git a/src/shared/api/model/instagramAccountProfilePhoto.ts b/src/shared/api/model/instagramAccountProfilePhoto.ts deleted file mode 100644 index 2de1419..0000000 --- a/src/shared/api/model/instagramAccountProfilePhoto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountProfilePhoto = string | null; diff --git a/src/shared/api/model/instagramAccountReelsCount.ts b/src/shared/api/model/instagramAccountReelsCount.ts deleted file mode 100644 index 458aa5e..0000000 --- a/src/shared/api/model/instagramAccountReelsCount.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type InstagramAccountReelsCount = number | null; diff --git a/src/shared/api/model/websiteAudit.ts b/src/shared/api/model/websiteAudit.ts index 860c7da..4efa838 100644 --- a/src/shared/api/model/websiteAudit.ts +++ b/src/shared/api/model/websiteAudit.ts @@ -10,7 +10,7 @@ import type { TrackingPixel } from './trackingPixel'; export interface WebsiteAudit { primaryDomain: string; - additionalDomains: AdditionalDomain[]; + additionalDomains?: AdditionalDomain[]; snsLinksOnSite: boolean; snsLinksDetail?: WebsiteAuditSnsLinksDetail; trackingPixels: TrackingPixel[]; diff --git a/src/shared/api/model/youTubeAudit.ts b/src/shared/api/model/youTubeAudit.ts index 9f96a28..20c51f4 100644 --- a/src/shared/api/model/youTubeAudit.ts +++ b/src/shared/api/model/youTubeAudit.ts @@ -4,35 +4,26 @@ * FastAPI * OpenAPI spec version: 0.1.0 */ -import type { YouTubeAuditChannelName } from './youTubeAuditChannelName'; -import type { YouTubeAuditHandle } from './youTubeAuditHandle'; -import type { YouTubeAuditSubscribers } from './youTubeAuditSubscribers'; -import type { YouTubeAuditTotalVideos } from './youTubeAuditTotalVideos'; -import type { YouTubeAuditTotalViews } from './youTubeAuditTotalViews'; -import type { YouTubeAuditWeeklyViewGrowth } from './youTubeAuditWeeklyViewGrowth'; -import type { YouTubeAuditEstimatedMonthlyRevenue } from './youTubeAuditEstimatedMonthlyRevenue'; -import type { YouTubeAuditAvgVideoLength } from './youTubeAuditAvgVideoLength'; -import type { YouTubeAuditUploadFrequency } from './youTubeAuditUploadFrequency'; -import type { YouTubeAuditChannelCreatedDate } from './youTubeAuditChannelCreatedDate'; -import type { YouTubeAuditChannelDescription } from './youTubeAuditChannelDescription'; +import type { WeeklyViewGrowth } from './weeklyViewGrowth'; +import type { EstimatedRevenue } from './estimatedRevenue'; import type { LinkedUrl } from './linkedUrl'; import type { TopVideo } from './topVideo'; import type { DiagnosisItem } from './diagnosisItem'; export interface YouTubeAudit { - channelName?: YouTubeAuditChannelName; - handle?: YouTubeAuditHandle; - subscribers?: YouTubeAuditSubscribers; - totalVideos?: YouTubeAuditTotalVideos; - totalViews?: YouTubeAuditTotalViews; - weeklyViewGrowth?: YouTubeAuditWeeklyViewGrowth; - estimatedMonthlyRevenue?: YouTubeAuditEstimatedMonthlyRevenue; - avgVideoLength?: YouTubeAuditAvgVideoLength; - uploadFrequency?: YouTubeAuditUploadFrequency; - channelCreatedDate?: YouTubeAuditChannelCreatedDate; - channelDescription?: YouTubeAuditChannelDescription; - linkedUrls?: LinkedUrl[]; - playlists?: string[]; + channelName: string; + handle: string; + subscribers: number; + totalVideos: number; + totalViews: number; + weeklyViewGrowth: WeeklyViewGrowth; + estimatedMonthlyRevenue: EstimatedRevenue; + avgVideoLength: string; + uploadFrequency: string; + channelCreatedDate: string; + channelDescription: string; + linkedUrls: LinkedUrl[]; + playlists: string[]; topVideos?: TopVideo[]; - diagnosis?: DiagnosisItem[]; + diagnosis: DiagnosisItem[]; } diff --git a/src/shared/api/model/youTubeAuditAvgVideoLength.ts b/src/shared/api/model/youTubeAuditAvgVideoLength.ts deleted file mode 100644 index a37804c..0000000 --- a/src/shared/api/model/youTubeAuditAvgVideoLength.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditAvgVideoLength = string | null; diff --git a/src/shared/api/model/youTubeAuditChannelCreatedDate.ts b/src/shared/api/model/youTubeAuditChannelCreatedDate.ts deleted file mode 100644 index 2dafabf..0000000 --- a/src/shared/api/model/youTubeAuditChannelCreatedDate.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditChannelCreatedDate = string | null; diff --git a/src/shared/api/model/youTubeAuditChannelDescription.ts b/src/shared/api/model/youTubeAuditChannelDescription.ts deleted file mode 100644 index 322fd61..0000000 --- a/src/shared/api/model/youTubeAuditChannelDescription.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditChannelDescription = string | null; diff --git a/src/shared/api/model/youTubeAuditChannelName.ts b/src/shared/api/model/youTubeAuditChannelName.ts deleted file mode 100644 index 5a22e1b..0000000 --- a/src/shared/api/model/youTubeAuditChannelName.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditChannelName = string | null; diff --git a/src/shared/api/model/youTubeAuditEstimatedMonthlyRevenue.ts b/src/shared/api/model/youTubeAuditEstimatedMonthlyRevenue.ts deleted file mode 100644 index 647ee3b..0000000 --- a/src/shared/api/model/youTubeAuditEstimatedMonthlyRevenue.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ -import type { EstimatedRevenue } from './estimatedRevenue'; - -export type YouTubeAuditEstimatedMonthlyRevenue = EstimatedRevenue | null; diff --git a/src/shared/api/model/youTubeAuditHandle.ts b/src/shared/api/model/youTubeAuditHandle.ts deleted file mode 100644 index 9716930..0000000 --- a/src/shared/api/model/youTubeAuditHandle.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditHandle = string | null; diff --git a/src/shared/api/model/youTubeAuditSubscribers.ts b/src/shared/api/model/youTubeAuditSubscribers.ts deleted file mode 100644 index dc29295..0000000 --- a/src/shared/api/model/youTubeAuditSubscribers.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditSubscribers = number | null; diff --git a/src/shared/api/model/youTubeAuditTotalVideos.ts b/src/shared/api/model/youTubeAuditTotalVideos.ts deleted file mode 100644 index d6f7b62..0000000 --- a/src/shared/api/model/youTubeAuditTotalVideos.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditTotalVideos = number | null; diff --git a/src/shared/api/model/youTubeAuditTotalViews.ts b/src/shared/api/model/youTubeAuditTotalViews.ts deleted file mode 100644 index e7fcd75..0000000 --- a/src/shared/api/model/youTubeAuditTotalViews.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditTotalViews = number | null; diff --git a/src/shared/api/model/youTubeAuditUploadFrequency.ts b/src/shared/api/model/youTubeAuditUploadFrequency.ts deleted file mode 100644 index c67e1e2..0000000 --- a/src/shared/api/model/youTubeAuditUploadFrequency.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ - -export type YouTubeAuditUploadFrequency = string | null; diff --git a/src/shared/api/model/youTubeAuditWeeklyViewGrowth.ts b/src/shared/api/model/youTubeAuditWeeklyViewGrowth.ts deleted file mode 100644 index e1bcf49..0000000 --- a/src/shared/api/model/youTubeAuditWeeklyViewGrowth.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Generated by orval v7.21.0 🍺 - * Do not edit manually. - * FastAPI - * OpenAPI spec version: 0.1.0 - */ -import type { WeeklyViewGrowth } from './weeklyViewGrowth'; - -export type YouTubeAuditWeeklyViewGrowth = WeeklyViewGrowth | null;