@hed-hog/studio 0.0.285
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/studio.controller.d.ts +79 -0
- package/dist/studio.controller.d.ts.map +1 -0
- package/dist/studio.controller.js +186 -0
- package/dist/studio.controller.js.map +1 -0
- package/dist/studio.module.d.ts +3 -0
- package/dist/studio.module.d.ts.map +1 -0
- package/dist/studio.module.js +33 -0
- package/dist/studio.module.js.map +1 -0
- package/dist/studio.service.d.ts +76 -0
- package/dist/studio.service.d.ts.map +1 -0
- package/dist/studio.service.js +98 -0
- package/dist/studio.service.js.map +1 -0
- package/hedhog/data/menu.yaml +114 -0
- package/hedhog/data/role.yaml +7 -0
- package/hedhog/data/route.yaml +152 -0
- package/hedhog/data/setting_group.yaml +8 -0
- package/hedhog/frontend/app/_components/studio-status-badge.tsx.ejs +14 -0
- package/hedhog/frontend/app/_lib/mocks.ts.ejs +209 -0
- package/hedhog/frontend/app/_lib/status.ts.ejs +38 -0
- package/hedhog/frontend/app/_lib/types.ts.ejs +148 -0
- package/hedhog/frontend/app/assets/page.tsx.ejs +117 -0
- package/hedhog/frontend/app/editing/page.tsx.ejs +55 -0
- package/hedhog/frontend/app/incidents/page.tsx.ejs +59 -0
- package/hedhog/frontend/app/page.tsx.ejs +207 -0
- package/hedhog/frontend/app/projects/[id]/page.tsx.ejs +323 -0
- package/hedhog/frontend/app/projects/form/page.tsx.ejs +129 -0
- package/hedhog/frontend/app/projects/page.tsx.ejs +169 -0
- package/hedhog/frontend/app/publication/page.tsx.ejs +62 -0
- package/hedhog/frontend/app/scenes/form/page.tsx.ejs +110 -0
- package/hedhog/frontend/app/sessions/[id]/page.tsx.ejs +118 -0
- package/hedhog/frontend/app/sessions/form/page.tsx.ejs +103 -0
- package/hedhog/frontend/app/sessions/page.tsx.ejs +80 -0
- package/hedhog/frontend/app/storage-profiles/form/page.tsx.ejs +100 -0
- package/hedhog/frontend/app/storage-profiles/page.tsx.ejs +80 -0
- package/hedhog/frontend/app/takes/[id]/page.tsx.ejs +143 -0
- package/hedhog/frontend/app/takes/page.tsx.ejs +74 -0
- package/hedhog/table/capture_agent.yaml +48 -0
- package/hedhog/table/edit_composition.yaml +67 -0
- package/hedhog/table/edit_pipeline.yaml +46 -0
- package/hedhog/table/edit_stage_execution.yaml +46 -0
- package/hedhog/table/editor_delivery_package.yaml +63 -0
- package/hedhog/table/ingestion_job.yaml +74 -0
- package/hedhog/table/media_asset.yaml +130 -0
- package/hedhog/table/participant_command_ack.yaml +32 -0
- package/hedhog/table/participant_recording.yaml +67 -0
- package/hedhog/table/production_binding.yaml +34 -0
- package/hedhog/table/production_project.yaml +104 -0
- package/hedhog/table/publication_target.yaml +44 -0
- package/hedhog/table/recorded_file.yaml +74 -0
- package/hedhog/table/recording_command.yaml +72 -0
- package/hedhog/table/recording_incident.yaml +65 -0
- package/hedhog/table/recording_session.yaml +86 -0
- package/hedhog/table/scene.yaml +64 -0
- package/hedhog/table/scene_take.yaml +83 -0
- package/hedhog/table/session_participant.yaml +55 -0
- package/hedhog/table/storage_profile.yaml +75 -0
- package/hedhog/table/sync_marker.yaml +44 -0
- package/package.json +38 -0
- package/src/index.ts +4 -0
- package/src/language/en.json +8 -0
- package/src/language/pt.json +8 -0
- package/src/studio.controller.ts +94 -0
- package/src/studio.module.ts +20 -0
- package/src/studio.service.ts +102 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Injectable } from '@nestjs/common';
|
|
2
|
+
|
|
3
|
+
@Injectable()
|
|
4
|
+
export class StudioService {
|
|
5
|
+
getData() {
|
|
6
|
+
return {
|
|
7
|
+
totals: {
|
|
8
|
+
projects: 24,
|
|
9
|
+
inRecording: 4,
|
|
10
|
+
inEditing: 7,
|
|
11
|
+
pendingIngestion: 13,
|
|
12
|
+
uploadFailures: 2,
|
|
13
|
+
readyToPublish: 3,
|
|
14
|
+
},
|
|
15
|
+
updatedAt: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
listProjects() {
|
|
20
|
+
return {
|
|
21
|
+
data: [
|
|
22
|
+
{
|
|
23
|
+
id: 1,
|
|
24
|
+
title: 'Curso de Node Avancado - Aula 12',
|
|
25
|
+
projectType: 'course_lesson',
|
|
26
|
+
status: 'in_recording',
|
|
27
|
+
currentStage: 'recording',
|
|
28
|
+
ownerUserId: 1,
|
|
29
|
+
updatedAt: new Date().toISOString(),
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
total: 1,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getProject(id: number) {
|
|
37
|
+
return {
|
|
38
|
+
id,
|
|
39
|
+
title: 'Projeto Studio',
|
|
40
|
+
status: 'planned',
|
|
41
|
+
currentStage: 'preparation',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
listScenes() {
|
|
46
|
+
return { data: [] };
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
listSessions() {
|
|
50
|
+
return { data: [] };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
getSession(id: number) {
|
|
54
|
+
return { id, status: 'idle' };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
listTakes() {
|
|
58
|
+
return { data: [] };
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
getTake(id: number) {
|
|
62
|
+
return { id, status: 'pending' };
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
listAssets() {
|
|
66
|
+
return { data: [] };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
listStorageProfiles() {
|
|
70
|
+
return { data: [] };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
listIncidents() {
|
|
74
|
+
return { data: [] };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
getEditing() {
|
|
78
|
+
return { data: [] };
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
getPublication() {
|
|
82
|
+
return { data: [] };
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
getProjectFormSchema() {
|
|
86
|
+
return { fields: ['title', 'description', 'projectType', 'status'] };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
getSceneFormSchema() {
|
|
90
|
+
return { fields: ['name', 'description', 'sequenceOrder', 'status'] };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
getSessionFormSchema() {
|
|
94
|
+
return { fields: ['title', 'sessionType', 'status', 'roomKey'] };
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
getStorageProfileFormSchema() {
|
|
98
|
+
return {
|
|
99
|
+
fields: ['name', 'providerType', 'bucketName', 'region', 'basePath'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|