@purpleschool/student-works 1.2.2 → 1.4.0
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/api/controller/http/index.ts +1 -0
- package/api/controller/http/presentation.ts +39 -0
- package/api/routes.ts +94 -0
- package/build/api/controller/http/index.js +1 -0
- package/build/api/controller/http/presentation.js +34 -0
- package/build/api/routes.js +54 -0
- package/build/commands/index.js +1 -0
- package/build/commands/presentation/build-blank-slide.command.js +16 -0
- package/build/commands/presentation/create-presentation.command.js +19 -0
- package/build/commands/presentation/delete-all-user-presentations.command.js +9 -0
- package/build/commands/presentation/delete-presentation.command.js +11 -0
- package/build/commands/presentation/delete-slide-outline.command.js +12 -0
- package/build/commands/presentation/export-presentation-as-pptx.command.js +17 -0
- package/build/commands/presentation/find-presentation-by-uuid.command.js +14 -0
- package/build/commands/presentation/find-presentation-outline.command.js +14 -0
- package/build/commands/presentation/find-presentations.command.js +18 -0
- package/build/commands/presentation/generate-and-insert-slide.command.js +22 -0
- package/build/commands/presentation/generate-presentation-slides.command.js +17 -0
- package/build/commands/presentation/get-presentation-config.command.js +11 -0
- package/build/commands/presentation/index.js +40 -0
- package/build/commands/presentation/presentation-generate-report.command.js +17 -0
- package/build/commands/presentation/presentation-paraphrase.command.js +20 -0
- package/build/commands/presentation/reposition-slide-outline.command.js +15 -0
- package/build/commands/presentation/reposition-slide.command.js +15 -0
- package/build/commands/presentation/set-reaction-to-presentation.command.js +28 -0
- package/build/commands/presentation/update-presentation-outline.command.js +15 -0
- package/build/commands/presentation/update-presentation-slides.command.js +25 -0
- package/build/commands/presentation/update-presentation.command.js +15 -0
- package/build/commands/presentation/update-slide-image-slot.command.js +34 -0
- package/build/commands/presentation/update-slide-outline.command.js +23 -0
- package/build/commands/presentation/update-slide.command.js +19 -0
- package/build/constants/errors/errors.js +261 -0
- package/build/constants/index.js +1 -0
- package/build/constants/presentation/enums/index.js +27 -0
- package/build/constants/presentation/enums/presentation-ai-action-call-status.enum.js +9 -0
- package/build/constants/presentation/enums/presentation-ai-action-pricing-type.enum.js +8 -0
- package/build/constants/presentation/enums/presentation-ai-action-type.enum.js +8 -0
- package/build/constants/presentation/enums/presentation-stage.enum.js +14 -0
- package/build/constants/presentation/enums/presentation-target-audience.enum.js +10 -0
- package/build/constants/presentation/enums/slide-content-type.enum.js +16 -0
- package/build/constants/presentation/enums/slide-icon-slot-status.enum.js +10 -0
- package/build/constants/presentation/enums/slide-image-slot-action.enum.js +8 -0
- package/build/constants/presentation/enums/slide-image-slot.status.enum.js +10 -0
- package/build/constants/presentation/enums/slide-layout.enum.js +8 -0
- package/build/constants/presentation/index.js +18 -0
- package/build/constants/presentation/maps/index.js +17 -0
- package/build/constants/presentation/maps/slide-layout-map.constant.js +17 -0
- package/build/helpers/index.js +1 -0
- package/build/helpers/presentation/calculate-presentation-ai-action-price.util.js +16 -0
- package/build/helpers/presentation/index.js +17 -0
- package/build/models/index.js +1 -0
- package/build/models/language.schema.js +11 -0
- package/build/models/presentation/index.js +25 -0
- package/build/models/presentation/pptx-export-payload.schema.js +216 -0
- package/build/models/presentation/presentation-ai-action.schema.js +27 -0
- package/build/models/presentation/presentation-config.schema.js +21 -0
- package/build/models/presentation/presentation-template.schema.js +13 -0
- package/build/models/presentation/presentation-title-page.schema.js +9 -0
- package/build/models/presentation/presentation.schema.js +35 -0
- package/build/models/presentation/slide-content-edit.schema.js +146 -0
- package/build/models/presentation/slide-content-type.schema.js +14 -0
- package/build/models/presentation/slide-content.schema.js +368 -0
- package/build/models/presentation/slide-icon-slot.schema.js +15 -0
- package/build/models/presentation/slide-image-slot.schema.js +16 -0
- package/build/models/presentation/slide-outline.schema.js +50 -0
- package/build/models/presentation/slide.schema.js +58 -0
- package/commands/index.ts +1 -0
- package/commands/presentation/build-blank-slide.command.ts +18 -0
- package/commands/presentation/create-presentation.command.ts +21 -0
- package/commands/presentation/delete-all-user-presentations.command.ts +9 -0
- package/commands/presentation/delete-presentation.command.ts +13 -0
- package/commands/presentation/delete-slide-outline.command.ts +12 -0
- package/commands/presentation/export-presentation-as-pptx.command.ts +20 -0
- package/commands/presentation/find-presentation-by-uuid.command.ts +16 -0
- package/commands/presentation/find-presentation-outline.command.ts +16 -0
- package/commands/presentation/find-presentations.command.ts +18 -0
- package/commands/presentation/generate-and-insert-slide.command.ts +27 -0
- package/commands/presentation/generate-presentation-slides.command.ts +21 -0
- package/commands/presentation/get-presentation-config.command.ts +10 -0
- package/commands/presentation/index.ts +24 -0
- package/commands/presentation/presentation-generate-report.command.ts +21 -0
- package/commands/presentation/presentation-paraphrase.command.ts +26 -0
- package/commands/presentation/reposition-slide-outline.command.ts +17 -0
- package/commands/presentation/reposition-slide.command.ts +17 -0
- package/commands/presentation/set-reaction-to-presentation.command.ts +33 -0
- package/commands/presentation/update-presentation-outline.command.ts +18 -0
- package/commands/presentation/update-presentation-slides.command.ts +32 -0
- package/commands/presentation/update-presentation.command.ts +18 -0
- package/commands/presentation/update-slide-image-slot.command.ts +40 -0
- package/commands/presentation/update-slide-outline.command.ts +26 -0
- package/commands/presentation/update-slide.command.ts +25 -0
- package/constants/errors/errors.ts +261 -0
- package/constants/index.ts +1 -0
- package/constants/presentation/enums/index.ts +11 -0
- package/constants/presentation/enums/presentation-ai-action-call-status.enum.ts +5 -0
- package/constants/presentation/enums/presentation-ai-action-pricing-type.enum.ts +4 -0
- package/constants/presentation/enums/presentation-ai-action-type.enum.ts +4 -0
- package/constants/presentation/enums/presentation-stage.enum.ts +13 -0
- package/constants/presentation/enums/presentation-target-audience.enum.ts +6 -0
- package/constants/presentation/enums/slide-content-type.enum.ts +12 -0
- package/constants/presentation/enums/slide-icon-slot-status.enum.ts +6 -0
- package/constants/presentation/enums/slide-image-slot-action.enum.ts +4 -0
- package/constants/presentation/enums/slide-image-slot.status.enum.ts +6 -0
- package/constants/presentation/enums/slide-layout.enum.ts +4 -0
- package/constants/presentation/index.ts +2 -0
- package/constants/presentation/maps/index.ts +1 -0
- package/constants/presentation/maps/slide-layout-map.constant.ts +15 -0
- package/helpers/index.ts +1 -0
- package/helpers/presentation/calculate-presentation-ai-action-price.util.ts +20 -0
- package/helpers/presentation/index.ts +1 -0
- package/models/index.ts +1 -0
- package/models/language.schema.ts +9 -0
- package/models/presentation/index.ts +9 -0
- package/models/presentation/pptx-export-payload.schema.ts +246 -0
- package/models/presentation/presentation-ai-action.schema.ts +30 -0
- package/models/presentation/presentation-config.schema.ts +20 -0
- package/models/presentation/presentation-template.schema.ts +11 -0
- package/models/presentation/presentation-title-page.schema.ts +9 -0
- package/models/presentation/presentation.schema.ts +38 -0
- package/models/presentation/slide-content-edit.schema.ts +175 -0
- package/models/presentation/slide-content-type.schema.ts +13 -0
- package/models/presentation/slide-content.schema.ts +581 -0
- package/models/presentation/slide-icon-slot.schema.ts +13 -0
- package/models/presentation/slide-image-slot.schema.ts +14 -0
- package/models/presentation/slide-outline.schema.ts +58 -0
- package/models/presentation/slide.schema.ts +66 -0
- package/package.json +2 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export const PRESENTATION_PRIVATE_CONTROLLER = 'private/presentation';
|
|
2
|
+
export const PRESENTATION_PUBLIC_CONTROLLER = 'public/presentation';
|
|
3
|
+
|
|
4
|
+
export const PRESENTATION_ROUTES = {
|
|
5
|
+
CONFIG: 'config',
|
|
6
|
+
CONFIG_INTERNAL: 'internal/config',
|
|
7
|
+
CREATE: '',
|
|
8
|
+
FIND_ALL: '',
|
|
9
|
+
DELETE: (uuid: string) => `${uuid}`,
|
|
10
|
+
UPDATE: (uuid: string) => `${uuid}`,
|
|
11
|
+
FIND_BY_UUID_INTERNAL: (uuid: string) => `internal/${uuid}`,
|
|
12
|
+
FIND_BY_UUID: (uuid: string) => `${uuid}`,
|
|
13
|
+
FIND_PRESENTATION_OUTLINE: (uuid: string) => `${uuid}/outline`,
|
|
14
|
+
GENERATE_OUTLINE: (uuid: string) => `${uuid}/outline/generate`,
|
|
15
|
+
GENERATE_SLIDES: (uuid: string) => `${uuid}/slides/generate`,
|
|
16
|
+
UPDATE_PRESENTATION_OUTLINE: (uuid: string) => `${uuid}/outline`,
|
|
17
|
+
UPDATE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
18
|
+
`${presentationId}/outline/${slideOutlineId}`,
|
|
19
|
+
UPDATE_PRESENTATION_SLIDES: (uuid: string) => `${uuid}/slides`,
|
|
20
|
+
GENERATE_AND_INSERT_SLIDE: (uuid: string) => `${uuid}/slides/generate-and-insert`,
|
|
21
|
+
BUILD_BLANK_SLIDE: 'slides/blank',
|
|
22
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId: string, slideId: string, slotId: string) =>
|
|
23
|
+
`${presentationId}/slides/${slideId}/image-slots/${slotId}`,
|
|
24
|
+
UPDATE_SLIDE: (presentationId: string, slideId: string) =>
|
|
25
|
+
`${presentationId}/slides/${slideId}`,
|
|
26
|
+
PARAPHRASE: (presentationId: string, slideId: string) =>
|
|
27
|
+
`${presentationId}/slides/${slideId}/paraphrase`,
|
|
28
|
+
GENERATE_REPORT: (presentationId: string) => `${presentationId}/generate-report`,
|
|
29
|
+
REPOSITION_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
30
|
+
`${presentationId}/outline/${slideOutlineId}/move`,
|
|
31
|
+
REPOSITION_SLIDE: (presentationId: string, slideId: string) =>
|
|
32
|
+
`${presentationId}/slides/${slideId}/move`,
|
|
33
|
+
DELETE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
34
|
+
`${presentationId}/outline/${slideOutlineId}`,
|
|
35
|
+
CREATE_SLIDE_OUTLINE: (presentationId: string) => `${presentationId}/outline`,
|
|
36
|
+
EXPORT_AS_PPTX: (uuid: string) => `${uuid}/export-as-pptx`,
|
|
37
|
+
DELETE_ALL: '',
|
|
38
|
+
SET_REACTION: (uuid: string) => `${uuid}/reaction`,
|
|
39
|
+
} as const;
|
package/api/routes.ts
CHANGED
|
@@ -248,4 +248,98 @@ export const REST_API = {
|
|
|
248
248
|
HISTORY: `${ROOT}/${CONTROLLERS.TOOLS_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOLS_ROUTES.HISTORY}`,
|
|
249
249
|
HISTORY_FULL: `${ROOT}/${CONTROLLERS.TOOLS_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOLS_ROUTES.HISTORY_FULL}`,
|
|
250
250
|
},
|
|
251
|
+
PRESENTATION_PRIVATE: {
|
|
252
|
+
CONFIG: `${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
|
|
253
|
+
CREATE: `${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE}`,
|
|
254
|
+
FIND_ALL: `${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_ALL}`,
|
|
255
|
+
FIND_BY_UUID: (uuid: string) =>
|
|
256
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
257
|
+
UPDATE: (uuid: string) =>
|
|
258
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE(uuid)}`,
|
|
259
|
+
DELETE: (uuid: string) =>
|
|
260
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE(uuid)}`,
|
|
261
|
+
DELETE_ALL: `${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_ALL}`,
|
|
262
|
+
FIND_PRESENTATION_OUTLINE: (uuid: string) =>
|
|
263
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_PRESENTATION_OUTLINE(uuid)}`,
|
|
264
|
+
GENERATE_OUTLINE: (uuid: string) =>
|
|
265
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
266
|
+
GENERATE_SLIDES: (uuid: string) =>
|
|
267
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_SLIDES(uuid)}`,
|
|
268
|
+
UPDATE_PRESENTATION_OUTLINE: (uuid: string) =>
|
|
269
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_OUTLINE(uuid)}`,
|
|
270
|
+
UPDATE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
271
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
272
|
+
UPDATE_PRESENTATION_SLIDES: (uuid: string) =>
|
|
273
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_SLIDES(uuid)}`,
|
|
274
|
+
GENERATE_AND_INSERT_SLIDE: (uuid: string) =>
|
|
275
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_AND_INSERT_SLIDE(uuid)}`,
|
|
276
|
+
BUILD_BLANK_SLIDE: `${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.BUILD_BLANK_SLIDE}`,
|
|
277
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId: string, slideId: string, slotId: string) =>
|
|
278
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_IMAGE_SLOT(presentationId, slideId, slotId)}`,
|
|
279
|
+
UPDATE_SLIDE: (presentationId: string, slideId: string) =>
|
|
280
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE(presentationId, slideId)}`,
|
|
281
|
+
PARAPHRASE: (presentationId: string, slideId: string) =>
|
|
282
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.PARAPHRASE(presentationId, slideId)}`,
|
|
283
|
+
GENERATE_REPORT: (presentationId: string) =>
|
|
284
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_REPORT(presentationId)}`,
|
|
285
|
+
REPOSITION_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
286
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
287
|
+
REPOSITION_SLIDE: (presentationId: string, slideId: string) =>
|
|
288
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE(presentationId, slideId)}`,
|
|
289
|
+
DELETE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
290
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
291
|
+
CREATE_SLIDE_OUTLINE: (presentationId: string) =>
|
|
292
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE_SLIDE_OUTLINE(presentationId)}`,
|
|
293
|
+
EXPORT_AS_PPTX: (uuid: string) =>
|
|
294
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.EXPORT_AS_PPTX(uuid)}`,
|
|
295
|
+
SET_REACTION: (uuid: string) =>
|
|
296
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.SET_REACTION(uuid)}`,
|
|
297
|
+
},
|
|
298
|
+
PRESENTATION_PUBLIC: {
|
|
299
|
+
CONFIG: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
|
|
300
|
+
CREATE: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE}`,
|
|
301
|
+
FIND_ALL: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_ALL}`,
|
|
302
|
+
FIND_BY_UUID: (uuid: string) =>
|
|
303
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
304
|
+
UPDATE: (uuid: string) =>
|
|
305
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE(uuid)}`,
|
|
306
|
+
DELETE: (uuid: string) =>
|
|
307
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE(uuid)}`,
|
|
308
|
+
DELETE_ALL: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_ALL}`,
|
|
309
|
+
FIND_PRESENTATION_OUTLINE: (uuid: string) =>
|
|
310
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_PRESENTATION_OUTLINE(uuid)}`,
|
|
311
|
+
GENERATE_OUTLINE: (uuid: string) =>
|
|
312
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
313
|
+
GENERATE_SLIDES: (uuid: string) =>
|
|
314
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_SLIDES(uuid)}`,
|
|
315
|
+
UPDATE_PRESENTATION_OUTLINE: (uuid: string) =>
|
|
316
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_OUTLINE(uuid)}`,
|
|
317
|
+
UPDATE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
318
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
319
|
+
UPDATE_PRESENTATION_SLIDES: (uuid: string) =>
|
|
320
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_SLIDES(uuid)}`,
|
|
321
|
+
GENERATE_AND_INSERT_SLIDE: (uuid: string) =>
|
|
322
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_AND_INSERT_SLIDE(uuid)}`,
|
|
323
|
+
BUILD_BLANK_SLIDE: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.BUILD_BLANK_SLIDE}`,
|
|
324
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId: string, slideId: string, slotId: string) =>
|
|
325
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_IMAGE_SLOT(presentationId, slideId, slotId)}`,
|
|
326
|
+
UPDATE_SLIDE: (presentationId: string, slideId: string) =>
|
|
327
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE(presentationId, slideId)}`,
|
|
328
|
+
PARAPHRASE: (presentationId: string, slideId: string) =>
|
|
329
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.PARAPHRASE(presentationId, slideId)}`,
|
|
330
|
+
GENERATE_REPORT: (presentationId: string) =>
|
|
331
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_REPORT(presentationId)}`,
|
|
332
|
+
REPOSITION_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
333
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
334
|
+
REPOSITION_SLIDE: (presentationId: string, slideId: string) =>
|
|
335
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE(presentationId, slideId)}`,
|
|
336
|
+
DELETE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
337
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
338
|
+
CREATE_SLIDE_OUTLINE: (presentationId: string) =>
|
|
339
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE_SLIDE_OUTLINE(presentationId)}`,
|
|
340
|
+
EXPORT_AS_PPTX: (uuid: string) =>
|
|
341
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.EXPORT_AS_PPTX(uuid)}`,
|
|
342
|
+
SET_REACTION: (uuid: string) =>
|
|
343
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.SET_REACTION(uuid)}`,
|
|
344
|
+
},
|
|
251
345
|
} as const;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESENTATION_ROUTES = exports.PRESENTATION_PUBLIC_CONTROLLER = exports.PRESENTATION_PRIVATE_CONTROLLER = void 0;
|
|
4
|
+
exports.PRESENTATION_PRIVATE_CONTROLLER = 'private/presentation';
|
|
5
|
+
exports.PRESENTATION_PUBLIC_CONTROLLER = 'public/presentation';
|
|
6
|
+
exports.PRESENTATION_ROUTES = {
|
|
7
|
+
CONFIG: 'config',
|
|
8
|
+
CONFIG_INTERNAL: 'internal/config',
|
|
9
|
+
CREATE: '',
|
|
10
|
+
FIND_ALL: '',
|
|
11
|
+
DELETE: (uuid) => `${uuid}`,
|
|
12
|
+
UPDATE: (uuid) => `${uuid}`,
|
|
13
|
+
FIND_BY_UUID_INTERNAL: (uuid) => `internal/${uuid}`,
|
|
14
|
+
FIND_BY_UUID: (uuid) => `${uuid}`,
|
|
15
|
+
FIND_PRESENTATION_OUTLINE: (uuid) => `${uuid}/outline`,
|
|
16
|
+
GENERATE_OUTLINE: (uuid) => `${uuid}/outline/generate`,
|
|
17
|
+
GENERATE_SLIDES: (uuid) => `${uuid}/slides/generate`,
|
|
18
|
+
UPDATE_PRESENTATION_OUTLINE: (uuid) => `${uuid}/outline`,
|
|
19
|
+
UPDATE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${presentationId}/outline/${slideOutlineId}`,
|
|
20
|
+
UPDATE_PRESENTATION_SLIDES: (uuid) => `${uuid}/slides`,
|
|
21
|
+
GENERATE_AND_INSERT_SLIDE: (uuid) => `${uuid}/slides/generate-and-insert`,
|
|
22
|
+
BUILD_BLANK_SLIDE: 'slides/blank',
|
|
23
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId, slideId, slotId) => `${presentationId}/slides/${slideId}/image-slots/${slotId}`,
|
|
24
|
+
UPDATE_SLIDE: (presentationId, slideId) => `${presentationId}/slides/${slideId}`,
|
|
25
|
+
PARAPHRASE: (presentationId, slideId) => `${presentationId}/slides/${slideId}/paraphrase`,
|
|
26
|
+
GENERATE_REPORT: (presentationId) => `${presentationId}/generate-report`,
|
|
27
|
+
REPOSITION_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${presentationId}/outline/${slideOutlineId}/move`,
|
|
28
|
+
REPOSITION_SLIDE: (presentationId, slideId) => `${presentationId}/slides/${slideId}/move`,
|
|
29
|
+
DELETE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${presentationId}/outline/${slideOutlineId}`,
|
|
30
|
+
CREATE_SLIDE_OUTLINE: (presentationId) => `${presentationId}/outline`,
|
|
31
|
+
EXPORT_AS_PPTX: (uuid) => `${uuid}/export-as-pptx`,
|
|
32
|
+
DELETE_ALL: '',
|
|
33
|
+
SET_REACTION: (uuid) => `${uuid}/reaction`,
|
|
34
|
+
};
|
package/build/api/routes.js
CHANGED
|
@@ -210,4 +210,58 @@ exports.REST_API = {
|
|
|
210
210
|
HISTORY: `${exports.ROOT}/${CONTROLLERS.TOOLS_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOLS_ROUTES.HISTORY}`,
|
|
211
211
|
HISTORY_FULL: `${exports.ROOT}/${CONTROLLERS.TOOLS_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOLS_ROUTES.HISTORY_FULL}`,
|
|
212
212
|
},
|
|
213
|
+
PRESENTATION_PRIVATE: {
|
|
214
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
|
|
215
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE}`,
|
|
216
|
+
FIND_ALL: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_ALL}`,
|
|
217
|
+
FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
218
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE(uuid)}`,
|
|
219
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE(uuid)}`,
|
|
220
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_ALL}`,
|
|
221
|
+
FIND_PRESENTATION_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_PRESENTATION_OUTLINE(uuid)}`,
|
|
222
|
+
GENERATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
223
|
+
GENERATE_SLIDES: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_SLIDES(uuid)}`,
|
|
224
|
+
UPDATE_PRESENTATION_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_OUTLINE(uuid)}`,
|
|
225
|
+
UPDATE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
226
|
+
UPDATE_PRESENTATION_SLIDES: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_SLIDES(uuid)}`,
|
|
227
|
+
GENERATE_AND_INSERT_SLIDE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_AND_INSERT_SLIDE(uuid)}`,
|
|
228
|
+
BUILD_BLANK_SLIDE: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.BUILD_BLANK_SLIDE}`,
|
|
229
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId, slideId, slotId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_IMAGE_SLOT(presentationId, slideId, slotId)}`,
|
|
230
|
+
UPDATE_SLIDE: (presentationId, slideId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE(presentationId, slideId)}`,
|
|
231
|
+
PARAPHRASE: (presentationId, slideId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.PARAPHRASE(presentationId, slideId)}`,
|
|
232
|
+
GENERATE_REPORT: (presentationId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_REPORT(presentationId)}`,
|
|
233
|
+
REPOSITION_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
234
|
+
REPOSITION_SLIDE: (presentationId, slideId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE(presentationId, slideId)}`,
|
|
235
|
+
DELETE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
236
|
+
CREATE_SLIDE_OUTLINE: (presentationId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE_SLIDE_OUTLINE(presentationId)}`,
|
|
237
|
+
EXPORT_AS_PPTX: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.EXPORT_AS_PPTX(uuid)}`,
|
|
238
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.SET_REACTION(uuid)}`,
|
|
239
|
+
},
|
|
240
|
+
PRESENTATION_PUBLIC: {
|
|
241
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
|
|
242
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE}`,
|
|
243
|
+
FIND_ALL: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_ALL}`,
|
|
244
|
+
FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
245
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE(uuid)}`,
|
|
246
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE(uuid)}`,
|
|
247
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_ALL}`,
|
|
248
|
+
FIND_PRESENTATION_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_PRESENTATION_OUTLINE(uuid)}`,
|
|
249
|
+
GENERATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
250
|
+
GENERATE_SLIDES: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_SLIDES(uuid)}`,
|
|
251
|
+
UPDATE_PRESENTATION_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_OUTLINE(uuid)}`,
|
|
252
|
+
UPDATE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
253
|
+
UPDATE_PRESENTATION_SLIDES: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_SLIDES(uuid)}`,
|
|
254
|
+
GENERATE_AND_INSERT_SLIDE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_AND_INSERT_SLIDE(uuid)}`,
|
|
255
|
+
BUILD_BLANK_SLIDE: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.BUILD_BLANK_SLIDE}`,
|
|
256
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId, slideId, slotId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_IMAGE_SLOT(presentationId, slideId, slotId)}`,
|
|
257
|
+
UPDATE_SLIDE: (presentationId, slideId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE(presentationId, slideId)}`,
|
|
258
|
+
PARAPHRASE: (presentationId, slideId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.PARAPHRASE(presentationId, slideId)}`,
|
|
259
|
+
GENERATE_REPORT: (presentationId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_REPORT(presentationId)}`,
|
|
260
|
+
REPOSITION_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
261
|
+
REPOSITION_SLIDE: (presentationId, slideId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE(presentationId, slideId)}`,
|
|
262
|
+
DELETE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
263
|
+
CREATE_SLIDE_OUTLINE: (presentationId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE_SLIDE_OUTLINE(presentationId)}`,
|
|
264
|
+
EXPORT_AS_PPTX: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.EXPORT_AS_PPTX(uuid)}`,
|
|
265
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.SET_REACTION(uuid)}`,
|
|
266
|
+
},
|
|
213
267
|
};
|
package/build/commands/index.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildBlankSlideCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
var BuildBlankSlideCommand;
|
|
8
|
+
(function (BuildBlankSlideCommand) {
|
|
9
|
+
BuildBlankSlideCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
slideContentType: zod_1.z.nativeEnum(constants_1.SLIDE_CONTENT_TYPE),
|
|
11
|
+
layoutId: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
BuildBlankSlideCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.SlideSchema,
|
|
15
|
+
});
|
|
16
|
+
})(BuildBlankSlideCommand || (exports.BuildBlankSlideCommand = BuildBlankSlideCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePresentationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
const presentation_2 = require("../../constants/presentation");
|
|
7
|
+
var CreatePresentationCommand;
|
|
8
|
+
(function (CreatePresentationCommand) {
|
|
9
|
+
CreatePresentationCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
prompt: zod_1.z.string().min(1).max(10000),
|
|
11
|
+
slideCount: zod_1.z.number().min(1).max(20),
|
|
12
|
+
templateId: zod_1.z.string().uuid(),
|
|
13
|
+
languageId: zod_1.z.string().uuid(),
|
|
14
|
+
targetAudience: zod_1.z.nativeEnum(presentation_2.PRESENTATION_TARGET_AUDIENCE).optional(),
|
|
15
|
+
});
|
|
16
|
+
CreatePresentationCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: presentation_1.PresentationSchema,
|
|
18
|
+
});
|
|
19
|
+
})(CreatePresentationCommand || (exports.CreatePresentationCommand = CreatePresentationCommand = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAllUserPresentationsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAllUserPresentationsCommand;
|
|
6
|
+
(function (DeleteAllUserPresentationsCommand) {
|
|
7
|
+
DeleteAllUserPresentationsCommand.RequestSchema = zod_1.z.void();
|
|
8
|
+
DeleteAllUserPresentationsCommand.ResponseSchema = zod_1.z.void();
|
|
9
|
+
})(DeleteAllUserPresentationsCommand || (exports.DeleteAllUserPresentationsCommand = DeleteAllUserPresentationsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePresentationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeletePresentationCommand;
|
|
6
|
+
(function (DeletePresentationCommand) {
|
|
7
|
+
DeletePresentationCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeletePresentationCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(DeletePresentationCommand || (exports.DeletePresentationCommand = DeletePresentationCommand = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSlideOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteSlideOutlineCommand;
|
|
6
|
+
(function (DeleteSlideOutlineCommand) {
|
|
7
|
+
DeleteSlideOutlineCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
presentationId: zod_1.z.string().uuid(),
|
|
9
|
+
slideOutlineId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
DeleteSlideOutlineCommand.ResponseSchema = zod_1.z.void();
|
|
12
|
+
})(DeleteSlideOutlineCommand || (exports.DeleteSlideOutlineCommand = DeleteSlideOutlineCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExportPresentationAsPptxCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
var ExportPresentationAsPptxCommand;
|
|
7
|
+
(function (ExportPresentationAsPptxCommand) {
|
|
8
|
+
ExportPresentationAsPptxCommand.RequestSchema = presentation_1.PPTXExportPayloadSchema;
|
|
9
|
+
ExportPresentationAsPptxCommand.RequestParamsSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
ExportPresentationAsPptxCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: zod_1.z.object({
|
|
14
|
+
url: zod_1.z.string(),
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
})(ExportPresentationAsPptxCommand || (exports.ExportPresentationAsPptxCommand = ExportPresentationAsPptxCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPresentationByUuidCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
var FindPresentationByUuidCommand;
|
|
7
|
+
(function (FindPresentationByUuidCommand) {
|
|
8
|
+
FindPresentationByUuidCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
FindPresentationByUuidCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: presentation_1.PresentationWithSlidesSchema,
|
|
13
|
+
});
|
|
14
|
+
})(FindPresentationByUuidCommand || (exports.FindPresentationByUuidCommand = FindPresentationByUuidCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPresentationOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
var FindPresentationOutlineCommand;
|
|
7
|
+
(function (FindPresentationOutlineCommand) {
|
|
8
|
+
FindPresentationOutlineCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
FindPresentationOutlineCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(presentation_1.SlideOutlineSchema),
|
|
13
|
+
});
|
|
14
|
+
})(FindPresentationOutlineCommand || (exports.FindPresentationOutlineCommand = FindPresentationOutlineCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPresentationsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
var FindPresentationsCommand;
|
|
7
|
+
(function (FindPresentationsCommand) {
|
|
8
|
+
FindPresentationsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
|
+
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
|
+
title: zod_1.z.string().optional(),
|
|
12
|
+
});
|
|
13
|
+
FindPresentationsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(presentation_1.PresentationSchema),
|
|
15
|
+
totalPages: zod_1.z.number(),
|
|
16
|
+
page: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
})(FindPresentationsCommand || (exports.FindPresentationsCommand = FindPresentationsCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateAndInsertSlideCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var GenerateAndInsertSlideCommand;
|
|
8
|
+
(function (GenerateAndInsertSlideCommand) {
|
|
9
|
+
GenerateAndInsertSlideCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
contentTypeId: zod_1.z.nativeEnum(constants_1.SLIDE_CONTENT_TYPE),
|
|
11
|
+
prompt: zod_1.z.string().max(10000).optional(),
|
|
12
|
+
title: zod_1.z.string().min(1).max(80),
|
|
13
|
+
position: zod_1.z.number().min(0),
|
|
14
|
+
layoutId: zod_1.z.nativeEnum(constants_1.SLIDE_LAYOUT).optional(),
|
|
15
|
+
});
|
|
16
|
+
GenerateAndInsertSlideCommand.RequestParamsSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
});
|
|
19
|
+
GenerateAndInsertSlideCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
data: zod_1.z.array(presentation_1.SlideSchema),
|
|
21
|
+
});
|
|
22
|
+
})(GenerateAndInsertSlideCommand || (exports.GenerateAndInsertSlideCommand = GenerateAndInsertSlideCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeneratePresentationSlidesCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
var GeneratePresentationSlidesCommand;
|
|
7
|
+
(function (GeneratePresentationSlidesCommand) {
|
|
8
|
+
GeneratePresentationSlidesCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GeneratePresentationSlidesCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
titlePage: presentation_1.PresentationTitlePageSchema.optional().nullable(),
|
|
13
|
+
});
|
|
14
|
+
GeneratePresentationSlidesCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: presentation_1.PresentationSchema,
|
|
16
|
+
});
|
|
17
|
+
})(GeneratePresentationSlidesCommand || (exports.GeneratePresentationSlidesCommand = GeneratePresentationSlidesCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPresentationConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
var GetPresentationConfigCommand;
|
|
7
|
+
(function (GetPresentationConfigCommand) {
|
|
8
|
+
GetPresentationConfigCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: presentation_1.PresentationConfigSchema,
|
|
10
|
+
});
|
|
11
|
+
})(GetPresentationConfigCommand || (exports.GetPresentationConfigCommand = GetPresentationConfigCommand = {}));
|
|
@@ -0,0 +1,40 @@
|
|
|
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("./build-blank-slide.command"), exports);
|
|
18
|
+
__exportStar(require("./create-presentation.command"), exports);
|
|
19
|
+
__exportStar(require("./delete-all-user-presentations.command"), exports);
|
|
20
|
+
__exportStar(require("./delete-slide-outline.command"), exports);
|
|
21
|
+
__exportStar(require("./delete-presentation.command"), exports);
|
|
22
|
+
__exportStar(require("./export-presentation-as-pptx.command"), exports);
|
|
23
|
+
__exportStar(require("./find-presentation-by-uuid.command"), exports);
|
|
24
|
+
__exportStar(require("./find-presentation-outline.command"), exports);
|
|
25
|
+
__exportStar(require("./find-presentations.command"), exports);
|
|
26
|
+
__exportStar(require("./generate-presentation-slides.command"), exports);
|
|
27
|
+
__exportStar(require("./generate-and-insert-slide.command"), exports);
|
|
28
|
+
__exportStar(require("./get-presentation-config.command"), exports);
|
|
29
|
+
__exportStar(require("./reposition-slide-outline.command"), exports);
|
|
30
|
+
__exportStar(require("./reposition-slide.command"), exports);
|
|
31
|
+
__exportStar(require("./update-slide-outline.command"), exports);
|
|
32
|
+
__exportStar(require("./update-presentation-outline.command"), exports);
|
|
33
|
+
__exportStar(require("./update-presentation.command"), exports);
|
|
34
|
+
__exportStar(require("./update-presentation-slides.command"), exports);
|
|
35
|
+
__exportStar(require("./update-slide-image-slot.command"), exports);
|
|
36
|
+
__exportStar(require("./update-slide-outline.command"), exports);
|
|
37
|
+
__exportStar(require("./presentation-paraphrase.command"), exports);
|
|
38
|
+
__exportStar(require("./presentation-generate-report.command"), exports);
|
|
39
|
+
__exportStar(require("./update-slide.command"), exports);
|
|
40
|
+
__exportStar(require("./set-reaction-to-presentation.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresentationGenerateReportCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var PresentationGenerateReportCommand;
|
|
6
|
+
(function (PresentationGenerateReportCommand) {
|
|
7
|
+
PresentationGenerateReportCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
presentationId: zod_1.z.string(),
|
|
9
|
+
});
|
|
10
|
+
PresentationGenerateReportCommand.RequestSchema = PresentationGenerateReportCommand.RequestParamsSchema;
|
|
11
|
+
PresentationGenerateReportCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.object({
|
|
13
|
+
output: zod_1.z.string(),
|
|
14
|
+
docxUrl: zod_1.z.string(),
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
})(PresentationGenerateReportCommand || (exports.PresentationGenerateReportCommand = PresentationGenerateReportCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresentationParaphraseCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var PresentationParaphraseCommand;
|
|
6
|
+
(function (PresentationParaphraseCommand) {
|
|
7
|
+
PresentationParaphraseCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
presentationId: zod_1.z.string(),
|
|
9
|
+
slideId: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
PresentationParaphraseCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
selectionText: zod_1.z.string().max(10000),
|
|
13
|
+
});
|
|
14
|
+
PresentationParaphraseCommand.RequestSchema = PresentationParaphraseCommand.RequestParamsSchema.merge(PresentationParaphraseCommand.RequestBodySchema);
|
|
15
|
+
PresentationParaphraseCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: zod_1.z.object({
|
|
17
|
+
output: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(PresentationParaphraseCommand || (exports.PresentationParaphraseCommand = PresentationParaphraseCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositionSlideOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var RepositionSlideOutlineCommand;
|
|
6
|
+
(function (RepositionSlideOutlineCommand) {
|
|
7
|
+
RepositionSlideOutlineCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
presentationId: zod_1.z.string().uuid(),
|
|
9
|
+
slideOutlineId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
RepositionSlideOutlineCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
newPosition: zod_1.z.number().min(0),
|
|
13
|
+
});
|
|
14
|
+
RepositionSlideOutlineCommand.ResponseSchema = zod_1.z.void();
|
|
15
|
+
})(RepositionSlideOutlineCommand || (exports.RepositionSlideOutlineCommand = RepositionSlideOutlineCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositionSlideCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var RepositionSlideCommand;
|
|
6
|
+
(function (RepositionSlideCommand) {
|
|
7
|
+
RepositionSlideCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
presentationId: zod_1.z.string().uuid(),
|
|
9
|
+
slideId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
RepositionSlideCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
newPosition: zod_1.z.number().min(0),
|
|
13
|
+
});
|
|
14
|
+
RepositionSlideCommand.ResponseSchema = zod_1.z.void();
|
|
15
|
+
})(RepositionSlideCommand || (exports.RepositionSlideCommand = RepositionSlideCommand = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetReactionToPresentationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const presentation_1 = require("../../models/presentation");
|
|
7
|
+
var SetReactionToPresentationCommand;
|
|
8
|
+
(function (SetReactionToPresentationCommand) {
|
|
9
|
+
SetReactionToPresentationCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
SetReactionToPresentationCommand.RequestBodySchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
15
|
+
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
16
|
+
})
|
|
17
|
+
.refine((data) => {
|
|
18
|
+
if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
return true;
|
|
22
|
+
}, {
|
|
23
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
24
|
+
});
|
|
25
|
+
SetReactionToPresentationCommand.ResponseSchema = zod_1.z.object({
|
|
26
|
+
data: presentation_1.PresentationSchema,
|
|
27
|
+
});
|
|
28
|
+
})(SetReactionToPresentationCommand || (exports.SetReactionToPresentationCommand = SetReactionToPresentationCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePresentationOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../models/presentation");
|
|
6
|
+
var UpdatePresentationOutlineCommand;
|
|
7
|
+
(function (UpdatePresentationOutlineCommand) {
|
|
8
|
+
UpdatePresentationOutlineCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
UpdatePresentationOutlineCommand.RequestBodySchema = presentation_1.SlideOutlineBulkUpdateSchema;
|
|
12
|
+
UpdatePresentationOutlineCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: presentation_1.SlideOutlineSchema.array(),
|
|
14
|
+
});
|
|
15
|
+
})(UpdatePresentationOutlineCommand || (exports.UpdatePresentationOutlineCommand = UpdatePresentationOutlineCommand = {}));
|