feat(activities): let every assignee finish their own share
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2038,6 +2038,8 @@ export interface ActivityImageDto {
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export type ActivityCompletionMode = "any" | "all";
|
||||
|
||||
export interface ActivityDto {
|
||||
id: string;
|
||||
type: ActivityType;
|
||||
@@ -2055,6 +2057,10 @@ export interface ActivityDto {
|
||||
/** زمان ارسال یادآور (اگر ارسال شده باشد) */
|
||||
reminderSentAt: string | null;
|
||||
completedAt: string | null;
|
||||
/** any = با انجام یکی کافی است؛ all = هر مسئول باید سهم خودش را بزند */
|
||||
completionMode?: ActivityCompletionMode;
|
||||
/** شناسهٔ مسئولانی که سهم خود را در حالت all ثبت کردهاند */
|
||||
completedByIds?: string[];
|
||||
/** manual یا didar؛ برای جدا کردن سابقهٔ قبلی */
|
||||
importSource?: string;
|
||||
promotedFromPriorAt?: string | null;
|
||||
@@ -2112,6 +2118,8 @@ export interface CreateActivityRequest {
|
||||
assigneeId?: string | null;
|
||||
/** چند مسئول؛ اولی بهعنوان assigneeId ذخیره میشود */
|
||||
assigneeIds?: string[];
|
||||
/** پیشفرض any. فقط وقتی چند مسئول دارد معنی دارد */
|
||||
completionMode?: ActivityCompletionMode;
|
||||
}
|
||||
|
||||
export interface UpdateActivityRequest {
|
||||
@@ -2136,6 +2144,7 @@ export interface UpdateActivityRequest {
|
||||
leadId?: string | null;
|
||||
assigneeId?: string | null;
|
||||
assigneeIds?: string[];
|
||||
completionMode?: ActivityCompletionMode;
|
||||
}
|
||||
|
||||
export interface ActivitySummaryDto {
|
||||
|
||||
Reference in New Issue
Block a user