@databutton/firebase-types 1.70.2 → 1.70.4

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.
@@ -1303,19 +1303,34 @@ export interface PatchAttemptStrategy {
1303
1303
  codeModel: string;
1304
1304
  config: object;
1305
1305
  }
1306
+ export interface WriteAttemptStepBase {
1307
+ original: string;
1308
+ search: string;
1309
+ replace: string;
1310
+ methodsAttempted: string[];
1311
+ timings: {
1312
+ [key: string]: number;
1313
+ };
1314
+ }
1315
+ export interface WriteAttemptStepSuccess extends WriteAttemptStepBase {
1316
+ success: true;
1317
+ modified: string;
1318
+ successfulMethod: string;
1319
+ }
1320
+ export interface WriteAttemptStepFailure extends WriteAttemptStepBase {
1321
+ success: false;
1322
+ }
1323
+ export type WriteAttemptStep = WriteAttemptStepSuccess | WriteAttemptStepFailure;
1306
1324
  export interface WriteAttempt {
1307
1325
  projectId: string;
1308
- operation: "create" | "update";
1309
- result: {
1310
- success: true;
1311
- message: string;
1312
- } | {
1313
- success: false;
1314
- failureReason: string;
1326
+ success: boolean;
1327
+ failureReason?: string | null;
1328
+ messages: {
1329
+ level: "info" | "error" | "warning";
1315
1330
  message: string;
1316
- };
1331
+ }[];
1332
+ steps: WriteAttemptStep[];
1317
1333
  timings: {
1318
- durationMs: number;
1319
1334
  [key: string]: number;
1320
1335
  };
1321
1336
  code: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.70.2",
3
+ "version": "1.70.4",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {