@demind-inc/core 1.10.10 → 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/Team.d.ts +1 -0
- package/dist/models/TodoTasks.d.ts +51 -0
- package/lib/models/Team.ts +1 -0
- package/lib/models/TodoTasks.ts +60 -0
- package/package.json +1 -1
package/dist/models/Team.d.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
|
export type WebhookStatus = "pending" | "synced" | "skipped" | "failed";
|
|
7
8
|
export interface TodoTasksBoardAdditionalParamsGithub {
|
|
8
9
|
projectId: string;
|
|
@@ -34,6 +35,7 @@ export interface TodoTasksBoard {
|
|
|
34
35
|
originalBoardId: string;
|
|
35
36
|
name: string;
|
|
36
37
|
appFrom: TodoAppFrom;
|
|
38
|
+
teamId?: string;
|
|
37
39
|
createdAt: string;
|
|
38
40
|
todoIntegRef?: DocumentReference;
|
|
39
41
|
color?: string;
|
|
@@ -120,6 +122,14 @@ export interface TaskItem {
|
|
|
120
122
|
labels?: TaskLabel[];
|
|
121
123
|
assigneesIds?: string[];
|
|
122
124
|
isMeAssigned?: boolean;
|
|
125
|
+
teamTaskAssignment?: {
|
|
126
|
+
teamId: string;
|
|
127
|
+
createdByUserId: string;
|
|
128
|
+
assigneeUserId?: string;
|
|
129
|
+
assignedByUserId?: string;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
};
|
|
123
133
|
updatedAt: string;
|
|
124
134
|
duration?: TaskItemDuration;
|
|
125
135
|
addedToCalendar?: boolean;
|
|
@@ -147,6 +157,47 @@ export interface TaskItem {
|
|
|
147
157
|
[key: string]: any;
|
|
148
158
|
};
|
|
149
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
|
+
}
|
|
150
201
|
export interface TaskRecurringInstance extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
|
|
151
202
|
/** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
|
|
152
203
|
taskId: string;
|
package/lib/models/Team.ts
CHANGED
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
|
|
|
@@ -40,6 +41,7 @@ export interface TodoTasksBoard {
|
|
|
40
41
|
originalBoardId: string;
|
|
41
42
|
name: string;
|
|
42
43
|
appFrom: TodoAppFrom;
|
|
44
|
+
teamId?: string;
|
|
43
45
|
createdAt: string;
|
|
44
46
|
todoIntegRef?: DocumentReference;
|
|
45
47
|
color?: string;
|
|
@@ -136,6 +138,14 @@ export interface TaskItem {
|
|
|
136
138
|
labels?: TaskLabel[];
|
|
137
139
|
assigneesIds?: string[];
|
|
138
140
|
isMeAssigned?: boolean;
|
|
141
|
+
teamTaskAssignment?: {
|
|
142
|
+
teamId: string;
|
|
143
|
+
createdByUserId: string;
|
|
144
|
+
assigneeUserId?: string;
|
|
145
|
+
assignedByUserId?: string;
|
|
146
|
+
createdAt: string;
|
|
147
|
+
updatedAt: string;
|
|
148
|
+
};
|
|
139
149
|
updatedAt: string;
|
|
140
150
|
duration?: TaskItemDuration;
|
|
141
151
|
addedToCalendar?: boolean;
|
|
@@ -164,6 +174,56 @@ export interface TaskItem {
|
|
|
164
174
|
};
|
|
165
175
|
}
|
|
166
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
|
+
|
|
167
227
|
export interface TaskRecurringInstance
|
|
168
228
|
extends Omit<TaskItem, "subTasks" | "isRecurringChild" | "parentTaskId"> {
|
|
169
229
|
/** Firestore doc id `${parentTaskId}_${yyyy-MM-dd}` */
|