@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.
Files changed (68) hide show
  1. package/dist/index.d.ts +4 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +20 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/studio.controller.d.ts +79 -0
  6. package/dist/studio.controller.d.ts.map +1 -0
  7. package/dist/studio.controller.js +186 -0
  8. package/dist/studio.controller.js.map +1 -0
  9. package/dist/studio.module.d.ts +3 -0
  10. package/dist/studio.module.d.ts.map +1 -0
  11. package/dist/studio.module.js +33 -0
  12. package/dist/studio.module.js.map +1 -0
  13. package/dist/studio.service.d.ts +76 -0
  14. package/dist/studio.service.d.ts.map +1 -0
  15. package/dist/studio.service.js +98 -0
  16. package/dist/studio.service.js.map +1 -0
  17. package/hedhog/data/menu.yaml +114 -0
  18. package/hedhog/data/role.yaml +7 -0
  19. package/hedhog/data/route.yaml +152 -0
  20. package/hedhog/data/setting_group.yaml +8 -0
  21. package/hedhog/frontend/app/_components/studio-status-badge.tsx.ejs +14 -0
  22. package/hedhog/frontend/app/_lib/mocks.ts.ejs +209 -0
  23. package/hedhog/frontend/app/_lib/status.ts.ejs +38 -0
  24. package/hedhog/frontend/app/_lib/types.ts.ejs +148 -0
  25. package/hedhog/frontend/app/assets/page.tsx.ejs +117 -0
  26. package/hedhog/frontend/app/editing/page.tsx.ejs +55 -0
  27. package/hedhog/frontend/app/incidents/page.tsx.ejs +59 -0
  28. package/hedhog/frontend/app/page.tsx.ejs +207 -0
  29. package/hedhog/frontend/app/projects/[id]/page.tsx.ejs +323 -0
  30. package/hedhog/frontend/app/projects/form/page.tsx.ejs +129 -0
  31. package/hedhog/frontend/app/projects/page.tsx.ejs +169 -0
  32. package/hedhog/frontend/app/publication/page.tsx.ejs +62 -0
  33. package/hedhog/frontend/app/scenes/form/page.tsx.ejs +110 -0
  34. package/hedhog/frontend/app/sessions/[id]/page.tsx.ejs +118 -0
  35. package/hedhog/frontend/app/sessions/form/page.tsx.ejs +103 -0
  36. package/hedhog/frontend/app/sessions/page.tsx.ejs +80 -0
  37. package/hedhog/frontend/app/storage-profiles/form/page.tsx.ejs +100 -0
  38. package/hedhog/frontend/app/storage-profiles/page.tsx.ejs +80 -0
  39. package/hedhog/frontend/app/takes/[id]/page.tsx.ejs +143 -0
  40. package/hedhog/frontend/app/takes/page.tsx.ejs +74 -0
  41. package/hedhog/table/capture_agent.yaml +48 -0
  42. package/hedhog/table/edit_composition.yaml +67 -0
  43. package/hedhog/table/edit_pipeline.yaml +46 -0
  44. package/hedhog/table/edit_stage_execution.yaml +46 -0
  45. package/hedhog/table/editor_delivery_package.yaml +63 -0
  46. package/hedhog/table/ingestion_job.yaml +74 -0
  47. package/hedhog/table/media_asset.yaml +130 -0
  48. package/hedhog/table/participant_command_ack.yaml +32 -0
  49. package/hedhog/table/participant_recording.yaml +67 -0
  50. package/hedhog/table/production_binding.yaml +34 -0
  51. package/hedhog/table/production_project.yaml +104 -0
  52. package/hedhog/table/publication_target.yaml +44 -0
  53. package/hedhog/table/recorded_file.yaml +74 -0
  54. package/hedhog/table/recording_command.yaml +72 -0
  55. package/hedhog/table/recording_incident.yaml +65 -0
  56. package/hedhog/table/recording_session.yaml +86 -0
  57. package/hedhog/table/scene.yaml +64 -0
  58. package/hedhog/table/scene_take.yaml +83 -0
  59. package/hedhog/table/session_participant.yaml +55 -0
  60. package/hedhog/table/storage_profile.yaml +75 -0
  61. package/hedhog/table/sync_marker.yaml +44 -0
  62. package/package.json +38 -0
  63. package/src/index.ts +4 -0
  64. package/src/language/en.json +8 -0
  65. package/src/language/pt.json +8 -0
  66. package/src/studio.controller.ts +94 -0
  67. package/src/studio.module.ts +20 -0
  68. package/src/studio.service.ts +102 -0
