@databutton/firebase-types 1.85.16 → 1.85.18
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.
|
@@ -193,3 +193,8 @@ export declare enum IntegrationType {
|
|
|
193
193
|
GRAPHQL = "graphql",
|
|
194
194
|
WEBHOOK = "webhook"
|
|
195
195
|
}
|
|
196
|
+
export declare enum CreateProjectErrorCode {
|
|
197
|
+
ACTIVE_PROJECT_LIMIT_REACHED = "ACTIVE_PROJECT_LIMIT_REACHED",
|
|
198
|
+
INVALID_PLAN = "INVALID_PLAN",
|
|
199
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
200
|
+
}
|
|
@@ -209,4 +209,10 @@ 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["INVALID_PLAN"] = "INVALID_PLAN";
|
|
216
|
+
CreateProjectErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
217
|
+
})(CreateProjectErrorCode || (CreateProjectErrorCode = {}));
|
|
212
218
|
//# 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;
|