@databutton/firebase-types 1.101.1 → 1.102.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.
|
@@ -225,6 +225,12 @@ export declare enum MigrateToRiffErrorCode {
|
|
|
225
225
|
export declare enum CreateNeonTransferErrorCode {
|
|
226
226
|
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
227
227
|
}
|
|
228
|
+
export declare enum CreateTeamAccountErrorCode {
|
|
229
|
+
UNAUTHENTICATED = "UNAUTHENTICATED",
|
|
230
|
+
INVALID_NAME = "INVALID_NAME",
|
|
231
|
+
ACCOUNT_LIMIT_REACHED = "ACCOUNT_LIMIT_REACHED",
|
|
232
|
+
INTERNAL_ERROR = "INTERNAL_ERROR"
|
|
233
|
+
}
|
|
228
234
|
export declare enum ProjectEnvConfigEnv {
|
|
229
235
|
DEV = "dev",
|
|
230
236
|
PROD = "prod",
|
|
@@ -246,6 +246,13 @@ export var CreateNeonTransferErrorCode;
|
|
|
246
246
|
(function (CreateNeonTransferErrorCode) {
|
|
247
247
|
CreateNeonTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
248
248
|
})(CreateNeonTransferErrorCode || (CreateNeonTransferErrorCode = {}));
|
|
249
|
+
export var CreateTeamAccountErrorCode;
|
|
250
|
+
(function (CreateTeamAccountErrorCode) {
|
|
251
|
+
CreateTeamAccountErrorCode["UNAUTHENTICATED"] = "UNAUTHENTICATED";
|
|
252
|
+
CreateTeamAccountErrorCode["INVALID_NAME"] = "INVALID_NAME";
|
|
253
|
+
CreateTeamAccountErrorCode["ACCOUNT_LIMIT_REACHED"] = "ACCOUNT_LIMIT_REACHED";
|
|
254
|
+
CreateTeamAccountErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
255
|
+
})(CreateTeamAccountErrorCode || (CreateTeamAccountErrorCode = {}));
|
|
249
256
|
// Environments config can be defined for
|
|
250
257
|
export var ProjectEnvConfigEnv;
|
|
251
258
|
(function (ProjectEnvConfigEnv) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { RunMigrationsResponse } from "../db-api.js";
|
|
3
|
-
import type { CreateProjectErrorCode,
|
|
4
|
-
import type { ApprovalLevel, Datafile, Dataframe, Job,
|
|
3
|
+
import type { CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode } from "./enums.js";
|
|
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">;
|
|
7
7
|
export type DeleteDataframe = Pick<Dataframe, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -449,4 +449,14 @@ export type ReviewApprovalRequestRequest = {
|
|
|
449
449
|
export type ReviewApprovalRequestResponse = {
|
|
450
450
|
success: boolean;
|
|
451
451
|
};
|
|
452
|
+
export type CreateTeamAccountRequest = {
|
|
453
|
+
name: string;
|
|
454
|
+
};
|
|
455
|
+
export type CreateTeamAccountResponse = {
|
|
456
|
+
success: true;
|
|
457
|
+
accountId: string;
|
|
458
|
+
} | {
|
|
459
|
+
success: false;
|
|
460
|
+
errorCode: CreateTeamAccountErrorCode;
|
|
461
|
+
};
|
|
452
462
|
export {};
|