@purpleschool/gptbot-tools 0.2.52 → 0.2.54
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/build/account-merge/commands/transfer-user-jobs.command.d.ts +15 -0
- package/build/account-merge/routes/account-merge.amqp.routes.d.ts +3 -0
- package/build/ai-proxy/routes/ai-proxy.routes.d.ts +10 -0
- package/build/ai-vendor/models/ai-vendor.schema.d.ts +19 -0
- package/build/analytics/job-model-analytics/commands/get-job-model-analytics.command.d.ts +9 -0
- package/build/analytics/job-model-analytics/routes/job-model-analytics.http.routes.d.ts +4 -0
- package/build/common/enums/file-type.enum.d.ts +9 -0
- package/build/common/enums/job-scope.enum.d.ts +5 -0
- package/build/common/enums/reasoning-effort.enum.d.ts +9 -0
- package/build/common/enums/tool-model-status.enum.d.ts +4 -0
- package/build/common/enums/tool-model-tag.enum.d.ts +3 -0
- package/build/common/enums/user-reaction.enum.d.ts +4 -0
- package/build/common/errors/error.interface.d.ts +5 -0
- package/build/common/models/attached-file.schema.d.ts +12 -0
- package/build/common/models/command-response.schema.d.ts +12 -0
- package/build/common/models/icon-variants.schema.d.ts +11 -0
- package/build/common/models/locale.schema.d.ts +8 -0
- package/build/diagrams/commands/delete-all-diagrams-jobs.command.d.ts +15 -0
- package/build/diagrams/commands/delete-diagrams-job-by-uuid.command.d.ts +16 -0
- package/build/diagrams/commands/diagrams.command.d.ts +100 -0
- package/build/diagrams/commands/edit-diagrams-job.command.d.ts +99 -0
- package/build/diagrams/commands/get-diagrams-price-calculation-data.command.d.ts +38 -0
- package/build/diagrams/commands/retry-diagrams-job.command.d.ts +101 -0
- package/build/diagrams/commands/set-reaction-to-diagrams-job.command.d.ts +91 -0
- package/build/diagrams/commands/update-diagrams-job-favorite.command.d.ts +89 -0
- package/build/diagrams/commands/update-diagrams-job-title.command.d.ts +93 -0
- package/build/diagrams/models/diagrams-chart-type.schema.d.ts +20 -0
- package/build/diagrams/models/diagrams-config.schema.d.ts +56 -0
- package/build/diagrams/models/diagrams-job.schema.d.ts +59 -0
- package/build/diagrams/models/diagrams-model.schema.d.ts +43 -0
- package/build/diagrams/queries/find-diagrams-job-by-uuid.query.d.ts +88 -0
- package/build/diagrams/queries/find-diagrams-jobs.query.d.ts +104 -0
- package/build/diagrams/queries/get-diagrams-config.query.d.ts +120 -0
- package/build/diagrams/routes/diagrams.amqp.routes.d.ts +14 -0
- package/build/html-page-builder/commands/create-html-page-builder-session.command.d.ts +118 -0
- package/build/html-page-builder/commands/get-html-page-builder-price-calculation-data.command.d.ts +79 -0
- package/build/html-page-builder/commands/get-html-page-builder-price.command.d.ts +24 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.d.ts +135 -0
- package/build/html-page-builder/commands/soft-delete-all-html-page-builder-sessions.command.d.ts +17 -0
- package/build/html-page-builder/commands/soft-delete-html-page-builder-session-by-uuid.command.d.ts +16 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-favorite.command.d.ts +117 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-title.command.d.ts +117 -0
- package/build/html-page-builder/enums/html-page-builder-session-stage.enum.d.ts +4 -0
- package/build/html-page-builder/models/html-page-builder-config.schema.d.ts +29 -0
- package/build/html-page-builder/models/html-page-builder-job.schema.d.ts +55 -0
- package/build/html-page-builder/models/html-page-builder-model.schema.d.ts +27 -0
- package/build/html-page-builder/models/html-page-builder-session.schema.d.ts +55 -0
- package/build/html-page-builder/queries/find-html-page-builder-session-by-id.query.d.ts +116 -0
- package/build/html-page-builder/queries/find-html-page-builder-sessions.query.d.ts +134 -0
- package/build/html-page-builder/queries/get-html-page-builder-config.query.d.ts +66 -0
- package/build/html-page-builder/routes/html-page-builder.amqp.routes.d.ts +12 -0
- package/build/image-editor/commands/delete-all-image-editor-jobs.command.d.ts +17 -0
- package/build/image-editor/commands/delete-image-editor-job-by-uuid.command.d.ts +16 -0
- package/build/image-editor/commands/get-image-editor-price.command.d.ts +40 -0
- package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.d.ts +97 -0
- package/build/image-editor/commands/image-editor.command.d.ts +127 -0
- package/build/image-editor/commands/image-editor.command.js +4 -4
- package/build/image-editor/commands/retry-image-editor-job.command.d.ts +121 -0
- package/build/image-editor/commands/set-reaction-to-image-editor-job.command.d.ts +101 -0
- package/build/image-editor/commands/update-image-editor-job-favorite.command.d.ts +99 -0
- package/build/image-editor/commands/update-image-editor-job-title.command.d.ts +99 -0
- package/build/image-editor/commands/update-published-status-image-editor-jobs.command.d.ts +104 -0
- package/build/image-editor/enums/image-editor-model-type.enum.d.ts +5 -0
- package/build/image-editor/enums/image-editor-strategy.enum.d.ts +9 -0
- package/build/image-editor/models/image-editor-config.schema.d.ts +143 -0
- package/build/image-editor/models/image-editor-job.schema.d.ts +64 -0
- package/build/image-editor/models/image-editor-job.schema.js +2 -2
- package/build/image-editor/models/image-editor-model.schema.d.ts +69 -0
- package/build/image-editor/queries/find-image-editor-job-by-id.query.d.ts +98 -0
- package/build/image-editor/queries/find-image-editor-jobs.query.d.ts +117 -0
- package/build/image-editor/queries/find-image-editor-jobs.query.js +4 -3
- package/build/image-editor/queries/find-image-jobs.query.d.ts +113 -0
- package/build/image-editor/queries/find-image-jobs.query.js +4 -3
- package/build/image-editor/queries/get-image-editor-config.query.d.ts +170 -0
- package/build/image-editor/routes/image-editor-model.amqp.routes.d.ts +3 -0
- package/build/image-editor/routes/image-editor.amqp.routes.d.ts +14 -0
- package/build/image-editor/routes/image-editor.http.routes.d.ts +1 -0
- package/build/image-generation/commands/execute-image-generation.command.d.ts +131 -0
- package/build/image-generation/commands/forward-image-generation-job.command.d.ts +139 -0
- package/build/image-generation/commands/get-image-generation-price.command.d.ts +44 -0
- package/build/image-generation/commands/image-generation-model/get-image-generation-model-by-uuid.command.d.ts +105 -0
- package/build/image-generation/commands/retry-image-generation-job.command.d.ts +128 -0
- package/build/image-generation/commands/save-image-generation-job.command.d.ts +106 -0
- package/build/image-generation/commands/set-reaction-to-image-generation-job.command.d.ts +107 -0
- package/build/image-generation/commands/soft-delete-image-generation-job-by-uuid.command.d.ts +16 -0
- package/build/image-generation/commands/soft-delete-image-generation-jobs-by-criteria.command.d.ts +17 -0
- package/build/image-generation/commands/update-image-generation-job-favorite.command.d.ts +105 -0
- package/build/image-generation/commands/update-image-generation-job-title.command.d.ts +105 -0
- package/build/image-generation/commands/update-published-status-image-generation-jobs.command.d.ts +110 -0
- package/build/image-generation/enums/image-generation-model-strategy.enum.d.ts +16 -0
- package/build/image-generation/enums/image-generation-models.enum.d.ts +4 -0
- package/build/image-generation/enums/image-generation-resolution.enum.d.ts +5 -0
- package/build/image-generation/models/image-generation-config.schema.d.ts +76 -0
- package/build/image-generation/models/image-generation-job.schema.d.ts +69 -0
- package/build/image-generation/models/image-generation-model.schema.d.ts +92 -0
- package/build/image-generation/models/image-generation-preset.schema.d.ts +11 -0
- package/build/image-generation/queries/find-image-generation-job-by-id.query.d.ts +104 -0
- package/build/image-generation/queries/find-image-generation-jobs.query.d.ts +124 -0
- package/build/image-generation/queries/get-image-generation-config.query.d.ts +160 -0
- package/build/image-generation/routes/image-generation.amqp.routes.d.ts +16 -0
- package/build/image-generation/routes/image-generation.http.routes.d.ts +8 -0
- package/build/image-recognition/commands/delete-all-image-recognition-jobs.command.d.ts +15 -0
- package/build/image-recognition/commands/delete-image-recognition-job-by-uuid.command.d.ts +16 -0
- package/build/image-recognition/commands/get-image-recognition-price.command.d.ts +22 -0
- package/build/image-recognition/commands/image-recognition.command.d.ts +106 -0
- package/build/image-recognition/commands/retry-image-recognition-job.command.d.ts +107 -0
- package/build/image-recognition/commands/set-reaction-to-image-recognition-job.command.d.ts +91 -0
- package/build/image-recognition/commands/update-image-recognition-job-favorite.command.d.ts +89 -0
- package/build/image-recognition/commands/update-image-recognition-job-title.command.d.ts +89 -0
- package/build/image-recognition/models/image-recognition-category.schema.d.ts +23 -0
- package/build/image-recognition/models/image-recognition-config.schema.d.ts +53 -0
- package/build/image-recognition/models/image-recognition-job.schema.d.ts +55 -0
- package/build/image-recognition/models/image-recognition-model.schema.d.ts +40 -0
- package/build/image-recognition/queries/find-image-recognition-job-by-id.query.d.ts +88 -0
- package/build/image-recognition/queries/find-image-recognition-jobs.query.d.ts +104 -0
- package/build/image-recognition/queries/get-image-recognition-config.query.d.ts +114 -0
- package/build/image-recognition/routes/image-recognition.amqp.routes.d.ts +13 -0
- package/build/index.d.ts +74 -0
- package/build/interior-design/commands/delete-all-interior-design-jobs.command.d.ts +15 -0
- package/build/interior-design/commands/delete-interior-design-job-by-uuid.command.d.ts +16 -0
- package/build/interior-design/commands/get-interior-design-price.command.d.ts +42 -0
- package/build/interior-design/commands/interior-design-model/get-interior-design-model-by-uuid.command.d.ts +85 -0
- package/build/interior-design/commands/interior-design.command.d.ts +116 -0
- package/build/interior-design/commands/retry-interior-design-job.command.d.ts +115 -0
- package/build/interior-design/commands/set-reaction-to-interior-design-job.command.d.ts +97 -0
- package/build/interior-design/commands/update-interior-design-job-favorite.command.d.ts +95 -0
- package/build/interior-design/commands/update-interior-design-job-title.command.d.ts +95 -0
- package/build/interior-design/enums/interior-design-job-source.enum.d.ts +4 -0
- package/build/interior-design/enums/interior-design-model-type.enum.d.ts +4 -0
- package/build/interior-design/enums/interior-design-strategy.enum.d.ts +6 -0
- package/build/interior-design/models/interior-design-config.schema.d.ts +68 -0
- package/build/interior-design/models/interior-design-job.schema.d.ts +61 -0
- package/build/interior-design/models/interior-design-model.schema.d.ts +59 -0
- package/build/interior-design/queries/find-interior-design-job-by-id.query.d.ts +94 -0
- package/build/interior-design/queries/find-interior-design-jobs.query.d.ts +110 -0
- package/build/interior-design/queries/get-interior-design-config.query.d.ts +114 -0
- package/build/interior-design/routes/interior-design-model.amqp.routes.d.ts +3 -0
- package/build/interior-design/routes/interior-design.amqp.routes.d.ts +13 -0
- package/build/interior-design/routes/interior-design.http.routes.d.ts +1 -0
- package/build/language/models/language.schema.d.ts +10 -0
- package/build/marketplace-card/commands/execute-marketplace-card.command.d.ts +172 -0
- package/build/marketplace-card/commands/execute-marketplace-card.command.js +4 -4
- package/build/marketplace-card/commands/generate-marketplace-card-description.command.d.ts +59 -0
- package/build/marketplace-card/commands/get-marketplace-card-price.command.d.ts +22 -0
- package/build/marketplace-card/commands/retry-marketplace-card-job.command.d.ts +162 -0
- package/build/marketplace-card/commands/set-reaction-to-marketplace-card-job.command.d.ts +133 -0
- package/build/marketplace-card/commands/soft-delete-all-marketplace-card-jobs.command.d.ts +15 -0
- package/build/marketplace-card/commands/soft-delete-marketplace-card-job-by-uuid.command.d.ts +16 -0
- package/build/marketplace-card/commands/update-marketplace-card-job-favorite.command.d.ts +131 -0
- package/build/marketplace-card/commands/update-title-marketplace-card-job.command.d.ts +131 -0
- package/build/marketplace-card/enums/marketplace-card-strategy.enum.d.ts +6 -0
- package/build/marketplace-card/models/marketplace-card-config.schema.d.ts +44 -0
- package/build/marketplace-card/models/marketplace-card-description-generation.schema.d.ts +24 -0
- package/build/marketplace-card/models/marketplace-card-description-generation.schema.js +2 -2
- package/build/marketplace-card/models/marketplace-card-job.schema.d.ts +97 -0
- package/build/marketplace-card/models/marketplace-card-job.schema.js +2 -2
- package/build/marketplace-card/models/marketplace-card-model.schema.d.ts +45 -0
- package/build/marketplace-card/models/marketplace-card-style-preset.schema.d.ts +9 -0
- package/build/marketplace-card/queries/find-marketplace-card-job-by-uuid.query.d.ts +130 -0
- package/build/marketplace-card/queries/find-marketplace-card-jobs.query.d.ts +147 -0
- package/build/marketplace-card/queries/find-marketplace-card-jobs.query.js +4 -3
- package/build/marketplace-card/queries/get-marketplace-card-config.query.d.ts +96 -0
- package/build/marketplace-card/routes/marketplace-card.amqp.routes.d.ts +14 -0
- package/build/music/commands/add-track-to-music-playlist.command.d.ts +83 -0
- package/build/music/commands/boost-music-style.command.d.ts +21 -0
- package/build/music/commands/convert-to-wav.command.d.ts +21 -0
- package/build/music/commands/create-music-playlist.command.d.ts +82 -0
- package/build/music/commands/delete-all-music-jobs.command.d.ts +15 -0
- package/build/music/commands/delete-music-job-by-uuid.command.d.ts +16 -0
- package/build/music/commands/delete-music-playlist.command.d.ts +16 -0
- package/build/music/commands/edit-music.command.d.ts +227 -0
- package/build/music/commands/generate-lyrics.command.d.ts +22 -0
- package/build/music/commands/generate-music.command.d.ts +234 -0
- package/build/music/commands/get-music-price.command.d.ts +43 -0
- package/build/music/commands/music-model/get-music-model-by-uuid.command.d.ts +97 -0
- package/build/music/commands/remove-track-from-music-playlist.command.d.ts +83 -0
- package/build/music/commands/retry-music-job.command.d.ts +233 -0
- package/build/music/commands/set-reaction-to-music-job.command.d.ts +213 -0
- package/build/music/commands/update-music-job-favorite.command.d.ts +211 -0
- package/build/music/commands/update-music-job-title.command.d.ts +211 -0
- package/build/music/commands/update-music-playlist.command.d.ts +83 -0
- package/build/music/commands/update-published-status-music-jobs.command.d.ts +217 -0
- package/build/music/enums/music-action-type.enum.d.ts +10 -0
- package/build/music/enums/music-audio-action-type.enum.d.ts +8 -0
- package/build/music/enums/music-generation-action-type.enum.d.ts +6 -0
- package/build/music/enums/music-lyrics-structure.enum.d.ts +5 -0
- package/build/music/enums/music-pricing-rule-type.enum.d.ts +3 -0
- package/build/music/enums/music-strategy.enum.d.ts +4 -0
- package/build/music/enums/music-vocal-gender.enum.d.ts +4 -0
- package/build/music/enums/suno-mode-type.enum.d.ts +6 -0
- package/build/music/enums/suno-model-type.enum.d.ts +7 -0
- package/build/music/models/music-config-with-vendors.schema.d.ts +65 -0
- package/build/music/models/music-config.schema.d.ts +50 -0
- package/build/music/models/music-job.schema.d.ts +258 -0
- package/build/music/models/music-model-with-vendor.schema.d.ts +45 -0
- package/build/music/models/music-model.schema.d.ts +71 -0
- package/build/music/models/music-playlist.schema.d.ts +36 -0
- package/build/music/models/music-track.schema.d.ts +27 -0
- package/build/music/queries/find-music-job-by-id.query.d.ts +210 -0
- package/build/music/queries/find-music-jobs.query.d.ts +226 -0
- package/build/music/queries/find-music-playlists.query.d.ts +81 -0
- package/build/music/queries/get-music-config-with-vendors.query.d.ts +138 -0
- package/build/music/queries/get-music-config.query.d.ts +102 -0
- package/build/music/routes/music-model.amqp.routes.d.ts +3 -0
- package/build/music/routes/music.amqp.routes.d.ts +25 -0
- package/build/music/routes/music.http.routes.d.ts +1 -0
- package/build/music/utils/calculate-music-generation-price.util.d.ts +3 -0
- package/build/paraphrase/commands/delete-all-paraphrase-jobs.command.d.ts +15 -0
- package/build/paraphrase/commands/delete-paraphrase-job-by-uuid.command.d.ts +16 -0
- package/build/paraphrase/commands/get-paraphrase-price.command.d.ts +21 -0
- package/build/paraphrase/commands/paraphrase.command.d.ts +62 -0
- package/build/paraphrase/commands/retry-paraphrase-job.command.d.ts +58 -0
- package/build/paraphrase/commands/set-reaction-to-paraphrase-job.command.d.ts +59 -0
- package/build/paraphrase/commands/update-paraphrase-job-favorite.command.d.ts +57 -0
- package/build/paraphrase/commands/update-paraphrase-job-title.command.d.ts +57 -0
- package/build/paraphrase/enums/paraphrasing-intesity.enum.d.ts +5 -0
- package/build/paraphrase/models/paraphrase-job.schema.d.ts +26 -0
- package/build/paraphrase/models/paraphrase-style.schema.d.ts +11 -0
- package/build/paraphrase/models/paraphrase-tool-config.schema.d.ts +25 -0
- package/build/paraphrase/models/paraphrase-type.schema.d.ts +14 -0
- package/build/paraphrase/queries/find-paraphrase-job-by-uuid.query.d.ts +56 -0
- package/build/paraphrase/queries/find-paraphrase-jobs.query.d.ts +72 -0
- package/build/paraphrase/queries/get-paraphrase-tool-config.query.d.ts +58 -0
- package/build/paraphrase/routes/paraphrase.amqp.routes.d.ts +13 -0
- package/build/presentation/commands/build-blank-slide.command.d.ts +292 -0
- package/build/presentation/commands/create-presentation.command.d.ts +77 -0
- package/build/presentation/commands/delete-all-user-presentations.command.d.ts +15 -0
- package/build/presentation/commands/delete-presentation.command.d.ts +16 -0
- package/build/presentation/commands/delete-slide-outline.command.d.ts +17 -0
- package/build/presentation/commands/export-as-pptx.command.d.ts +155 -0
- package/build/presentation/commands/generate-and-insert-slide.command.d.ts +300 -0
- package/build/presentation/commands/generate-presentation-outline.command.d.ts +37 -0
- package/build/presentation/commands/generate-slides.command.d.ts +78 -0
- package/build/presentation/commands/get-presentation-slides-generation-price.command.d.ts +22 -0
- package/build/presentation/commands/presentation-generate-report.command.d.ts +23 -0
- package/build/presentation/commands/presentation-paraphrase.command.d.ts +23 -0
- package/build/presentation/commands/reposition-slide-outline.command.d.ts +18 -0
- package/build/presentation/commands/reposition-slide.command.d.ts +18 -0
- package/build/presentation/commands/set-reaction-to-presentation.command.d.ts +73 -0
- package/build/presentation/commands/update-presentation-favorite.command.d.ts +71 -0
- package/build/presentation/commands/update-presentation-outline.command.d.ts +42 -0
- package/build/presentation/commands/update-presentation-slides.command.d.ts +408 -0
- package/build/presentation/commands/update-presentation.command.d.ts +79 -0
- package/build/presentation/commands/update-slide-image-slot.command.d.ts +51 -0
- package/build/presentation/commands/update-slide-outline.command.d.ts +40 -0
- package/build/presentation/commands/update-slide.command.d.ts +405 -0
- package/build/presentation/constants/slide-layout-map.constant.d.ts +3 -0
- package/build/presentation/enums/presentation-ai-action-call-status.enum.d.ts +5 -0
- package/build/presentation/enums/presentation-ai-action-pricing-type.enum.d.ts +4 -0
- package/build/presentation/enums/presentation-ai-action-type.enum.d.ts +4 -0
- package/build/presentation/enums/presentation-stage.enum.d.ts +10 -0
- package/build/presentation/enums/presentation-target-audience.enum.d.ts +6 -0
- package/build/presentation/enums/slide-content-type.enum.d.ts +12 -0
- package/build/presentation/enums/slide-icon-slot-status.enum.d.ts +6 -0
- package/build/presentation/enums/slide-image-job-status.enum.d.ts +6 -0
- package/build/presentation/enums/slide-image-slot-action.enum.d.ts +4 -0
- package/build/presentation/enums/slide-image-slot-status.enum.d.ts +6 -0
- package/build/presentation/enums/slide-layout.enum.d.ts +4 -0
- package/build/presentation/models/pptx-export-payload.d.ts +687 -0
- package/build/presentation/models/presentation-ai-action.schema.d.ts +29 -0
- package/build/presentation/models/presentation-config.schema.d.ts +57 -0
- package/build/presentation/models/presentation-template.schema.d.ts +13 -0
- package/build/presentation/models/presentation-title-page.schema.d.ts +7 -0
- package/build/presentation/models/presentation.schema.d.ts +220 -0
- package/build/presentation/models/slide-content-edit.schema.d.ts +243 -0
- package/build/presentation/models/slide-content-type.schema.d.ts +12 -0
- package/build/presentation/models/slide-content.schema.d.ts +382 -0
- package/build/presentation/models/slide-content.schema.js +8 -0
- package/build/presentation/models/slide-icon-slot.schema.d.ts +12 -0
- package/build/presentation/models/slide-image-slot.schema.d.ts +14 -0
- package/build/presentation/models/slide-outline.schema.d.ts +28 -0
- package/build/presentation/models/slide.schema.d.ts +372 -0
- package/build/presentation/queries/find-presentation-by-uuid.query.d.ts +366 -0
- package/build/presentation/queries/find-presentation-outline.query.d.ts +34 -0
- package/build/presentation/queries/find-presentations.query.d.ts +86 -0
- package/build/presentation/queries/get-presentation-config.query.d.ts +122 -0
- package/build/presentation/routes/presentation.routes.d.ts +32 -0
- package/build/presentation/utils/calculate-presentation-ai-action-price.util.d.ts +2 -0
- package/build/solving-edu-task/commands/delete-all-solving-edu-task-jobs.command.d.ts +15 -0
- package/build/solving-edu-task/commands/delete-solving-edu-task-job-by-uuid.command.d.ts +16 -0
- package/build/solving-edu-task/commands/get-solving-edu-task-price.command.d.ts +22 -0
- package/build/solving-edu-task/commands/retry-solving-edu-task-job.command.d.ts +104 -0
- package/build/solving-edu-task/commands/set-reaction-to-solving-edu-task-job.command.d.ts +89 -0
- package/build/solving-edu-task/commands/solving-edu-task.command.d.ts +103 -0
- package/build/solving-edu-task/commands/update-solving-edu-task-job-favorite.command.d.ts +87 -0
- package/build/solving-edu-task/commands/update-solving-edu-task-job-title.command.d.ts +87 -0
- package/build/solving-edu-task/models/solving-edu-task-config.schema.d.ts +34 -0
- package/build/solving-edu-task/models/solving-edu-task-job.schema.d.ts +54 -0
- package/build/solving-edu-task/models/solving-edu-task-model.schema.d.ts +41 -0
- package/build/solving-edu-task/queries/find-solving-edu-task-job-by-id.query.d.ts +86 -0
- package/build/solving-edu-task/queries/find-solving-edu-task-jobs.query.d.ts +102 -0
- package/build/solving-edu-task/queries/get-solving-edu-task-config.query.d.ts +76 -0
- package/build/solving-edu-task/routes/solving-edu-task.amqp.routes.d.ts +13 -0
- package/build/spell-corrector/commands/delete-all-spell-corrector-jobs.command.d.ts +15 -0
- package/build/spell-corrector/commands/delete-spell-corrector-job-by-uuid.command.d.ts +16 -0
- package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +21 -0
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +54 -0
- package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +55 -0
- package/build/spell-corrector/commands/spell-corrector.command.d.ts +55 -0
- package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +53 -0
- package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +53 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +23 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +25 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +27 -0
- package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +52 -0
- package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +68 -0
- package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +62 -0
- package/build/spell-corrector/routes/spell-corrector.amqp.routes.d.ts +13 -0
- package/build/stt/commands/delete-all-stt-jobs.command.d.ts +17 -0
- package/build/stt/commands/delete-stt-job-by-uuid.command.d.ts +16 -0
- package/build/stt/commands/get-stt-price.command.d.ts +22 -0
- package/build/stt/commands/retry-stt-job.command.d.ts +74 -0
- package/build/stt/commands/set-reaction-to-stt-job.command.d.ts +75 -0
- package/build/stt/commands/stt.command.d.ts +81 -0
- package/build/stt/commands/update-stt-job-favorite.command.d.ts +73 -0
- package/build/stt/commands/update-stt-job-title.command.d.ts +77 -0
- package/build/stt/enums/stt-strategy.enum.d.ts +4 -0
- package/build/stt/models/stt-config-with-vendors.schema.d.ts +47 -0
- package/build/stt/models/stt-config.schema.d.ts +29 -0
- package/build/stt/models/stt-job.schema.d.ts +33 -0
- package/build/stt/models/stt-model-with-vendor.schema.d.ts +28 -0
- package/build/stt/models/stt-model.schema.d.ts +28 -0
- package/build/stt/models/stt-response.schema.d.ts +8 -0
- package/build/stt/models/stt-response.schema.js +1 -1
- package/build/stt/queries/find-stt-job-by-uuid.query.d.ts +72 -0
- package/build/stt/queries/find-stt-jobs.query.d.ts +90 -0
- package/build/stt/queries/get-stt-config-with-vendors.query.d.ts +102 -0
- package/build/stt/queries/get-stt-config.query.d.ts +67 -0
- package/build/stt/routes/stt.amqp.routes.d.ts +14 -0
- package/build/tool-workspace/commands/soft-delete-all-tool-workspaces-by-tool-type.command.d.ts +21 -0
- package/build/tool-workspace/commands/soft-delete-all-tool-workspaces-by-tool-type.command.js +2 -2
- package/build/tool-workspace/commands/soft-delete-tool-workspace.command.d.ts +20 -0
- package/build/tool-workspace/commands/update-tool-workspace.command.d.ts +40 -0
- package/build/tool-workspace/enums/tool-workspace-item-slot.enum.d.ts +5 -0
- package/build/tool-workspace/enums/tool-workspace-status.enum.d.ts +4 -0
- package/build/tool-workspace/models/tool-workspace-contents.schema.d.ts +177 -0
- package/build/tool-workspace/models/tool-workspace-item.schema.d.ts +166 -0
- package/build/tool-workspace/models/tool-workspace-item.schema.js +2 -2
- package/build/tool-workspace/models/tool-workspace-job.schema.d.ts +156 -0
- package/build/tool-workspace/models/tool-workspace-job.schema.js +10 -10
- package/build/tool-workspace/models/tool-workspace.schema.d.ts +15 -0
- package/build/tool-workspace/models/tool-workspace.schema.js +2 -2
- package/build/tool-workspace/queries/find-tool-workspace-by-uuid.query.d.ts +364 -0
- package/build/tool-workspace/queries/find-tool-workspaces.query.d.ts +48 -0
- package/build/tool-workspace/queries/find-tool-workspaces.query.js +2 -2
- package/build/tool-workspace/routes/tool-workspace.amqp.routes.d.ts +7 -0
- package/build/tools/enums/job-sort.enum.d.ts +4 -0
- package/build/tools/enums/job-status.enum.d.ts +6 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +20 -0
- package/build/tools/enums/tool-group.enum.d.ts +8 -0
- package/build/tools/enums/tool-type.enum.d.ts +22 -0
- package/build/tools/events/tool-job-complete.event.d.ts +19 -0
- package/build/tools/events/tool-job-failed.event.d.ts +17 -0
- package/build/tools/models/global-tools-config.schema.d.ts +922 -0
- package/build/tools/models/tool-group.schema.d.ts +20 -0
- package/build/tools/models/tool-job.schema.d.ts +11 -0
- package/build/tools/models/tool.schema.d.ts +16 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +2250 -0
- package/build/tools/queries/find-all-tools.query.d.ts +38 -0
- package/build/tools/queries/find-grouped-tools.query.d.ts +46 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +1852 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +2258 -0
- package/build/tools/routes/tools.aqmp.routes.d.ts +8 -0
- package/build/tts/commands/delete-all-tts-jobs.command.d.ts +17 -0
- package/build/tts/commands/delete-tts-job-by-uuid.command.d.ts +16 -0
- package/build/tts/commands/get-tts-price.command.d.ts +22 -0
- package/build/tts/commands/retry-tts-job.command.d.ts +80 -0
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +81 -0
- package/build/tts/commands/tts.command.d.ts +94 -0
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +79 -0
- package/build/tts/commands/update-tts-job-title.command.d.ts +79 -0
- package/build/tts/enums/tts-model-type.enum.d.ts +4 -0
- package/build/tts/enums/tts-strategy.enum.d.ts +4 -0
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +143 -0
- package/build/tts/models/tts-config.schema.d.ts +125 -0
- package/build/tts/models/tts-job.schema.d.ts +48 -0
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +124 -0
- package/build/tts/models/tts-model.schema.d.ts +244 -0
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +78 -0
- package/build/tts/queries/find-tts-jobs.query.d.ts +96 -0
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +294 -0
- package/build/tts/queries/get-tts-config.query.d.ts +259 -0
- package/build/tts/routes/tts.amqp.routes.d.ts +14 -0
- package/build/video/commands/delete-all-video-jobs.command.d.ts +17 -0
- package/build/video/commands/delete-video-job-by-uuid.command.d.ts +16 -0
- package/build/video/commands/get-video-price.command.d.ts +51 -0
- package/build/video/commands/moderate-video-before-post.command.d.ts +22 -0
- package/build/video/commands/retry-video-job.command.d.ts +141 -0
- package/build/video/commands/set-reaction-to-video-job.command.d.ts +109 -0
- package/build/video/commands/update-published-status-video-jobs.command.d.ts +112 -0
- package/build/video/commands/update-video-job-favorite.command.d.ts +107 -0
- package/build/video/commands/update-video-job-title.command.d.ts +107 -0
- package/build/video/commands/video-model/get-video-model-by-uuid.command.d.ts +173 -0
- package/build/video/commands/video.command.d.ts +149 -0
- package/build/video/commands/video.command.js +4 -4
- package/build/video/const/videoMaxDuration.d.ts +1 -0
- package/build/video/enums/veo-aspect-ratio.enum.d.ts +4 -0
- package/build/video/enums/veo-audio-support.enum.d.ts +4 -0
- package/build/video/enums/veo-input-modality.enum.d.ts +4 -0
- package/build/video/enums/veo-job-params-type.enum.d.ts +4 -0
- package/build/video/enums/veo-person-allow.enum.d.ts +5 -0
- package/build/video/enums/video-generation-model-limitation.enum.d.ts +8 -0
- package/build/video/enums/video-model-type.enum.d.ts +4 -0
- package/build/video/enums/video-pricing-rule-type.enum.d.ts +4 -0
- package/build/video/enums/video-publish-moderation-status.enum.d.ts +5 -0
- package/build/video/enums/video-resolution.enum.d.ts +5 -0
- package/build/video/enums/video-strategy.enum.d.ts +18 -0
- package/build/video/models/video-config.schema.d.ts +101 -0
- package/build/video/models/video-job.schema.d.ts +71 -0
- package/build/video/models/video-job.schema.js +2 -2
- package/build/video/models/video-model.schema.d.ts +176 -0
- package/build/video/queries/find-video-job-by-id.query.d.ts +106 -0
- package/build/video/queries/find-video-jobs.query.d.ts +126 -0
- package/build/video/queries/find-video-jobs.query.js +4 -3
- package/build/video/queries/get-video-config.query.d.ts +211 -0
- package/build/video/routes/video-model.amqp.routes.d.ts +3 -0
- package/build/video/routes/video.amqp.routes.d.ts +15 -0
- package/build/video/routes/video.http.routes.d.ts +8 -0
- package/build/video/utils/calculate-video-generation-price.util.d.ts +6 -0
- package/build/video-editor/commands/delete-all-video-editor-jobs.command.d.ts +17 -0
- package/build/video-editor/commands/delete-video-editor-job-by-uuid.command.d.ts +16 -0
- package/build/video-editor/commands/edit-video.command.d.ts +92 -0
- package/build/video-editor/commands/get-video-editor-price.command.d.ts +25 -0
- package/build/video-editor/commands/retry-video-editor-job.command.d.ts +91 -0
- package/build/video-editor/commands/set-reaction-to-video-editor-job.command.d.ts +83 -0
- package/build/video-editor/commands/update-published-status-video-editor-jobs.command.d.ts +86 -0
- package/build/video-editor/commands/update-video-editor-job-favorite.command.d.ts +81 -0
- package/build/video-editor/commands/update-video-editor-job-title.command.d.ts +81 -0
- package/build/video-editor/commands/video-editor-model/get-video-editor-model.command.d.ts +101 -0
- package/build/video-editor/enums/video-editor-model-limitation.enum.d.ts +4 -0
- package/build/video-editor/enums/video-editor-model-strategy.enum.d.ts +8 -0
- package/build/video-editor/enums/video-editor-pricing-rule-type.enum.d.ts +4 -0
- package/build/video-editor/models/video-editor-config.schema.d.ts +48 -0
- package/build/video-editor/models/video-editor-job.schema.d.ts +42 -0
- package/build/video-editor/models/video-editor-model.schema.d.ts +76 -0
- package/build/video-editor/queries/find-video-editor-job-by-id.query.d.ts +80 -0
- package/build/video-editor/queries/find-video-editor-jobs.query.d.ts +98 -0
- package/build/video-editor/queries/get-video-editor-config.query.d.ts +104 -0
- package/build/video-editor/routes/video-editor-model.amqp.routes.d.ts +3 -0
- package/build/video-editor/routes/video-editor.amqp.routes.d.ts +14 -0
- package/build/video-editor/routes/video-editor.http.routes.d.ts +5 -0
- package/build/video-editor/utils/calculate-video-editing-price.d.ts +6 -0
- package/build/writer/commands/collect-sources.command.d.ts +96 -0
- package/build/writer/commands/confirm-source-citation-metadata.command.d.ts +96 -0
- package/build/writer/commands/create-writer-document.command.d.ts +100 -0
- package/build/writer/commands/delete-all-user-writer-documents.command.d.ts +15 -0
- package/build/writer/commands/delete-writer-document.command.d.ts +16 -0
- package/build/writer/commands/discard-writer-source.command.d.ts +20 -0
- package/build/writer/commands/export-writer-document-as-docx.command.d.ts +20 -0
- package/build/writer/commands/generate-document-contents.command.d.ts +99 -0
- package/build/writer/commands/generate-document-outline.command.d.ts +99 -0
- package/build/writer/commands/get-writer-content-generation-price.command.d.ts +22 -0
- package/build/writer/commands/set-reaction-writer-document.command.d.ts +99 -0
- package/build/writer/commands/toggle-writer-document-title-page.command.d.ts +21 -0
- package/build/writer/commands/update-writer-document-contents.command.d.ts +21 -0
- package/build/writer/commands/update-writer-document-favorite.command.d.ts +97 -0
- package/build/writer/commands/update-writer-document-final-md.command.d.ts +21 -0
- package/build/writer/commands/update-writer-document-outline.command.d.ts +36 -0
- package/build/writer/commands/update-writer-document-title-page.command.d.ts +41 -0
- package/build/writer/commands/upload-writer-source.command.d.ts +81 -0
- package/build/writer/commands/writer-extend-text.command.d.ts +22 -0
- package/build/writer/commands/writer-fix-errors.command.d.ts +22 -0
- package/build/writer/commands/writer-generate-text.command.d.ts +25 -0
- package/build/writer/commands/writer-paraphrase.command.d.ts +22 -0
- package/build/writer/commands/writer-shorten-text.command.d.ts +22 -0
- package/build/writer/enums/writer-ai-action-call.enum.d.ts +5 -0
- package/build/writer/enums/writer-ai-action-pricing-type.enum.d.ts +4 -0
- package/build/writer/enums/writer-ai-action-type.enum.d.ts +7 -0
- package/build/writer/enums/writer-content-generation-strategy.enum.d.ts +4 -0
- package/build/writer/enums/writer-document-section-type.enum.d.ts +5 -0
- package/build/writer/enums/writer-document-stage.enum.d.ts +16 -0
- package/build/writer/enums/writer-source-origin.enum.d.ts +4 -0
- package/build/writer/enums/writer-source-status.enum.d.ts +5 -0
- package/build/writer/enums/writer-source-type.enum.d.ts +4 -0
- package/build/writer/models/writer-ai-action.schema.d.ts +28 -0
- package/build/writer/models/writer-config.schema.d.ts +67 -0
- package/build/writer/models/writer-document-outline.schema.d.ts +21 -0
- package/build/writer/models/writer-document-outline.schema.js +1 -0
- package/build/writer/models/writer-document-title-page.schema.d.ts +11 -0
- package/build/writer/models/writer-document-type.schema.d.ts +24 -0
- package/build/writer/models/writer-document.schema.d.ts +45 -0
- package/build/writer/models/writer-model.schema.d.ts +27 -0
- package/build/writer/models/writer-source-bibliographic-metadata.schema.d.ts +38 -0
- package/build/writer/models/writer-source.schema.d.ts +35 -0
- package/build/writer/queries/find-writer-document-by-uuid.query.d.ts +94 -0
- package/build/writer/queries/find-writer-documents.query.d.ts +112 -0
- package/build/writer/queries/get-writer-config.query.d.ts +142 -0
- package/build/writer/queries/get-writer-document-sources.query.d.ts +78 -0
- package/build/writer/routes/writer.routes.d.ts +28 -0
- package/build/writer/utils/calculate-writer-ai-action-price.util.d.ts +2 -0
- package/build/writer/utils/calculate-writer-content-generation-price.util.d.ts +2 -0
- package/package.json +6 -3
- package/account-merge/commands/transfer-user-jobs.command.ts +0 -13
- package/account-merge/routes/account-merge.amqp.routes.ts +0 -3
- package/ai-proxy/routes/ai-proxy.routes.ts +0 -11
- package/ai-vendor/models/ai-vendor.schema.ts +0 -13
- package/analytics/job-model-analytics/commands/get-job-model-analytics.command.ts +0 -12
- package/analytics/job-model-analytics/routes/job-model-analytics.http.routes.ts +0 -5
- package/common/enums/file-type.enum.ts +0 -9
- package/common/enums/job-scope.enum.ts +0 -5
- package/common/enums/reasoning-effort.enum.ts +0 -10
- package/common/enums/tool-model-status.enum.ts +0 -4
- package/common/enums/tool-model-tag.enum.ts +0 -3
- package/common/enums/user-reaction.enum.ts +0 -4
- package/common/errors/error.interface.ts +0 -5
- package/common/models/attached-file.schema.ts +0 -13
- package/common/models/command-response.schema.ts +0 -18
- package/common/models/icon-variants.schema.ts +0 -12
- package/common/models/locale.schema.ts +0 -11
- package/diagrams/commands/delete-all-diagrams-jobs.command.ts +0 -13
- package/diagrams/commands/delete-diagrams-job-by-uuid.command.ts +0 -14
- package/diagrams/commands/diagrams.command.ts +0 -20
- package/diagrams/commands/edit-diagrams-job.command.ts +0 -30
- package/diagrams/commands/get-diagrams-price-calculation-data.command.ts +0 -25
- package/diagrams/commands/retry-diagrams-job.command.ts +0 -22
- package/diagrams/commands/set-reaction-to-diagrams-job.command.ts +0 -30
- package/diagrams/commands/update-diagrams-job-favorite.command.ts +0 -16
- package/diagrams/commands/update-diagrams-job-title.command.ts +0 -21
- package/diagrams/models/diagrams-chart-type.schema.ts +0 -14
- package/diagrams/models/diagrams-config.schema.ts +0 -10
- package/diagrams/models/diagrams-job.schema.ts +0 -57
- package/diagrams/models/diagrams-model.schema.ts +0 -34
- package/diagrams/queries/find-diagrams-job-by-uuid.query.ts +0 -15
- package/diagrams/queries/find-diagrams-jobs.query.ts +0 -38
- package/diagrams/queries/get-diagrams-config.query.ts +0 -10
- package/diagrams/routes/diagrams.amqp.routes.ts +0 -14
- package/html-page-builder/commands/create-html-page-builder-session.command.ts +0 -31
- package/html-page-builder/commands/get-html-page-builder-price-calculation-data.command.ts +0 -38
- package/html-page-builder/commands/get-html-page-builder-price.command.ts +0 -19
- package/html-page-builder/commands/html-page-builder-execute.command.ts +0 -22
- package/html-page-builder/commands/soft-delete-all-html-page-builder-sessions.command.ts +0 -25
- package/html-page-builder/commands/soft-delete-html-page-builder-session-by-uuid.command.ts +0 -14
- package/html-page-builder/commands/update-html-page-builder-session-favorite.command.ts +0 -16
- package/html-page-builder/commands/update-html-page-builder-session-title.command.ts +0 -16
- package/html-page-builder/enums/html-page-builder-session-stage.enum.ts +0 -4
- package/html-page-builder/models/html-page-builder-config.schema.ts +0 -9
- package/html-page-builder/models/html-page-builder-job.schema.ts +0 -37
- package/html-page-builder/models/html-page-builder-model.schema.ts +0 -20
- package/html-page-builder/models/html-page-builder-session.schema.ts +0 -22
- package/html-page-builder/queries/find-html-page-builder-session-by-id.query.ts +0 -25
- package/html-page-builder/queries/find-html-page-builder-sessions.query.ts +0 -40
- package/html-page-builder/queries/get-html-page-builder-config.query.ts +0 -11
- package/html-page-builder/routes/html-page-builder.amqp.routes.ts +0 -12
- package/image-editor/commands/delete-all-image-editor-jobs.command.ts +0 -15
- package/image-editor/commands/delete-image-editor-job-by-uuid.command.ts +0 -14
- package/image-editor/commands/get-image-editor-price.command.ts +0 -26
- package/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.ts +0 -14
- package/image-editor/commands/image-editor.command.ts +0 -35
- package/image-editor/commands/retry-image-editor-job.command.ts +0 -23
- package/image-editor/commands/set-reaction-to-image-editor-job.command.ts +0 -30
- package/image-editor/commands/update-image-editor-job-favorite.command.ts +0 -16
- package/image-editor/commands/update-image-editor-job-title.command.ts +0 -16
- package/image-editor/commands/update-published-status-image-editor-jobs.command.ts +0 -26
- package/image-editor/enums/image-editor-model-type.enum.ts +0 -5
- package/image-editor/enums/image-editor-strategy.enum.ts +0 -9
- package/image-editor/models/image-editor-config.schema.ts +0 -45
- package/image-editor/models/image-editor-job.schema.ts +0 -42
- package/image-editor/models/image-editor-model.schema.ts +0 -56
- package/image-editor/queries/find-image-editor-job-by-id.query.ts +0 -15
- package/image-editor/queries/find-image-editor-jobs.query.ts +0 -30
- package/image-editor/queries/find-image-jobs.query.ts +0 -27
- package/image-editor/queries/get-image-editor-config.query.ts +0 -11
- package/image-editor/routes/image-editor-model.amqp.routes.ts +0 -3
- package/image-editor/routes/image-editor.amqp.routes.ts +0 -14
- package/image-editor/routes/image-editor.http.routes.ts +0 -1
- package/image-generation/commands/execute-image-generation.command.ts +0 -27
- package/image-generation/commands/forward-image-generation-job.command.ts +0 -34
- package/image-generation/commands/get-image-generation-price.command.ts +0 -24
- package/image-generation/commands/image-generation-model/get-image-generation-model-by-uuid.command.ts +0 -14
- package/image-generation/commands/retry-image-generation-job.command.ts +0 -24
- package/image-generation/commands/save-image-generation-job.command.ts +0 -17
- package/image-generation/commands/set-reaction-to-image-generation-job.command.ts +0 -30
- package/image-generation/commands/soft-delete-image-generation-job-by-uuid.command.ts +0 -14
- package/image-generation/commands/soft-delete-image-generation-jobs-by-criteria.command.ts +0 -15
- package/image-generation/commands/update-image-generation-job-favorite.command.ts +0 -16
- package/image-generation/commands/update-image-generation-job-title.command.ts +0 -16
- package/image-generation/commands/update-published-status-image-generation-jobs.command.ts +0 -26
- package/image-generation/enums/image-generation-model-strategy.enum.ts +0 -31
- package/image-generation/enums/image-generation-models.enum.ts +0 -4
- package/image-generation/enums/image-generation-resolution.enum.ts +0 -5
- package/image-generation/models/image-generation-config.schema.ts +0 -11
- package/image-generation/models/image-generation-job.schema.ts +0 -46
- package/image-generation/models/image-generation-model.schema.ts +0 -73
- package/image-generation/models/image-generation-preset.schema.ts +0 -13
- package/image-generation/queries/find-image-generation-job-by-id.query.ts +0 -15
- package/image-generation/queries/find-image-generation-jobs.query.ts +0 -42
- package/image-generation/queries/get-image-generation-config.query.ts +0 -11
- package/image-generation/routes/image-generation.amqp.routes.ts +0 -16
- package/image-generation/routes/image-generation.http.routes.ts +0 -9
- package/image-recognition/commands/delete-all-image-recognition-jobs.command.ts +0 -13
- package/image-recognition/commands/delete-image-recognition-job-by-uuid.command.ts +0 -14
- package/image-recognition/commands/get-image-recognition-price.command.ts +0 -17
- package/image-recognition/commands/image-recognition.command.ts +0 -24
- package/image-recognition/commands/retry-image-recognition-job.command.ts +0 -28
- package/image-recognition/commands/set-reaction-to-image-recognition-job.command.ts +0 -31
- package/image-recognition/commands/update-image-recognition-job-favorite.command.ts +0 -16
- package/image-recognition/commands/update-image-recognition-job-title.command.ts +0 -16
- package/image-recognition/models/image-recognition-category.schema.ts +0 -16
- package/image-recognition/models/image-recognition-config.schema.ts +0 -10
- package/image-recognition/models/image-recognition-job.schema.ts +0 -37
- package/image-recognition/models/image-recognition-model.schema.ts +0 -29
- package/image-recognition/queries/find-image-recognition-job-by-id.query.ts +0 -16
- package/image-recognition/queries/find-image-recognition-jobs.query.ts +0 -38
- package/image-recognition/queries/get-image-recognition-config.query.ts +0 -11
- package/image-recognition/routes/image-recognition.amqp.routes.ts +0 -13
- package/index.ts +0 -76
- package/interior-design/commands/delete-all-interior-design-jobs.command.ts +0 -13
- package/interior-design/commands/delete-interior-design-job-by-uuid.command.ts +0 -14
- package/interior-design/commands/get-interior-design-price.command.ts +0 -28
- package/interior-design/commands/interior-design-model/get-interior-design-model-by-uuid.command.ts +0 -14
- package/interior-design/commands/interior-design.command.ts +0 -28
- package/interior-design/commands/retry-interior-design-job.command.ts +0 -23
- package/interior-design/commands/set-reaction-to-interior-design-job.command.ts +0 -30
- package/interior-design/commands/update-interior-design-job-favorite.command.ts +0 -16
- package/interior-design/commands/update-interior-design-job-title.command.ts +0 -16
- package/interior-design/enums/interior-design-job-source.enum.ts +0 -4
- package/interior-design/enums/interior-design-model-type.enum.ts +0 -4
- package/interior-design/enums/interior-design-strategy.enum.ts +0 -6
- package/interior-design/models/interior-design-config.schema.ts +0 -29
- package/interior-design/models/interior-design-job.schema.ts +0 -41
- package/interior-design/models/interior-design-model.schema.ts +0 -47
- package/interior-design/queries/find-interior-design-job-by-id.query.ts +0 -15
- package/interior-design/queries/find-interior-design-jobs.query.ts +0 -28
- package/interior-design/queries/get-interior-design-config.query.ts +0 -11
- package/interior-design/routes/interior-design-model.amqp.routes.ts +0 -3
- package/interior-design/routes/interior-design.amqp.routes.ts +0 -13
- package/interior-design/routes/interior-design.http.routes.ts +0 -1
- package/language/models/language.schema.ts +0 -11
- package/marketplace-card/commands/execute-marketplace-card.command.ts +0 -38
- package/marketplace-card/commands/generate-marketplace-card-description.command.ts +0 -21
- package/marketplace-card/commands/get-marketplace-card-price.command.ts +0 -17
- package/marketplace-card/commands/retry-marketplace-card-job.command.ts +0 -28
- package/marketplace-card/commands/set-reaction-to-marketplace-card-job.command.ts +0 -30
- package/marketplace-card/commands/soft-delete-all-marketplace-card-jobs.command.ts +0 -13
- package/marketplace-card/commands/soft-delete-marketplace-card-job-by-uuid.command.ts +0 -14
- package/marketplace-card/commands/update-marketplace-card-job-favorite.command.ts +0 -16
- package/marketplace-card/commands/update-title-marketplace-card-job.command.ts +0 -16
- package/marketplace-card/enums/marketplace-card-strategy.enum.ts +0 -6
- package/marketplace-card/models/marketplace-card-config.schema.ts +0 -9
- package/marketplace-card/models/marketplace-card-description-generation.schema.ts +0 -28
- package/marketplace-card/models/marketplace-card-job.schema.ts +0 -54
- package/marketplace-card/models/marketplace-card-model.schema.ts +0 -34
- package/marketplace-card/models/marketplace-card-style-preset.schema.ts +0 -10
- package/marketplace-card/queries/find-marketplace-card-job-by-uuid.query.ts +0 -16
- package/marketplace-card/queries/find-marketplace-card-jobs.query.ts +0 -38
- package/marketplace-card/queries/get-marketplace-card-config.query.ts +0 -10
- package/marketplace-card/routes/marketplace-card.amqp.routes.ts +0 -14
- package/music/commands/add-track-to-music-playlist.command.ts +0 -26
- package/music/commands/boost-music-style.command.ts +0 -19
- package/music/commands/convert-to-wav.command.ts +0 -15
- package/music/commands/create-music-playlist.command.ts +0 -25
- package/music/commands/delete-all-music-jobs.command.ts +0 -13
- package/music/commands/delete-music-job-by-uuid.command.ts +0 -14
- package/music/commands/delete-music-playlist.command.ts +0 -24
- package/music/commands/edit-music.command.ts +0 -13
- package/music/commands/generate-lyrics.command.ts +0 -21
- package/music/commands/generate-music.command.ts +0 -27
- package/music/commands/get-music-price.command.ts +0 -22
- package/music/commands/music-model/get-music-model-by-uuid.command.ts +0 -14
- package/music/commands/remove-track-from-music-playlist.command.ts +0 -26
- package/music/commands/retry-music-job.command.ts +0 -22
- package/music/commands/set-reaction-to-music-job.command.ts +0 -30
- package/music/commands/update-music-job-favorite.command.ts +0 -16
- package/music/commands/update-music-job-title.command.ts +0 -16
- package/music/commands/update-music-playlist.command.ts +0 -26
- package/music/commands/update-published-status-music-jobs.command.ts +0 -27
- package/music/enums/music-action-type.enum.ts +0 -10
- package/music/enums/music-audio-action-type.enum.ts +0 -8
- package/music/enums/music-generation-action-type.enum.ts +0 -6
- package/music/enums/music-lyrics-structure.enum.ts +0 -5
- package/music/enums/music-pricing-rule-type.enum.ts +0 -3
- package/music/enums/music-strategy.enum.ts +0 -4
- package/music/enums/music-vocal-gender.enum.ts +0 -4
- package/music/enums/suno-mode-type.enum.ts +0 -6
- package/music/enums/suno-model-type.enum.ts +0 -7
- package/music/models/music-config-with-vendors.schema.ts +0 -12
- package/music/models/music-config.schema.ts +0 -16
- package/music/models/music-job.schema.ts +0 -229
- package/music/models/music-model-with-vendor.schema.ts +0 -8
- package/music/models/music-model.schema.ts +0 -54
- package/music/models/music-playlist.schema.ts +0 -15
- package/music/models/music-track.schema.ts +0 -35
- package/music/queries/find-music-job-by-id.query.ts +0 -15
- package/music/queries/find-music-jobs.query.ts +0 -38
- package/music/queries/find-music-playlists.query.ts +0 -24
- package/music/queries/get-music-config-with-vendors.query.ts +0 -11
- package/music/queries/get-music-config.query.ts +0 -11
- package/music/routes/music-model.amqp.routes.ts +0 -3
- package/music/routes/music.amqp.routes.ts +0 -25
- package/music/routes/music.http.routes.ts +0 -1
- package/music/utils/calculate-music-generation-price.util.ts +0 -5
- package/paraphrase/commands/delete-all-paraphrase-jobs.command.ts +0 -13
- package/paraphrase/commands/delete-paraphrase-job-by-uuid.command.ts +0 -14
- package/paraphrase/commands/get-paraphrase-price.command.ts +0 -16
- package/paraphrase/commands/paraphrase.command.ts +0 -21
- package/paraphrase/commands/retry-paraphrase-job.command.ts +0 -17
- package/paraphrase/commands/set-reaction-to-paraphrase-job.command.ts +0 -30
- package/paraphrase/commands/update-paraphrase-job-favorite.command.ts +0 -16
- package/paraphrase/commands/update-paraphrase-job-title.command.ts +0 -16
- package/paraphrase/enums/paraphrasing-intesity.enum.ts +0 -5
- package/paraphrase/models/paraphrase-job.schema.ts +0 -28
- package/paraphrase/models/paraphrase-style.schema.ts +0 -13
- package/paraphrase/models/paraphrase-tool-config.schema.ts +0 -11
- package/paraphrase/models/paraphrase-type.schema.ts +0 -16
- package/paraphrase/queries/find-paraphrase-job-by-uuid.query.ts +0 -15
- package/paraphrase/queries/find-paraphrase-jobs.query.ts +0 -38
- package/paraphrase/queries/get-paraphrase-tool-config.query.ts +0 -11
- package/paraphrase/routes/paraphrase.amqp.routes.ts +0 -13
- package/presentation/commands/build-blank-slide.command.ts +0 -15
- package/presentation/commands/create-presentation.command.ts +0 -22
- package/presentation/commands/delete-all-user-presentations.command.ts +0 -13
- package/presentation/commands/delete-presentation.command.ts +0 -14
- package/presentation/commands/delete-slide-outline.command.ts +0 -15
- package/presentation/commands/export-as-pptx.command.ts +0 -20
- package/presentation/commands/generate-and-insert-slide.command.ts +0 -23
- package/presentation/commands/generate-presentation-outline.command.ts +0 -18
- package/presentation/commands/generate-slides.command.ts +0 -19
- package/presentation/commands/get-presentation-slides-generation-price.command.ts +0 -17
- package/presentation/commands/presentation-generate-report.command.ts +0 -20
- package/presentation/commands/presentation-paraphrase.command.ts +0 -21
- package/presentation/commands/reposition-slide-outline.command.ts +0 -16
- package/presentation/commands/reposition-slide.command.ts +0 -16
- package/presentation/commands/set-reaction-to-presentation.command.ts +0 -29
- package/presentation/commands/update-presentation-favorite.command.ts +0 -16
- package/presentation/commands/update-presentation-outline.command.ts +0 -16
- package/presentation/commands/update-presentation-slides.command.ts +0 -16
- package/presentation/commands/update-presentation.command.ts +0 -16
- package/presentation/commands/update-slide-image-slot.command.ts +0 -39
- package/presentation/commands/update-slide-outline.command.ts +0 -17
- package/presentation/commands/update-slide.command.ts +0 -17
- package/presentation/constants/slide-layout-map.constant.ts +0 -15
- package/presentation/enums/presentation-ai-action-call-status.enum.ts +0 -5
- package/presentation/enums/presentation-ai-action-pricing-type.enum.ts +0 -4
- package/presentation/enums/presentation-ai-action-type.enum.ts +0 -4
- package/presentation/enums/presentation-stage.enum.ts +0 -13
- package/presentation/enums/presentation-target-audience.enum.ts +0 -6
- package/presentation/enums/slide-content-type.enum.ts +0 -12
- package/presentation/enums/slide-icon-slot-status.enum.ts +0 -6
- package/presentation/enums/slide-image-job-status.enum.ts +0 -6
- package/presentation/enums/slide-image-slot-action.enum.ts +0 -4
- package/presentation/enums/slide-image-slot-status.enum.ts +0 -6
- package/presentation/enums/slide-layout.enum.ts +0 -4
- package/presentation/models/pptx-export-payload.ts +0 -232
- package/presentation/models/presentation-ai-action.schema.ts +0 -30
- package/presentation/models/presentation-config.schema.ts +0 -20
- package/presentation/models/presentation-template.schema.ts +0 -14
- package/presentation/models/presentation-title-page.schema.ts +0 -9
- package/presentation/models/presentation.schema.ts +0 -45
- package/presentation/models/slide-content-edit.schema.ts +0 -193
- package/presentation/models/slide-content-type.schema.ts +0 -13
- package/presentation/models/slide-content.schema.ts +0 -582
- package/presentation/models/slide-icon-slot.schema.ts +0 -13
- package/presentation/models/slide-image-slot.schema.ts +0 -15
- package/presentation/models/slide-outline.schema.ts +0 -58
- package/presentation/models/slide.schema.ts +0 -66
- package/presentation/queries/find-presentation-by-uuid.query.ts +0 -13
- package/presentation/queries/find-presentation-outline.query.ts +0 -15
- package/presentation/queries/find-presentations.query.ts +0 -29
- package/presentation/queries/get-presentation-config.query.ts +0 -11
- package/presentation/routes/presentation.routes.ts +0 -34
- package/presentation/utils/calculate-presentation-ai-action-price.util.ts +0 -20
- package/solving-edu-task/commands/delete-all-solving-edu-task-jobs.command.ts +0 -13
- package/solving-edu-task/commands/delete-solving-edu-task-job-by-uuid.command.ts +0 -14
- package/solving-edu-task/commands/get-solving-edu-task-price.command.ts +0 -17
- package/solving-edu-task/commands/retry-solving-edu-task-job.command.ts +0 -27
- package/solving-edu-task/commands/set-reaction-to-solving-edu-task-job.command.ts +0 -31
- package/solving-edu-task/commands/solving-edu-task.command.ts +0 -23
- package/solving-edu-task/commands/update-solving-edu-task-job-favorite.command.ts +0 -16
- package/solving-edu-task/commands/update-solving-edu-task-job-title.command.ts +0 -16
- package/solving-edu-task/models/solving-edu-task-config.schema.ts +0 -8
- package/solving-edu-task/models/solving-edu-task-job.schema.ts +0 -36
- package/solving-edu-task/models/solving-edu-task-model.schema.ts +0 -30
- package/solving-edu-task/queries/find-solving-edu-task-job-by-id.query.ts +0 -16
- package/solving-edu-task/queries/find-solving-edu-task-jobs.query.ts +0 -38
- package/solving-edu-task/queries/get-solving-edu-task-config.query.ts +0 -11
- package/solving-edu-task/routes/solving-edu-task.amqp.routes.ts +0 -13
- package/spell-corrector/commands/delete-all-spell-corrector-jobs.command.ts +0 -13
- package/spell-corrector/commands/delete-spell-corrector-job-by-uuid.command.ts +0 -14
- package/spell-corrector/commands/get-spell-corrector-price.command.ts +0 -16
- package/spell-corrector/commands/retry-spell-corrector-job.command.ts +0 -17
- package/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.ts +0 -30
- package/spell-corrector/commands/spell-corrector.command.ts +0 -18
- package/spell-corrector/commands/update-spell-corrector-job-favorite.command.ts +0 -16
- package/spell-corrector/commands/update-spell-corrector-job-title.command.ts +0 -16
- package/spell-corrector/models/spell-corrector-job.schema.ts +0 -25
- package/spell-corrector/models/spell-corrector-model.schema.ts +0 -18
- package/spell-corrector/models/spell-corrector-tool-config.schema.ts +0 -9
- package/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.ts +0 -15
- package/spell-corrector/queries/find-spell-corrector-jobs.query.ts +0 -38
- package/spell-corrector/queries/get-spell-corrector-tool-config.query.ts +0 -11
- package/spell-corrector/routes/spell-corrector.amqp.routes.ts +0 -13
- package/stt/commands/delete-all-stt-jobs.command.ts +0 -15
- package/stt/commands/delete-stt-job-by-uuid.command.ts +0 -14
- package/stt/commands/get-stt-price.command.ts +0 -17
- package/stt/commands/retry-stt-job.command.ts +0 -17
- package/stt/commands/set-reaction-to-stt-job.command.ts +0 -30
- package/stt/commands/stt.command.ts +0 -24
- package/stt/commands/update-stt-job-favorite.command.ts +0 -16
- package/stt/commands/update-stt-job-title.command.ts +0 -21
- package/stt/enums/stt-strategy.enum.ts +0 -4
- package/stt/models/stt-config-with-vendors.schema.ts +0 -10
- package/stt/models/stt-config.schema.ts +0 -8
- package/stt/models/stt-job.schema.ts +0 -31
- package/stt/models/stt-model-with-vendor.schema.ts +0 -8
- package/stt/models/stt-model.schema.ts +0 -21
- package/stt/models/stt-response.schema.ts +0 -10
- package/stt/queries/find-stt-job-by-uuid.query.ts +0 -15
- package/stt/queries/find-stt-jobs.query.ts +0 -40
- package/stt/queries/get-stt-config-with-vendors.query.ts +0 -11
- package/stt/queries/get-stt-config.query.ts +0 -13
- package/stt/routes/stt.amqp.routes.ts +0 -14
- package/tool-workspace/commands/soft-delete-all-tool-workspaces-by-tool-type.command.ts +0 -26
- package/tool-workspace/commands/soft-delete-tool-workspace.command.ts +0 -25
- package/tool-workspace/commands/update-tool-workspace.command.ts +0 -30
- package/tool-workspace/enums/tool-workspace-item-slot.enum.ts +0 -5
- package/tool-workspace/enums/tool-workspace-status.enum.ts +0 -4
- package/tool-workspace/models/tool-workspace-contents.schema.ts +0 -10
- package/tool-workspace/models/tool-workspace-item.schema.ts +0 -17
- package/tool-workspace/models/tool-workspace-job.schema.ts +0 -22
- package/tool-workspace/models/tool-workspace.schema.ts +0 -17
- package/tool-workspace/queries/find-tool-workspace-by-uuid.query.ts +0 -26
- package/tool-workspace/queries/find-tool-workspaces.query.ts +0 -37
- package/tool-workspace/routes/tool-workspace.amqp.routes.ts +0 -7
- package/tools/enums/job-sort.enum.ts +0 -4
- package/tools/enums/job-status.enum.ts +0 -6
- package/tools/enums/tool-content-type.enum.ts +0 -20
- package/tools/enums/tool-group.enum.ts +0 -8
- package/tools/enums/tool-type.enum.ts +0 -22
- package/tools/events/tool-job-complete.event.ts +0 -15
- package/tools/events/tool-job-failed.event.ts +0 -13
- package/tools/models/global-tools-config.schema.ts +0 -41
- package/tools/models/tool-group.schema.ts +0 -11
- package/tools/models/tool-job.schema.ts +0 -13
- package/tools/models/tool.schema.ts +0 -18
- package/tools/models/tools-with-configs.schema.ts +0 -131
- package/tools/queries/find-all-tools.query.ts +0 -11
- package/tools/queries/find-grouped-tools.query.ts +0 -11
- package/tools/queries/get-global-tools-config.query.ts +0 -11
- package/tools/queries/get-tools-with-configs.query.ts +0 -11
- package/tools/routes/tools.aqmp.routes.ts +0 -8
- package/tsconfig.json +0 -12
- package/tts/commands/delete-all-tts-jobs.command.ts +0 -15
- package/tts/commands/delete-tts-job-by-uuid.command.ts +0 -14
- package/tts/commands/get-tts-price.command.ts +0 -17
- package/tts/commands/retry-tts-job.command.ts +0 -17
- package/tts/commands/set-reaction-to-tts-job.command.ts +0 -30
- package/tts/commands/tts.command.ts +0 -30
- package/tts/commands/update-tts-job-favorite.command.ts +0 -16
- package/tts/commands/update-tts-job-title.command.ts +0 -16
- package/tts/enums/tts-model-type.enum.ts +0 -4
- package/tts/enums/tts-strategy.enum.ts +0 -4
- package/tts/models/tts-config-with-vendors.schema.ts +0 -10
- package/tts/models/tts-config.schema.ts +0 -8
- package/tts/models/tts-job.schema.ts +0 -44
- package/tts/models/tts-model-with-vendor.schema.ts +0 -8
- package/tts/models/tts-model.schema.ts +0 -64
- package/tts/queries/find-tts-job-by-id.query.ts +0 -15
- package/tts/queries/find-tts-jobs.query.ts +0 -40
- package/tts/queries/get-tts-config-with-vendors.query.ts +0 -11
- package/tts/queries/get-tts-config.query.ts +0 -13
- package/tts/routes/tts.amqp.routes.ts +0 -14
- package/video/commands/delete-all-video-jobs.command.ts +0 -15
- package/video/commands/delete-video-job-by-uuid.command.ts +0 -14
- package/video/commands/get-video-price.command.ts +0 -18
- package/video/commands/moderate-video-before-post.command.ts +0 -20
- package/video/commands/retry-video-job.command.ts +0 -23
- package/video/commands/set-reaction-to-video-job.command.ts +0 -30
- package/video/commands/update-published-status-video-jobs.command.ts +0 -26
- package/video/commands/update-video-job-favorite.command.ts +0 -16
- package/video/commands/update-video-job-title.command.ts +0 -16
- package/video/commands/video-model/get-video-model-by-uuid.command.ts +0 -14
- package/video/commands/video.command.ts +0 -31
- package/video/const/videoMaxDuration.ts +0 -1
- package/video/enums/veo-aspect-ratio.enum.ts +0 -4
- package/video/enums/veo-audio-support.enum.ts +0 -4
- package/video/enums/veo-input-modality.enum.ts +0 -4
- package/video/enums/veo-job-params-type.enum.ts +0 -4
- package/video/enums/veo-person-allow.enum.ts +0 -5
- package/video/enums/video-generation-model-limitation.enum.ts +0 -8
- package/video/enums/video-model-type.enum.ts +0 -4
- package/video/enums/video-pricing-rule-type.enum.ts +0 -4
- package/video/enums/video-publish-moderation-status.enum.ts +0 -5
- package/video/enums/video-resolution.enum.ts +0 -5
- package/video/enums/video-strategy.enum.ts +0 -18
- package/video/models/video-config.schema.ts +0 -10
- package/video/models/video-job.schema.ts +0 -57
- package/video/models/video-model.schema.ts +0 -136
- package/video/queries/find-video-job-by-id.query.ts +0 -15
- package/video/queries/find-video-jobs.query.ts +0 -41
- package/video/queries/get-video-config.query.ts +0 -13
- package/video/routes/video-model.amqp.routes.ts +0 -3
- package/video/routes/video.amqp.routes.ts +0 -15
- package/video/routes/video.http.routes.ts +0 -9
- package/video/utils/calculate-video-generation-price.util.ts +0 -56
- package/video-editor/commands/delete-all-video-editor-jobs.command.ts +0 -15
- package/video-editor/commands/delete-video-editor-job-by-uuid.command.ts +0 -14
- package/video-editor/commands/edit-video.command.ts +0 -24
- package/video-editor/commands/get-video-editor-price.command.ts +0 -18
- package/video-editor/commands/retry-video-editor-job.command.ts +0 -26
- package/video-editor/commands/set-reaction-to-video-editor-job.command.ts +0 -30
- package/video-editor/commands/update-published-status-video-editor-jobs.command.ts +0 -26
- package/video-editor/commands/update-video-editor-job-favorite.command.ts +0 -16
- package/video-editor/commands/update-video-editor-job-title.command.ts +0 -16
- package/video-editor/commands/video-editor-model/get-video-editor-model.command.ts +0 -14
- package/video-editor/enums/video-editor-model-limitation.enum.ts +0 -4
- package/video-editor/enums/video-editor-model-strategy.enum.ts +0 -8
- package/video-editor/enums/video-editor-pricing-rule-type.enum.ts +0 -4
- package/video-editor/models/video-editor-config.schema.ts +0 -7
- package/video-editor/models/video-editor-job.schema.ts +0 -43
- package/video-editor/models/video-editor-model.schema.ts +0 -68
- package/video-editor/queries/find-video-editor-job-by-id.query.ts +0 -15
- package/video-editor/queries/find-video-editor-jobs.query.ts +0 -40
- package/video-editor/queries/get-video-editor-config.query.ts +0 -11
- package/video-editor/routes/video-editor-model.amqp.routes.ts +0 -3
- package/video-editor/routes/video-editor.amqp.routes.ts +0 -14
- package/video-editor/routes/video-editor.http.routes.ts +0 -6
- package/video-editor/utils/calculate-video-editing-price.ts +0 -46
- package/writer/commands/collect-sources.command.ts +0 -15
- package/writer/commands/confirm-source-citation-metadata.command.ts +0 -18
- package/writer/commands/create-writer-document.command.ts +0 -19
- package/writer/commands/delete-all-user-writer-documents.command.ts +0 -18
- package/writer/commands/delete-writer-document.command.ts +0 -14
- package/writer/commands/discard-writer-source.command.ts +0 -18
- package/writer/commands/export-writer-document-as-docx.command.ts +0 -18
- package/writer/commands/generate-document-contents.command.ts +0 -18
- package/writer/commands/generate-document-outline.command.ts +0 -19
- package/writer/commands/get-writer-content-generation-price.command.ts +0 -17
- package/writer/commands/set-reaction-writer-document.command.ts +0 -29
- package/writer/commands/toggle-writer-document-title-page.command.ts +0 -19
- package/writer/commands/update-writer-document-contents.command.ts +0 -19
- package/writer/commands/update-writer-document-favorite.command.ts +0 -16
- package/writer/commands/update-writer-document-final-md.command.ts +0 -19
- package/writer/commands/update-writer-document-outline.command.ts +0 -17
- package/writer/commands/update-writer-document-title-page.command.ts +0 -16
- package/writer/commands/upload-writer-source.command.ts +0 -18
- package/writer/commands/writer-extend-text.command.ts +0 -20
- package/writer/commands/writer-fix-errors.command.ts +0 -20
- package/writer/commands/writer-generate-text.command.ts +0 -23
- package/writer/commands/writer-paraphrase.command.ts +0 -20
- package/writer/commands/writer-shorten-text.command.ts +0 -20
- package/writer/enums/writer-ai-action-call.enum.ts +0 -5
- package/writer/enums/writer-ai-action-pricing-type.enum.ts +0 -4
- package/writer/enums/writer-ai-action-type.enum.ts +0 -7
- package/writer/enums/writer-content-generation-strategy.enum.ts +0 -4
- package/writer/enums/writer-document-section-type.enum.ts +0 -5
- package/writer/enums/writer-document-stage.enum.ts +0 -21
- package/writer/enums/writer-source-origin.enum.ts +0 -4
- package/writer/enums/writer-source-status.enum.ts +0 -5
- package/writer/enums/writer-source-type.enum.ts +0 -4
- package/writer/models/writer-ai-action.schema.ts +0 -27
- package/writer/models/writer-config.schema.ts +0 -12
- package/writer/models/writer-document-outline.schema.ts +0 -27
- package/writer/models/writer-document-title-page.schema.ts +0 -13
- package/writer/models/writer-document-type.schema.ts +0 -17
- package/writer/models/writer-document.schema.ts +0 -34
- package/writer/models/writer-model.schema.ts +0 -21
- package/writer/models/writer-source-bibliographic-metadata.schema.ts +0 -31
- package/writer/models/writer-source.schema.ts +0 -22
- package/writer/queries/find-writer-document-by-uuid.query.ts +0 -11
- package/writer/queries/find-writer-documents.query.ts +0 -29
- package/writer/queries/get-writer-config.query.ts +0 -11
- package/writer/queries/get-writer-document-sources.query.ts +0 -15
- package/writer/routes/writer.routes.ts +0 -28
- package/writer/utils/calculate-writer-ai-action-price.util.ts +0 -20
- package/writer/utils/calculate-writer-content-generation-price.util.ts +0 -5
- /package/{account-merge/commands/index.ts → build/account-merge/commands/index.d.ts} +0 -0
- /package/{account-merge/index.ts → build/account-merge/index.d.ts} +0 -0
- /package/{account-merge/routes/index.ts → build/account-merge/routes/index.d.ts} +0 -0
- /package/{ai-proxy/index.ts → build/ai-proxy/index.d.ts} +0 -0
- /package/{ai-proxy/routes/index.ts → build/ai-proxy/routes/index.d.ts} +0 -0
- /package/{ai-vendor/index.ts → build/ai-vendor/index.d.ts} +0 -0
- /package/{ai-vendor/models/index.ts → build/ai-vendor/models/index.d.ts} +0 -0
- /package/{analytics/index.ts → build/analytics/index.d.ts} +0 -0
- /package/{analytics/job-model-analytics/commands/index.ts → build/analytics/job-model-analytics/commands/index.d.ts} +0 -0
- /package/{analytics/job-model-analytics/index.ts → build/analytics/job-model-analytics/index.d.ts} +0 -0
- /package/{analytics/job-model-analytics/routes/index.ts → build/analytics/job-model-analytics/routes/index.d.ts} +0 -0
- /package/{common/enums/index.ts → build/common/enums/index.d.ts} +0 -0
- /package/{common/errors/index.ts → build/common/errors/index.d.ts} +0 -0
- /package/{common/index.ts → build/common/index.d.ts} +0 -0
- /package/{common/models/index.ts → build/common/models/index.d.ts} +0 -0
- /package/{diagrams/commands/index.ts → build/diagrams/commands/index.d.ts} +0 -0
- /package/{diagrams/index.ts → build/diagrams/index.d.ts} +0 -0
- /package/{diagrams/models/index.ts → build/diagrams/models/index.d.ts} +0 -0
- /package/{diagrams/queries/index.ts → build/diagrams/queries/index.d.ts} +0 -0
- /package/{diagrams/routes/index.ts → build/diagrams/routes/index.d.ts} +0 -0
- /package/{html-page-builder/commands/index.ts → build/html-page-builder/commands/index.d.ts} +0 -0
- /package/{html-page-builder/enums/index.ts → build/html-page-builder/enums/index.d.ts} +0 -0
- /package/{html-page-builder/index.ts → build/html-page-builder/index.d.ts} +0 -0
- /package/{html-page-builder/models/index.ts → build/html-page-builder/models/index.d.ts} +0 -0
- /package/{html-page-builder/queries/index.ts → build/html-page-builder/queries/index.d.ts} +0 -0
- /package/{html-page-builder/routes/index.ts → build/html-page-builder/routes/index.d.ts} +0 -0
- /package/{image-editor/commands/image-editor-model/index.ts → build/image-editor/commands/image-editor-model/index.d.ts} +0 -0
- /package/{image-editor/commands/index.ts → build/image-editor/commands/index.d.ts} +0 -0
- /package/{image-editor/enums/index.ts → build/image-editor/enums/index.d.ts} +0 -0
- /package/{image-editor/index.ts → build/image-editor/index.d.ts} +0 -0
- /package/{image-editor/models/index.ts → build/image-editor/models/index.d.ts} +0 -0
- /package/{image-editor/queries/index.ts → build/image-editor/queries/index.d.ts} +0 -0
- /package/{image-editor/routes/index.ts → build/image-editor/routes/index.d.ts} +0 -0
- /package/{image-generation/commands/image-generation-model/index.ts → build/image-generation/commands/image-generation-model/index.d.ts} +0 -0
- /package/{image-generation/commands/index.ts → build/image-generation/commands/index.d.ts} +0 -0
- /package/{image-generation/enums/index.ts → build/image-generation/enums/index.d.ts} +0 -0
- /package/{image-generation/index.ts → build/image-generation/index.d.ts} +0 -0
- /package/{image-generation/models/index.ts → build/image-generation/models/index.d.ts} +0 -0
- /package/{image-generation/queries/index.ts → build/image-generation/queries/index.d.ts} +0 -0
- /package/{image-generation/routes/index.ts → build/image-generation/routes/index.d.ts} +0 -0
- /package/{image-recognition/commands/index.ts → build/image-recognition/commands/index.d.ts} +0 -0
- /package/{image-recognition/index.ts → build/image-recognition/index.d.ts} +0 -0
- /package/{image-recognition/models/index.ts → build/image-recognition/models/index.d.ts} +0 -0
- /package/{image-recognition/queries/index.ts → build/image-recognition/queries/index.d.ts} +0 -0
- /package/{image-recognition/routes/index.ts → build/image-recognition/routes/index.d.ts} +0 -0
- /package/{interior-design/commands/index.ts → build/interior-design/commands/index.d.ts} +0 -0
- /package/{interior-design/commands/interior-design-model/index.ts → build/interior-design/commands/interior-design-model/index.d.ts} +0 -0
- /package/{interior-design/enums/index.ts → build/interior-design/enums/index.d.ts} +0 -0
- /package/{interior-design/index.ts → build/interior-design/index.d.ts} +0 -0
- /package/{interior-design/models/index.ts → build/interior-design/models/index.d.ts} +0 -0
- /package/{interior-design/queries/index.ts → build/interior-design/queries/index.d.ts} +0 -0
- /package/{interior-design/routes/index.ts → build/interior-design/routes/index.d.ts} +0 -0
- /package/{language/index.ts → build/language/index.d.ts} +0 -0
- /package/{language/models/index.ts → build/language/models/index.d.ts} +0 -0
- /package/{marketplace-card/commands/index.ts → build/marketplace-card/commands/index.d.ts} +0 -0
- /package/{marketplace-card/enums/index.ts → build/marketplace-card/enums/index.d.ts} +0 -0
- /package/{marketplace-card/index.ts → build/marketplace-card/index.d.ts} +0 -0
- /package/{marketplace-card/models/index.ts → build/marketplace-card/models/index.d.ts} +0 -0
- /package/{marketplace-card/queries/index.ts → build/marketplace-card/queries/index.d.ts} +0 -0
- /package/{marketplace-card/routes/index.ts → build/marketplace-card/routes/index.d.ts} +0 -0
- /package/{music/commands/index.ts → build/music/commands/index.d.ts} +0 -0
- /package/{music/commands/music-model/index.ts → build/music/commands/music-model/index.d.ts} +0 -0
- /package/{music/enums/index.ts → build/music/enums/index.d.ts} +0 -0
- /package/{music/index.ts → build/music/index.d.ts} +0 -0
- /package/{music/models/index.ts → build/music/models/index.d.ts} +0 -0
- /package/{music/queries/index.ts → build/music/queries/index.d.ts} +0 -0
- /package/{music/routes/index.ts → build/music/routes/index.d.ts} +0 -0
- /package/{music/utils/index.ts → build/music/utils/index.d.ts} +0 -0
- /package/{paraphrase/commands/index.ts → build/paraphrase/commands/index.d.ts} +0 -0
- /package/{paraphrase/enums/index.ts → build/paraphrase/enums/index.d.ts} +0 -0
- /package/{paraphrase/index.ts → build/paraphrase/index.d.ts} +0 -0
- /package/{paraphrase/models/index.ts → build/paraphrase/models/index.d.ts} +0 -0
- /package/{paraphrase/queries/index.ts → build/paraphrase/queries/index.d.ts} +0 -0
- /package/{paraphrase/routes/index.ts → build/paraphrase/routes/index.d.ts} +0 -0
- /package/{presentation/commands/index.ts → build/presentation/commands/index.d.ts} +0 -0
- /package/{presentation/constants/index.ts → build/presentation/constants/index.d.ts} +0 -0
- /package/{presentation/enums/index.ts → build/presentation/enums/index.d.ts} +0 -0
- /package/{presentation/index.ts → build/presentation/index.d.ts} +0 -0
- /package/{presentation/models/index.ts → build/presentation/models/index.d.ts} +0 -0
- /package/{presentation/queries/index.ts → build/presentation/queries/index.d.ts} +0 -0
- /package/{presentation/routes/index.ts → build/presentation/routes/index.d.ts} +0 -0
- /package/{presentation/utils/index.ts → build/presentation/utils/index.d.ts} +0 -0
- /package/{solving-edu-task/commands/index.ts → build/solving-edu-task/commands/index.d.ts} +0 -0
- /package/{solving-edu-task/index.ts → build/solving-edu-task/index.d.ts} +0 -0
- /package/{solving-edu-task/models/index.ts → build/solving-edu-task/models/index.d.ts} +0 -0
- /package/{solving-edu-task/queries/index.ts → build/solving-edu-task/queries/index.d.ts} +0 -0
- /package/{solving-edu-task/routes/index.ts → build/solving-edu-task/routes/index.d.ts} +0 -0
- /package/{spell-corrector/commands/index.ts → build/spell-corrector/commands/index.d.ts} +0 -0
- /package/{spell-corrector/index.ts → build/spell-corrector/index.d.ts} +0 -0
- /package/{spell-corrector/models/index.ts → build/spell-corrector/models/index.d.ts} +0 -0
- /package/{spell-corrector/queries/index.ts → build/spell-corrector/queries/index.d.ts} +0 -0
- /package/{spell-corrector/routes/index.ts → build/spell-corrector/routes/index.d.ts} +0 -0
- /package/{stt/commands/index.ts → build/stt/commands/index.d.ts} +0 -0
- /package/{stt/enums/index.ts → build/stt/enums/index.d.ts} +0 -0
- /package/{stt/index.ts → build/stt/index.d.ts} +0 -0
- /package/{stt/models/index.ts → build/stt/models/index.d.ts} +0 -0
- /package/{stt/queries/index.ts → build/stt/queries/index.d.ts} +0 -0
- /package/{stt/routes/index.ts → build/stt/routes/index.d.ts} +0 -0
- /package/{tool-workspace/commands/index.ts → build/tool-workspace/commands/index.d.ts} +0 -0
- /package/{tool-workspace/enums/index.ts → build/tool-workspace/enums/index.d.ts} +0 -0
- /package/{tool-workspace/index.ts → build/tool-workspace/index.d.ts} +0 -0
- /package/{tool-workspace/models/index.ts → build/tool-workspace/models/index.d.ts} +0 -0
- /package/{tool-workspace/queries/index.ts → build/tool-workspace/queries/index.d.ts} +0 -0
- /package/{tool-workspace/routes/index.ts → build/tool-workspace/routes/index.d.ts} +0 -0
- /package/{tools/enums/index.ts → build/tools/enums/index.d.ts} +0 -0
- /package/{tools/events/index.ts → build/tools/events/index.d.ts} +0 -0
- /package/{tools/index.ts → build/tools/index.d.ts} +0 -0
- /package/{tools/models/index.ts → build/tools/models/index.d.ts} +0 -0
- /package/{tools/queries/index.ts → build/tools/queries/index.d.ts} +0 -0
- /package/{tools/routes/index.ts → build/tools/routes/index.d.ts} +0 -0
- /package/{tts/commands/index.ts → build/tts/commands/index.d.ts} +0 -0
- /package/{tts/enums/index.ts → build/tts/enums/index.d.ts} +0 -0
- /package/{tts/index.ts → build/tts/index.d.ts} +0 -0
- /package/{tts/models/index.ts → build/tts/models/index.d.ts} +0 -0
- /package/{tts/queries/index.ts → build/tts/queries/index.d.ts} +0 -0
- /package/{tts/routes/index.ts → build/tts/routes/index.d.ts} +0 -0
- /package/{video/commands/index.ts → build/video/commands/index.d.ts} +0 -0
- /package/{video/commands/video-model/index.ts → build/video/commands/video-model/index.d.ts} +0 -0
- /package/{video/const/index.ts → build/video/const/index.d.ts} +0 -0
- /package/{video/enums/index.ts → build/video/enums/index.d.ts} +0 -0
- /package/{video/index.ts → build/video/index.d.ts} +0 -0
- /package/{video/models/index.ts → build/video/models/index.d.ts} +0 -0
- /package/{video/queries/index.ts → build/video/queries/index.d.ts} +0 -0
- /package/{video/routes/index.ts → build/video/routes/index.d.ts} +0 -0
- /package/{video/utils/index.ts → build/video/utils/index.d.ts} +0 -0
- /package/{video-editor/commands/index.ts → build/video-editor/commands/index.d.ts} +0 -0
- /package/{video-editor/commands/video-editor-model/index.ts → build/video-editor/commands/video-editor-model/index.d.ts} +0 -0
- /package/{video-editor/enums/index.ts → build/video-editor/enums/index.d.ts} +0 -0
- /package/{video-editor/index.ts → build/video-editor/index.d.ts} +0 -0
- /package/{video-editor/models/index.ts → build/video-editor/models/index.d.ts} +0 -0
- /package/{video-editor/queries/index.ts → build/video-editor/queries/index.d.ts} +0 -0
- /package/{video-editor/routes/index.ts → build/video-editor/routes/index.d.ts} +0 -0
- /package/{video-editor/utils/index.ts → build/video-editor/utils/index.d.ts} +0 -0
- /package/{writer/commands/index.ts → build/writer/commands/index.d.ts} +0 -0
- /package/{writer/enums/index.ts → build/writer/enums/index.d.ts} +0 -0
- /package/{writer/index.ts → build/writer/index.d.ts} +0 -0
- /package/{writer/models/index.ts → build/writer/models/index.d.ts} +0 -0
- /package/{writer/queries/index.ts → build/writer/queries/index.d.ts} +0 -0
- /package/{writer/routes/index.ts → build/writer/routes/index.d.ts} +0 -0
- /package/{writer/utils/index.ts → build/writer/utils/index.d.ts} +0 -0
|
@@ -1,582 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SLIDE_CONTENT_TYPE } from '../enums';
|
|
3
|
-
|
|
4
|
-
export enum SLIDE_CHART_TYPE {
|
|
5
|
-
BAR = 'BAR',
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const ImageSlotSchema = z.object({
|
|
9
|
-
uuid: z
|
|
10
|
-
.string()
|
|
11
|
-
.uuid()
|
|
12
|
-
.describe('UUID assigned by the backend after generation, used for future lookups'),
|
|
13
|
-
prompt: z
|
|
14
|
-
.string()
|
|
15
|
-
.describe(
|
|
16
|
-
'Image generation prompt. MUST be written in ENGLISH regardless of the presentation language. ' +
|
|
17
|
-
'AI image generators excel at: atmospheric scenes, landscapes, cityscapes, architecture, nature, abstract light and texture, anonymous silhouettes, artistic photography. ' +
|
|
18
|
-
'AI fundamentally cannot render accurately: legible text on any surface, complex diagrams or flowcharts, data charts/graphs, specific product logos, clocks, precise mechanical parts. ' +
|
|
19
|
-
'Choose scene types from the first category. Avoid anything in the second. ' +
|
|
20
|
-
'Structure: [subject/scene] → [mood/atmosphere] → [lighting] → [visual style]. ' +
|
|
21
|
-
'Evoke the emotional register of the slide — do not illustrate the topic literally. ' +
|
|
22
|
-
'MODERATION: if the slide topic involves conflict, suffering, politics, or crime, redirect to abstract/atmospheric imagery (fog, ruins, empty landscapes) rather than depicting the subject directly — flagged prompts produce empty placeholders. ' +
|
|
23
|
-
'GOOD: "A lone figure on an observation deck at dusk gazing over an illuminated city. Cinematic wide-angle, golden-hour light, photorealistic." ' +
|
|
24
|
-
'BAD: "A bar chart showing quarterly growth. A robot at a laptop with code on the screen."',
|
|
25
|
-
),
|
|
26
|
-
});
|
|
27
|
-
export type ImageSlot = z.infer<typeof ImageSlotSchema>;
|
|
28
|
-
|
|
29
|
-
export const IconSlotSchema = z.object({
|
|
30
|
-
uuid: z
|
|
31
|
-
.string()
|
|
32
|
-
.uuid()
|
|
33
|
-
.describe('UUID assigned by the backend after generation, used for future lookups'),
|
|
34
|
-
prompt: z.string().describe('Provide a search query for an fitting icon. MUST BE IN ENGLISH'),
|
|
35
|
-
});
|
|
36
|
-
export type IconSlot = z.infer<typeof IconSlotSchema>;
|
|
37
|
-
|
|
38
|
-
export interface ICoverSlideDataStructure {
|
|
39
|
-
contentType: SLIDE_CONTENT_TYPE.COVER;
|
|
40
|
-
title: string;
|
|
41
|
-
author?: { label: string; value: string };
|
|
42
|
-
date?: { label: string; value: string };
|
|
43
|
-
email?: { label: string; value: string };
|
|
44
|
-
version: 1;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface IThankYouSlideDataStructure {
|
|
48
|
-
contentType: SLIDE_CONTENT_TYPE.THANK_YOU;
|
|
49
|
-
title: string;
|
|
50
|
-
author?: { label: string; value: string };
|
|
51
|
-
date?: { label: string; value: string };
|
|
52
|
-
email?: { label: string; value: string };
|
|
53
|
-
version: 1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ITextSlideDataStructure {
|
|
57
|
-
contentType: SLIDE_CONTENT_TYPE.TEXT;
|
|
58
|
-
title: string;
|
|
59
|
-
description: string;
|
|
60
|
-
version: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface IStructuredListSlideDataStructure {
|
|
64
|
-
contentType: SLIDE_CONTENT_TYPE.STRUCTURED_LIST;
|
|
65
|
-
title: string;
|
|
66
|
-
description: string;
|
|
67
|
-
list: Array<{ title: string; description: string }>;
|
|
68
|
-
version: 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface IContentsSlideDataStructure {
|
|
72
|
-
contentType: SLIDE_CONTENT_TYPE.CONTENTS;
|
|
73
|
-
title: string;
|
|
74
|
-
items: Array<{ pageNumber: number; title: string }>;
|
|
75
|
-
version: 1;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface IImageSlideDataStructure {
|
|
79
|
-
contentType: SLIDE_CONTENT_TYPE.TEXT_WITH_IMAGE;
|
|
80
|
-
title: string;
|
|
81
|
-
description: string;
|
|
82
|
-
imageSlot?: ImageSlot;
|
|
83
|
-
version: 1;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface ISectionBreakSlideDataStructure {
|
|
87
|
-
contentType: SLIDE_CONTENT_TYPE.SECTION_BREAK;
|
|
88
|
-
title: string;
|
|
89
|
-
description: string;
|
|
90
|
-
version: 1;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface ITableSlideDataStructure {
|
|
94
|
-
contentType: SLIDE_CONTENT_TYPE.TABLE;
|
|
95
|
-
title: string;
|
|
96
|
-
description: string;
|
|
97
|
-
table: {
|
|
98
|
-
columnHeaders: string[];
|
|
99
|
-
rows: string[][];
|
|
100
|
-
hasRowHeaders: boolean;
|
|
101
|
-
hasSummaryRow: boolean;
|
|
102
|
-
};
|
|
103
|
-
version: 1;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface IBarChartSlideDataStructure {
|
|
107
|
-
type: SLIDE_CHART_TYPE.BAR;
|
|
108
|
-
categories: string[];
|
|
109
|
-
series: Array<{ name: string; data: number[]; type: number }>;
|
|
110
|
-
yAxisLabel?: string;
|
|
111
|
-
unit?: string;
|
|
112
|
-
version: 1;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export interface IChartSlideDataStructure {
|
|
116
|
-
contentType: SLIDE_CONTENT_TYPE.CHART;
|
|
117
|
-
title: string;
|
|
118
|
-
description: string;
|
|
119
|
-
chart: IBarChartSlideDataStructure;
|
|
120
|
-
version: 1;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export interface ITimelineSlideDataStructure {
|
|
124
|
-
contentType: SLIDE_CONTENT_TYPE.TIMELINE;
|
|
125
|
-
title: string;
|
|
126
|
-
description: string;
|
|
127
|
-
timeline: {
|
|
128
|
-
events: Array<{
|
|
129
|
-
date: string;
|
|
130
|
-
title: string;
|
|
131
|
-
description: string;
|
|
132
|
-
}>;
|
|
133
|
-
};
|
|
134
|
-
version: 1;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export const CoverSlideDataSchema = z.object({
|
|
138
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.COVER),
|
|
139
|
-
title: z.string().describe('Slide title in about 6 words').min(10).max(150),
|
|
140
|
-
author: z
|
|
141
|
-
.object({
|
|
142
|
-
label: z.string().describe('Literal "Author" in presentation\'s language'),
|
|
143
|
-
value: z.string().describe('Author value from titlePage if provided'),
|
|
144
|
-
})
|
|
145
|
-
.optional(),
|
|
146
|
-
date: z
|
|
147
|
-
.object({
|
|
148
|
-
label: z.string().describe('Literal "Date" in presentation\'s language'),
|
|
149
|
-
value: z
|
|
150
|
-
.string()
|
|
151
|
-
.describe(
|
|
152
|
-
'Date from titlePage in the "dd month yyyy" format in presentation\'s locale',
|
|
153
|
-
),
|
|
154
|
-
})
|
|
155
|
-
.optional(),
|
|
156
|
-
email: z
|
|
157
|
-
.object({
|
|
158
|
-
label: z.string().describe('Localized contact/email label'),
|
|
159
|
-
value: z.string().describe('Email value from titlePage if provided'),
|
|
160
|
-
})
|
|
161
|
-
.optional(),
|
|
162
|
-
version: z.literal(1),
|
|
163
|
-
}) satisfies z.ZodType<ICoverSlideDataStructure>;
|
|
164
|
-
export type CoverSlideData = z.infer<typeof CoverSlideDataSchema>;
|
|
165
|
-
|
|
166
|
-
export const ThankYouSlideDataSchema = z.object({
|
|
167
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.THANK_YOU),
|
|
168
|
-
title: z
|
|
169
|
-
.string()
|
|
170
|
-
.describe('"Thank you for your attention" in presentation\'s language')
|
|
171
|
-
.min(10)
|
|
172
|
-
.max(150),
|
|
173
|
-
author: z
|
|
174
|
-
.object({
|
|
175
|
-
label: z.string().describe('Literal "Author" in presentation\'s language'),
|
|
176
|
-
value: z.string().describe('Author value from titlePage if provided'),
|
|
177
|
-
})
|
|
178
|
-
.optional(),
|
|
179
|
-
date: z
|
|
180
|
-
.object({
|
|
181
|
-
label: z.string().describe('Literal "Date" in presentation\'s language'),
|
|
182
|
-
value: z
|
|
183
|
-
.string()
|
|
184
|
-
.describe(
|
|
185
|
-
'Date from titlePage in the "dd month yyyy" format in presentation\'s locale',
|
|
186
|
-
),
|
|
187
|
-
})
|
|
188
|
-
.optional(),
|
|
189
|
-
email: z
|
|
190
|
-
.object({
|
|
191
|
-
label: z.string().describe('Localized contact/email label'),
|
|
192
|
-
value: z.string().describe('Email value from titlePage if provided'),
|
|
193
|
-
})
|
|
194
|
-
.optional(),
|
|
195
|
-
version: z.literal(1),
|
|
196
|
-
}) satisfies z.ZodType<IThankYouSlideDataStructure>;
|
|
197
|
-
export type ThankYouSlideData = z.infer<typeof ThankYouSlideDataSchema>;
|
|
198
|
-
|
|
199
|
-
export const StructuredListSlideDataSchema = z.object({
|
|
200
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.STRUCTURED_LIST),
|
|
201
|
-
title: z
|
|
202
|
-
.string()
|
|
203
|
-
.describe(
|
|
204
|
-
'Slide headline — 2–4 words naming the group. A noun phrase, NOT a full sentence. Displayed in very large font on the left panel.',
|
|
205
|
-
)
|
|
206
|
-
.min(5)
|
|
207
|
-
.max(40),
|
|
208
|
-
description: z
|
|
209
|
-
.string()
|
|
210
|
-
.describe(
|
|
211
|
-
'One framing sentence answering "What are these 4 things about?". Displayed in small text below the title on the left panel.',
|
|
212
|
-
)
|
|
213
|
-
.min(30)
|
|
214
|
-
.max(80),
|
|
215
|
-
list: z
|
|
216
|
-
.array(
|
|
217
|
-
z.object({
|
|
218
|
-
title: z
|
|
219
|
-
.string()
|
|
220
|
-
.describe(
|
|
221
|
-
'2–4 concrete words. A noun phrase or short verb phrase. All 4 titles MUST be grammatically parallel. Displayed in bold next to a large number (01–04).',
|
|
222
|
-
)
|
|
223
|
-
.min(3)
|
|
224
|
-
.max(30),
|
|
225
|
-
description: z
|
|
226
|
-
.string()
|
|
227
|
-
.describe(
|
|
228
|
-
'ONE complete sentence that expands on the title with a specific fact or benefit. NEVER just restate the title. NEVER cut short mid-word or mid-sentence. All 4 descriptions must be roughly equal in length.',
|
|
229
|
-
)
|
|
230
|
-
.min(50)
|
|
231
|
-
.max(100),
|
|
232
|
-
}),
|
|
233
|
-
)
|
|
234
|
-
.length(4),
|
|
235
|
-
version: z.literal(1),
|
|
236
|
-
}) satisfies z.ZodType<IStructuredListSlideDataStructure>;
|
|
237
|
-
export type StructuredListSlideData = z.infer<typeof StructuredListSlideDataSchema>;
|
|
238
|
-
|
|
239
|
-
export const TextSlideDataSchema = z.object({
|
|
240
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.TEXT),
|
|
241
|
-
title: z
|
|
242
|
-
.string()
|
|
243
|
-
.describe(
|
|
244
|
-
'Slide headline rendered in very large bold font. Keep to 3–7 words (max 70 characters). It should name the topic or thesis — not summarise all content.',
|
|
245
|
-
)
|
|
246
|
-
.min(10)
|
|
247
|
-
.max(70),
|
|
248
|
-
description: z
|
|
249
|
-
.string()
|
|
250
|
-
.describe(
|
|
251
|
-
'Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length 180–800 characters. ' +
|
|
252
|
-
'Use **bold** to highlight 1–3 key terms per paragraph (NOT entire sentences). ' +
|
|
253
|
-
'Use *italics* for definitions, counter-points, or light emphasis (1 per paragraph max). ' +
|
|
254
|
-
'NO bullet points, NO markdown headers, NO numbered lists. ' +
|
|
255
|
-
'Each paragraph covers ONE focused idea: e.g. context → main argument → implication. ' +
|
|
256
|
-
'Do NOT start consecutive paragraphs with the same word. Do NOT cut text short mid-sentence.',
|
|
257
|
-
)
|
|
258
|
-
.min(180)
|
|
259
|
-
.max(800),
|
|
260
|
-
version: z.literal(1),
|
|
261
|
-
}) satisfies z.ZodType<ITextSlideDataStructure>;
|
|
262
|
-
export type TextSlideData = z.infer<typeof TextSlideDataSchema>;
|
|
263
|
-
|
|
264
|
-
export const ContentsSlideDataSchema = z.object({
|
|
265
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.CONTENTS),
|
|
266
|
-
title: z
|
|
267
|
-
.string()
|
|
268
|
-
.describe(
|
|
269
|
-
'This slide represents table of contents for the presentation and must be named "Contents" in the presentation language',
|
|
270
|
-
)
|
|
271
|
-
.min(10)
|
|
272
|
-
.max(200),
|
|
273
|
-
items: z
|
|
274
|
-
.array(
|
|
275
|
-
z.object({
|
|
276
|
-
pageNumber: z.number().describe('Page number of the slide'),
|
|
277
|
-
title: z.string().min(1).describe('Title of the slide on said page'),
|
|
278
|
-
}),
|
|
279
|
-
)
|
|
280
|
-
.min(1)
|
|
281
|
-
.describe(
|
|
282
|
-
'List of slide titles. Must be relevant and generated after all the slides are generated',
|
|
283
|
-
),
|
|
284
|
-
version: z.literal(1),
|
|
285
|
-
}) satisfies z.ZodType<IContentsSlideDataStructure>;
|
|
286
|
-
export type ContentsSlideData = z.infer<typeof ContentsSlideDataSchema>;
|
|
287
|
-
|
|
288
|
-
export const ImageSlideDataSchema = z
|
|
289
|
-
.object({
|
|
290
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.TEXT_WITH_IMAGE),
|
|
291
|
-
title: z
|
|
292
|
-
.string()
|
|
293
|
-
.describe(
|
|
294
|
-
'Slide headline rendered in very large bold font on the LEFT column. Keep to 3–7 words (max 70 characters). Aim for under 50 characters to avoid overflow. A noun phrase or short declarative phrase — NOT a full sentence.',
|
|
295
|
-
)
|
|
296
|
-
.min(10)
|
|
297
|
-
.max(70),
|
|
298
|
-
description: z
|
|
299
|
-
.string()
|
|
300
|
-
.describe(
|
|
301
|
-
'Expository prose in 2 paragraphs separated by \\n\\n (double newline). Total length 150–500 characters. ' +
|
|
302
|
-
'Use **bold** for 1–2 key terms per paragraph (NOT entire sentences). ' +
|
|
303
|
-
'Use *italics* for definitions or emphasis at most once per paragraph. ' +
|
|
304
|
-
'NO bullet points, NO headers, NO numbered lists. ' +
|
|
305
|
-
'Each paragraph covers ONE focused idea. NEVER reference or describe the image in the text. ' +
|
|
306
|
-
'The image provides visual atmosphere — the text must stand alone as complete, readable prose.',
|
|
307
|
-
)
|
|
308
|
-
.min(150)
|
|
309
|
-
.max(500),
|
|
310
|
-
imageSlot: ImageSlotSchema,
|
|
311
|
-
version: z.literal(1),
|
|
312
|
-
})
|
|
313
|
-
.describe(
|
|
314
|
-
'Slide with a large title and prose description on the left, and a full-bleed supporting image on the right.',
|
|
315
|
-
) satisfies z.ZodType<IImageSlideDataStructure>;
|
|
316
|
-
export type ImageSlideData = z.infer<typeof ImageSlideDataSchema>;
|
|
317
|
-
|
|
318
|
-
export const SectionBreakSlideDataSchema = z.object({
|
|
319
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.SECTION_BREAK),
|
|
320
|
-
title: z
|
|
321
|
-
.string()
|
|
322
|
-
.describe(
|
|
323
|
-
'The section name — a clean noun phrase of 3–6 words that names the thematic block which follows. ' +
|
|
324
|
-
'NEVER prefix with "Раздел:", "Section:", "Part:", "Глава:", or any structural label. ' +
|
|
325
|
-
'NEVER include numbers. Just the name itself. ' +
|
|
326
|
-
'GOOD: "Технологические достижения". BAD: "Раздел 2: Технологические достижения".',
|
|
327
|
-
)
|
|
328
|
-
.min(5)
|
|
329
|
-
.max(60),
|
|
330
|
-
description: z
|
|
331
|
-
.string()
|
|
332
|
-
.describe(
|
|
333
|
-
'One sentence (up to 100 characters) that briefly hints at the content of the upcoming section. ' +
|
|
334
|
-
'Should complement the title without repeating it. No markdown, no labels.',
|
|
335
|
-
)
|
|
336
|
-
.min(10)
|
|
337
|
-
.max(120),
|
|
338
|
-
version: z.literal(1),
|
|
339
|
-
}) satisfies z.ZodType<ISectionBreakSlideDataStructure>;
|
|
340
|
-
export type SectionBreakSlideData = z.infer<typeof SectionBreakSlideDataSchema>;
|
|
341
|
-
|
|
342
|
-
export const TableSlideDataSchema = z.object({
|
|
343
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.TABLE),
|
|
344
|
-
title: z
|
|
345
|
-
.string()
|
|
346
|
-
.describe(
|
|
347
|
-
'Table name — 2–4 words rendered as large bold heading above the table. ' +
|
|
348
|
-
'Doubles as both the slide title and the table heading. Keep concise.',
|
|
349
|
-
)
|
|
350
|
-
.min(5)
|
|
351
|
-
.max(55),
|
|
352
|
-
description: z
|
|
353
|
-
.string()
|
|
354
|
-
.describe(
|
|
355
|
-
'One short sentence (max 80 characters) describing what the table shows. ' +
|
|
356
|
-
'Rendered in small gray text below the title. No markdown.',
|
|
357
|
-
)
|
|
358
|
-
.min(10)
|
|
359
|
-
.max(100),
|
|
360
|
-
table: z.object({
|
|
361
|
-
columnHeaders: z
|
|
362
|
-
.array(
|
|
363
|
-
z
|
|
364
|
-
.string()
|
|
365
|
-
.min(1)
|
|
366
|
-
.max(20)
|
|
367
|
-
.describe(
|
|
368
|
-
'Column label. Keep SHORT — 1–3 words. Include units here (e.g., "Сумма, ₽"), not in cells. ' +
|
|
369
|
-
'When hasRowHeaders is true, the first header should be a single space " " or a short category label.',
|
|
370
|
-
),
|
|
371
|
-
)
|
|
372
|
-
.min(2)
|
|
373
|
-
.max(5)
|
|
374
|
-
.describe(
|
|
375
|
-
'Column header labels. MAXIMUM 5 columns total. Recommended 3–4 data columns. ' +
|
|
376
|
-
'More columns will overflow the slide — NEVER exceed 5.',
|
|
377
|
-
),
|
|
378
|
-
rows: z
|
|
379
|
-
.array(
|
|
380
|
-
z
|
|
381
|
-
.array(
|
|
382
|
-
z
|
|
383
|
-
.string()
|
|
384
|
-
.min(1)
|
|
385
|
-
.max(40)
|
|
386
|
-
.describe(
|
|
387
|
-
'Cell content. NUMERIC tables: numbers only (e.g., "1 200", "85%"). ' +
|
|
388
|
-
'TEXTUAL tables: 1–3 words maximum — keywords or short phrases ONLY, NEVER full sentences. ' +
|
|
389
|
-
'Row header cells (first cell when hasRowHeaders=true): category label, max 22 characters.',
|
|
390
|
-
),
|
|
391
|
-
)
|
|
392
|
-
.describe('One row. Cell count MUST equal columnHeaders length exactly.'),
|
|
393
|
-
)
|
|
394
|
-
.min(2)
|
|
395
|
-
.max(4)
|
|
396
|
-
.describe(
|
|
397
|
-
'Table rows. Max 4 rows total. ' +
|
|
398
|
-
'When hasSummaryRow is true, the LAST row is the summary row — so at most 3 regular rows + 1 summary = 4 total. ' +
|
|
399
|
-
'NEVER exceed 4 rows.',
|
|
400
|
-
),
|
|
401
|
-
hasRowHeaders: z
|
|
402
|
-
.boolean()
|
|
403
|
-
.describe(
|
|
404
|
-
'True when the first cell of each row is a descriptive label or category (pivot table). ' +
|
|
405
|
-
'False for plain data tables where all cells are equivalent data.',
|
|
406
|
-
),
|
|
407
|
-
hasSummaryRow: z
|
|
408
|
-
.boolean()
|
|
409
|
-
.describe(
|
|
410
|
-
'True when the last row contains totals, averages, or aggregated values. ' +
|
|
411
|
-
'That summary row must be the last element of the rows array.',
|
|
412
|
-
),
|
|
413
|
-
}),
|
|
414
|
-
version: z.literal(1),
|
|
415
|
-
}) satisfies z.ZodType<ITableSlideDataStructure>;
|
|
416
|
-
export type TableSlideData = z.infer<typeof TableSlideDataSchema>;
|
|
417
|
-
|
|
418
|
-
// Charts
|
|
419
|
-
export const BarChartSlideDataSchema = z.object({
|
|
420
|
-
type: z.literal(SLIDE_CHART_TYPE.BAR),
|
|
421
|
-
categories: z
|
|
422
|
-
.array(z.string().min(1).max(20))
|
|
423
|
-
.min(3)
|
|
424
|
-
.max(10)
|
|
425
|
-
.describe(
|
|
426
|
-
'Category labels (e.g., months, product names, departments). ' +
|
|
427
|
-
'Recommended: 4–8 items. Keep each label SHORT — 1–3 words, max 15 characters. ' +
|
|
428
|
-
'Categories work best when naturally ordered: time periods, rankings, or comparable groups.',
|
|
429
|
-
),
|
|
430
|
-
series: z
|
|
431
|
-
.array(
|
|
432
|
-
z.object({
|
|
433
|
-
name: z
|
|
434
|
-
.string()
|
|
435
|
-
.max(40)
|
|
436
|
-
.describe(
|
|
437
|
-
'Series name shown in the chart legend. Do NOT include units here — units belong in the unit field. ' +
|
|
438
|
-
'GOOD: "Рост продаж". BAD: "Рост продаж (%)" or "Выручка (₽)".',
|
|
439
|
-
),
|
|
440
|
-
data: z
|
|
441
|
-
.array(z.number())
|
|
442
|
-
.min(3)
|
|
443
|
-
.describe(
|
|
444
|
-
'Numeric values corresponding to categories. ' +
|
|
445
|
-
'MUST have EXACTLY the same number of values as categories — mismatch will break the chart. ' +
|
|
446
|
-
'Use round numbers or simple approximations. NEVER hallucinate precise figures. ' +
|
|
447
|
-
'Values should show meaningful variation — avoid all bars being the same height.',
|
|
448
|
-
),
|
|
449
|
-
type: z
|
|
450
|
-
.number()
|
|
451
|
-
.min(0)
|
|
452
|
-
.max(11)
|
|
453
|
-
.describe(
|
|
454
|
-
'Color index from the theme palette. ALWAYS use 0 (primary blue). Never change this value.',
|
|
455
|
-
),
|
|
456
|
-
}),
|
|
457
|
-
)
|
|
458
|
-
.min(1)
|
|
459
|
-
.max(1)
|
|
460
|
-
.describe('Data series. Only ONE series is supported. Never add more than one.'),
|
|
461
|
-
yAxisLabel: z
|
|
462
|
-
.string()
|
|
463
|
-
.max(30)
|
|
464
|
-
.optional()
|
|
465
|
-
.describe(
|
|
466
|
-
'Y-axis label. Include ONLY when the axis needs a descriptor that is not already covered by the unit field. ' +
|
|
467
|
-
'GOOD use: "Количество студентов" (when there is no unit symbol). ' +
|
|
468
|
-
'OMIT when unit is set (e.g., "%", "₽") — the unit already contextualises the values.',
|
|
469
|
-
),
|
|
470
|
-
unit: z
|
|
471
|
-
.string()
|
|
472
|
-
.max(10)
|
|
473
|
-
.optional()
|
|
474
|
-
.describe(
|
|
475
|
-
'Unit symbol displayed with each bar value (e.g., "%", "₽", "шт.", "млн"). ' +
|
|
476
|
-
'ALWAYS include when values represent percentages, currency, or any measurable quantity with a unit. ' +
|
|
477
|
-
'Omit only for dimensionless counts that are self-explanatory (e.g., raw ranking scores without a fixed scale).',
|
|
478
|
-
),
|
|
479
|
-
version: z.literal(1),
|
|
480
|
-
}) satisfies z.ZodType<IBarChartSlideDataStructure>;
|
|
481
|
-
export type BarChartSlideData = z.infer<typeof BarChartSlideDataSchema>;
|
|
482
|
-
|
|
483
|
-
export const ChartSlideDataSchema = z.object({
|
|
484
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.CHART),
|
|
485
|
-
title: z
|
|
486
|
-
.string()
|
|
487
|
-
.describe(
|
|
488
|
-
'Chart name — 2–4 words rendered as large bold heading on the LEFT panel of the slide. ' +
|
|
489
|
-
'Keep short: the left panel is narrow and the title font is very large.',
|
|
490
|
-
)
|
|
491
|
-
.min(5)
|
|
492
|
-
.max(50),
|
|
493
|
-
description: z
|
|
494
|
-
.string()
|
|
495
|
-
.describe(
|
|
496
|
-
'1–2 sentences (max 120 characters) explaining what the chart shows. ' +
|
|
497
|
-
'Rendered in small gray text below the title on the LEFT panel. No markdown.',
|
|
498
|
-
)
|
|
499
|
-
.min(10)
|
|
500
|
-
.max(150),
|
|
501
|
-
chart: z.discriminatedUnion('type', [BarChartSlideDataSchema]),
|
|
502
|
-
version: z.literal(1),
|
|
503
|
-
}) satisfies z.ZodType<IChartSlideDataStructure>;
|
|
504
|
-
export type ChartSlideData = z.infer<typeof ChartSlideDataSchema>;
|
|
505
|
-
|
|
506
|
-
export const TimelineSlideDataSchema = z.object({
|
|
507
|
-
contentType: z.literal(SLIDE_CONTENT_TYPE.TIMELINE),
|
|
508
|
-
title: z
|
|
509
|
-
.string()
|
|
510
|
-
.describe(
|
|
511
|
-
'Timeline name — 2–5 words, rendered as large bold heading above the timeline. ' +
|
|
512
|
-
'Names the subject or scope of the chronological sequence.',
|
|
513
|
-
)
|
|
514
|
-
.min(5)
|
|
515
|
-
.max(65),
|
|
516
|
-
description: z
|
|
517
|
-
.string()
|
|
518
|
-
.describe(
|
|
519
|
-
'One sentence (max 100 characters) providing context for the timeline. ' +
|
|
520
|
-
'Rendered in small gray text below the title. No markdown.',
|
|
521
|
-
)
|
|
522
|
-
.min(10)
|
|
523
|
-
.max(120),
|
|
524
|
-
timeline: z.object({
|
|
525
|
-
events: z
|
|
526
|
-
.array(
|
|
527
|
-
z.object({
|
|
528
|
-
date: z
|
|
529
|
-
.string()
|
|
530
|
-
.describe(
|
|
531
|
-
'Temporal label displayed inside the arrow/chevron shape at the top of each column. ' +
|
|
532
|
-
'MUST be SHORT — max 20 characters — to fit inside the arrow. ' +
|
|
533
|
-
'Use a year ("2015"), a range ("2010–2015"), a quarter ("Q1 2023"), ' +
|
|
534
|
-
'an approximate period ("Early 2020s", "Середина 2010-х"), ' +
|
|
535
|
-
'or a phase label ("Этап 1", "Запуск") for process timelines. ' +
|
|
536
|
-
'NEVER fabricate specific dates you are not certain about.',
|
|
537
|
-
)
|
|
538
|
-
.min(2)
|
|
539
|
-
.max(25),
|
|
540
|
-
title: z
|
|
541
|
-
.string()
|
|
542
|
-
.describe(
|
|
543
|
-
'Event name in bold below the arrow. 2–3 words maximum. ' +
|
|
544
|
-
'Short and punchy — the column is narrow, long titles wrap to many lines. ' +
|
|
545
|
-
'GOOD: "Первый запуск", "Выход на рынок". BAD: "Успешный выход компании на международный рынок".',
|
|
546
|
-
)
|
|
547
|
-
.min(3)
|
|
548
|
-
.max(35),
|
|
549
|
-
description: z
|
|
550
|
-
.string()
|
|
551
|
-
.describe(
|
|
552
|
-
'Brief description below the event title. 1–2 sentences, max 100 characters. ' +
|
|
553
|
-
'The column is narrow — text wraps to ~5 lines at this limit. ' +
|
|
554
|
-
'Do NOT exceed 100 characters or the description will overflow off the slide.',
|
|
555
|
-
)
|
|
556
|
-
.min(20)
|
|
557
|
-
.max(110),
|
|
558
|
-
}),
|
|
559
|
-
)
|
|
560
|
-
.length(5)
|
|
561
|
-
.describe(
|
|
562
|
-
'Exactly 5 chronological events in sequential order (oldest → newest). ' +
|
|
563
|
-
'The template renders exactly 5 equal columns — NEVER generate fewer or more.',
|
|
564
|
-
),
|
|
565
|
-
}),
|
|
566
|
-
version: z.literal(1),
|
|
567
|
-
}) satisfies z.ZodType<ITimelineSlideDataStructure>;
|
|
568
|
-
export type TimelineSlideData = z.infer<typeof TimelineSlideDataSchema>;
|
|
569
|
-
|
|
570
|
-
export const SlideContentSchema = z.discriminatedUnion('contentType', [
|
|
571
|
-
CoverSlideDataSchema,
|
|
572
|
-
StructuredListSlideDataSchema,
|
|
573
|
-
TextSlideDataSchema,
|
|
574
|
-
ContentsSlideDataSchema,
|
|
575
|
-
SectionBreakSlideDataSchema,
|
|
576
|
-
ImageSlideDataSchema,
|
|
577
|
-
ThankYouSlideDataSchema,
|
|
578
|
-
TableSlideDataSchema,
|
|
579
|
-
ChartSlideDataSchema,
|
|
580
|
-
TimelineSlideDataSchema,
|
|
581
|
-
]);
|
|
582
|
-
export type SlideContent = z.infer<typeof SlideContentSchema>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SLIDE_ICON_SLOT_STATUS } from '../enums';
|
|
3
|
-
|
|
4
|
-
export const SlideIconSlotSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
prompt: z.string(),
|
|
7
|
-
alt: z.string(),
|
|
8
|
-
url: z.string().nullable(),
|
|
9
|
-
slideId: z.string(),
|
|
10
|
-
status: z.nativeEnum(SLIDE_ICON_SLOT_STATUS),
|
|
11
|
-
createdAt: z.date(),
|
|
12
|
-
updatedAt: z.date(),
|
|
13
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SLIDE_IMAGE_SLOT_STATUS } from '../enums';
|
|
3
|
-
|
|
4
|
-
export const SlideImageSlotSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
prompt: z.string(),
|
|
7
|
-
alt: z.string(),
|
|
8
|
-
url: z.string().nullable(),
|
|
9
|
-
placeholder: z.string(),
|
|
10
|
-
slideId: z.string(),
|
|
11
|
-
status: z.nativeEnum(SLIDE_IMAGE_SLOT_STATUS),
|
|
12
|
-
createdAt: z.date(),
|
|
13
|
-
updatedAt: z.date(),
|
|
14
|
-
});
|
|
15
|
-
export type SlideImageSlot = z.infer<typeof SlideImageSlotSchema>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SLIDE_CONTENT_TYPE } from '../enums';
|
|
3
|
-
|
|
4
|
-
export const SlideOutlineSchema = z.object({
|
|
5
|
-
uuid: z.string(),
|
|
6
|
-
order: z.number(),
|
|
7
|
-
title: z.string().max(80),
|
|
8
|
-
body: z.string().max(500),
|
|
9
|
-
contentTypeId: z.nativeEnum(SLIDE_CONTENT_TYPE),
|
|
10
|
-
presentationId: z.string(),
|
|
11
|
-
createdAt: z.date(),
|
|
12
|
-
updatedAt: z.date(),
|
|
13
|
-
});
|
|
14
|
-
export type SlideOutline = z.infer<typeof SlideOutlineSchema>;
|
|
15
|
-
|
|
16
|
-
export const SlideOutlineUpdateSchema = SlideOutlineSchema.pick({
|
|
17
|
-
title: true,
|
|
18
|
-
body: true,
|
|
19
|
-
contentTypeId: true,
|
|
20
|
-
}).partial();
|
|
21
|
-
export type SlideOutlineUpdate = z.infer<typeof SlideOutlineUpdateSchema>;
|
|
22
|
-
|
|
23
|
-
export const SlideOutlineBulkUpdateSchema = SlideOutlineSchema.pick({
|
|
24
|
-
order: true,
|
|
25
|
-
title: true,
|
|
26
|
-
body: true,
|
|
27
|
-
contentTypeId: true,
|
|
28
|
-
presentationId: true,
|
|
29
|
-
})
|
|
30
|
-
.extend({
|
|
31
|
-
uuid: z.string().uuid().optional(),
|
|
32
|
-
})
|
|
33
|
-
.array()
|
|
34
|
-
.min(1, 'Must include at least one slide outline')
|
|
35
|
-
.refine(
|
|
36
|
-
(arr) => {
|
|
37
|
-
const orders = arr.map((s) => s.order);
|
|
38
|
-
const unique = new Set(orders);
|
|
39
|
-
if (unique.size !== orders.length) return false;
|
|
40
|
-
const sorted = [...orders].sort((a, b) => a - b);
|
|
41
|
-
return sorted.every((val, idx) => val === idx);
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
message: 'Slide orders must be unique and sequential starting at 0',
|
|
45
|
-
path: ['order'],
|
|
46
|
-
},
|
|
47
|
-
)
|
|
48
|
-
.refine(
|
|
49
|
-
(arr) => {
|
|
50
|
-
const [firstId, ...rest] = arr.map((s) => s.presentationId);
|
|
51
|
-
return rest.every((id) => id === firstId);
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
message: 'All slide outlines must belong to the same presentation',
|
|
55
|
-
path: ['presentationId'],
|
|
56
|
-
},
|
|
57
|
-
);
|
|
58
|
-
export type SlideOutlineBulkUpdate = z.infer<typeof SlideOutlineBulkUpdateSchema>;
|