@databutton/firebase-types 1.85.16 → 1.85.17
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.
|
@@ -209,4 +209,8 @@ export var IntegrationType;
|
|
|
209
209
|
IntegrationType["GRAPHQL"] = "graphql";
|
|
210
210
|
IntegrationType["WEBHOOK"] = "webhook";
|
|
211
211
|
})(IntegrationType || (IntegrationType = {}));
|
|
212
|
+
export var CreateProjectErrorCode;
|
|
213
|
+
(function (CreateProjectErrorCode) {
|
|
214
|
+
CreateProjectErrorCode["ACTIVE_PROJECT_LIMIT_REACHED"] = "ACTIVE_PROJECT_LIMIT_REACHED";
|
|
215
|
+
})(CreateProjectErrorCode || (CreateProjectErrorCode = {}));
|
|
212
216
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { RunMigrationsResponse } from "../db-api.js";
|
|
3
|
+
import type { CreateProjectErrorCode } from "./enums.js";
|
|
3
4
|
import type { Datafile, Dataframe, Job, Project, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
|
|
4
5
|
export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
5
6
|
export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -20,10 +21,13 @@ export type CreateProjectRequest = {
|
|
|
20
21
|
initialAppIdea?: string | null;
|
|
21
22
|
projectTemplateId: string;
|
|
22
23
|
requestSentAt: Timestamp;
|
|
23
|
-
variant?: Project["variant"];
|
|
24
24
|
};
|
|
25
25
|
export type CreateProjectResponse = {
|
|
26
|
+
success: true;
|
|
26
27
|
projectId: string;
|
|
28
|
+
} | {
|
|
29
|
+
success: false;
|
|
30
|
+
code: CreateProjectErrorCode;
|
|
27
31
|
};
|
|
28
32
|
export type HibernateProjectRequest = {
|
|
29
33
|
projectId: string;
|