@demind-inc/core 1.10.11 → 1.10.12
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.
- package/dist/models/TodoTasks.d.ts +42 -0
- package/lib/models/TodoTasks.ts +51 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { TodoIntegrationType } from "./TodoIntegrations";
|
|
|
3
3
|
import { TaskLabel } from "./TaskLabels";
|
|
4
4
|
import { CircadianPhase } from "../types";
|
|
5
5
|
import { AppleRecurrenceRuleFrequency } from "./Calendar";
|
|
6
|
+
import { TeamRole } from "./Team";
|
|
6
7
|
export type WebhookStatus = "pending" | "synced" | "skipped" | "failed";
|
|
7
8
|
export interface TodoTasksBoardAdditionalParamsGithub {
|
|
8
9
|
projectId: string;
|
|
@@ -156,6 +157,47 @@ export interface TaskItem {
|
|
|
156
157
|
[key: string]: any;
|
|
157
158
|
};
|
|
158
159
|
}
|
|
160
|
+
export type TeamTaskSource = "shared-personal-board" | "team-board";
|
|
161
|
+
export type TeamTaskBucket = "overdue" | "today" | "upcoming" | "done";
|
|
162
|
+
export interface TeamTaskMemberSummary {
|
|
163
|
+
userId: string;
|
|
164
|
+
teamMemberId?: string;
|
|
165
|
+
name?: string;
|
|
166
|
+
photoUrl?: string;
|
|
167
|
+
role?: TeamRole;
|
|
168
|
+
}
|
|
169
|
+
export interface TeamTaskProjectSummary {
|
|
170
|
+
boardId: string;
|
|
171
|
+
name: string;
|
|
172
|
+
appFrom?: TodoTasksBoard["appFrom"];
|
|
173
|
+
teamId?: string;
|
|
174
|
+
}
|
|
175
|
+
export interface TeamTaskPermissions {
|
|
176
|
+
canEdit: boolean;
|
|
177
|
+
canDelete: boolean;
|
|
178
|
+
canComplete: boolean;
|
|
179
|
+
canAssign: boolean;
|
|
180
|
+
}
|
|
181
|
+
export interface TeamTaskDetailItem {
|
|
182
|
+
source: TeamTaskSource;
|
|
183
|
+
isOwnTask: boolean;
|
|
184
|
+
isMeAssigned: boolean;
|
|
185
|
+
owner: TeamTaskMemberSummary;
|
|
186
|
+
assignee: TeamTaskMemberSummary | null;
|
|
187
|
+
project: TeamTaskProjectSummary;
|
|
188
|
+
permissions: TeamTaskPermissions;
|
|
189
|
+
task: TaskItem;
|
|
190
|
+
}
|
|
191
|
+
export interface TeamTaskItem extends TeamTaskDetailItem {
|
|
192
|
+
bucket: TeamTaskBucket;
|
|
193
|
+
}
|
|
194
|
+
export interface TeamTaskTeamSummary {
|
|
195
|
+
teamId: string;
|
|
196
|
+
name: string;
|
|
197
|
+
}
|
|
198
|
+
export interface TeamAssignedTaskItem extends TeamTaskItem {
|
|
199
|
+
team: TeamTaskTeamSummary;
|
|
200
|
+
}
|
|
159
201
|
export interface TaskRecurringInstance extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
|
|
160
202
|
/** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
|
|
161
203
|
taskId: string;
|
package/lib/models/TodoTasks.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { TodoIntegrationType } from "./TodoIntegrations";
|
|
|
3
3
|
import { TaskLabel } from "./TaskLabels";
|
|
4
4
|
import { CircadianPhase } from "../types";
|
|
5
5
|
import { AppleRecurrenceRuleFrequency } from "./Calendar";
|
|
6
|
+
import { TeamRole } from "./Team";
|
|
6
7
|
|
|
7
8
|
export type WebhookStatus = "pending" | "synced" | "skipped" | "failed";
|
|
8
9
|
|
|
@@ -173,6 +174,56 @@ export interface TaskItem {
|
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
176
|
|
|
177
|
+
export type TeamTaskSource = "shared-personal-board" | "team-board";
|
|
178
|
+
|
|
179
|
+
export type TeamTaskBucket = "overdue" | "today" | "upcoming" | "done";
|
|
180
|
+
|
|
181
|
+
export interface TeamTaskMemberSummary {
|
|
182
|
+
userId: string;
|
|
183
|
+
teamMemberId?: string;
|
|
184
|
+
name?: string;
|
|
185
|
+
photoUrl?: string;
|
|
186
|
+
role?: TeamRole;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface TeamTaskProjectSummary {
|
|
190
|
+
boardId: string;
|
|
191
|
+
name: string;
|
|
192
|
+
appFrom?: TodoTasksBoard["appFrom"];
|
|
193
|
+
teamId?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface TeamTaskPermissions {
|
|
197
|
+
canEdit: boolean;
|
|
198
|
+
canDelete: boolean;
|
|
199
|
+
canComplete: boolean;
|
|
200
|
+
canAssign: boolean;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface TeamTaskDetailItem {
|
|
204
|
+
source: TeamTaskSource;
|
|
205
|
+
isOwnTask: boolean;
|
|
206
|
+
isMeAssigned: boolean;
|
|
207
|
+
owner: TeamTaskMemberSummary;
|
|
208
|
+
assignee: TeamTaskMemberSummary | null;
|
|
209
|
+
project: TeamTaskProjectSummary;
|
|
210
|
+
permissions: TeamTaskPermissions;
|
|
211
|
+
task: TaskItem;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface TeamTaskItem extends TeamTaskDetailItem {
|
|
215
|
+
bucket: TeamTaskBucket;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface TeamTaskTeamSummary {
|
|
219
|
+
teamId: string;
|
|
220
|
+
name: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface TeamAssignedTaskItem extends TeamTaskItem {
|
|
224
|
+
team: TeamTaskTeamSummary;
|
|
225
|
+
}
|
|
226
|
+
|
|
176
227
|
export interface TaskRecurringInstance
|
|
177
228
|
extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
|
|
178
229
|
/** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
|