feat(notify): add finance and shipment-completed notification types
This commit is contained in:
parent
83879687ae
commit
2a457a5dd9
2 changed files with 12 additions and 0 deletions
|
|
@ -66,6 +66,14 @@ export function notificationLabel(type?: string | null): string {
|
||||||
return "Listing expired";
|
return "Listing expired";
|
||||||
case "account:discord-request":
|
case "account:discord-request":
|
||||||
return "Discord request";
|
return "Discord request";
|
||||||
|
case "finance:deposit":
|
||||||
|
return "Bank deposit";
|
||||||
|
case "finance:withdraw":
|
||||||
|
return "Bank withdrawal";
|
||||||
|
case "finance:transfer":
|
||||||
|
return "Bank transfer";
|
||||||
|
case "shipment:completed":
|
||||||
|
return "Shipment completed";
|
||||||
default:
|
default:
|
||||||
return type ?? "Notification";
|
return type ?? "Notification";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,10 @@ export const MUTEABLE_NOTIFICATION_TYPES = [
|
||||||
{ label: "Listing sold", value: "market:sold" },
|
{ label: "Listing sold", value: "market:sold" },
|
||||||
{ label: "Listing expired", value: "market:expired" },
|
{ label: "Listing expired", value: "market:expired" },
|
||||||
{ label: "Discord requests", value: "account:discord-request" },
|
{ label: "Discord requests", value: "account:discord-request" },
|
||||||
|
{ label: "Bank deposit", value: "finance:deposit" },
|
||||||
|
{ label: "Bank withdrawal", value: "finance:withdraw" },
|
||||||
|
{ label: "Bank transfer", value: "finance:transfer" },
|
||||||
|
{ label: "Shipment completed", value: "shipment:completed" },
|
||||||
] as const;
|
] as const;
|
||||||
export type MuteableNotificationType = (typeof MUTEABLE_NOTIFICATION_TYPES)[number]["value"];
|
export type MuteableNotificationType = (typeof MUTEABLE_NOTIFICATION_TYPES)[number]["value"];
|
||||||
export const MUTEABLE_NOTIFICATION_VALUES = MUTEABLE_NOTIFICATION_TYPES.map((t) => t.value);
|
export const MUTEABLE_NOTIFICATION_VALUES = MUTEABLE_NOTIFICATION_TYPES.map((t) => t.value);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue