@databutton/firebase-types 1.78.50 → 1.78.52

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,5 +1,6 @@
1
1
  import type { Timestamp } from "firebase/firestore";
2
2
  import type { Datafile, Dataframe, Job, PerformedBy, Project, ProjectTemplate } from "./persisted.js";
3
+ import type { RunMigrationsResponse } from "../db-api.js";
3
4
  export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
4
5
  export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
5
6
  export type DeleteDataframe = Pick<Dataframe, "markedForDeletionAt" | "markedForDeletionBy">;
@@ -264,4 +265,36 @@ export type InstallBackendDependenciesResponse = {
264
265
  backendPackagesId: string;
265
266
  buildId: string;
266
267
  };
268
+ export interface NewMigrationScript {
269
+ name: string;
270
+ sql: string;
271
+ }
272
+ export type TestAndRunSqlMigrationToolRequest = {
273
+ requestedBy: PerformedBy;
274
+ projectId: string;
275
+ migrations: NewMigrationScript[];
276
+ };
277
+ export type TestAndRunSqlMigrationToolResponse = {
278
+ prodTestResult: RunMigrationsResponse | null;
279
+ devResult: RunMigrationsResponse | null;
280
+ };
281
+ export type GetSqlSchemaRequest = {
282
+ requestedBy: PerformedBy;
283
+ projectId: string;
284
+ env: "prod" | "dev";
285
+ };
286
+ export type GetSqlSchemaResponse = {
287
+ sqlSchema: string;
288
+ };
289
+ export type RestoreBranchRequest = {
290
+ requestedBy: PerformedBy;
291
+ projectId: string;
292
+ targetEnv: "prod" | "dev";
293
+ sourceEnv: "prod" | "dev";
294
+ sourceLsn?: string;
295
+ sourceTimestamp?: string;
296
+ };
297
+ export type RestoreBranchResponse = {
298
+ success: boolean;
299
+ };
267
300
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.78.50",
3
+ "version": "1.78.52",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {