@databutton/firebase-types 1.67.8 → 1.67.10

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,5 @@
1
- import { Timestamp } from "firebase/firestore";
2
- import { JsonObject } from "type-fest";
1
+ import type { Timestamp } from "firebase/firestore";
2
+ import type { JsonObject } from "type-fest";
3
3
  /**
4
4
  * Types here should reflect data format stored in firestore and
5
5
  * either be backwards-compatible or migrated when needed
@@ -621,6 +621,8 @@ export interface Project {
621
621
  slug?: string;
622
622
  owner: string;
623
623
  projectCardColor: string;
624
+ favIconLight?: string;
625
+ favIconDark?: string;
624
626
  shouldShowStartGuide?: boolean;
625
627
  about?: string;
626
628
  githubUrl?: string;
@@ -1108,17 +1110,27 @@ export interface ComputeHourUsageRecord {
1108
1110
  secondsUsedForHour: number;
1109
1111
  appbutlerId: string;
1110
1112
  }
1111
- export interface PatchAttempt {
1113
+ export interface PatchAttemptCommon {
1112
1114
  projectId: string;
1113
1115
  changeRequestId: string;
1114
1116
  attempt: number;
1115
1117
  changeRequest: string;
1116
1118
  codeBefore: string;
1117
- agentResponse: string | null;
1118
- patch: string | null;
1119
1119
  codeAfter: string | null;
1120
- final?: boolean;
1121
1120
  success: boolean;
1121
+ final?: boolean;
1122
1122
  createdAt?: Timestamp;
1123
1123
  }
1124
+ export type PatchAttemptV1 = PatchAttemptCommon & {
1125
+ agentResponse?: string | null;
1126
+ patch?: string | null;
1127
+ };
1128
+ export type PatchAttemptV2 = PatchAttemptCommon & {
1129
+ schema: "2024-05-15";
1130
+ patchMode?: string;
1131
+ agentResponses?: {
1132
+ name: string;
1133
+ response: string;
1134
+ }[];
1135
+ };
1124
1136
  export {};
@@ -1,5 +1,5 @@
1
- import { Timestamp } from "firebase/firestore";
2
- import { Datafile, Dataframe, Job, Project } from "./persisted.js";
1
+ import type { Timestamp } from "firebase/firestore";
2
+ import type { Datafile, Dataframe, Job, Project } from "./persisted.js";
3
3
  export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
4
4
  export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
5
5
  export type DeleteDataframe = Pick<Dataframe, "markedForDeletionAt" | "markedForDeletionBy">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.67.8",
3
+ "version": "1.67.10",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {