@databutton/firebase-types 1.56.22 → 1.56.24
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.
|
@@ -240,6 +240,22 @@ export interface MultipageAppPage {
|
|
|
240
240
|
*/
|
|
241
241
|
sequence: number;
|
|
242
242
|
}
|
|
243
|
+
export interface Frontend {
|
|
244
|
+
name: string;
|
|
245
|
+
slug: string;
|
|
246
|
+
createdBy: PerformedBy;
|
|
247
|
+
markedForDeletionBy: PerformedBy | null;
|
|
248
|
+
codeBlockRef: string;
|
|
249
|
+
}
|
|
250
|
+
export declare const DefaultFrontendName = "App";
|
|
251
|
+
export interface Backend {
|
|
252
|
+
name: string;
|
|
253
|
+
slug: string;
|
|
254
|
+
createdBy: PerformedBy;
|
|
255
|
+
markedForDeletionBy: PerformedBy | null;
|
|
256
|
+
codeBlockRef: string;
|
|
257
|
+
}
|
|
258
|
+
export declare const DefaultBackendName = "functions";
|
|
243
259
|
export interface Module {
|
|
244
260
|
name: string;
|
|
245
261
|
slug: string;
|
|
@@ -279,7 +295,7 @@ export interface CodeBlockDeprecated extends CodeBlockBase {
|
|
|
279
295
|
type: "app";
|
|
280
296
|
}
|
|
281
297
|
export interface CodeBlockLive extends CodeBlockBase {
|
|
282
|
-
type: "job" | "module" | "page";
|
|
298
|
+
type: "job" | "module" | "page" | "frontend" | "backend";
|
|
283
299
|
}
|
|
284
300
|
export type CodeBlock = CodeBlockLive | CodeBlockDeprecated;
|
|
285
301
|
export interface CodeBlockCheckpoint {
|
|
@@ -481,11 +497,16 @@ export interface ProjectLifeStageChangeRequest {
|
|
|
481
497
|
targetLifeStage: ProjectLifeStage;
|
|
482
498
|
requestedBy: PerformedBy;
|
|
483
499
|
}
|
|
500
|
+
export declare enum ProjectBuildStage {
|
|
501
|
+
IDEATE = "ideate",
|
|
502
|
+
BUILD = "build"
|
|
503
|
+
}
|
|
484
504
|
export interface Project {
|
|
485
505
|
createdAt: Timestamp;
|
|
486
506
|
createdBy?: PerformedBy;
|
|
487
507
|
createdFromProjectTemplateId?: string | null;
|
|
488
508
|
variant?: "beyond-streamlit" | "streamlit";
|
|
509
|
+
buildingStage?: ProjectBuildStage;
|
|
489
510
|
lifeStage: ProjectLifeStage;
|
|
490
511
|
lifeStageUpdatedBy: PerformedBy;
|
|
491
512
|
/**
|
|
@@ -557,6 +578,14 @@ export interface ProjectTemplate {
|
|
|
557
578
|
name: string;
|
|
558
579
|
code: string;
|
|
559
580
|
}[];
|
|
581
|
+
frontends?: {
|
|
582
|
+
name: string;
|
|
583
|
+
code: string;
|
|
584
|
+
}[];
|
|
585
|
+
backends?: {
|
|
586
|
+
name: string;
|
|
587
|
+
code: string;
|
|
588
|
+
}[];
|
|
560
589
|
/** @deprecated Use requirements */
|
|
561
590
|
requirementsRef: string;
|
|
562
591
|
requirements: {
|
|
@@ -730,7 +759,7 @@ type WithDocRef<T> = T & {
|
|
|
730
759
|
export type ComponentSnapshotBase = {
|
|
731
760
|
component: WithDocRef<{
|
|
732
761
|
name: string;
|
|
733
|
-
type: "page" | "job" | "
|
|
762
|
+
type: "page" | "job" | "module" | "frontend" | "backend";
|
|
734
763
|
}>;
|
|
735
764
|
codeBlock: WithDocRef<{
|
|
736
765
|
version: WithDocRef<{
|
|
@@ -741,6 +770,8 @@ export type ComponentSnapshotBase = {
|
|
|
741
770
|
}>;
|
|
742
771
|
};
|
|
743
772
|
export type ModuleSnapshot<T = ComponentSnapshotBase> = T;
|
|
773
|
+
export type FrontendSnapshot<T = ComponentSnapshotBase> = T;
|
|
774
|
+
export type BackendSnapshot<T = ComponentSnapshotBase> = T;
|
|
744
775
|
export type ComponentDependenciesSnapshot<T = ComponentSnapshotBase> = {
|
|
745
776
|
modules: ModuleSnapshot<T>[];
|
|
746
777
|
venv: {
|
|
@@ -766,6 +797,8 @@ export type AppSnapshot<T = ComponentSnapshotBase> = {
|
|
|
766
797
|
multipageApps: MultipageAppSnapshot<T>[];
|
|
767
798
|
jobs: JobSnapshot<T>[];
|
|
768
799
|
modules?: ModuleSnapshot<T>[];
|
|
800
|
+
frontends?: FrontendSnapshot<T>[];
|
|
801
|
+
backends?: BackendSnapshot<T>[];
|
|
769
802
|
};
|
|
770
803
|
export interface ProjectDeploymentBase<T = ComponentSnapshotBase> extends AppSnapshot<T> {
|
|
771
804
|
build: {
|
|
@@ -798,7 +831,7 @@ export interface ContextBase {
|
|
|
798
831
|
export interface ComponentContext extends ContextBase {
|
|
799
832
|
type: "component";
|
|
800
833
|
componentId: string;
|
|
801
|
-
componentType: "job" | "
|
|
834
|
+
componentType: "job" | "page" | "module" | "frontend" | "backend";
|
|
802
835
|
}
|
|
803
836
|
export interface ProjectContext extends ContextBase {
|
|
804
837
|
type: "project";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export const DefaultFrontendName = "App";
|
|
2
|
+
export const DefaultBackendName = "functions";
|
|
1
3
|
export var ScheduleState;
|
|
2
4
|
(function (ScheduleState) {
|
|
3
5
|
ScheduleState["ACTIVE"] = "ACTIVE";
|
|
@@ -15,4 +17,9 @@ export var ProjectLifeStage;
|
|
|
15
17
|
ProjectLifeStage["Deleting"] = "deleting";
|
|
16
18
|
ProjectLifeStage["Deleted"] = "deleted";
|
|
17
19
|
})(ProjectLifeStage = ProjectLifeStage || (ProjectLifeStage = {}));
|
|
20
|
+
export var ProjectBuildStage;
|
|
21
|
+
(function (ProjectBuildStage) {
|
|
22
|
+
ProjectBuildStage["IDEATE"] = "ideate";
|
|
23
|
+
ProjectBuildStage["BUILD"] = "build";
|
|
24
|
+
})(ProjectBuildStage = ProjectBuildStage || (ProjectBuildStage = {}));
|
|
18
25
|
//# sourceMappingURL=persisted.js.map
|