File size: 2,111 Bytes
65b4f03
 
 
 
 
3d330e9
 
65b4f03
 
 
 
 
 
 
 
3d330e9
65b4f03
 
 
 
 
3d330e9
65b4f03
 
 
 
 
 
3d330e9
 
 
65b4f03
 
 
 
 
 
3d330e9
65b4f03
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3d330e9
65b4f03
 
 
 
 
 
 
 
 
 
3d330e9
65b4f03
 
 
 
 
 
 
 
 
 
 
 
 
 
3d330e9
65b4f03
 
 
 
 
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
import type { Timestamps } from './Timestamps';

export interface Page extends Timestamps {
	_id: string;
	name: string;
	text: Record<string, string | undefined>;
	pictures: Record<string, string | null | undefined>;
}

export interface HomePage extends Page {
	_id: '/';
	name: "Bergère Enchantée - Tapisserie d'ameublement";
	text: {
		presentation: string;
		'eshop-description': string;
		'search-engine-description': string;
	};
	pictures: {
		discover: string | null;
		move: string | null;
		'e-shop': string | null;
	} & Partial<Record<`realisation-${number}`, string | null>>;
}

export interface CreationsPage extends Page {
	_id: '/realisations';
	name: 'Réalisations';
	text: {
		'search-engine-description': string;
	} & Partial<Record<`realisation-${number}`, string>>;
	pictures: Partial<Record<`realisation-${number}`, string | null>>;
}

export interface FabricsPage {
	_id: '/tissus-et-finitions';
	name: 'Tissus et finitions';
	text: {
		'search-engine-description': string;
	};
	pictures: {
		'photo-1': string | null;
		'photo-2': string | null;
		'photo-3': string | null;
		'photo-4': string | null;
		'photo-5': string | null;
		'photo-6': string | null;
		'photo-7': string | null;
		'photo-8': string | null;
		'photo-9': string | null;
		'photo-10': string | null;
		'photo-11': string | null;
		'photo-12': string | null;
		'photo-13': string | null;
		'photo-14': string | null;
		'photo-15': string | null;
	};
}

export interface ContactPage extends Page {
	_id: '/contact';
	name: 'Contact';
	text: {
		description: string;
		'search-engine-description': string;
	};
	pictures: {
		'photo-garde': string | null;
	};
}

export interface WorkshopPage extends Page {
	_id: '/atelier';
	name: "L'Atelier";
	text: {
		'search-engine-description': string;
		'texte-1': string;
		'texte-2': string;
	};
	pictures: {
		'photo-1': string | null;
		'photo-2': string | null;
		'photo-3': string | null;
	};
}

export interface EshopPage extends Page {
	_id: '/vente';
	name: 'E-shop';
	text: {
		'search-engine-description': string;
	};
	pictures: {
		background: string | null;
	};
}