summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/__tests__/fixtures/v1.ts
blob: 4d86db0966dcdec07c3ea97cf1132f4e241647e6 (plain) (blame)
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
export const v1Project = {
	id: "project-v1-123",
	version: 1,
	name: "My V1 Project",
	createdAt: "2024-01-15T10:00:00.000Z",
	updatedAt: "2024-01-15T12:00:00.000Z",
	fps: 30,
	canvasSize: { width: 1920, height: 1080 },
	backgroundColor: "#1a1a1a",
	backgroundType: "color",
	currentSceneId: "scene-main",
	bookmarks: [2.0, 4.5, 7.0],
	scenes: [
		{
			id: "scene-main",
			name: "Main scene",
			isMain: true,
			tracks: [],
			bookmarks: [],
			createdAt: "2024-01-15T10:00:00.000Z",
			updatedAt: "2024-01-15T12:00:00.000Z",
		},
	],
};

export const v1ProjectWithMultipleScenes = {
	id: "project-v1-multi",
	version: 1,
	metadata: {
		id: "project-v1-multi",
		name: "Multi-Scene Project",
		createdAt: "2024-02-20T14:00:00.000Z",
		updatedAt: "2024-02-20T16:00:00.000Z",
	},
	currentSceneId: "scene-1",
	fps: 60,
	canvasSize: { width: 3840, height: 2160 },
	background: { type: "blur", blurIntensity: 15 },
	scenes: [
		{
			id: "scene-1",
			name: "Intro",
			isMain: true,
			tracks: [],
			bookmarks: [1.0],
			createdAt: "2024-02-20T14:00:00.000Z",
			updatedAt: "2024-02-20T16:00:00.000Z",
		},
		{
			id: "scene-2",
			name: "Content",
			isMain: false,
			tracks: [],
			bookmarks: [],
			createdAt: "2024-02-20T14:30:00.000Z",
			updatedAt: "2024-02-20T16:00:00.000Z",
		},
	],
};