@databutton/firebase-types 1.95.9 → 1.95.10
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.
|
@@ -218,6 +218,9 @@ export declare enum ConfigTypes {
|
|
|
218
218
|
export declare enum MigrateToRiffErrorCode {
|
|
219
219
|
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
220
220
|
}
|
|
221
|
+
export declare enum CreateNeonTransferErrorCode {
|
|
222
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
223
|
+
}
|
|
221
224
|
export declare enum ProjectEnvConfigEnv {
|
|
222
225
|
DEV = "dev",
|
|
223
226
|
PROD = "prod",
|
|
@@ -238,6 +238,10 @@ export var MigrateToRiffErrorCode;
|
|
|
238
238
|
(function (MigrateToRiffErrorCode) {
|
|
239
239
|
MigrateToRiffErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
240
240
|
})(MigrateToRiffErrorCode || (MigrateToRiffErrorCode = {}));
|
|
241
|
+
export var CreateNeonTransferErrorCode;
|
|
242
|
+
(function (CreateNeonTransferErrorCode) {
|
|
243
|
+
CreateNeonTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
244
|
+
})(CreateNeonTransferErrorCode || (CreateNeonTransferErrorCode = {}));
|
|
241
245
|
// Environments config can be defined for
|
|
242
246
|
export var ProjectEnvConfigEnv;
|
|
243
247
|
(function (ProjectEnvConfigEnv) {
|
|
@@ -2210,6 +2210,13 @@ export interface NeonConfig {
|
|
|
2210
2210
|
prodBranchId: string | null;
|
|
2211
2211
|
devBranchId: string | null;
|
|
2212
2212
|
stackAuthProjectId: string | null;
|
|
2213
|
+
transferRequest?: {
|
|
2214
|
+
createdBy: PerformedBy;
|
|
2215
|
+
neonTransferRequestId: string;
|
|
2216
|
+
claimUrl: string;
|
|
2217
|
+
expiresAt: Timestamp;
|
|
2218
|
+
ttlSeconds: number;
|
|
2219
|
+
};
|
|
2213
2220
|
}
|
|
2214
2221
|
export interface Database<P, C> {
|
|
2215
2222
|
createdBy: PerformedBy;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { RunMigrationsResponse } from "../db-api.js";
|
|
3
|
-
import type { CreateProjectErrorCode, MigrateToRiffErrorCode } from "./enums.js";
|
|
3
|
+
import type { CreateProjectErrorCode, MigrateToRiffErrorCode, CreateNeonTransferErrorCode } from "./enums.js";
|
|
4
4
|
import type { ApprovalLevel, Datafile, Dataframe, Job, ProjectPermissionName, Project, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
|
|
5
5
|
export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
6
6
|
export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -230,6 +230,18 @@ export type TransferOwnershipRequest = {
|
|
|
230
230
|
export type TransferOwnershipResponse = {
|
|
231
231
|
success: boolean;
|
|
232
232
|
};
|
|
233
|
+
export type CreateNeonTransferRequest = {
|
|
234
|
+
projectId: string;
|
|
235
|
+
ttlSeconds?: number;
|
|
236
|
+
};
|
|
237
|
+
export type CreateNeonTransferResponse = {
|
|
238
|
+
success: true;
|
|
239
|
+
claimUrl: string;
|
|
240
|
+
expiresAt: string;
|
|
241
|
+
} | {
|
|
242
|
+
success: false;
|
|
243
|
+
errorCode: CreateNeonTransferErrorCode;
|
|
244
|
+
};
|
|
233
245
|
export type InstallNewWorkspaceVersionRequest = {
|
|
234
246
|
projectId: string;
|
|
235
247
|
prevBuildId: string | null;
|