Add agent level progression and extend backend services.

Introduce agent level utilities/service, expand auth and notification flows, update category definitions and seed data, and wire level-aware order and suggestion handling.
This commit is contained in:
2026-09-15 21:42:02 +03:30
parent 4660b4f922
commit be00221bef
15 changed files with 430 additions and 29 deletions
+4
View File
@@ -33,6 +33,7 @@ import {
assertTransition,
} from '../common/utils/order-transitions';
import { resolveMaxMeterage } from '../common/utils/meterage';
import { AgentLevelService } from '../agent/agent-level.service';
import { NotificationsService } from '../notifications/notifications.service';
import { eventForStatus } from '../notifications/notification-events';
import { joinFullName, splitFullName } from '../common/utils/name';
@@ -81,6 +82,7 @@ export class OrdersService {
constructor(
private readonly prisma: PrismaService,
private readonly notifications: NotificationsService,
private readonly agentLevelService: AgentLevelService,
) {}
async findMyOrders(userId: string) {
@@ -498,6 +500,8 @@ export class OrdersService {
}
});
await this.agentLevelService.syncAgentForOrder(id);
return this.findAdminOrder(id);
}