@databutton/firebase-types 1.76.0 → 1.76.2

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.
@@ -144,3 +144,8 @@ export declare enum TaskPriority {
144
144
  URGENT = "urgent",
145
145
  BLOCKER = "blocker"
146
146
  }
147
+ export declare enum TaskRelation {
148
+ BLOCKED_BY = "blocked-by",
149
+ BLOCKING = "blocking",
150
+ RELATED_TO = "related-to"
151
+ }
@@ -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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.76.0",
3
+ "version": "1.76.2",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {