Add email notifications and sync dashboard

This commit is contained in:
Ruslan Bakiev
2026-04-07 10:25:28 +07:00
parent 386f6fa9fe
commit 92592e2baa
4 changed files with 299 additions and 37 deletions

View File

@@ -193,6 +193,26 @@ type NotificationTemplate {
channels: [NotificationTemplateChannel!]!
}
type IntegrationSyncItem {
id: ID!
title: String!
description: String!
source: String!
syncedCount: Int!
lastSyncedAt: DateTime
status: String!
note: String!
}
type IntegrationSyncDashboard {
generatedAt: DateTime!
lastActivityAt: DateTime
totalOrders: Int!
totalProducts: Int!
totalClients: Int!
items: [IntegrationSyncItem!]!
}
type Warehouse {
id: ID!
code: String!
@@ -380,6 +400,7 @@ type Query {
myMessengerConnections: [MessengerConnection!]!
myNotificationHistory(channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
notificationTemplates: [NotificationTemplate!]!
integrationSyncDashboard: IntegrationSyncDashboard!
managerNotificationHistory(userId: ID!, channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
clientProducts: [Product!]!
order(id: ID!): Order