Selection of multiple officials and role sub-categories
This commit is contained in:
@@ -375,6 +375,14 @@ export interface OrgRoleDto {
|
||||
color: string;
|
||||
permissions: RolePermissionKey[];
|
||||
systemKey: UserRole | null;
|
||||
/** نقش والد؛ null یعنی ریشه */
|
||||
parentId: string | null;
|
||||
/** نام نقش والد برای نمایش در UI */
|
||||
parentName: string | null;
|
||||
/** عمق در درخت (۰ = ریشه) */
|
||||
depth: number;
|
||||
/** تعداد زیرنقشهای مستقیم */
|
||||
childCount: number;
|
||||
userCount: number;
|
||||
members: OrgRoleMemberDto[];
|
||||
}
|
||||
@@ -384,6 +392,8 @@ export interface CreateOrgRoleRequest {
|
||||
description?: string;
|
||||
color?: string;
|
||||
permissions?: RolePermissionKey[];
|
||||
/** اگر ست شود، این نقش زیرمجموعهٔ نقش والد خواهد بود */
|
||||
parentId?: string | null;
|
||||
}
|
||||
|
||||
export interface UpdateOrgRoleRequest {
|
||||
@@ -391,6 +401,8 @@ export interface UpdateOrgRoleRequest {
|
||||
description?: string;
|
||||
color?: string;
|
||||
permissions?: RolePermissionKey[];
|
||||
/** null یعنی جدا کردن از والد و تبدیل به ریشه */
|
||||
parentId?: string | null;
|
||||
}
|
||||
|
||||
export interface InviteUserRequest {
|
||||
@@ -947,7 +959,10 @@ export interface ActivityDto {
|
||||
person: PersonSummaryDto | null;
|
||||
company: CompanySummaryDto | null;
|
||||
deal: DealSummaryDto | null;
|
||||
/** مسئول اصلی (اولین مسئول) — سازگاری با فیلترها و یادآور */
|
||||
assignee: UserSummaryDto | null;
|
||||
/** همه مسئولان انجام فعالیت */
|
||||
assignees: UserSummaryDto[];
|
||||
createdBy: UserSummaryDto | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
@@ -967,7 +982,10 @@ export interface CreateActivityRequest {
|
||||
personId?: string | null;
|
||||
companyId?: string | null;
|
||||
dealId?: string | null;
|
||||
/** سازگاری — اگر assigneeIds نباشد از این استفاده میشود */
|
||||
assigneeId?: string | null;
|
||||
/** چند مسئول؛ اولی بهعنوان assigneeId ذخیره میشود */
|
||||
assigneeIds?: string[];
|
||||
}
|
||||
|
||||
export interface UpdateActivityRequest {
|
||||
@@ -986,6 +1004,7 @@ export interface UpdateActivityRequest {
|
||||
companyId?: string | null;
|
||||
dealId?: string | null;
|
||||
assigneeId?: string | null;
|
||||
assigneeIds?: string[];
|
||||
}
|
||||
|
||||
export interface ActivitySummaryDto {
|
||||
|
||||
Reference in New Issue
Block a user