@@ -0,0 +1,4 @@
1
+ export * from './studio.controller';
2
+ export * from './studio.module';
3
+ export * from './studio.service';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./studio.controller"), exports);
18
+ __exportStar(require("./studio.module"), exports);
19
+ __exportStar(require("./studio.service"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,mDAAiC"}
@@ -0,0 +1,79 @@
1
+ import { StudioService } from './studio.service';
2
+ export declare class StudioController {
3
+ private readonly studioService;
4
+ constructor(studioService: StudioService);
5
+ getData(): {
6
+ totals: {
7
+ projects: number;
8
+ inRecording: number;
9
+ inEditing: number;
10
+ pendingIngestion: number;
11
+ uploadFailures: number;
12
+ readyToPublish: number;
13
+ };
14
+ updatedAt: string;
15
+ };
16
+ listProjects(): {
17
+ data: {
18
+ id: number;
19
+ title: string;
20
+ projectType: string;
21
+ status: string;
22
+ currentStage: string;
23
+ ownerUserId: number;
24
+ updatedAt: string;
25
+ }[];
26
+ total: number;
27
+ };
28
+ getProject(id: number): {
29
+ id: number;
30
+ title: string;
31
+ status: string;
32
+ currentStage: string;
33
+ };
34
+ getProjectFormSchema(): {
35
+ fields: string[];
36
+ };
37
+ listScenes(): {
38
+ data: any[];
39
+ };
40
+ getSceneFormSchema(): {
41
+ fields: string[];
42
+ };
43
+ listSessions(): {
44
+ data: any[];
45
+ };
46
+ getSession(id: number): {
47
+ id: number;
48
+ status: string;
49
+ };
50
+ getSessionFormSchema(): {
51
+ fields: string[];
52
+ };
53
+ listTakes(): {
54
+ data: any[];
55
+ };
56
+ getTake(id: number): {
57
+ id: number;
58
+ status: string;
59
+ };
60
+ listAssets(): {
61
+ data: any[];
62
+ };
63
+ listStorageProfiles(): {
64
+ data: any[];
65
+ };
66
+ getStorageProfileFormSchema(): {
67
+ fields: string[];
68
+ };
69
+ listIncidents(): {
70
+ data: any[];
71
+ };
72
+ getEditing(): {
73
+ data: any[];
74
+ };
75
+ getPublication(): {
76
+ data: any[];
77
+ };
78
+ }
79
+ //# sourceMappingURL=studio.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studio.controller.d.ts","sourceRoot":"","sources":["../src/studio.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAEa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAGzD,OAAO;;;;;;;;;;;IAKP,YAAY;;;;;;;;;;;;IAKZ,UAAU,CAA4B,EAAE,EAAE,MAAM;;;;;;IAKhD,oBAAoB;;;IAKpB,UAAU;;;IAKV,kBAAkB;;;IAKlB,YAAY;;;IAKZ,UAAU,CAA4B,EAAE,EAAE,MAAM;;;;IAKhD,oBAAoB;;;IAKpB,SAAS;;;IAKT,OAAO,CAA4B,EAAE,EAAE,MAAM;;;;IAK7C,UAAU;;;IAKV,mBAAmB;;;IAKnB,2BAA2B;;;IAK3B,aAAa;;;IAKb,UAAU;;;IAKV,cAAc;;;CAGf"}
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.StudioController = void 0;
16
+ const api_1 = require("@hed-hog/api");
17
+ const common_1 = require("@nestjs/common");
18
+ const studio_service_1 = require("./studio.service");
19
+ let StudioController = class StudioController {
20
+ constructor(studioService) {
21
+ this.studioService = studioService;
22
+ }
23
+ getData() {
24
+ return this.studioService.getData();
25
+ }
26
+ listProjects() {
27
+ return this.studioService.listProjects();
28
+ }
29
+ getProject(id) {
30
+ return this.studioService.getProject(id);
31
+ }
32
+ getProjectFormSchema() {
33
+ return this.studioService.getProjectFormSchema();
34
+ }
35
+ listScenes() {
36
+ return this.studioService.listScenes();
37
+ }
38
+ getSceneFormSchema() {
39
+ return this.studioService.getSceneFormSchema();
40
+ }
41
+ listSessions() {
42
+ return this.studioService.listSessions();
43
+ }
44
+ getSession(id) {
45
+ return this.studioService.getSession(id);
46
+ }
47
+ getSessionFormSchema() {
48
+ return this.studioService.getSessionFormSchema();
49
+ }
50
+ listTakes() {
51
+ return this.studioService.listTakes();
52
+ }
53
+ getTake(id) {
54
+ return this.studioService.getTake(id);
55
+ }
56
+ listAssets() {
57
+ return this.studioService.listAssets();
58
+ }
59
+ listStorageProfiles() {
60
+ return this.studioService.listStorageProfiles();
61
+ }
62
+ getStorageProfileFormSchema() {
63
+ return this.studioService.getStorageProfileFormSchema();
64
+ }
65
+ listIncidents() {
66
+ return this.studioService.listIncidents();
67
+ }
68
+ getEditing() {
69
+ return this.studioService.getEditing();
70
+ }
71
+ getPublication() {
72
+ return this.studioService.getPublication();
73
+ }
74
+ };
75
+ exports.StudioController = StudioController;
76
+ __decorate([
77
+ (0, common_1.Get)('data'),
78
+ __metadata("design:type", Function),
79
+ __metadata("design:paramtypes", []),
80
+ __metadata("design:returntype", void 0)
81
+ ], StudioController.prototype, "getData", null);
82
+ __decorate([
83
+ (0, common_1.Get)('projects'),
84
+ __metadata("design:type", Function),
85
+ __metadata("design:paramtypes", []),
86
+ __metadata("design:returntype", void 0)
87
+ ], StudioController.prototype, "listProjects", null);
88
+ __decorate([
89
+ (0, common_1.Get)('projects/:id'),
90
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
91
+ __metadata("design:type", Function),
92
+ __metadata("design:paramtypes", [Number]),
93
+ __metadata("design:returntype", void 0)
94
+ ], StudioController.prototype, "getProject", null);
95
+ __decorate([
96
+ (0, common_1.Get)('projects/form'),
97
+ __metadata("design:type", Function),
98
+ __metadata("design:paramtypes", []),
99
+ __metadata("design:returntype", void 0)
100
+ ], StudioController.prototype, "getProjectFormSchema", null);
101
+ __decorate([
102
+ (0, common_1.Get)('scenes'),
103
+ __metadata("design:type", Function),
104
+ __metadata("design:paramtypes", []),
105
+ __metadata("design:returntype", void 0)
106
+ ], StudioController.prototype, "listScenes", null);
107
+ __decorate([
108
+ (0, common_1.Get)('scenes/form'),
109
+ __metadata("design:type", Function),
110
+ __metadata("design:paramtypes", []),
111
+ __metadata("design:returntype", void 0)
112
+ ], StudioController.prototype, "getSceneFormSchema", null);
113
+ __decorate([
114
+ (0, common_1.Get)('sessions'),
115
+ __metadata("design:type", Function),
116
+ __metadata("design:paramtypes", []),
117
+ __metadata("design:returntype", void 0)
118
+ ], StudioController.prototype, "listSessions", null);
119
+ __decorate([
120
+ (0, common_1.Get)('sessions/:id'),
121
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
122
+ __metadata("design:type", Function),
123
+ __metadata("design:paramtypes", [Number]),
124
+ __metadata("design:returntype", void 0)
125
+ ], StudioController.prototype, "getSession", null);
126
+ __decorate([
127
+ (0, common_1.Get)('sessions/form'),
128
+ __metadata("design:type", Function),
129
+ __metadata("design:paramtypes", []),
130
+ __metadata("design:returntype", void 0)
131
+ ], StudioController.prototype, "getSessionFormSchema", null);
132
+ __decorate([
133
+ (0, common_1.Get)('takes'),
134
+ __metadata("design:type", Function),
135
+ __metadata("design:paramtypes", []),
136
+ __metadata("design:returntype", void 0)
137
+ ], StudioController.prototype, "listTakes", null);
138
+ __decorate([
139
+ (0, common_1.Get)('takes/:id'),
140
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
141
+ __metadata("design:type", Function),
142
+ __metadata("design:paramtypes", [Number]),
143
+ __metadata("design:returntype", void 0)
144
+ ], StudioController.prototype, "getTake", null);
145
+ __decorate([
146
+ (0, common_1.Get)('assets'),
147
+ __metadata("design:type", Function),
148
+ __metadata("design:paramtypes", []),
149
+ __metadata("design:returntype", void 0)
150
+ ], StudioController.prototype, "listAssets", null);
151
+ __decorate([
152
+ (0, common_1.Get)('storage-profiles'),
153
+ __metadata("design:type", Function),
154
+ __metadata("design:paramtypes", []),
155
+ __metadata("design:returntype", void 0)
156
+ ], StudioController.prototype, "listStorageProfiles", null);
157
+ __decorate([
158
+ (0, common_1.Get)('storage-profiles/form'),
159
+ __metadata("design:type", Function),
160
+ __metadata("design:paramtypes", []),
161
+ __metadata("design:returntype", void 0)
162
+ ], StudioController.prototype, "getStorageProfileFormSchema", null);
163
+ __decorate([
164
+ (0, common_1.Get)('incidents'),
165
+ __metadata("design:type", Function),
166
+ __metadata("design:paramtypes", []),
167
+ __metadata("design:returntype", void 0)
168
+ ], StudioController.prototype, "listIncidents", null);
169
+ __decorate([
170
+ (0, common_1.Get)('editing'),
171
+ __metadata("design:type", Function),
172
+ __metadata("design:paramtypes", []),
173
+ __metadata("design:returntype", void 0)
174
+ ], StudioController.prototype, "getEditing", null);
175
+ __decorate([
176
+ (0, common_1.Get)('publication'),
177
+ __metadata("design:type", Function),
178
+ __metadata("design:paramtypes", []),
179
+ __metadata("design:returntype", void 0)
180
+ ], StudioController.prototype, "getPublication", null);
181
+ exports.StudioController = StudioController = __decorate([
182
+ (0, api_1.Role)(),
183
+ (0, common_1.Controller)('studio'),
184
+ __metadata("design:paramtypes", [studio_service_1.StudioService])
185
+ ], StudioController);
186
+ //# sourceMappingURL=studio.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studio.controller.js","sourceRoot":"","sources":["../src/studio.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,2CAAsE;AACtE,qDAAiD;AAI1C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAG7D,OAAO;QACL,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC;IAGD,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC;IAC3C,CAAC;IAGD,UAAU,CAA4B,EAAU;QAC9C,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IAC3C,CAAC;IAGD,oBAAoB;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,CAAC;IACnD,CAAC;IAGD,UAAU;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC;IACzC,CAAC;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AAC,CAAA;;;;kDAEpC;AAGD;IADC,IAAA,YAAG,EAAC,eAAe,CAAC;;;;4DAGpB;AAGD;IADC,IAAA,YAAG,EAAC,QAAQ,CAAC;;;;kDAGb;AAGD;IADC,IAAA,YAAG,EAAC,aAAa,CAAC;;;;0DAGlB;AAGD;IADC,IAAA,YAAG,EAAC,UAAU,CAAC;;;;oDAGf;AAGD;IADC,IAAA,YAAG,EAAC,cAAc,CAAC;IACR,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;kDAEpC;AAGD;IADC,IAAA,YAAG,EAAC,eAAe,CAAC;;;;4DAGpB;AAGD;IADC,IAAA,YAAG,EAAC,OAAO,CAAC;;;;iDAGZ;AAGD;IADC,IAAA,YAAG,EAAC,WAAW,CAAC;IACR,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;+CAEjC;AAGD;IADC,IAAA,YAAG,EAAC,QAAQ,CAAC;;;;kDAGb;AAGD;IADC,IAAA,YAAG,EAAC,kBAAkB,CAAC;;;;2DAGvB;AAGD;IADC,IAAA,YAAG,EAAC,uBAAuB,CAAC;;;;mEAG5B;AAGD;IADC,IAAA,YAAG,EAAC,WAAW,CAAC;;;;qDAGhB;AAGD;IADC,IAAA,YAAG,EAAC,SAAS,CAAC;;;;kDAGd;AAGD;IADC,IAAA,YAAG,EAAC,aAAa,CAAC;;;;sDAGlB;2BAtFU,gBAAgB;IAF5B,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,QAAQ,CAAC;qCAEyB,8BAAa;GAD9C,gBAAgB,CAuF5B"}
@@ -0,0 +1,3 @@
1
+ export declare class StudioModule {
2
+ }
3
+ //# sourceMappingURL=studio.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studio.module.d.ts","sourceRoot":"","sources":["../src/studio.module.ts"],"names":[],"mappings":"AAQA,qBAWa,YAAY;CAAG"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.StudioModule = void 0;
10
+ const api_locale_1 = require("@hed-hog/api-locale");
11
+ const api_pagination_1 = require("@hed-hog/api-pagination");
12
+ const api_prisma_1 = require("@hed-hog/api-prisma");
13
+ const common_1 = require("@nestjs/common");
14
+ const config_1 = require("@nestjs/config");
15
+ const studio_controller_1 = require("./studio.controller");
16
+ const studio_service_1 = require("./studio.service");
17
+ let StudioModule = class StudioModule {
18
+ };
19
+ exports.StudioModule = StudioModule;
20
+ exports.StudioModule = StudioModule = __decorate([
21
+ (0, common_1.Module)({
22
+ imports: [
23
+ config_1.ConfigModule.forRoot(),
24
+ (0, common_1.forwardRef)(() => api_pagination_1.PaginationModule),
25
+ (0, common_1.forwardRef)(() => api_prisma_1.PrismaModule),
26
+ (0, common_1.forwardRef)(() => api_locale_1.LocaleModule)
27
+ ],
28
+ controllers: [studio_controller_1.StudioController],
29
+ providers: [studio_service_1.StudioService],
30
+ exports: [studio_service_1.StudioService]
31
+ })
32
+ ], StudioModule);
33
+ //# sourceMappingURL=studio.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studio.module.js","sourceRoot":"","sources":["../src/studio.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAmD;AACnD,4DAA2D;AAC3D,oDAAmD;AACnD,2CAAoD;AACpD,2CAA8C;AAC9C,2DAAuD;AACvD,qDAAiD;AAa1C,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IAXxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,EAAE;YACtB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC;SAC/B;QACD,WAAW,EAAE,CAAC,oCAAgB,CAAC;QAC/B,SAAS,EAAE,CAAC,8BAAa,CAAC;QAC1B,OAAO,EAAE,CAAC,8BAAa,CAAC;KACzB,CAAC;GACW,YAAY,CAAG"}
@@ -0,0 +1,76 @@
1
+ export declare class StudioService {
2
+ getData(): {
3
+ totals: {
4
+ projects: number;
5
+ inRecording: number;
6
+ inEditing: number;
7
+ pendingIngestion: number;
8
+ uploadFailures: number;
9
+ readyToPublish: number;
10
+ };
11
+ updatedAt: string;
12
+ };
13
+ listProjects(): {
14
+ data: {
15
+ id: number;
16
+ title: string;
17
+ projectType: string;
18
+ status: string;
19
+ currentStage: string;
20
+ ownerUserId: number;
21
+ updatedAt: string;
22
+ }[];
23
+ total: number;
24
+ };
25
+ getProject(id: number): {
26
+ id: number;
27
+ title: string;
28
+ status: string;
29
+ currentStage: string;
30
+ };
31
+ listScenes(): {
32
+ data: any[];
33
+ };
34
+ listSessions(): {
35
+ data: any[];
36
+ };
37
+ getSession(id: number): {
38
+ id: number;
39
+ status: string;
40
+ };
41
+ listTakes(): {
42
+ data: any[];
43
+ };
44
+ getTake(id: number): {
45
+ id: number;
46
+ status: string;
47
+ };
48
+ listAssets(): {
49
+ data: any[];
50
+ };
51
+ listStorageProfiles(): {
52
+ data: any[];
53
+ };
54
+ listIncidents(): {
55
+ data: any[];
56
+ };
57
+ getEditing(): {
58
+ data: any[];
59
+ };
60
+ getPublication(): {
61
+ data: any[];
62
+ };
63
+ getProjectFormSchema(): {
64
+ fields: string[];
65
+ };
66
+ getSceneFormSchema(): {
67
+ fields: string[];
68
+ };
69
+ getSessionFormSchema(): {
70
+ fields: string[];
71
+ };
72
+ getStorageProfileFormSchema(): {
73
+ fields: string[];
74
+ };
75
+ }
76
+ //# sourceMappingURL=studio.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studio.service.d.ts","sourceRoot":"","sources":["../src/studio.service.ts"],"names":[],"mappings":"AAEA,qBACa,aAAa;IACxB,OAAO;;;;;;;;;;;IAcP,YAAY;;;;;;;;;;;;IAiBZ,UAAU,CAAC,EAAE,EAAE,MAAM;;;;;;IASrB,UAAU;;;IAIV,YAAY;;;IAIZ,UAAU,CAAC,EAAE,EAAE,MAAM;;;;IAIrB,SAAS;;;IAIT,OAAO,CAAC,EAAE,EAAE,MAAM;;;;IAIlB,UAAU;;;IAIV,mBAAmB;;;IAInB,aAAa;;;IAIb,UAAU;;;IAIV,cAAc;;;IAId,oBAAoB;;;IAIpB,kBAAkB;;;IAIlB,oBAAoB;;;IAIpB,2BAA2B;;;CAK5B"}
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.StudioService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let StudioService = class StudioService {
12
+ getData() {
13
+ return {
14
+ totals: {
15
+ projects: 24,
16
+ inRecording: 4,
17
+ inEditing: 7,
18
+ pendingIngestion: 13,
19
+ uploadFailures: 2,
20
+ readyToPublish: 3,
21
+ },
22
+ updatedAt: new Date().toISOString(),
23
+ };
24
+ }
25
+ listProjects() {
26
+ return {
27
+ data: [
28
+ {
29
+ id: 1,
30
+ title: 'Curso de Node Avancado - Aula 12',
31
+ projectType: 'course_lesson',
32
+ status: 'in_recording',
33
+ currentStage: 'recording',
34
+ ownerUserId: 1,
35
+ updatedAt: new Date().toISOString(),
36
+ },
37
+ ],
38
+ total: 1,
39
+ };
40
+ }
41
+ getProject(id) {
42
+ return {
43
+ id,
44
+ title: 'Projeto Studio',
45
+ status: 'planned',
46
+ currentStage: 'preparation',
47
+ };
48
+ }
49
+ listScenes() {
50
+ return { data: [] };
51
+ }
52
+ listSessions() {
53
+ return { data: [] };
54
+ }
55
+ getSession(id) {
56
+ return { id, status: 'idle' };
57
+ }
58
+ listTakes() {
59
+ return { data: [] };
60
+ }
61
+ getTake(id) {
62
+ return { id, status: 'pending' };
63
+ }
64
+ listAssets() {
65
+ return { data: [] };
66
+ }
67
+ listStorageProfiles() {
68
+ return { data: [] };
69
+ }
70
+ listIncidents() {
71
+ return { data: [] };
72
+ }
73
+ getEditing() {
74
+ return { data: [] };
75
+ }
76
+ getPublication() {
77
+ return { data: [] };
78
+ }
79
+ getProjectFormSchema() {
80
+ return { fields: ['title', 'description', 'projectType', 'status'] };
81
+ }
82
+ getSceneFormSchema() {
83
+ return { fields: ['name', 'description', 'sequenceOrder', 'status'] };
84
+ }
85
+ getSessionFormSchema() {
86
+ return { fields: ['title', 'sessionType', 'status', 'roomKey'] };
87
+ }
88
+ getStorageProfileFormSchema() {
89
+ return {
90
+ fields: ['name', 'providerType', 'bucketName', 'region', 'basePath'],
91
+ };
92
+ }
93
+ };
94
+ exports.StudioService = StudioService;
95
+ exports.StudioService = StudioService = __decorate([
96
+ (0, common_1.Injectable)()
97
+ ], StudioService);
98
+ //# sourceMappingURL=studio.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studio.service.js","sourceRoot":"","sources":["../src/studio.service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,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACtB,CAAC;IAED,mBAAmB;QACjB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACtB,CAAC;IAED,aAAa;QACX,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACtB,CAAC;IAED,UAAU;QACR,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACtB,CAAC;IAED,cAAc;QACZ,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACtB,CAAC;IAED,oBAAoB;QAClB,OAAO,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,CAAC;IACvE,CAAC;IAED,kBAAkB;QAChB,OAAO,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,CAAC;IACxE,CAAC;IAED,oBAAoB;QAClB,OAAO,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;IACnE,CAAC;IAED,2BAA2B;QACzB,OAAO;YACL,MAAM,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,CAAC;SACrE,CAAC;IACJ,CAAC;CACF,CAAA;AAlGY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;GACA,aAAa,CAkGzB"}
@@ -0,0 +1,114 @@
1
+ - icon: clapperboard
2
+ name:
3
+ en: Studio
4
+ pt: Studio
5
+ slug: /studio
6
+ order: 140
7
+ relations:
8
+ role:
9
+ - where:
10
+ slug: admin
11
+ - where:
12
+ slug: admin-studio
13
+
14
+ - menu_id:
15
+ where:
16
+ slug: /studio
17
+ icon: layout-dashboard
18
+ url: /studio
19
+ name:
20
+ en: Dashboard
21
+ pt: Dashboard
22
+ slug: /studio/dashboard
23
+ order: 0
24
+ relations:
25
+ role:
26
+ - where:
27
+ slug: admin
28
+ - where:
29
+ slug: admin-studio
30
+
31
+ - menu_id:
32
+ where:
33
+ slug: /studio
34
+ icon: film
35
+ url: /studio/projects
36
+ name:
37
+ en: Projects
38
+ pt: Projetos
39
+ slug: /studio/projects
40
+ order: 1
41
+ relations:
42
+ role:
43
+ - where:
44
+ slug: admin
45
+ - where:
46
+ slug: admin-studio
47
+
48
+ - menu_id:
49
+ where:
50
+ slug: /studio
51
+ icon: video
52
+ url: /studio/sessions
53
+ name:
54
+ en: Sessions
55
+ pt: Sessoes
56
+ slug: /studio/sessions
57
+ order: 2
58
+ relations:
59
+ role:
60
+ - where:
61
+ slug: admin
62
+ - where:
63
+ slug: admin-studio
64
+
65
+ - menu_id:
66
+ where:
67
+ slug: /studio
68
+ icon: combine
69
+ url: /studio/takes
70
+ name:
71
+ en: Takes
72
+ pt: Takes
73
+ slug: /studio/takes
74
+ order: 3
75
+ relations:
76
+ role:
77
+ - where:
78
+ slug: admin
79
+ - where:
80
+ slug: admin-studio
81
+
82
+ - menu_id:
83
+ where:
84
+ slug: /studio
85
+ icon: hard-drive
86
+ url: /studio/assets
87
+ name:
88
+ en: Assets
89
+ pt: Arquivos
90
+ slug: /studio/assets
91
+ order: 4
92
+ relations:
93
+ role:
94
+ - where:
95
+ slug: admin
96
+ - where:
97
+ slug: admin-studio
98
+
99
+ - menu_id:
100
+ where:
101
+ slug: /studio
102
+ icon: database
103
+ url: /studio/storage-profiles
104
+ name:
105
+ en: Storage Profiles
106
+ pt: Perfis de Storage
107
+ slug: /studio/storage-profiles
108
+ order: 5
109
+ relations:
110
+ role:
111
+ - where:
112
+ slug: admin
113
+ - where:
114
+ slug: admin-studio
@@ -0,0 +1,7 @@
1
+ - slug: admin-studio
2
+ name:
3
+ en: Studio Administrator
4
+ pt: Administrador de Studio
5
+ description:
6
+ en: Administrator with full access to studio management.
7
+ pt: Administrador com acesso total a gestao do studio.