@databutton/firebase-types 1.69.82 → 1.69.83
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.
|
@@ -52,6 +52,7 @@ export declare enum CollectionName {
|
|
|
52
52
|
WORKSPACE_VERSIONS = "versions",
|
|
53
53
|
TOKEN_USAGE_RECORDS = "token-usage-records",
|
|
54
54
|
UI_COMPONENTS = "ui-components",
|
|
55
|
+
UI_FILES = "ui-files",
|
|
55
56
|
TOKEN_USAGE_ENTRIES = "entries",
|
|
56
57
|
COMPUTE_HOUR_USAGE = "compute-hour-usage",
|
|
57
58
|
CREDIT_TRANSACTIONS = "credit-transactions"
|
|
@@ -80,6 +81,7 @@ export declare enum DatabuttonIdPrefix {
|
|
|
80
81
|
STREAMLIT_APP = "st",
|
|
81
82
|
THREADS = "th",
|
|
82
83
|
UI_COMPONENT = "uic",
|
|
84
|
+
UI_FILE = "uif",
|
|
83
85
|
BROKEN_VENV = "venv",
|
|
84
86
|
CREDIT_TRANSACTION = "ct"
|
|
85
87
|
}
|
|
@@ -53,6 +53,7 @@ export var CollectionName;
|
|
|
53
53
|
CollectionName["WORKSPACE_VERSIONS"] = "versions";
|
|
54
54
|
CollectionName["TOKEN_USAGE_RECORDS"] = "token-usage-records";
|
|
55
55
|
CollectionName["UI_COMPONENTS"] = "ui-components";
|
|
56
|
+
CollectionName["UI_FILES"] = "ui-files";
|
|
56
57
|
CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
|
|
57
58
|
CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
|
|
58
59
|
CollectionName["CREDIT_TRANSACTIONS"] = "credit-transactions";
|
|
@@ -82,6 +83,7 @@ export var DatabuttonIdPrefix;
|
|
|
82
83
|
DatabuttonIdPrefix["STREAMLIT_APP"] = "st";
|
|
83
84
|
DatabuttonIdPrefix["THREADS"] = "th";
|
|
84
85
|
DatabuttonIdPrefix["UI_COMPONENT"] = "uic";
|
|
86
|
+
DatabuttonIdPrefix["UI_FILE"] = "uif";
|
|
85
87
|
DatabuttonIdPrefix["BROKEN_VENV"] = "venv";
|
|
86
88
|
DatabuttonIdPrefix["CREDIT_TRANSACTION"] = "ct";
|
|
87
89
|
})(DatabuttonIdPrefix = DatabuttonIdPrefix || (DatabuttonIdPrefix = {}));
|
|
@@ -292,6 +292,12 @@ export interface UiComponent {
|
|
|
292
292
|
codeBlockRef: string;
|
|
293
293
|
example?: string;
|
|
294
294
|
}
|
|
295
|
+
export interface UiFile {
|
|
296
|
+
name: string;
|
|
297
|
+
createdBy: PerformedBy;
|
|
298
|
+
markedForDeletionBy: PerformedBy | null;
|
|
299
|
+
codeBlockRef: string;
|
|
300
|
+
}
|
|
295
301
|
export declare enum StepState {
|
|
296
302
|
TODO = "todo",
|
|
297
303
|
IN_PROGRESS = "in-progress",
|
|
@@ -392,7 +398,7 @@ export interface CodeBlockDeprecated extends CodeBlockBase {
|
|
|
392
398
|
type: "app";
|
|
393
399
|
}
|
|
394
400
|
export interface CodeBlockLive extends CodeBlockBase {
|
|
395
|
-
type: "job" | "module" | "page" | "frontend" | "backend" | "ui-component";
|
|
401
|
+
type: "job" | "module" | "page" | "frontend" | "backend" | "ui-component" | "ui-file";
|
|
396
402
|
}
|
|
397
403
|
export type CodeBlock = CodeBlockLive | CodeBlockDeprecated;
|
|
398
404
|
export interface CodeBlockCheckpoint {
|
|
@@ -727,6 +733,10 @@ export interface ProjectTemplate {
|
|
|
727
733
|
code: string;
|
|
728
734
|
example?: string;
|
|
729
735
|
}[];
|
|
736
|
+
uiFiles?: {
|
|
737
|
+
name: string;
|
|
738
|
+
code: string;
|
|
739
|
+
}[];
|
|
730
740
|
frontends?: {
|
|
731
741
|
name: string;
|
|
732
742
|
code: string;
|
|
@@ -912,7 +922,7 @@ type WithDocRef<T> = T & {
|
|
|
912
922
|
export type ComponentSnapshotBase = {
|
|
913
923
|
component: WithDocRef<{
|
|
914
924
|
name: string;
|
|
915
|
-
type: "page" | "job" | "module" | "frontend" | "backend" | "ui-component";
|
|
925
|
+
type: "page" | "job" | "module" | "frontend" | "backend" | "ui-component" | "ui-file";
|
|
916
926
|
}>;
|
|
917
927
|
codeBlock: WithDocRef<{
|
|
918
928
|
version: WithDocRef<{
|
|
@@ -924,6 +934,7 @@ export type ComponentSnapshotBase = {
|
|
|
924
934
|
};
|
|
925
935
|
export type ModuleSnapshot<T = ComponentSnapshotBase> = T;
|
|
926
936
|
export type UiComponentSnapshot<T = ComponentSnapshotBase> = T;
|
|
937
|
+
export type UiFileSnapshot<T = ComponentSnapshotBase> = T;
|
|
927
938
|
export type FrontendSnapshot<T = ComponentSnapshotBase> = T;
|
|
928
939
|
export type BackendSnapshot<T = ComponentSnapshotBase> = T;
|
|
929
940
|
export type ComponentDependenciesSnapshot<T = ComponentSnapshotBase> = {
|
|
@@ -954,6 +965,7 @@ export type AppSnapshot<T = ComponentSnapshotBase> = {
|
|
|
954
965
|
backends?: BackendSnapshot<T>[];
|
|
955
966
|
frontends?: FrontendSnapshot<T>[];
|
|
956
967
|
uiComponents?: UiComponentSnapshot<T>[];
|
|
968
|
+
uiFiles?: UiFileSnapshot<T>[];
|
|
957
969
|
};
|
|
958
970
|
export interface ProjectDeploymentBase<T = ComponentSnapshotBase> extends AppSnapshot<T> {
|
|
959
971
|
build: {
|
|
@@ -988,7 +1000,7 @@ export interface ContextBase {
|
|
|
988
1000
|
export interface ComponentContext extends ContextBase {
|
|
989
1001
|
type: "component";
|
|
990
1002
|
componentId: string;
|
|
991
|
-
componentType: "job" | "page" | "module" | "frontend" | "backend" | "ui-component";
|
|
1003
|
+
componentType: "job" | "page" | "module" | "frontend" | "backend" | "ui-component" | "ui-file";
|
|
992
1004
|
}
|
|
993
1005
|
export interface ProjectContext extends ContextBase {
|
|
994
1006
|
type: "project";
|