@databutton/firebase-types 1.67.9 → 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
@@ -1110,17 +1110,27 @@ export interface ComputeHourUsageRecord {
1110
1110
  secondsUsedForHour: number;
1111
1111
  appbutlerId: string;
1112
1112
  }
1113
- export interface PatchAttempt {
1113
+ export interface PatchAttemptCommon {
1114
1114
  projectId: string;
1115
1115
  changeRequestId: string;
1116
1116
  attempt: number;
1117
1117
  changeRequest: string;
1118
1118
  codeBefore: string;
1119
- agentResponse: string | null;
1120
- patch: string | null;
1121
1119
  codeAfter: string | null;
1122
- final?: boolean;
1123
1120
  success: boolean;
1121
+ final?: boolean;
1124
1122
  createdAt?: Timestamp;
1125
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
+ };
1126
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.9",
3
+ "version": "1.67.10",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {