import { ID } from '../../commonStateTypes/common'; import { RecurringFrequencyType } from '../../view/common/recurringViewHelper'; import { ZeniDate } from '../../zeniDayJS'; export interface Task { assignees: ID[]; createdBy: ID; createTime: ZeniDate; description: string; fileIds: string[]; groupAssignees: ID[]; id: ID; isArchived: boolean; isDeleted: boolean; isPrivate: boolean; name: string; priority: TaskPriority; status: TaskStatus; subTasksIds: ID[]; syncToken: string; tagIds: ID[]; taskGroupIds: ID[]; timeSpent: string; type: TaskType; companyId?: ID; companyName?: string; depth?: number; dueDate?: ZeniDate; parentTaskId?: ID | null; recurringDaysOfWeek?: DayOfWeek[]; recurringEndDate?: ZeniDate; recurringFrequency?: RecurringFrequencyType; recurringSourceTaskId?: ID; recurringStartDate?: ZeniDate; snoozedUntil?: ZeniDate | null; updateTime?: ZeniDate; } export interface TaskState { taskByID: Record; } export interface TaskPriority { code: PriorityCodeType; name: string; } export interface TaskStatus { code: TaskStatusCodeType; name: string; } export declare const ALL_PRIORITY_CODE: readonly ["urgent", "high", "normal", "medium", "low"]; export declare const toPriorityCodeType: (v: string) => "urgent" | "high" | "normal" | "medium" | "low"; export declare const toPriorityCodeTypeStrict: (v?: string) => "urgent" | "high" | "normal" | "medium" | "low" | undefined; export type PriorityCodeType = ReturnType; export declare const ALL_TASK_STATUS_CODE: readonly ["todo", "in_progress", "on_hold", "done", "resolved"]; export declare const toTaskStatusCodeType: (v: string) => "in_progress" | "todo" | "on_hold" | "done" | "resolved"; export type TaskStatusCodeType = ReturnType; export declare const toTaskCodeType: (v: string) => "one_time" | "recurring"; export type TaskCodeType = NonNullable>; export interface TaskType { code: TaskCodeType; name: string; } export declare const ALL_WEEK_DAYS: readonly ["mon", "tue", "wed", "thu", "fri"]; export declare const toDayOfWeek: (v: string) => "mon" | "tue" | "wed" | "thu" | "fri"; export declare const toDayOfWeekStrict: (v: string) => "mon" | "tue" | "wed" | "thu" | "fri" | undefined; export type DayOfWeek = NonNullable>;