@databutton/firebase-types 1.82.18 → 1.82.20
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { RunMigrationsResponse } from "../db-api.js";
|
|
3
|
-
import type { Datafile, Dataframe, Job,
|
|
3
|
+
import type { Datafile, Dataframe, Job, Project, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
|
|
4
4
|
export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
5
5
|
export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
6
6
|
export type DeleteDataframe = Pick<Dataframe, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -270,7 +270,6 @@ export interface NewMigrationScript {
|
|
|
270
270
|
sql: string;
|
|
271
271
|
}
|
|
272
272
|
export type TestAndRunSqlMigrationToolRequest = {
|
|
273
|
-
requestedBy: PerformedBy;
|
|
274
273
|
projectId: string;
|
|
275
274
|
migrations: NewMigrationScript[];
|
|
276
275
|
};
|
|
@@ -279,7 +278,6 @@ export type TestAndRunSqlMigrationToolResponse = {
|
|
|
279
278
|
devResult: RunMigrationsResponse | null;
|
|
280
279
|
};
|
|
281
280
|
export type GetSqlSchemaRequest = {
|
|
282
|
-
requestedBy: PerformedBy;
|
|
283
281
|
projectId: string;
|
|
284
282
|
env: "prod" | "dev";
|
|
285
283
|
};
|
|
@@ -287,12 +285,11 @@ export type GetSqlSchemaResponse = {
|
|
|
287
285
|
sqlSchema: string;
|
|
288
286
|
};
|
|
289
287
|
export type RestoreBranchRequest = {
|
|
290
|
-
requestedBy: PerformedBy;
|
|
291
288
|
projectId: string;
|
|
292
289
|
targetEnv: "prod" | "dev";
|
|
293
290
|
sourceEnv: "prod" | "dev";
|
|
294
|
-
sourceLsn?: string;
|
|
295
|
-
sourceTimestamp?: string;
|
|
291
|
+
sourceLsn?: string | null;
|
|
292
|
+
sourceTimestamp?: string | null;
|
|
296
293
|
};
|
|
297
294
|
export type RestoreBranchResponse = {
|
|
298
295
|
success: boolean;
|