@databutton/firebase-types 1.74.28 → 1.74.29
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.
|
@@ -26,6 +26,7 @@ export declare enum CollectionName {
|
|
|
26
26
|
LOGS = "logs",
|
|
27
27
|
MESSAGES = "messages",
|
|
28
28
|
MODULES = "modules",
|
|
29
|
+
MIGRATIONS = "migrations",
|
|
29
30
|
MULTIPAGE_APPS = "multipage-apps",
|
|
30
31
|
NOTEBOOKS = "notebooks",
|
|
31
32
|
PAGES = "pages",
|
|
@@ -127,3 +128,13 @@ export declare enum ThirdPartyServiceCategory {
|
|
|
127
128
|
export declare enum UiComponentTag {
|
|
128
129
|
PROVIDER = "provider"
|
|
129
130
|
}
|
|
131
|
+
export declare enum ProjectMigration {
|
|
132
|
+
ADD_APP_PROVIDER = "add-app-provider"
|
|
133
|
+
}
|
|
134
|
+
export declare enum CodeComponentType {
|
|
135
|
+
FRONTEND = "frontend",
|
|
136
|
+
BACKEND = "backend",
|
|
137
|
+
MODULE = "module",
|
|
138
|
+
UI_FILE = "ui-file",
|
|
139
|
+
UI_COMPONENT = "ui-component"
|
|
140
|
+
}
|
|
@@ -27,6 +27,7 @@ export var CollectionName;
|
|
|
27
27
|
CollectionName["LOGS"] = "logs";
|
|
28
28
|
CollectionName["MESSAGES"] = "messages";
|
|
29
29
|
CollectionName["MODULES"] = "modules";
|
|
30
|
+
CollectionName["MIGRATIONS"] = "migrations";
|
|
30
31
|
CollectionName["MULTIPAGE_APPS"] = "multipage-apps";
|
|
31
32
|
CollectionName["NOTEBOOKS"] = "notebooks";
|
|
32
33
|
CollectionName["PAGES"] = "pages";
|
|
@@ -135,4 +136,16 @@ export var UiComponentTag;
|
|
|
135
136
|
(function (UiComponentTag) {
|
|
136
137
|
UiComponentTag["PROVIDER"] = "provider";
|
|
137
138
|
})(UiComponentTag = UiComponentTag || (UiComponentTag = {}));
|
|
139
|
+
export var ProjectMigration;
|
|
140
|
+
(function (ProjectMigration) {
|
|
141
|
+
ProjectMigration["ADD_APP_PROVIDER"] = "add-app-provider";
|
|
142
|
+
})(ProjectMigration = ProjectMigration || (ProjectMigration = {}));
|
|
143
|
+
export var CodeComponentType;
|
|
144
|
+
(function (CodeComponentType) {
|
|
145
|
+
CodeComponentType["FRONTEND"] = "frontend";
|
|
146
|
+
CodeComponentType["BACKEND"] = "backend";
|
|
147
|
+
CodeComponentType["MODULE"] = "module";
|
|
148
|
+
CodeComponentType["UI_FILE"] = "ui-file";
|
|
149
|
+
CodeComponentType["UI_COMPONENT"] = "ui-component";
|
|
150
|
+
})(CodeComponentType = CodeComponentType || (CodeComponentType = {}));
|
|
138
151
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { JsonObject, Primitive } from "type-fest";
|
|
3
|
-
import type { ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName, UiComponentTag } from "./enums.js";
|
|
3
|
+
import type { ProjectMigration, ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName, UiComponentTag } from "./enums.js";
|
|
4
4
|
/**
|
|
5
5
|
* Types here should reflect data format stored in firestore and
|
|
6
6
|
* either be backwards-compatible or migrated when needed
|
|
@@ -842,6 +842,10 @@ export interface AgentPersonality {
|
|
|
842
842
|
preferredLanguage?: string | null;
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
+
export interface ProjectMigrationRecord {
|
|
846
|
+
name: ProjectMigration;
|
|
847
|
+
migratedAt: Timestamp;
|
|
848
|
+
}
|
|
845
849
|
export interface Project {
|
|
846
850
|
createdAt: Timestamp;
|
|
847
851
|
createdBy?: PerformedBy;
|
|
@@ -874,6 +878,7 @@ export interface Project {
|
|
|
874
878
|
visibility: "public" | "private";
|
|
875
879
|
visibilityLastChangedBy: PerformedBy;
|
|
876
880
|
lastOpenedAt?: Timestamp;
|
|
881
|
+
lastMigratedAt?: Timestamp;
|
|
877
882
|
markedForDeletionAt: Timestamp | null;
|
|
878
883
|
markedForDeletionBy?: PerformedBy | null;
|
|
879
884
|
members: string[];
|