Merge upstream/main into main

Resolve conflicts while keeping field-expert lock/view fixes and user
party-access query improvements from the fork.
This commit is contained in:
2026-06-18 18:27:01 +03:30
6 changed files with 839 additions and 97 deletions

View File

@@ -1,4 +1,5 @@
import { BadRequestException, ForbiddenException } from "@nestjs/common";
import { RoleEnum } from "src/Types&Enums/role.enum";
/** Insurance company tenant id on the actor JWT (Mongo ObjectId string). */
export function requireActorClientKey(actor: { clientKey?: string }): string {