@databutton/firebase-types 1.79.1 → 1.79.3

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, PerformedBy, Project, ProjectTemplate } from "./persisted.js";
3
+ import type { Datafile, Dataframe, Job, PerformedBy, 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">;
@@ -296,4 +296,37 @@ export type RestoreBranchResponse = {
296
296
  success: boolean;
297
297
  errorMessage?: string;
298
298
  };
299
+ export interface CreateScheduleParams {
300
+ projectId: string;
301
+ displayName: string;
302
+ target: ScheduleTarget;
303
+ when: ScheduleWhen;
304
+ runImmediately: boolean;
305
+ }
306
+ export interface UpdateScheduleWhenParams {
307
+ when: ScheduleWhen;
308
+ }
309
+ export type ScheduleChangeRequest = {
310
+ projectId: string;
311
+ type: "create";
312
+ data: {
313
+ params: CreateScheduleParams;
314
+ };
315
+ } | {
316
+ projectId: string;
317
+ type: "update-when";
318
+ data: {
319
+ scheduleId: string;
320
+ params: UpdateScheduleWhenParams;
321
+ };
322
+ } | {
323
+ projectId: string;
324
+ type: "pause" | "resume" | "delete";
325
+ data: {
326
+ scheduleId: string;
327
+ };
328
+ };
329
+ export interface ScheduleChangeResponse {
330
+ scheduleRef: string;
331
+ }
299
332
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.79.1",
3
+ "version": "1.79.3",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {