@databutton/firebase-types 1.71.9 → 1.71.11

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.
@@ -56,6 +56,7 @@ export declare enum CollectionName {
56
56
  TOKEN_USAGE_RECORDS = "token-usage-records",
57
57
  UI_COMPONENTS = "ui-components",
58
58
  UI_FILES = "ui-files",
59
+ TASKS = "tasks",
59
60
  TOKEN_USAGE_ENTRIES = "entries",
60
61
  COMPUTE_HOUR_USAGE = "compute-hour-usage",
61
62
  CREDIT_TRANSACTIONS = "credit-transactions",
@@ -84,6 +85,7 @@ export declare enum DatabuttonIdPrefix {
84
85
  PROJECT_TEMPLATE = "pt",
85
86
  SCHEDULE = "sc",
86
87
  STREAMLIT_APP = "st",
88
+ TASKS = "ts",
87
89
  THREADS = "th",
88
90
  UI_COMPONENT = "uic",
89
91
  UI_FILE = "uif",
@@ -57,6 +57,7 @@ export var CollectionName;
57
57
  CollectionName["TOKEN_USAGE_RECORDS"] = "token-usage-records";
58
58
  CollectionName["UI_COMPONENTS"] = "ui-components";
59
59
  CollectionName["UI_FILES"] = "ui-files";
60
+ CollectionName["TASKS"] = "tasks";
60
61
  CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
61
62
  CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
62
63
  CollectionName["CREDIT_TRANSACTIONS"] = "credit-transactions";
@@ -86,6 +87,7 @@ export var DatabuttonIdPrefix;
86
87
  DatabuttonIdPrefix["PROJECT_TEMPLATE"] = "pt";
87
88
  DatabuttonIdPrefix["SCHEDULE"] = "sc";
88
89
  DatabuttonIdPrefix["STREAMLIT_APP"] = "st";
90
+ DatabuttonIdPrefix["TASKS"] = "ts";
89
91
  DatabuttonIdPrefix["THREADS"] = "th";
90
92
  DatabuttonIdPrefix["UI_COMPONENT"] = "uic";
91
93
  DatabuttonIdPrefix["UI_FILE"] = "uif";
@@ -547,6 +547,17 @@ export interface StaticAsset {
547
547
  size: string;
548
548
  name?: string;
549
549
  }
550
+ export type Task = {
551
+ createdBy: PerformedBy;
552
+ updatedBy: PerformedBy;
553
+ markedForDeletionBy: PerformedBy | null;
554
+ managedBy: ManagedBy | null;
555
+ parentId: string | null;
556
+ status: TaskStatus;
557
+ title: string;
558
+ description: string;
559
+ labels: string[];
560
+ };
550
561
  export interface Viewer {
551
562
  userId: string | null;
552
563
  recipient: string;
@@ -614,6 +625,15 @@ export declare enum ProjectLifeStage {
614
625
  Deleting = "deleting",
615
626
  Deleted = "deleted"
616
627
  }
628
+ export declare enum TaskStatus {
629
+ TODO = "todo",
630
+ IN_PROGRESS = "inprogress",
631
+ DONE = "done"
632
+ }
633
+ export declare enum ManagedBy {
634
+ AGENT = "agent",
635
+ USER = "user"
636
+ }
617
637
  export interface ProjectLifeStageChangeRequest {
618
638
  targetLifeStage: ProjectLifeStage;
619
639
  requestedBy: PerformedBy;
@@ -34,6 +34,17 @@ export var ProjectLifeStage;
34
34
  ProjectLifeStage["Deleting"] = "deleting";
35
35
  ProjectLifeStage["Deleted"] = "deleted";
36
36
  })(ProjectLifeStage = ProjectLifeStage || (ProjectLifeStage = {}));
37
+ export var TaskStatus;
38
+ (function (TaskStatus) {
39
+ TaskStatus["TODO"] = "todo";
40
+ TaskStatus["IN_PROGRESS"] = "inprogress";
41
+ TaskStatus["DONE"] = "done";
42
+ })(TaskStatus = TaskStatus || (TaskStatus = {}));
43
+ export var ManagedBy;
44
+ (function (ManagedBy) {
45
+ ManagedBy["AGENT"] = "agent";
46
+ ManagedBy["USER"] = "user";
47
+ })(ManagedBy = ManagedBy || (ManagedBy = {}));
37
48
  export var ProjectBuildStage;
38
49
  (function (ProjectBuildStage) {
39
50
  ProjectBuildStage["IDEATE"] = "ideate";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.71.9",
3
+ "version": "1.71.11",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {