feat: improve notifications - fix auth code tg duplicate, double order notify, add PAID label, expand text, add deliveryFeeAdjusted event

This commit is contained in:
Kirill
2026-05-18 14:48:54 +05:00
parent 2f67c37502
commit d0b3c97803
17 changed files with 729 additions and 8 deletions
+2
View File
@@ -5,6 +5,7 @@ export type NotificationEventType =
| 'orderMessage:adminReply'
| 'payment:statusChanged'
| 'auth:codeRequested'
| 'order:deliveryFeeAdjusted'
export type NotificationChannel = 'email' | 'telegram'
@@ -17,6 +18,7 @@ export const NOTIFICATION_EVENTS: {
ORDER_MESSAGE_ADMIN_REPLY: NotificationEventType
PAYMENT_STATUS_CHANGED: NotificationEventType
AUTH_CODE_REQUESTED: NotificationEventType
DELIVERY_FEE_ADJUSTED: NotificationEventType
}
export const NOTIFICATION_CHANNELS: {
+1
View File
@@ -7,6 +7,7 @@ export const NOTIFICATION_EVENTS = {
ORDER_MESSAGE_ADMIN_REPLY: 'orderMessage:adminReply',
PAYMENT_STATUS_CHANGED: 'payment:statusChanged',
AUTH_CODE_REQUESTED: 'auth:codeRequested',
DELIVERY_FEE_ADJUSTED: 'order:deliveryFeeAdjusted',
}
export const NOTIFICATION_CHANNELS = {