@purpleschool/student-works 1.2.1 → 1.3.1
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/auth.ts +1 -0
- package/api/controller/http/files.ts +1 -0
- package/api/controller/http/index.ts +1 -0
- package/api/controller/http/presentation.ts +37 -0
- package/api/routes.ts +91 -0
- package/build/api/controller/http/auth.js +1 -0
- package/build/api/controller/http/files.js +1 -0
- package/build/api/controller/http/index.js +1 -0
- package/build/api/controller/http/presentation.js +33 -0
- package/build/api/routes.js +53 -0
- package/build/commands/auth/change-password.command.js +16 -0
- package/build/commands/auth/index.js +1 -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 +17 -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 +14 -0
- package/build/commands/presentation/get-presentation-config.command.js +11 -0
- package/build/commands/presentation/index.js +39 -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/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 +18 -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 +246 -0
- package/build/constants/index.js +1 -0
- package/build/constants/presentation/enums/index.js +26 -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/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 +24 -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.schema.js +28 -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 +358 -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/auth/change-password.command.ts +18 -0
- package/commands/auth/index.ts +1 -0
- package/commands/index.ts +1 -0
- package/commands/presentation/build-blank-slide.command.ts +18 -0
- package/commands/presentation/create-presentation.command.ts +19 -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 +16 -0
- package/commands/presentation/get-presentation-config.command.ts +10 -0
- package/commands/presentation/index.ts +23 -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/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 +21 -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 +246 -0
- package/constants/index.ts +1 -0
- package/constants/presentation/enums/index.ts +10 -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/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 +8 -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.schema.ts +29 -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 +571 -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
|
@@ -9,6 +9,7 @@ export const AUTH_ROUTES = {
|
|
|
9
9
|
CREATE_USER: 'create-user',
|
|
10
10
|
RESTORE_PASSWORD: 'restore-password',
|
|
11
11
|
RESET_PASSWORD: 'reset-password',
|
|
12
|
+
CHANGE_PASSWORD: 'change-password',
|
|
12
13
|
VERIFY_EMAIL: 'verify-email',
|
|
13
14
|
VERIFY_EMAIL_RETRY: 'verify-email-retry',
|
|
14
15
|
} as const;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
DELETE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
32
|
+
`${presentationId}/outline/${slideOutlineId}`,
|
|
33
|
+
CREATE_SLIDE_OUTLINE: (presentationId: string) => `${presentationId}/outline`,
|
|
34
|
+
EXPORT_AS_PPTX: (uuid: string) => `${uuid}/export-as-pptx`,
|
|
35
|
+
DELETE_ALL: '',
|
|
36
|
+
SET_REACTION: (uuid: string) => `${uuid}/reaction`,
|
|
37
|
+
} as const;
|
package/api/routes.ts
CHANGED
|
@@ -9,6 +9,7 @@ export const REST_API = {
|
|
|
9
9
|
CREATE_USER: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CREATE_USER}`,
|
|
10
10
|
RESTORE_PASSWORD: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESTORE_PASSWORD}`,
|
|
11
11
|
RESET_PASSWORD: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESET_PASSWORD}`,
|
|
12
|
+
CHANGE_PASSWORD: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CHANGE_PASSWORD}`,
|
|
12
13
|
VERIFY_EMAIL: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VERIFY_EMAIL}`,
|
|
13
14
|
VERIFY_EMAIL_RETRY: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VERIFY_EMAIL_RETRY}`,
|
|
14
15
|
},
|
|
@@ -247,4 +248,94 @@ export const REST_API = {
|
|
|
247
248
|
HISTORY: `${ROOT}/${CONTROLLERS.TOOLS_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOLS_ROUTES.HISTORY}`,
|
|
248
249
|
HISTORY_FULL: `${ROOT}/${CONTROLLERS.TOOLS_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOLS_ROUTES.HISTORY_FULL}`,
|
|
249
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
|
+
DELETE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
288
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
289
|
+
CREATE_SLIDE_OUTLINE: (presentationId: string) =>
|
|
290
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE_SLIDE_OUTLINE(presentationId)}`,
|
|
291
|
+
EXPORT_AS_PPTX: (uuid: string) =>
|
|
292
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.EXPORT_AS_PPTX(uuid)}`,
|
|
293
|
+
SET_REACTION: (uuid: string) =>
|
|
294
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.SET_REACTION(uuid)}`,
|
|
295
|
+
},
|
|
296
|
+
PRESENTATION_PUBLIC: {
|
|
297
|
+
CONFIG: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
|
|
298
|
+
CREATE: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE}`,
|
|
299
|
+
FIND_ALL: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_ALL}`,
|
|
300
|
+
FIND_BY_UUID: (uuid: string) =>
|
|
301
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
302
|
+
UPDATE: (uuid: string) =>
|
|
303
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE(uuid)}`,
|
|
304
|
+
DELETE: (uuid: string) =>
|
|
305
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE(uuid)}`,
|
|
306
|
+
DELETE_ALL: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_ALL}`,
|
|
307
|
+
FIND_PRESENTATION_OUTLINE: (uuid: string) =>
|
|
308
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_PRESENTATION_OUTLINE(uuid)}`,
|
|
309
|
+
GENERATE_OUTLINE: (uuid: string) =>
|
|
310
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
311
|
+
GENERATE_SLIDES: (uuid: string) =>
|
|
312
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_SLIDES(uuid)}`,
|
|
313
|
+
UPDATE_PRESENTATION_OUTLINE: (uuid: string) =>
|
|
314
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_OUTLINE(uuid)}`,
|
|
315
|
+
UPDATE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
316
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
317
|
+
UPDATE_PRESENTATION_SLIDES: (uuid: string) =>
|
|
318
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_SLIDES(uuid)}`,
|
|
319
|
+
GENERATE_AND_INSERT_SLIDE: (uuid: string) =>
|
|
320
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_AND_INSERT_SLIDE(uuid)}`,
|
|
321
|
+
BUILD_BLANK_SLIDE: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.BUILD_BLANK_SLIDE}`,
|
|
322
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId: string, slideId: string, slotId: string) =>
|
|
323
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_IMAGE_SLOT(presentationId, slideId, slotId)}`,
|
|
324
|
+
UPDATE_SLIDE: (presentationId: string, slideId: string) =>
|
|
325
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE(presentationId, slideId)}`,
|
|
326
|
+
PARAPHRASE: (presentationId: string, slideId: string) =>
|
|
327
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.PARAPHRASE(presentationId, slideId)}`,
|
|
328
|
+
GENERATE_REPORT: (presentationId: string) =>
|
|
329
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_REPORT(presentationId)}`,
|
|
330
|
+
REPOSITION_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
331
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
332
|
+
DELETE_SLIDE_OUTLINE: (presentationId: string, slideOutlineId: string) =>
|
|
333
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
334
|
+
CREATE_SLIDE_OUTLINE: (presentationId: string) =>
|
|
335
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE_SLIDE_OUTLINE(presentationId)}`,
|
|
336
|
+
EXPORT_AS_PPTX: (uuid: string) =>
|
|
337
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.EXPORT_AS_PPTX(uuid)}`,
|
|
338
|
+
SET_REACTION: (uuid: string) =>
|
|
339
|
+
`${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.SET_REACTION(uuid)}`,
|
|
340
|
+
},
|
|
250
341
|
} as const;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
DELETE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${presentationId}/outline/${slideOutlineId}`,
|
|
29
|
+
CREATE_SLIDE_OUTLINE: (presentationId) => `${presentationId}/outline`,
|
|
30
|
+
EXPORT_AS_PPTX: (uuid) => `${uuid}/export-as-pptx`,
|
|
31
|
+
DELETE_ALL: '',
|
|
32
|
+
SET_REACTION: (uuid) => `${uuid}/reaction`,
|
|
33
|
+
};
|
package/build/api/routes.js
CHANGED
|
@@ -44,6 +44,7 @@ exports.REST_API = {
|
|
|
44
44
|
CREATE_USER: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CREATE_USER}`,
|
|
45
45
|
RESTORE_PASSWORD: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESTORE_PASSWORD}`,
|
|
46
46
|
RESET_PASSWORD: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESET_PASSWORD}`,
|
|
47
|
+
CHANGE_PASSWORD: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CHANGE_PASSWORD}`,
|
|
47
48
|
VERIFY_EMAIL: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VERIFY_EMAIL}`,
|
|
48
49
|
VERIFY_EMAIL_RETRY: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VERIFY_EMAIL_RETRY}`,
|
|
49
50
|
},
|
|
@@ -209,4 +210,56 @@ exports.REST_API = {
|
|
|
209
210
|
HISTORY: `${exports.ROOT}/${CONTROLLERS.TOOLS_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOLS_ROUTES.HISTORY}`,
|
|
210
211
|
HISTORY_FULL: `${exports.ROOT}/${CONTROLLERS.TOOLS_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOLS_ROUTES.HISTORY_FULL}`,
|
|
211
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
|
+
DELETE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
235
|
+
CREATE_SLIDE_OUTLINE: (presentationId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE_SLIDE_OUTLINE(presentationId)}`,
|
|
236
|
+
EXPORT_AS_PPTX: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.EXPORT_AS_PPTX(uuid)}`,
|
|
237
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PRIVATE_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.SET_REACTION(uuid)}`,
|
|
238
|
+
},
|
|
239
|
+
PRESENTATION_PUBLIC: {
|
|
240
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
|
|
241
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE}`,
|
|
242
|
+
FIND_ALL: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_ALL}`,
|
|
243
|
+
FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
244
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE(uuid)}`,
|
|
245
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE(uuid)}`,
|
|
246
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_ALL}`,
|
|
247
|
+
FIND_PRESENTATION_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.FIND_PRESENTATION_OUTLINE(uuid)}`,
|
|
248
|
+
GENERATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
249
|
+
GENERATE_SLIDES: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_SLIDES(uuid)}`,
|
|
250
|
+
UPDATE_PRESENTATION_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_OUTLINE(uuid)}`,
|
|
251
|
+
UPDATE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
252
|
+
UPDATE_PRESENTATION_SLIDES: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_PRESENTATION_SLIDES(uuid)}`,
|
|
253
|
+
GENERATE_AND_INSERT_SLIDE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_AND_INSERT_SLIDE(uuid)}`,
|
|
254
|
+
BUILD_BLANK_SLIDE: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.BUILD_BLANK_SLIDE}`,
|
|
255
|
+
UPDATE_SLIDE_IMAGE_SLOT: (presentationId, slideId, slotId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE_IMAGE_SLOT(presentationId, slideId, slotId)}`,
|
|
256
|
+
UPDATE_SLIDE: (presentationId, slideId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.UPDATE_SLIDE(presentationId, slideId)}`,
|
|
257
|
+
PARAPHRASE: (presentationId, slideId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.PARAPHRASE(presentationId, slideId)}`,
|
|
258
|
+
GENERATE_REPORT: (presentationId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.GENERATE_REPORT(presentationId)}`,
|
|
259
|
+
REPOSITION_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.REPOSITION_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
260
|
+
DELETE_SLIDE_OUTLINE: (presentationId, slideOutlineId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.DELETE_SLIDE_OUTLINE(presentationId, slideOutlineId)}`,
|
|
261
|
+
CREATE_SLIDE_OUTLINE: (presentationId) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE_SLIDE_OUTLINE(presentationId)}`,
|
|
262
|
+
EXPORT_AS_PPTX: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.EXPORT_AS_PPTX(uuid)}`,
|
|
263
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.SET_REACTION(uuid)}`,
|
|
264
|
+
},
|
|
212
265
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChangePasswordCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var ChangePasswordCommand;
|
|
6
|
+
(function (ChangePasswordCommand) {
|
|
7
|
+
ChangePasswordCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
currentPassword: zod_1.z.string(),
|
|
9
|
+
newPassword: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
ChangePasswordCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.object({
|
|
13
|
+
accessToken: zod_1.z.string(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
})(ChangePasswordCommand || (exports.ChangePasswordCommand = ChangePasswordCommand = {}));
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-user.command"), exports);
|
|
18
|
+
__exportStar(require("./change-password.command"), exports);
|
|
18
19
|
__exportStar(require("./login.command"), exports);
|
|
19
20
|
__exportStar(require("./register-user.command"), exports);
|
|
20
21
|
__exportStar(require("./reset-password.command"), exports);
|
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,17 @@
|
|
|
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
|
+
var CreatePresentationCommand;
|
|
7
|
+
(function (CreatePresentationCommand) {
|
|
8
|
+
CreatePresentationCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
prompt: zod_1.z.string().min(1).max(10000),
|
|
10
|
+
slideCount: zod_1.z.number().min(1).max(20),
|
|
11
|
+
templateId: zod_1.z.string().uuid(),
|
|
12
|
+
languageId: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
CreatePresentationCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: presentation_1.PresentationSchema,
|
|
16
|
+
});
|
|
17
|
+
})(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,14 @@
|
|
|
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.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: presentation_1.PresentationSchema,
|
|
13
|
+
});
|
|
14
|
+
})(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,39 @@
|
|
|
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("./update-slide-outline.command"), exports);
|
|
31
|
+
__exportStar(require("./update-presentation-outline.command"), exports);
|
|
32
|
+
__exportStar(require("./update-presentation.command"), exports);
|
|
33
|
+
__exportStar(require("./update-presentation-slides.command"), exports);
|
|
34
|
+
__exportStar(require("./update-slide-image-slot.command"), exports);
|
|
35
|
+
__exportStar(require("./update-slide-outline.command"), exports);
|
|
36
|
+
__exportStar(require("./presentation-paraphrase.command"), exports);
|
|
37
|
+
__exportStar(require("./presentation-generate-report.command"), exports);
|
|
38
|
+
__exportStar(require("./update-slide.command"), exports);
|
|
39
|
+
__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 = {}));
|