mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 03:14:11 +00:00
feat(transcode): split monolithic transcodeMedia into focused workflows
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
-- AlterEnum
|
||||
-- This migration adds more than one value to an enum.
|
||||
-- With PostgreSQL versions 11 and earlier, this is not possible
|
||||
-- in a single migration. This can be worked around by creating
|
||||
-- multiple migrations, each migration adding only one value to
|
||||
-- the enum.
|
||||
|
||||
|
||||
ALTER TYPE "WorkflowTaskType" ADD VALUE 'transcode_video';
|
||||
ALTER TYPE "WorkflowTaskType" ADD VALUE 'transcode_image';
|
||||
ALTER TYPE "WorkflowTaskType" ADD VALUE 'transcode_pdf';
|
||||
ALTER TYPE "WorkflowTaskType" ADD VALUE 'transcode_pdf_pages';
|
||||
ALTER TYPE "WorkflowTaskType" ADD VALUE 'transcode_screenshot';
|
||||
ALTER TYPE "WorkflowTaskType" ADD VALUE 'transcode_image_annotation';
|
||||
@@ -100,6 +100,12 @@ enum TeamMemberScope {
|
||||
|
||||
enum WorkflowTaskType {
|
||||
transcode
|
||||
transcode_video
|
||||
transcode_image
|
||||
transcode_pdf
|
||||
transcode_pdf_pages
|
||||
transcode_screenshot
|
||||
transcode_image_annotation
|
||||
ai_metadata_autofill
|
||||
chat
|
||||
ai_embedding
|
||||
|
||||
+6
@@ -126,6 +126,12 @@ export type TeamMemberScope = (typeof TeamMemberScope)[keyof typeof TeamMemberSc
|
||||
|
||||
export const WorkflowTaskType = {
|
||||
transcode: 'transcode',
|
||||
transcode_video: 'transcode_video',
|
||||
transcode_image: 'transcode_image',
|
||||
transcode_pdf: 'transcode_pdf',
|
||||
transcode_pdf_pages: 'transcode_pdf_pages',
|
||||
transcode_screenshot: 'transcode_screenshot',
|
||||
transcode_image_annotation: 'transcode_image_annotation',
|
||||
ai_metadata_autofill: 'ai_metadata_autofill',
|
||||
chat: 'chat',
|
||||
ai_embedding: 'ai_embedding',
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user