@databutton/firebase-types 1.52.6 → 1.52.8
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,20 +199,6 @@ export interface MultipageAppPage {
|
|
|
199
199
|
*/
|
|
200
200
|
sequence: number;
|
|
201
201
|
}
|
|
202
|
-
export interface App {
|
|
203
|
-
name: string;
|
|
204
|
-
slug: string;
|
|
205
|
-
createdByUser?: PerformedBy;
|
|
206
|
-
createdBy: string;
|
|
207
|
-
createdAt: Timestamp;
|
|
208
|
-
variant: "streamlit";
|
|
209
|
-
markedForDeletionAt: Timestamp | null;
|
|
210
|
-
markedForDeletionBy?: PerformedBy | null;
|
|
211
|
-
markedForDeletionReason?: string;
|
|
212
|
-
shortUrl: string;
|
|
213
|
-
isPublic?: boolean;
|
|
214
|
-
category: string | null;
|
|
215
|
-
}
|
|
216
202
|
export interface Module {
|
|
217
203
|
name: string;
|
|
218
204
|
slug: string;
|
|
@@ -240,12 +226,21 @@ export interface Job {
|
|
|
240
226
|
category: string | null;
|
|
241
227
|
codeBlockRef: string;
|
|
242
228
|
}
|
|
243
|
-
export interface
|
|
244
|
-
type: "app" | "job" | "module" | "page";
|
|
229
|
+
export interface CodeBlockBase {
|
|
245
230
|
createdAtUtc: Timestamp;
|
|
246
231
|
componentId: string;
|
|
247
232
|
controlTakenBy?: PerformedBy | null;
|
|
248
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* @deprecated No longer in product, but might still exist in the firebase
|
|
236
|
+
*/
|
|
237
|
+
export interface CodeBlockDeprecated extends CodeBlockBase {
|
|
238
|
+
type: "app";
|
|
239
|
+
}
|
|
240
|
+
export interface CodeBlockLive extends CodeBlockBase {
|
|
241
|
+
type: "job" | "module" | "page";
|
|
242
|
+
}
|
|
243
|
+
export type CodeBlock = CodeBlockLive | CodeBlockDeprecated;
|
|
249
244
|
export interface CodeBlockCheckpoint {
|
|
250
245
|
title: string | null;
|
|
251
246
|
codeBlockVersionRef: string;
|
|
@@ -482,11 +477,6 @@ export interface ProjectCustomDomain {
|
|
|
482
477
|
value: string;
|
|
483
478
|
}[];
|
|
484
479
|
}
|
|
485
|
-
export interface ProjectTemplateApp {
|
|
486
|
-
name: string;
|
|
487
|
-
code: string;
|
|
488
|
-
screenshot: string | null;
|
|
489
|
-
}
|
|
490
480
|
export interface ProjectTemplatePage {
|
|
491
481
|
name: string;
|
|
492
482
|
code: string;
|
|
@@ -505,7 +495,6 @@ export interface ProjectTemplate {
|
|
|
505
495
|
name: string;
|
|
506
496
|
markedForDeletionBy: PerformedBy | null;
|
|
507
497
|
description: string | null;
|
|
508
|
-
apps: ProjectTemplateApp[];
|
|
509
498
|
multipageAppPages?: ProjectTemplatePage[];
|
|
510
499
|
jobs: {
|
|
511
500
|
name: string;
|
|
@@ -643,10 +632,6 @@ export interface JobSnapshotDeprecated extends ComponentSnapshot {
|
|
|
643
632
|
requirementsHash: string;
|
|
644
633
|
modules: ModuleSnapshotDeprecated[];
|
|
645
634
|
}
|
|
646
|
-
export interface ViewSnapshotDeprecated extends ComponentSnapshot {
|
|
647
|
-
requirementsHash: string;
|
|
648
|
-
modules: ModuleSnapshotDeprecated[];
|
|
649
|
-
}
|
|
650
635
|
export interface MultipageAppSnapshotDeprecated {
|
|
651
636
|
id: string;
|
|
652
637
|
requirementsHash: string;
|
|
@@ -658,7 +643,6 @@ export interface AppConfigSnapshot {
|
|
|
658
643
|
createdBy: PerformedBy;
|
|
659
644
|
multipageApps: MultipageAppSnapshotDeprecated[];
|
|
660
645
|
jobs: JobSnapshotDeprecated[];
|
|
661
|
-
views: ViewSnapshotDeprecated[];
|
|
662
646
|
}
|
|
663
647
|
export type RequirementsSnapshot = {
|
|
664
648
|
requirementsId: string;
|
|
@@ -720,16 +704,12 @@ export type MultipageAppSnapshot<T = ComponentSnapshotBase> = {
|
|
|
720
704
|
dependencies: ComponentDependenciesSnapshot<T>;
|
|
721
705
|
config?: MultipageAppConfig | null;
|
|
722
706
|
};
|
|
723
|
-
export type ViewSnapshot<T = ComponentSnapshotBase> = T & {
|
|
724
|
-
dependencies: ComponentDependenciesSnapshot<T>;
|
|
725
|
-
};
|
|
726
707
|
export type JobSnapshot<T = ComponentSnapshotBase> = T & {
|
|
727
708
|
dependencies: ComponentDependenciesSnapshot<T>;
|
|
728
709
|
};
|
|
729
710
|
export type AppSnapshot<T = ComponentSnapshotBase> = {
|
|
730
711
|
deployedBy: PerformedBy;
|
|
731
712
|
multipageApps: MultipageAppSnapshot<T>[];
|
|
732
|
-
views: ViewSnapshot<T>[];
|
|
733
713
|
jobs: JobSnapshot<T>[];
|
|
734
714
|
};
|
|
735
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
|
};
|