@databutton/firebase-types 1.95.6 → 1.95.8
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.
|
@@ -86,6 +86,7 @@ export declare enum CollectionName {
|
|
|
86
86
|
TASKS = "tasks",
|
|
87
87
|
TOKEN_USAGE_ENTRIES = "entries",
|
|
88
88
|
COMPUTE_HOUR_USAGE = "compute-hour-usage",
|
|
89
|
+
NEON_USAGE = "neon-usage",
|
|
89
90
|
CREDIT_TRANSACTIONS = "credit-transactions",
|
|
90
91
|
WRITE_ATTEMPTS = "write-attempts",
|
|
91
92
|
LEGACY_UNUSED_JOBS = "jobs",
|
|
@@ -87,6 +87,7 @@ export var CollectionName;
|
|
|
87
87
|
CollectionName["TASKS"] = "tasks";
|
|
88
88
|
CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
|
|
89
89
|
CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
|
|
90
|
+
CollectionName["NEON_USAGE"] = "neon-usage";
|
|
90
91
|
CollectionName["CREDIT_TRANSACTIONS"] = "credit-transactions";
|
|
91
92
|
CollectionName["WRITE_ATTEMPTS"] = "write-attempts";
|
|
92
93
|
//
|
|
@@ -2003,6 +2003,16 @@ export interface ComputeHourUsageRecord {
|
|
|
2003
2003
|
secondsUsedForHour: number;
|
|
2004
2004
|
appbutlerId: string;
|
|
2005
2005
|
}
|
|
2006
|
+
export interface NeonUsageRecord {
|
|
2007
|
+
projectId: string;
|
|
2008
|
+
neonProjectId: string;
|
|
2009
|
+
branchId: string;
|
|
2010
|
+
branchType: "dev" | "prod";
|
|
2011
|
+
recordedAt: Timestamp;
|
|
2012
|
+
computeTimeSeconds: number;
|
|
2013
|
+
dataStorageBytesHour: number;
|
|
2014
|
+
activeTimeSeconds: number;
|
|
2015
|
+
}
|
|
2006
2016
|
export interface PatchAttemptStrategy {
|
|
2007
2017
|
tag: string;
|
|
2008
2018
|
maxAttempts: number;
|
|
@@ -2195,7 +2205,7 @@ export interface NeonConfig {
|
|
|
2195
2205
|
export interface Database<P, C> {
|
|
2196
2206
|
createdBy: PerformedBy;
|
|
2197
2207
|
updatedBy: PerformedBy;
|
|
2198
|
-
markedForDeletionBy:
|
|
2208
|
+
markedForDeletionBy: PerformedBy | null;
|
|
2199
2209
|
provider: P;
|
|
2200
2210
|
config: C;
|
|
2201
2211
|
}
|