@databutton/firebase-types 1.121.0 → 1.122.0
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.
|
@@ -232,6 +232,11 @@ export declare enum MigrateToRiffErrorCode {
|
|
|
232
232
|
export declare enum CreateNeonTransferErrorCode {
|
|
233
233
|
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
234
234
|
}
|
|
235
|
+
export declare enum CreateStackAuthTransferErrorCode {
|
|
236
|
+
STACK_AUTH_NOT_CONFIGURED = "STACK_AUTH_NOT_CONFIGURED",
|
|
237
|
+
TRANSFER_API_ERROR = "TRANSFER_API_ERROR",
|
|
238
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
239
|
+
}
|
|
235
240
|
export declare enum CreateTeamAccountErrorCode {
|
|
236
241
|
UNAUTHENTICATED = "UNAUTHENTICATED",
|
|
237
242
|
INVALID_NAME = "INVALID_NAME",
|
|
@@ -253,6 +253,12 @@ export var CreateNeonTransferErrorCode;
|
|
|
253
253
|
(function (CreateNeonTransferErrorCode) {
|
|
254
254
|
CreateNeonTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
255
255
|
})(CreateNeonTransferErrorCode || (CreateNeonTransferErrorCode = {}));
|
|
256
|
+
export var CreateStackAuthTransferErrorCode;
|
|
257
|
+
(function (CreateStackAuthTransferErrorCode) {
|
|
258
|
+
CreateStackAuthTransferErrorCode["STACK_AUTH_NOT_CONFIGURED"] = "STACK_AUTH_NOT_CONFIGURED";
|
|
259
|
+
CreateStackAuthTransferErrorCode["TRANSFER_API_ERROR"] = "TRANSFER_API_ERROR";
|
|
260
|
+
CreateStackAuthTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
261
|
+
})(CreateStackAuthTransferErrorCode || (CreateStackAuthTransferErrorCode = {}));
|
|
256
262
|
export var CreateTeamAccountErrorCode;
|
|
257
263
|
(function (CreateTeamAccountErrorCode) {
|
|
258
264
|
CreateTeamAccountErrorCode["UNAUTHENTICATED"] = "UNAUTHENTICATED";
|
|
@@ -2313,6 +2313,13 @@ export interface NeonConfig {
|
|
|
2313
2313
|
expiresAt: Timestamp;
|
|
2314
2314
|
ttlSeconds: number;
|
|
2315
2315
|
};
|
|
2316
|
+
stackAuthTransferRequest?: {
|
|
2317
|
+
createdBy: PerformedBy;
|
|
2318
|
+
claimUrl: string;
|
|
2319
|
+
expiresAt: Timestamp;
|
|
2320
|
+
ttlSeconds: number;
|
|
2321
|
+
claimedAt?: Timestamp;
|
|
2322
|
+
};
|
|
2316
2323
|
}
|
|
2317
2324
|
export interface Database<P, C> {
|
|
2318
2325
|
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 { CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode } from "./enums.js";
|
|
3
|
+
import type { CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateStackAuthTransferErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode } from "./enums.js";
|
|
4
4
|
import type { ApprovalLevel, Datafile, Dataframe, Job, Project, ProjectPermissionName, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
|
|
5
5
|
export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
6
6
|
export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -271,6 +271,18 @@ export type CreateNeonTransferResponse = {
|
|
|
271
271
|
success: false;
|
|
272
272
|
errorCode: CreateNeonTransferErrorCode;
|
|
273
273
|
};
|
|
274
|
+
export type CreateStackAuthTransferRequest = {
|
|
275
|
+
projectId: string;
|
|
276
|
+
ttlSeconds?: number;
|
|
277
|
+
};
|
|
278
|
+
export type CreateStackAuthTransferResponse = {
|
|
279
|
+
success: true;
|
|
280
|
+
claimUrl: string;
|
|
281
|
+
expiresAt: string;
|
|
282
|
+
} | {
|
|
283
|
+
success: false;
|
|
284
|
+
errorCode: CreateStackAuthTransferErrorCode;
|
|
285
|
+
};
|
|
274
286
|
export type InstallNewWorkspaceVersionRequest = {
|
|
275
287
|
projectId: string;
|
|
276
288
|
prevBuildId: string | null;
|