Repository navigation
Expand file tree
/
Copy pathtypes.ts
More file actions
126 lines (116 loc) · 2.51 KB
/
Copy pathtypes.ts
File metadata and controls
126 lines (116 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// Language types for the multi-language CRO.CAFE website
export type Language = 'en' | 'nl' | 'de' | 'es';
// Episode related types
export interface Episode {
title: string;
description: string;
pubDate: Date;
season: number;
episode: number;
duration: string;
audioUrl: string;
slug: string;
language: Language;
imageUrl?: string;
hosts: string[];
guests: string[];
keywords: string[];
transistorId: string;
shareUrl: string;
featured: boolean;
episodeType: 'full' | 'trailer' | 'bonus';
summary?: string;
}
// Guest related types
export interface Guest {
name: string;
bio: string;
company?: string;
website?: string;
social?: {
twitter?: string;
linkedin?: string;
instagram?: string;
};
image?: string;
episodes: string[];
languages: Language[];
slug: string;
}
// Quote types
export interface Quote {
text: string;
author: string;
company?: string;
episode?: string;
language: Language;
featured: boolean;
order?: number;
}
// Brand types
export interface Brand {
name: string;
logoUrl: string;
websiteUrl?: string;
featured: boolean;
order?: number;
description?: string;
}
// Platform types
export interface Platform {
name: string;
iconUrl: string;
category: 'podcast' | 'music' | 'general';
order?: number;
urls: {
en?: string;
nl?: string;
de?: string;
es?: string;
};
}
// RSS Feed types
export interface RSSEpisode {
title: string;
description: string;
pubDate: string;
link: string;
guid: string;
enclosure: {
url: string;
type: string;
length: string;
};
duration?: string;
episodeNumber?: string;
seasonNumber?: string;
episodeType?: string;
explicit?: boolean;
keywords?: string;
author?: string;
image?: string;
}
// Navigation types
export interface NavigationItem {
label: string;
href: string;
external?: boolean;
}
// SEO types
export interface SEOData {
title: string;
description: string;
canonical?: string;
ogImage?: string;
hreflang?: Record<Language, string>;
keywords?: string[];
}
// Theme types
export type Theme = 'light' | 'dark' | 'system';
// Language labels for UI
export const LANGUAGE_LABELS: Record<Language, { name: string; nativeName: string; flag: string }> = {
en: { name: 'English', nativeName: 'English', flag: '🇺🇸' },
nl: { name: 'Dutch', nativeName: 'Nederlands', flag: '🇳🇱' },
de: { name: 'German', nativeName: 'Deutsch', flag: '🇩🇪' },
es: { name: 'Spanish', nativeName: 'Español', flag: '🇪🇸' }
}