@databutton/firebase-types 1.70.2 → 1.70.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.
|
@@ -1303,19 +1303,31 @@ export interface PatchAttemptStrategy {
|
|
|
1303
1303
|
codeModel: string;
|
|
1304
1304
|
config: object;
|
|
1305
1305
|
}
|
|
1306
|
+
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
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
} | {
|
|
1313
|
-
success: false;
|
|
1314
|
-
failureReason: string;
|
|
1315
|
-
message: string;
|
|
1316
|
-
};
|
|
1326
|
+
success: boolean;
|
|
1327
|
+
failureReason?: string | null;
|
|
1328
|
+
message: string;
|
|
1329
|
+
steps: WriteAttemptStep[];
|
|
1317
1330
|
timings: {
|
|
1318
|
-
durationMs: number;
|
|
1319
1331
|
[key: string]: number;
|
|
1320
1332
|
};
|
|
1321
1333
|
code: {
|