forked from Yara724/api
feat: manage expert access and merge Parsian expert seeds
Allow role-specific identities and admin account activation, support national-code-only claim experts, and remove required voice from v4/v5. Add a combined, resumable Parsian seed that preserves existing accounts and merges locations and product codes.
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
CreateManagedClientDto,
|
||||
CreateManagedStaffDto,
|
||||
ManagedListQueryDto,
|
||||
SetManagedStaffActiveDto,
|
||||
UpdateManagedAccountDto,
|
||||
UpdateManagedBranchDto,
|
||||
UpdateManagedClientDto,
|
||||
@@ -99,6 +100,14 @@ export class SuperAdminManagementController {
|
||||
@Get("branches") branches(@Query("clientId") client: string) {
|
||||
return this.management.listBranches(client);
|
||||
}
|
||||
@Patch("staff/:role/:id/status") setStaffActive(
|
||||
@Query("clientId") client: string,
|
||||
@Param("role") role: string,
|
||||
@Param("id") id: string,
|
||||
@Body() body: SetManagedStaffActiveDto,
|
||||
) {
|
||||
return this.management.setStaffActive(client, role, id, body.isActive);
|
||||
}
|
||||
@Post("branches") createBranch(
|
||||
@Query("clientId") client: string,
|
||||
@Body() body: CreateBranchDto,
|
||||
|
||||
Reference in New Issue
Block a user