feat: improve notifications - fix auth code tg duplicate, double order notify, add PAID label, expand text, add deliveryFeeAdjusted event
This commit is contained in:
+2
@@ -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: {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user