diff --git a/src/lib/notifications/index.ts b/src/lib/notifications/index.ts index 6e6e043..3766225 100644 --- a/src/lib/notifications/index.ts +++ b/src/lib/notifications/index.ts @@ -115,6 +115,8 @@ export function notificationLabel(type?: string | null): string { return "Ribbon approved"; case "award:ribbon-rejected": return "Ribbon not approved"; + case "personnel:promoted": + return "Promotion"; default: return type ?? "Notification"; } diff --git a/src/lib/notifications/notificationTypes.ts b/src/lib/notifications/notificationTypes.ts index 8b17750..7ee8d86 100644 --- a/src/lib/notifications/notificationTypes.ts +++ b/src/lib/notifications/notificationTypes.ts @@ -19,6 +19,8 @@ export const MUTEABLE_NOTIFICATION_TYPES = [ { label: "Ticket status changes", value: "ticket:status" }, { label: "Poker", value: "poker:force-ended" }, { label: "Poker game auto-ended", value: "poker:everyone-left" }, + { label: "Blackjack", value: "blackjack:force-ended" }, + { label: "Blackjack table auto-ended", value: "blackjack:everyone-left" }, ] as const; export type MuteableNotificationType = (typeof MUTEABLE_NOTIFICATION_TYPES)[number]["value"]; export const MUTEABLE_NOTIFICATION_VALUES = MUTEABLE_NOTIFICATION_TYPES.map((t) => t.value); diff --git a/src/utils/event-log/eventTypes.ts b/src/utils/event-log/eventTypes.ts index 4e5eda8..c8f140e 100644 --- a/src/utils/event-log/eventTypes.ts +++ b/src/utils/event-log/eventTypes.ts @@ -78,6 +78,7 @@ export const EventTypes = { MinigameAimTrainer: "minigame:aim-trainer", MinigameOpordRecall: "minigame:opord-recall", MinigamePoker: "minigame:poker", + MinigameBlackjack: "minigame:blackjack", MinigameCustomEodCreate: "minigame:custom-eod-create", MinigameCustomEodEdit: "minigame:custom-eod-edit", MinigameCustomEodDelete: "minigame:custom-eod-delete", @@ -129,6 +130,9 @@ export const EventTypes = { // Evaluations EvaluationSubmit: "evaluation:submit", + // Personnel + PersonnelPromoted: "personnel:promoted", + // Awards AwardGrant: "award:grant", AwardUpgrade: "award:upgrade", @@ -190,6 +194,9 @@ export const EventTypes = { AssignmentTransferResolve: "assignment-transfer:resolve", AssignmentTransferComplete: "assignment-transfer:complete", AssignmentTransferCancel: "assignment-transfer:cancel", + + // Respawn Tickets + RespawnTicketsSettled: "respawn:tickets-settled", } as const; export type EventType = (typeof EventTypes)[keyof typeof EventTypes];