@databutton/firebase-types 1.76.0 → 1.76.1
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.
|
@@ -154,4 +154,10 @@ export var TaskPriority;
|
|
|
154
154
|
TaskPriority["URGENT"] = "urgent";
|
|
155
155
|
TaskPriority["BLOCKER"] = "blocker";
|
|
156
156
|
})(TaskPriority = TaskPriority || (TaskPriority = {}));
|
|
157
|
+
export var TaskRelation;
|
|
158
|
+
(function (TaskRelation) {
|
|
159
|
+
TaskRelation["BLOCKED_BY"] = "blocked-by";
|
|
160
|
+
TaskRelation["BLOCKING"] = "blocking";
|
|
161
|
+
TaskRelation["RELATED_TO"] = "related-to";
|
|
162
|
+
})(TaskRelation = TaskRelation || (TaskRelation = {}));
|
|
157
163
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { JsonObject, Primitive } from "type-fest";
|
|
3
3
|
import type { ProjectMigration } from "../internal/enums.js";
|
|
4
|
-
import type { TaskPriority, ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName, UiComponentTag } from "./enums.js";
|
|
4
|
+
import type { TaskPriority, TaskRelation, ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName, UiComponentTag } from "./enums.js";
|
|
5
5
|
/**
|
|
6
6
|
* Types here should reflect data format stored in firestore and
|
|
7
7
|
* either be backwards-compatible or migrated when needed
|
|
@@ -581,6 +581,10 @@ export type Task = {
|
|
|
581
581
|
parentId: string | null;
|
|
582
582
|
status: TaskStatus;
|
|
583
583
|
priority?: TaskPriority | null;
|
|
584
|
+
relation?: {
|
|
585
|
+
id: string;
|
|
586
|
+
type: TaskRelation;
|
|
587
|
+
} | null;
|
|
584
588
|
title: string;
|
|
585
589
|
description: string;
|
|
586
590
|
labels: string[];
|