@databutton/firebase-types 1.70.1 → 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,6 +1303,41 @@ 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;
|
|
1324
|
+
export interface WriteAttempt {
|
|
1325
|
+
projectId: string;
|
|
1326
|
+
success: boolean;
|
|
1327
|
+
failureReason?: string | null;
|
|
1328
|
+
message: string;
|
|
1329
|
+
steps: WriteAttemptStep[];
|
|
1330
|
+
timings: {
|
|
1331
|
+
[key: string]: number;
|
|
1332
|
+
};
|
|
1333
|
+
code: {
|
|
1334
|
+
before: string;
|
|
1335
|
+
after: string | null;
|
|
1336
|
+
language: string;
|
|
1337
|
+
filepath: string;
|
|
1338
|
+
};
|
|
1339
|
+
meta: Record<string, string>;
|
|
1340
|
+
}
|
|
1306
1341
|
export interface PatchAttempt {
|
|
1307
1342
|
projectId: string;
|
|
1308
1343
|
changeRequestId: string;
|