@databutton/firebase-types 1.121.0 → 1.123.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">;
|
|
@@ -123,6 +123,7 @@ export type CreateRiffCheckoutSessionRequest = {
|
|
|
123
123
|
priceId: string;
|
|
124
124
|
successUrl?: string;
|
|
125
125
|
cancelUrl?: string;
|
|
126
|
+
quantity?: number;
|
|
126
127
|
};
|
|
127
128
|
export type CreateRiffCheckoutSessionResponse = {
|
|
128
129
|
sessionId: string | null;
|
|
@@ -271,6 +272,18 @@ export type CreateNeonTransferResponse = {
|
|
|
271
272
|
success: false;
|
|
272
273
|
errorCode: CreateNeonTransferErrorCode;
|
|
273
274
|
};
|
|
275
|
+
export type CreateStackAuthTransferRequest = {
|
|
276
|
+
projectId: string;
|
|
277
|
+
ttlSeconds?: number;
|
|
278
|
+
};
|
|
279
|
+
export type CreateStackAuthTransferResponse = {
|
|
280
|
+
success: true;
|
|
281
|
+
claimUrl: string;
|
|
282
|
+
expiresAt: string;
|
|
283
|
+
} | {
|
|
284
|
+
success: false;
|
|
285
|
+
errorCode: CreateStackAuthTransferErrorCode;
|
|
286
|
+
};
|
|
274
287
|
export type InstallNewWorkspaceVersionRequest = {
|
|
275
288
|
projectId: string;
|
|
276
289
|
prevBuildId: string | null;
|