@databutton/firebase-types 1.70.3 → 1.70.5

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.
@@ -55,7 +55,8 @@ export declare enum CollectionName {
55
55
  UI_FILES = "ui-files",
56
56
  TOKEN_USAGE_ENTRIES = "entries",
57
57
  COMPUTE_HOUR_USAGE = "compute-hour-usage",
58
- CREDIT_TRANSACTIONS = "credit-transactions"
58
+ CREDIT_TRANSACTIONS = "credit-transactions",
59
+ WRITE_ATTEMPTS = "write-attempts"
59
60
  }
60
61
  export declare enum DatabuttonIdPrefix {
61
62
  APP_DEPLOY = "ad",
@@ -57,6 +57,7 @@ export var CollectionName;
57
57
  CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
58
58
  CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
59
59
  CollectionName["CREDIT_TRANSACTIONS"] = "credit-transactions";
60
+ CollectionName["WRITE_ATTEMPTS"] = "write-attempts";
60
61
  })(CollectionName = CollectionName || (CollectionName = {}));
61
62
  export var DatabuttonIdPrefix;
62
63
  (function (DatabuttonIdPrefix) {
@@ -1303,7 +1303,7 @@ export interface PatchAttemptStrategy {
1303
1303
  codeModel: string;
1304
1304
  config: object;
1305
1305
  }
1306
- interface WriteAttemptStepBase {
1306
+ export interface WriteAttemptStepBase {
1307
1307
  original: string;
1308
1308
  search: string;
1309
1309
  replace: string;
@@ -1323,9 +1323,14 @@ export interface WriteAttemptStepFailure extends WriteAttemptStepBase {
1323
1323
  export type WriteAttemptStep = WriteAttemptStepSuccess | WriteAttemptStepFailure;
1324
1324
  export interface WriteAttempt {
1325
1325
  projectId: string;
1326
+ createdAt: Timestamp;
1327
+ reference: string;
1326
1328
  success: boolean;
1327
1329
  failureReason?: string | null;
1328
- message: string;
1330
+ messages: {
1331
+ level: "info" | "error" | "warning";
1332
+ message: string;
1333
+ }[];
1329
1334
  steps: WriteAttemptStep[];
1330
1335
  timings: {
1331
1336
  [key: string]: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.70.3",
3
+ "version": "1.70.5",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {