@ehfuse/taskbox 0.5.165 → 0.5.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,7 @@ export interface TaskChecklistSectionProps {
16
16
  linkBaseTask?: TaskBoxItem;
17
17
  onLinkExistingTask?: (taskSeq: number, targetSeq: number, label: string) => void;
18
18
  resolveLinkedTask?: (linkedTaskSeq: number) => TaskBoxItem | undefined;
19
+ myAccountSeq?: number;
19
20
  }
20
21
  /** 할일 섹션 컴포넌트다. */
21
- export declare function TaskChecklistSection({ taskSeq, checklist, onAdd, onToggle, onRemove, onUpdate, removeLocked, onConvertToTask, onOpenLinkedTask, linkCandidates, linkBaseTask, onLinkExistingTask, resolveLinkedTask, }: TaskChecklistSectionProps): import("react").JSX.Element;
22
+ export declare function TaskChecklistSection({ taskSeq, checklist, onAdd, onToggle, onRemove, onUpdate, removeLocked, onConvertToTask, onOpenLinkedTask, linkCandidates, linkBaseTask, onLinkExistingTask, resolveLinkedTask, myAccountSeq, }: TaskChecklistSectionProps): import("react").JSX.Element;
@@ -33,6 +33,12 @@ export declare function canClaimTaskItem(item: TaskBoxItem, myAccountSeq: number
33
33
  export declare function canVolunteerTaskItem(item: TaskBoxItem, myAccountSeq: number): boolean;
34
34
  /** 접수 상태의 미배정 오류인지 판정한다 — 관여자가 아니어도 책임자를 지정할 수 있다(서버 동일 예외). */
35
35
  export declare function canAssignBugManager(item: TaskBoxItem): boolean;
36
+ /**
37
+ * 내가 이 업무를 완료 처리할 수 있는지 판정한다(AS 완료 토글 권한 동일 규칙 — 서버도 403).
38
+ * 공지 = 작성자만(rbac admin 도 불가), 일반 업무 = 작성자·책임자만(참조자 불가).
39
+ * 연결 할일(승격 항목)의 체크 토글도 이 판정을 따른다 — 체크가 연결 업무의 완료이기 때문이다.
40
+ */
41
+ export declare function canCompleteTaskItem(item: TaskBoxItem, myAccountSeq: number): boolean;
36
42
  /**
37
43
  * 내가 이 업무를 수정할 수 있는지 판정한다(AS canEditTask 동일 규칙 — 서버도 403).
38
44
  * 공지 = 작성자만, 일반 업무 = 관여자(작성자/책임자/참조자).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.5.165",
3
+ "version": "0.5.167",
4
4
  "description": "A React/MUI task inbox component with notices, per-user assignments, read tracking, and mobile card UI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",