Build notification template registry from backend code

This commit is contained in:
Ruslan Bakiev
2026-04-06 15:04:45 +07:00
parent ac5ee256fd
commit befec16a84
8 changed files with 142 additions and 362 deletions

View File

@@ -178,6 +178,21 @@ type NotificationHistoryItem {
orderId: ID
}
type NotificationTemplateChannel {
channel: LoginChannel!
implemented: Boolean!
subject: String
body: [String!]!
buttonText: String
buttonUrl: String
}
type NotificationTemplate {
id: ID!
title: String!
channels: [NotificationTemplateChannel!]!
}
type Warehouse {
id: ID!
code: String!
@@ -364,6 +379,7 @@ type Query {
myDeliveryAddresses: [DeliveryAddress!]!
myMessengerConnections: [MessengerConnection!]!
myNotificationHistory(channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
notificationTemplates: [NotificationTemplate!]!
managerNotificationHistory(userId: ID!, channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
clientProducts: [Product!]!
order(id: ID!): Order