@databutton/firebase-types 1.117.0 → 1.118.0
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.
|
@@ -88,6 +88,7 @@ export declare enum CollectionName {
|
|
|
88
88
|
TOKEN_USAGE_RECORDS = "token-usage-records",
|
|
89
89
|
UI_COMPONENTS = "ui-components",
|
|
90
90
|
UI_FILES = "ui-files",
|
|
91
|
+
CONTEXT_FILES = "context-files",
|
|
91
92
|
TASKS = "tasks",
|
|
92
93
|
TOKEN_USAGE_ENTRIES = "entries",
|
|
93
94
|
COMPUTE_HOUR_USAGE = "compute-hour-usage",
|
|
@@ -133,6 +134,7 @@ export declare enum DatabuttonIdPrefix {
|
|
|
133
134
|
THREADS = "th",
|
|
134
135
|
UI_COMPONENT = "uic",
|
|
135
136
|
UI_FILE = "uif",
|
|
137
|
+
CONTEXT_FILE = "ctx",
|
|
136
138
|
BROKEN_VENV = "venv",
|
|
137
139
|
CREDIT_TRANSACTION = "ct",
|
|
138
140
|
PAGE = "pa",
|
|
@@ -182,7 +184,8 @@ export declare enum CodeComponentType {
|
|
|
182
184
|
BACKEND = "backend",
|
|
183
185
|
MODULE = "module",
|
|
184
186
|
UI_FILE = "ui-file",
|
|
185
|
-
UI_COMPONENT = "ui-component"
|
|
187
|
+
UI_COMPONENT = "ui-component",
|
|
188
|
+
CONTEXT_FILE = "context-file"
|
|
186
189
|
}
|
|
187
190
|
export declare enum ComponentType {
|
|
188
191
|
BACKEND = "backend",
|
|
@@ -192,7 +195,8 @@ export declare enum ComponentType {
|
|
|
192
195
|
FRONTEND = "frontend",
|
|
193
196
|
UI_COMPONENT = "ui-component",
|
|
194
197
|
UI_FILE = "ui-file",
|
|
195
|
-
MODULE = "module"
|
|
198
|
+
MODULE = "module",
|
|
199
|
+
CONTEXT_FILE = "context-file"
|
|
196
200
|
}
|
|
197
201
|
export declare enum TaskPriority {
|
|
198
202
|
LOW = "low",
|
|
@@ -89,6 +89,7 @@ export var CollectionName;
|
|
|
89
89
|
CollectionName["TOKEN_USAGE_RECORDS"] = "token-usage-records";
|
|
90
90
|
CollectionName["UI_COMPONENTS"] = "ui-components";
|
|
91
91
|
CollectionName["UI_FILES"] = "ui-files";
|
|
92
|
+
CollectionName["CONTEXT_FILES"] = "context-files";
|
|
92
93
|
CollectionName["TASKS"] = "tasks";
|
|
93
94
|
CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
|
|
94
95
|
CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
|
|
@@ -137,6 +138,7 @@ export var DatabuttonIdPrefix;
|
|
|
137
138
|
DatabuttonIdPrefix["THREADS"] = "th";
|
|
138
139
|
DatabuttonIdPrefix["UI_COMPONENT"] = "uic";
|
|
139
140
|
DatabuttonIdPrefix["UI_FILE"] = "uif";
|
|
141
|
+
DatabuttonIdPrefix["CONTEXT_FILE"] = "ctx";
|
|
140
142
|
DatabuttonIdPrefix["BROKEN_VENV"] = "venv";
|
|
141
143
|
DatabuttonIdPrefix["CREDIT_TRANSACTION"] = "ct";
|
|
142
144
|
DatabuttonIdPrefix["PAGE"] = "pa";
|
|
@@ -196,6 +198,7 @@ export var CodeComponentType;
|
|
|
196
198
|
CodeComponentType["MODULE"] = "module";
|
|
197
199
|
CodeComponentType["UI_FILE"] = "ui-file";
|
|
198
200
|
CodeComponentType["UI_COMPONENT"] = "ui-component";
|
|
201
|
+
CodeComponentType["CONTEXT_FILE"] = "context-file";
|
|
199
202
|
})(CodeComponentType || (CodeComponentType = {}));
|
|
200
203
|
export var ComponentType;
|
|
201
204
|
(function (ComponentType) {
|
|
@@ -207,6 +210,7 @@ export var ComponentType;
|
|
|
207
210
|
ComponentType["UI_COMPONENT"] = "ui-component";
|
|
208
211
|
ComponentType["UI_FILE"] = "ui-file";
|
|
209
212
|
ComponentType["MODULE"] = "module";
|
|
213
|
+
ComponentType["CONTEXT_FILE"] = "context-file";
|
|
210
214
|
})(ComponentType || (ComponentType = {}));
|
|
211
215
|
export var TaskPriority;
|
|
212
216
|
(function (TaskPriority) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AccountRole } from "./enums.js";
|
|
2
|
-
import type { AuditLog, Backend, Frontend, Module, UiComponent, UiFile } from "./persisted.js";
|
|
3
|
-
export type Component = Frontend | Backend | Module | UiFile | UiComponent;
|
|
4
|
-
export type ComponentType = "frontend" | "backend" | "module" | "ui-file" | "ui-component";
|
|
2
|
+
import type { AuditLog, Backend, ContextFile, Frontend, Module, UiComponent, UiFile } from "./persisted.js";
|
|
3
|
+
export type Component = Frontend | Backend | Module | UiFile | UiComponent | ContextFile;
|
|
4
|
+
export type ComponentType = "frontend" | "backend" | "module" | "ui-file" | "ui-component" | "context-file";
|
|
5
5
|
export declare namespace AuditLogEntry {
|
|
6
6
|
enum Event {
|
|
7
7
|
ACCOUNT_CREATED = "account-created",
|
|
@@ -451,6 +451,12 @@ export interface UiFile {
|
|
|
451
451
|
markedForDeletionBy: PerformedBy | null;
|
|
452
452
|
codeBlockRef: string;
|
|
453
453
|
}
|
|
454
|
+
export interface ContextFile {
|
|
455
|
+
name: string;
|
|
456
|
+
createdBy: PerformedBy;
|
|
457
|
+
markedForDeletionBy: PerformedBy | null;
|
|
458
|
+
codeBlockRef: string;
|
|
459
|
+
}
|
|
454
460
|
export declare enum StepState {
|
|
455
461
|
TODO = "todo",
|
|
456
462
|
IN_PROGRESS = "in-progress",
|
|
@@ -545,7 +551,7 @@ export declare enum AgentAccess {
|
|
|
545
551
|
READ_ONLY = "read-only"
|
|
546
552
|
}
|
|
547
553
|
export interface CodeBlock {
|
|
548
|
-
type: "module" | "backend" | "frontend" | "ui-component" | "ui-file";
|
|
554
|
+
type: "module" | "backend" | "frontend" | "ui-component" | "ui-file" | "context-file";
|
|
549
555
|
createdAtUtc: Timestamp;
|
|
550
556
|
componentId: string;
|
|
551
557
|
controlTakenBy?: PerformedBy | null;
|
|
@@ -1540,6 +1546,11 @@ export interface ProjectTemplate {
|
|
|
1540
1546
|
config?: BackendConfig;
|
|
1541
1547
|
agentAccess?: AgentAccess | null;
|
|
1542
1548
|
}[];
|
|
1549
|
+
contextFiles?: {
|
|
1550
|
+
name: string;
|
|
1551
|
+
code: string;
|
|
1552
|
+
agentAccess?: AgentAccess | null;
|
|
1553
|
+
}[];
|
|
1543
1554
|
backendPackages?: BackendPackages | null;
|
|
1544
1555
|
frontendPackages?: FrontendPackages | null;
|
|
1545
1556
|
requirements?: ProjectTemplateRequirementsSnapshot | null;
|
|
@@ -1725,7 +1736,7 @@ type WithDocRef<T> = T & {
|
|
|
1725
1736
|
export type ComponentSnapshotBase = {
|
|
1726
1737
|
component: WithDocRef<{
|
|
1727
1738
|
name: string;
|
|
1728
|
-
type: "module" | "frontend" | "backend" | "ui-component" | "ui-file";
|
|
1739
|
+
type: "module" | "frontend" | "backend" | "ui-component" | "ui-file" | "context-file";
|
|
1729
1740
|
}>;
|
|
1730
1741
|
codeBlock: WithDocRef<{
|
|
1731
1742
|
version: WithDocRef<{
|
|
@@ -1747,6 +1758,7 @@ export type BackendSnapshot<T = ComponentSnapshotBase> = T & {
|
|
|
1747
1758
|
};
|
|
1748
1759
|
export type UiFileSnapshot<T = ComponentSnapshotBase> = T;
|
|
1749
1760
|
export type UiComponentSnapshot<T = ComponentSnapshotBase> = T;
|
|
1761
|
+
export type ContextFileSnapshot<T = ComponentSnapshotBase> = T;
|
|
1750
1762
|
export type FrontendSnapshot<T = ComponentSnapshotBase> = T & {
|
|
1751
1763
|
config?: FrontendConfig;
|
|
1752
1764
|
};
|
|
@@ -1757,6 +1769,7 @@ export type AppSnapshot<T = ComponentSnapshotBase> = {
|
|
|
1757
1769
|
uiFiles?: UiFileSnapshot<T>[];
|
|
1758
1770
|
uiComponents?: UiComponentSnapshot<T>[];
|
|
1759
1771
|
frontends?: FrontendSnapshot<T>[];
|
|
1772
|
+
contextFiles?: ContextFileSnapshot<T>[];
|
|
1760
1773
|
};
|
|
1761
1774
|
export interface ProjectDeploymentBase<T = ComponentSnapshotBase> extends Approvable, AppSnapshot<T> {
|
|
1762
1775
|
build: {
|
|
@@ -1821,7 +1834,7 @@ export interface ContextBase {
|
|
|
1821
1834
|
export interface ComponentContext extends ContextBase {
|
|
1822
1835
|
type: "component";
|
|
1823
1836
|
componentId: string;
|
|
1824
|
-
componentType: "module" | "frontend" | "backend" | "ui-component" | "ui-file";
|
|
1837
|
+
componentType: "module" | "frontend" | "backend" | "ui-component" | "ui-file" | "context-file";
|
|
1825
1838
|
}
|
|
1826
1839
|
export interface ProjectContext extends ContextBase {
|
|
1827
1840
|
type: "project";
|