feat(customers): add optional group assignees with OR visibility for people, companies, and birthdays

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-12 12:59:49 +03:30
co-authored by Cursor
parent 453ff1a5f6
commit b583858088
17 changed files with 847 additions and 53 deletions
+10
View File
@@ -1324,6 +1324,11 @@ export interface CustomerGroupSummaryDto {
source?: "manual" | "tahesab";
}
export interface CustomerGroupAssigneeDto {
id: string;
fullName: string;
}
export interface CustomerGroupDto {
id: string;
name: string;
@@ -1336,11 +1341,14 @@ export interface CustomerGroupDto {
/** گروه اصلی؛ خالی یعنی خودش اصلی است */
parentId?: string | null;
parentName?: string | null;
/** مسئولان گروه (اختیاری) */
assignees: CustomerGroupAssigneeDto[];
}
export interface CreateCustomerGroupRequest {
name: string;
color?: CustomerGroupColor;
assigneeIds?: string[];
}
export interface UpdateCustomerGroupRequest {
@@ -1348,6 +1356,8 @@ export interface UpdateCustomerGroupRequest {
color?: CustomerGroupColor;
/** null = برداشتن گروه اصلی */
parentId?: string | null;
/** جایگزینی کامل فهرست مسئولان */
assigneeIds?: string[];
}
export interface CompanySummaryDto {