@shumai-one/shumai-transcode 0.4.8 → 0.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shumai-one/shumai-transcode",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Media transcoding worker for the shumai media workspace",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,12 +27,12 @@
27
27
  "zod": "4.5.4"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@shumai-one/shumai-transcode-darwin-arm64": "0.4.8",
31
- "@shumai-one/shumai-transcode-darwin-x64": "0.4.8",
32
- "@shumai-one/shumai-transcode-linux-arm64": "0.4.8",
33
- "@shumai-one/shumai-transcode-linux-x64": "0.4.8",
34
- "@shumai-one/shumai-transcode-win32-arm64": "0.4.8",
35
- "@shumai-one/shumai-transcode-win32-x64": "0.4.8"
30
+ "@shumai-one/shumai-transcode-darwin-arm64": "0.4.9",
31
+ "@shumai-one/shumai-transcode-darwin-x64": "0.4.9",
32
+ "@shumai-one/shumai-transcode-linux-arm64": "0.4.9",
33
+ "@shumai-one/shumai-transcode-linux-x64": "0.4.9",
34
+ "@shumai-one/shumai-transcode-win32-arm64": "0.4.9",
35
+ "@shumai-one/shumai-transcode-win32-x64": "0.4.9"
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",
@@ -0,0 +1,11 @@
1
+ -- CreateEnum
2
+ CREATE TYPE "NotificationEmailStatus" AS ENUM ('pending', 'processing', 'processed', 'failed');
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "notifications" ADD COLUMN "email_status" "NotificationEmailStatus" NOT NULL DEFAULT 'pending';
6
+
7
+ -- Update legacy rows to processed
8
+ UPDATE "notifications" SET "email_status" = 'processed';
9
+
10
+ -- CreateIndex
11
+ CREATE INDEX "notifications_email_status_created_at_idx" ON "notifications"("email_status", "created_at");
@@ -76,6 +76,13 @@ enum NotificationType {
76
76
  kanban_task_comment_created
77
77
  }
78
78
 
79
+ enum NotificationEmailStatus {
80
+ pending
81
+ processing
82
+ processed
83
+ failed
84
+ }
85
+
79
86
  enum ProjectMemberRole {
80
87
  owner
81
88
  editor
@@ -776,9 +783,12 @@ model Notification {
776
783
  userId String? @map("user_id")
777
784
  user User? @relation("UserToNotification", fields: [userId], references: [id])
778
785
 
786
+ emailStatus NotificationEmailStatus @default(pending) @map("email_status")
787
+
779
788
  readByMembers TeamMember? @relation("TeamMemberToLastReadNotification")
780
789
 
781
790
  @@index([kanbanTaskId])
791
+ @@index([emailStatus, createdAt])
782
792
  @@map("notifications")
783
793
  }
784
794
 
File without changes
File without changes
File without changes
File without changes