@ehfuse/taskbox 0.5.156 → 0.5.158

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.
@@ -1,4 +1,4 @@
1
- import type { TaskBoxBugDevice, TaskBoxBugRepro, TaskBoxChecklistItem, TaskBoxPriority, TaskBoxReminder, TaskBoxVisibility } from "./item";
1
+ import type { TaskBoxBugDevice, TaskBoxBugRepro, TaskBoxChecklistItem, TaskBoxPriority, TaskBoxReminder, TaskBoxRepeatRule, TaskBoxVisibility } from "./item";
2
2
  /** 새 업무 등록 폼 값이다. */
3
3
  export interface TaskBoxForm {
4
4
  title: string;
@@ -13,6 +13,8 @@ export interface TaskBoxForm {
13
13
  is_bug: boolean;
14
14
  visibility: TaskBoxVisibility;
15
15
  visibility_group_seq: number;
16
+ repeat_rule: TaskBoxRepeatRule | "";
17
+ repeat_until: string;
16
18
  bug_repro: TaskBoxBugRepro | "";
17
19
  bug_device: TaskBoxBugDevice | "";
18
20
  bug_where: string;
@@ -80,6 +80,8 @@ export type TaskBoxReminder = "none" | "min30_before" | "hour1_before" | "hour2_
80
80
  /** 업무함 목록 한 건이다. */
81
81
  /** 공개 범위다 — involved=비공개(관여자만)/group=부서공개/all=전체공개. */
82
82
  export type TaskBoxVisibility = "involved" | "group" | "all";
83
+ /** 반복 주기다(업무·일정 — 빈 값=반복 없음). */
84
+ export type TaskBoxRepeatRule = "daily" | "weekly" | "monthly" | "yearly";
83
85
  export interface TaskBoxItem {
84
86
  seq: number;
85
87
  title: string;
@@ -100,6 +102,9 @@ export interface TaskBoxItem {
100
102
  is_open?: boolean;
101
103
  visibility?: TaskBoxVisibility;
102
104
  visibility_group_seq?: number;
105
+ repeat_rule?: TaskBoxRepeatRule | "";
106
+ repeat_until?: string;
107
+ repeat_group_key?: number;
103
108
  bug_repro?: TaskBoxBugRepro | "";
104
109
  bug_device?: TaskBoxBugDevice | "";
105
110
  bug_where?: string;
@@ -0,0 +1,11 @@
1
+ /** 반복(업무·일정) 유틸이다 — 주기 사전과 종료일 기본값(AS 와 동일 규칙). */
2
+ import type { TaskBoxRepeatRule } from "../types";
3
+ /** 반복 주기 선택지다(등록 드로어 택일 메뉴 — ""=반복 없음). */
4
+ export declare const TASK_REPEAT_RULE_OPTIONS: {
5
+ value: TaskBoxRepeatRule;
6
+ label: string;
7
+ }[];
8
+ /** 반복 주기 표시 라벨을 만든다(모르는 값·빈 값은 "없음"). */
9
+ export declare function getRepeatRuleLabel(rule: string | undefined): string;
10
+ /** 반복 종료일 기본값을 만든다 — 매일=1개월, 매주=3개월, 매월=1년, 매년=3년 뒤(AS defaultRepeatUntil 동일). */
11
+ export declare function defaultRepeatUntil(startYmd: string, rule: TaskBoxRepeatRule): string;
@@ -18,13 +18,17 @@ export declare function canViewTaskItem(item: TaskBoxItem, myAccountSeq: number,
18
18
  * 담당자가 정해지거나 완료·보관되면 접수함(가져가기)에서만 내려간다(가시성은 유지).
19
19
  */
20
20
  export declare function isOpenPoolTaskItem(item: TaskBoxItem): boolean;
21
- /** 내가 이 업무를 "가져가기" 할 수 있는지 판정한다(접수함 공개 + 내가 담당이 아님). */
21
+ /**
22
+ * 내가 이 업무를 "가져가기" 할 수 있는지 판정한다(접수함 공개 + 내가 담당이 아님).
23
+ * 작성자 본인은 제외한다 — 쓴 사람에게는 남의 업무를 맡는 "가져가기" 가 아니라
24
+ * 책임자를 고르는 빈 칸이 나와야 한다(자기가 맡겠다면 그 칸에서 자신을 고르면 된다).
25
+ */
22
26
  export declare function canClaimTaskItem(item: TaskBoxItem, myAccountSeq: number): boolean;
23
27
  /**
24
- * 내가 이 업무를 "맡기" 할 수 있는지 판정한다 — 책임자가 비어 있는 업무를 관여자(작성자·참조자)가
28
+ * 내가 이 업무를 "맡기" 할 수 있는지 판정한다 — 책임자가 비어 있는 업무를 참조자가
25
29
  * 자기 몫으로 확정하는 경우다(접수함 공개 건은 가져가기 버튼이 담당).
26
- * 작성자도 포함한다 — 책임자 미배정은 "아직 아무도 안 맡은" 상태라, 쓴 사람이 스스로 맡는 것도
27
- * 눌러서 확정해야 목록의 책임자 칸과 그룹 분류가 실제와 맞는다.
30
+ * 작성자는 제외한다 — 쓴 사람은 책임자를 지정할 수 있는 사람이라 버튼 대신 빈 칸이 나와야 하고,
31
+ * 자기가 맡겠다면 그 칸에서 자신을 고르면 된다.
28
32
  */
29
33
  export declare function canVolunteerTaskItem(item: TaskBoxItem, myAccountSeq: number): boolean;
30
34
  /** 접수 상태의 미배정 오류인지 판정한다 — 관여자가 아니어도 책임자를 지정할 수 있다(서버 동일 예외). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.5.156",
3
+ "version": "0.5.158",
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",