@databutton/firebase-types 1.52.7 → 1.52.9
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.
|
@@ -199,23 +199,6 @@ export interface MultipageAppPage {
|
|
|
199
199
|
*/
|
|
200
200
|
sequence: number;
|
|
201
201
|
}
|
|
202
|
-
/**
|
|
203
|
-
* @deprecated No longer in use, but might still exist in the db
|
|
204
|
-
*/
|
|
205
|
-
export interface App {
|
|
206
|
-
name: string;
|
|
207
|
-
slug: string;
|
|
208
|
-
createdByUser?: PerformedBy;
|
|
209
|
-
createdBy: string;
|
|
210
|
-
createdAt: Timestamp;
|
|
211
|
-
variant: "streamlit";
|
|
212
|
-
markedForDeletionAt: Timestamp | null;
|
|
213
|
-
markedForDeletionBy?: PerformedBy | null;
|
|
214
|
-
markedForDeletionReason?: string;
|
|
215
|
-
shortUrl: string;
|
|
216
|
-
isPublic?: boolean;
|
|
217
|
-
category: string | null;
|
|
218
|
-
}
|
|
219
202
|
export interface Module {
|
|
220
203
|
name: string;
|
|
221
204
|
slug: string;
|
|
@@ -494,11 +477,6 @@ export interface ProjectCustomDomain {
|
|
|
494
477
|
value: string;
|
|
495
478
|
}[];
|
|
496
479
|
}
|
|
497
|
-
export interface ProjectTemplateApp {
|
|
498
|
-
name: string;
|
|
499
|
-
code: string;
|
|
500
|
-
screenshot: string | null;
|
|
501
|
-
}
|
|
502
480
|
export interface ProjectTemplatePage {
|
|
503
481
|
name: string;
|
|
504
482
|
code: string;
|
|
@@ -517,7 +495,6 @@ export interface ProjectTemplate {
|
|
|
517
495
|
name: string;
|
|
518
496
|
markedForDeletionBy: PerformedBy | null;
|
|
519
497
|
description: string | null;
|
|
520
|
-
apps: ProjectTemplateApp[];
|
|
521
498
|
multipageAppPages?: ProjectTemplatePage[];
|
|
522
499
|
jobs: {
|
|
523
500
|
name: string;
|
|
@@ -655,10 +632,6 @@ export interface JobSnapshotDeprecated extends ComponentSnapshot {
|
|
|
655
632
|
requirementsHash: string;
|
|
656
633
|
modules: ModuleSnapshotDeprecated[];
|
|
657
634
|
}
|
|
658
|
-
export interface ViewSnapshotDeprecated extends ComponentSnapshot {
|
|
659
|
-
requirementsHash: string;
|
|
660
|
-
modules: ModuleSnapshotDeprecated[];
|
|
661
|
-
}
|
|
662
635
|
export interface MultipageAppSnapshotDeprecated {
|
|
663
636
|
id: string;
|
|
664
637
|
requirementsHash: string;
|
|
@@ -670,7 +643,6 @@ export interface AppConfigSnapshot {
|
|
|
670
643
|
createdBy: PerformedBy;
|
|
671
644
|
multipageApps: MultipageAppSnapshotDeprecated[];
|
|
672
645
|
jobs: JobSnapshotDeprecated[];
|
|
673
|
-
views: ViewSnapshotDeprecated[];
|
|
674
646
|
}
|
|
675
647
|
export type RequirementsSnapshot = {
|
|
676
648
|
requirementsId: string;
|
|
@@ -732,16 +704,12 @@ export type MultipageAppSnapshot<T = ComponentSnapshotBase> = {
|
|
|
732
704
|
dependencies: ComponentDependenciesSnapshot<T>;
|
|
733
705
|
config?: MultipageAppConfig | null;
|
|
734
706
|
};
|
|
735
|
-
export type ViewSnapshot<T = ComponentSnapshotBase> = T & {
|
|
736
|
-
dependencies: ComponentDependenciesSnapshot<T>;
|
|
737
|
-
};
|
|
738
707
|
export type JobSnapshot<T = ComponentSnapshotBase> = T & {
|
|
739
708
|
dependencies: ComponentDependenciesSnapshot<T>;
|
|
740
709
|
};
|
|
741
710
|
export type AppSnapshot<T = ComponentSnapshotBase> = {
|
|
742
711
|
deployedBy: PerformedBy;
|
|
743
712
|
multipageApps: MultipageAppSnapshot<T>[];
|
|
744
|
-
views: ViewSnapshot<T>[];
|
|
745
713
|
jobs: JobSnapshot<T>[];
|
|
746
714
|
};
|
|
747
715
|
export interface ProjectDeploymentBase<T = ComponentSnapshotBase> extends AppSnapshot<T> {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Timestamp } from "firebase/firestore";
|
|
2
|
-
import {
|
|
2
|
+
import { Datafile, Dataframe, Job, Project } from "./persisted.js";
|
|
3
3
|
export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
4
|
-
export type DeleteApp = Pick<App, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
5
4
|
export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
6
5
|
export type DeleteDataframe = Pick<Dataframe, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
7
6
|
export type DeleteDatafile = Pick<Datafile, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -44,12 +43,6 @@ export type AdminCommandsForPalleteLink = {
|
|
|
44
43
|
export type AdminCommandsForPalleteResponse = {
|
|
45
44
|
links: AdminCommandsForPalleteLink[];
|
|
46
45
|
};
|
|
47
|
-
export type MigrateViewsRequest = {
|
|
48
|
-
projectId: string;
|
|
49
|
-
};
|
|
50
|
-
export type MigrateViewsResponse = {
|
|
51
|
-
success: boolean;
|
|
52
|
-
};
|
|
53
46
|
export type CreateBillingPortalSessionRequest = {
|
|
54
47
|
returnUrl: string;
|
|
55
48
|
};
|