@databutton/firebase-types 1.78.11 → 1.78.13
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.
|
@@ -5,6 +5,7 @@ export declare enum CollectionName {
|
|
|
5
5
|
APPBUTLERS = "appbutlers",
|
|
6
6
|
APP_CONFIG_SNAPSHOTS = "app-config-snapshots",
|
|
7
7
|
BACKENDS = "backends",
|
|
8
|
+
BACKEND_PACKAGES = "backend-packages",
|
|
8
9
|
BUILDS = "builds",
|
|
9
10
|
CAPABILITIES = "capabilities",
|
|
10
11
|
CHECKPOINTS = "checkpoints",
|
|
@@ -23,6 +24,7 @@ export declare enum CollectionName {
|
|
|
23
24
|
EVENTS = "events",
|
|
24
25
|
FEATURE_FLAGS = "feature-flags",
|
|
25
26
|
FRONTENDS = "frontends",
|
|
27
|
+
FRONTEND_PACKAGES = "frontend-packages",
|
|
26
28
|
JOBS = "jobs",
|
|
27
29
|
LIFE_STAGE_CHANGE_REQUESTS = "life-stage-change-requests",
|
|
28
30
|
LOGS = "logs",
|
|
@@ -73,6 +75,7 @@ export declare enum DatabuttonIdPrefix {
|
|
|
73
75
|
APP_DEPLOY = "ad",
|
|
74
76
|
AUDIT_LOG = "aul",
|
|
75
77
|
BACKEND = "be",
|
|
78
|
+
BACKEND_PACKAGES = "bp",
|
|
76
79
|
CAPABILITY = "cap",
|
|
77
80
|
CODE_BLOCK = "cb",
|
|
78
81
|
CODE_BLOCK_VERSION = "cbv",
|
|
@@ -87,6 +90,7 @@ export declare enum DatabuttonIdPrefix {
|
|
|
87
90
|
MODULE = "mo",
|
|
88
91
|
MULTIPAGE_APP_PAGE = "mp",
|
|
89
92
|
NOTEBOOK = "nb",
|
|
93
|
+
FRONTEND_PACKAGES = "fp",
|
|
90
94
|
PROJECT_BUILD = "pb",
|
|
91
95
|
PROJECT_DEPLOYMENT = "pd",
|
|
92
96
|
PROJECT_EVENT = "pe",
|
|
@@ -6,6 +6,7 @@ export var CollectionName;
|
|
|
6
6
|
CollectionName["APPBUTLERS"] = "appbutlers";
|
|
7
7
|
CollectionName["APP_CONFIG_SNAPSHOTS"] = "app-config-snapshots";
|
|
8
8
|
CollectionName["BACKENDS"] = "backends";
|
|
9
|
+
CollectionName["BACKEND_PACKAGES"] = "backend-packages";
|
|
9
10
|
CollectionName["BUILDS"] = "builds";
|
|
10
11
|
CollectionName["CAPABILITIES"] = "capabilities";
|
|
11
12
|
CollectionName["CHECKPOINTS"] = "checkpoints";
|
|
@@ -24,6 +25,7 @@ export var CollectionName;
|
|
|
24
25
|
CollectionName["EVENTS"] = "events";
|
|
25
26
|
CollectionName["FEATURE_FLAGS"] = "feature-flags";
|
|
26
27
|
CollectionName["FRONTENDS"] = "frontends";
|
|
28
|
+
CollectionName["FRONTEND_PACKAGES"] = "frontend-packages";
|
|
27
29
|
CollectionName["JOBS"] = "jobs";
|
|
28
30
|
CollectionName["LIFE_STAGE_CHANGE_REQUESTS"] = "life-stage-change-requests";
|
|
29
31
|
CollectionName["LOGS"] = "logs";
|
|
@@ -75,6 +77,7 @@ export var DatabuttonIdPrefix;
|
|
|
75
77
|
DatabuttonIdPrefix["APP_DEPLOY"] = "ad";
|
|
76
78
|
DatabuttonIdPrefix["AUDIT_LOG"] = "aul";
|
|
77
79
|
DatabuttonIdPrefix["BACKEND"] = "be";
|
|
80
|
+
DatabuttonIdPrefix["BACKEND_PACKAGES"] = "bp";
|
|
78
81
|
DatabuttonIdPrefix["CAPABILITY"] = "cap";
|
|
79
82
|
DatabuttonIdPrefix["CODE_BLOCK"] = "cb";
|
|
80
83
|
DatabuttonIdPrefix["CODE_BLOCK_VERSION"] = "cbv";
|
|
@@ -89,6 +92,7 @@ export var DatabuttonIdPrefix;
|
|
|
89
92
|
DatabuttonIdPrefix["MODULE"] = "mo";
|
|
90
93
|
DatabuttonIdPrefix["MULTIPAGE_APP_PAGE"] = "mp";
|
|
91
94
|
DatabuttonIdPrefix["NOTEBOOK"] = "nb";
|
|
95
|
+
DatabuttonIdPrefix["FRONTEND_PACKAGES"] = "fp";
|
|
92
96
|
DatabuttonIdPrefix["PROJECT_BUILD"] = "pb";
|
|
93
97
|
DatabuttonIdPrefix["PROJECT_DEPLOYMENT"] = "pd";
|
|
94
98
|
DatabuttonIdPrefix["PROJECT_EVENT"] = "pe";
|
|
@@ -1031,13 +1031,24 @@ export interface ProjectTemplateRequirementsSnapshot {
|
|
|
1031
1031
|
requirementsTxt: string;
|
|
1032
1032
|
venvHash?: string;
|
|
1033
1033
|
}
|
|
1034
|
-
export interface
|
|
1034
|
+
export interface ProjectTemplateBuildSnapshotV1 {
|
|
1035
1035
|
devxVersion?: string;
|
|
1036
1036
|
workspaceVersion?: string;
|
|
1037
1037
|
image?: string | null;
|
|
1038
1038
|
devxImage?: string;
|
|
1039
1039
|
prodxImage?: string;
|
|
1040
1040
|
}
|
|
1041
|
+
export interface ProjectTemplateBuildSnapshotV2 {
|
|
1042
|
+
schema: "2025-06-12";
|
|
1043
|
+
devxVersion?: string;
|
|
1044
|
+
workspaceVersion?: string;
|
|
1045
|
+
baseDevxImage: string;
|
|
1046
|
+
devxVenvImage?: string | null;
|
|
1047
|
+
devxYarnImage?: string | null;
|
|
1048
|
+
devxAppImage: string;
|
|
1049
|
+
prodxVenvImage?: string | null;
|
|
1050
|
+
}
|
|
1051
|
+
export type ProjectTemplateBuildSnapshot = ProjectTemplateBuildSnapshotV1 | ProjectTemplateBuildSnapshotV2;
|
|
1041
1052
|
export interface ProjectTemplate {
|
|
1042
1053
|
createdBy: PerformedBy;
|
|
1043
1054
|
hasDeletionProtection?: boolean;
|
|
@@ -1063,12 +1074,6 @@ export interface ProjectTemplate {
|
|
|
1063
1074
|
code: string;
|
|
1064
1075
|
agentAccess?: AgentAccess | null;
|
|
1065
1076
|
}[];
|
|
1066
|
-
/** @deprecated streamlit templates are all deleted */
|
|
1067
|
-
modules?: {
|
|
1068
|
-
name: string;
|
|
1069
|
-
code: string;
|
|
1070
|
-
agentAccess?: AgentAccess | null;
|
|
1071
|
-
}[];
|
|
1072
1077
|
uiComponents?: {
|
|
1073
1078
|
name: string;
|
|
1074
1079
|
code: string;
|
|
@@ -1087,13 +1092,20 @@ export interface ProjectTemplate {
|
|
|
1087
1092
|
config?: FrontendConfig;
|
|
1088
1093
|
agentAccess?: AgentAccess | null;
|
|
1089
1094
|
}[];
|
|
1095
|
+
modules?: {
|
|
1096
|
+
name: string;
|
|
1097
|
+
code: string;
|
|
1098
|
+
agentAccess?: AgentAccess | null;
|
|
1099
|
+
}[];
|
|
1090
1100
|
backends?: {
|
|
1091
1101
|
name: string;
|
|
1092
1102
|
code: string;
|
|
1093
1103
|
config?: BackendConfig;
|
|
1094
1104
|
agentAccess?: AgentAccess | null;
|
|
1095
1105
|
}[];
|
|
1096
|
-
|
|
1106
|
+
backendPackages?: BackendPackages | null;
|
|
1107
|
+
frontendPackages?: FrontendPackages | null;
|
|
1108
|
+
requirements?: ProjectTemplateRequirementsSnapshot | null;
|
|
1097
1109
|
build: ProjectTemplateBuildSnapshot;
|
|
1098
1110
|
targetPoolSize?: number;
|
|
1099
1111
|
variant?: "streamlit" | "beyond-streamlit";
|
|
@@ -1128,6 +1140,36 @@ export interface Requirements {
|
|
|
1128
1140
|
workspaceVersion?: string;
|
|
1129
1141
|
createdReason?: "user-install" | "upgrade-request";
|
|
1130
1142
|
}
|
|
1143
|
+
export interface FrontendPackages {
|
|
1144
|
+
createdBy: PerformedBy;
|
|
1145
|
+
version: Timestamp;
|
|
1146
|
+
prevFrontendPackagesId: string | null;
|
|
1147
|
+
app: {
|
|
1148
|
+
dependencies: {
|
|
1149
|
+
[key: string]: string;
|
|
1150
|
+
};
|
|
1151
|
+
devDependencies: {
|
|
1152
|
+
[key: string]: string;
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
base: {
|
|
1156
|
+
dependencies: {
|
|
1157
|
+
[key: string]: string;
|
|
1158
|
+
};
|
|
1159
|
+
devDependencies: {
|
|
1160
|
+
[key: string]: string;
|
|
1161
|
+
};
|
|
1162
|
+
} | null;
|
|
1163
|
+
}
|
|
1164
|
+
export interface BackendPackages {
|
|
1165
|
+
createdBy: PerformedBy;
|
|
1166
|
+
version: Timestamp;
|
|
1167
|
+
prevBackendPackagesId: string | null;
|
|
1168
|
+
dependencyGroups: {
|
|
1169
|
+
app: string[];
|
|
1170
|
+
base: string[] | null;
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1131
1173
|
export interface ProdxConfig {
|
|
1132
1174
|
views?: {
|
|
1133
1175
|
viewId: string;
|
|
@@ -1238,7 +1280,7 @@ export type RequirementsSnapshot = {
|
|
|
1238
1280
|
userRequirementsTxt: string;
|
|
1239
1281
|
venvHash?: string | null;
|
|
1240
1282
|
};
|
|
1241
|
-
export type
|
|
1283
|
+
export type BuildV1 = {
|
|
1242
1284
|
createdBy: PerformedBy;
|
|
1243
1285
|
eventRef?: string | null;
|
|
1244
1286
|
triggeredByRequirementsRef?: string | null;
|
|
@@ -1259,6 +1301,110 @@ export type Build = {
|
|
|
1259
1301
|
devxDeploySucceededAt: Timestamp | null;
|
|
1260
1302
|
devxDeployFailedAt: Timestamp | null;
|
|
1261
1303
|
};
|
|
1304
|
+
export type BuildV2 = {
|
|
1305
|
+
schema: "2025-03-14";
|
|
1306
|
+
createdBy: PerformedBy;
|
|
1307
|
+
createdReason: "initial" | "workspace-upgrade" | "frontend-install" | "backend-install";
|
|
1308
|
+
eventRef: string | null;
|
|
1309
|
+
workspaceVersion: string;
|
|
1310
|
+
devxVersion: string;
|
|
1311
|
+
backendPackagesId: string;
|
|
1312
|
+
frontendPackagesId: string;
|
|
1313
|
+
isFly: boolean;
|
|
1314
|
+
errorMessages?: string[];
|
|
1315
|
+
baseDevxImage: string;
|
|
1316
|
+
devxVenvImage?: string | null;
|
|
1317
|
+
devxYarnImage?: string | null;
|
|
1318
|
+
devxAppImage: string | null;
|
|
1319
|
+
prodxVenvImage?: string | null;
|
|
1320
|
+
buildStartedAt: Timestamp | null;
|
|
1321
|
+
buildSucceededAt: Timestamp | null;
|
|
1322
|
+
buildFailedAt: Timestamp | null;
|
|
1323
|
+
installBackendPackagesStartedAt?: Timestamp | null;
|
|
1324
|
+
installBackendPackagesSucceededAt?: Timestamp | null;
|
|
1325
|
+
installBackendPackagesFailedAt?: Timestamp | null;
|
|
1326
|
+
installFrontendPackagesStartedAt?: Timestamp | null;
|
|
1327
|
+
installFrontendPackagesSucceededAt?: Timestamp | null;
|
|
1328
|
+
installFrontendPackagesFailedAt?: Timestamp | null;
|
|
1329
|
+
devxDeployStartedAt?: Timestamp | null;
|
|
1330
|
+
devxDeploySucceededAt?: Timestamp | null;
|
|
1331
|
+
devxDeployFailedAt?: Timestamp | null;
|
|
1332
|
+
buildDevxVenvImageStartedAt?: Timestamp | null;
|
|
1333
|
+
buildDevxVenvImageSucceededAt?: Timestamp | null;
|
|
1334
|
+
buildDevxVenvImageFailedAt?: Timestamp | null;
|
|
1335
|
+
buildDevxYarnImageStartedAt?: Timestamp | null;
|
|
1336
|
+
buildDevxYarnImageSucceededAt?: Timestamp | null;
|
|
1337
|
+
buildDevxYarnImageFailedAt?: Timestamp | null;
|
|
1338
|
+
buildDevxAppImageStartedAt?: Timestamp | null;
|
|
1339
|
+
buildDevxAppImageSucceededAt?: Timestamp | null;
|
|
1340
|
+
buildDevxAppImageFailedAt?: Timestamp | null;
|
|
1341
|
+
buildProdxVenvImageStartedAt?: Timestamp | null;
|
|
1342
|
+
buildProdxVenvImageSucceededAt?: Timestamp | null;
|
|
1343
|
+
buildProdxVenvImageFailedAt?: Timestamp | null;
|
|
1344
|
+
};
|
|
1345
|
+
export type BuildV3 = {
|
|
1346
|
+
schema: "2025-06-18";
|
|
1347
|
+
createdBy: PerformedBy;
|
|
1348
|
+
createdReason: "initial" | "workspace-upgrade" | "frontend-install" | "backend-install";
|
|
1349
|
+
eventRef: string | null;
|
|
1350
|
+
workspaceVersion: string;
|
|
1351
|
+
devxVersion: string;
|
|
1352
|
+
backendPackagesId: string;
|
|
1353
|
+
frontendPackagesId: string;
|
|
1354
|
+
isFly: boolean;
|
|
1355
|
+
baseDevxImage: string;
|
|
1356
|
+
nextStages: string[];
|
|
1357
|
+
currentStage: string | null;
|
|
1358
|
+
currentStageStartedAt: Timestamp | null;
|
|
1359
|
+
completedStages: string[];
|
|
1360
|
+
stageResults: {
|
|
1361
|
+
exampleStage?: {
|
|
1362
|
+
startedAt: Timestamp | null;
|
|
1363
|
+
stoppedAt: Timestamp | null;
|
|
1364
|
+
status: "success" | "failure" | "timeout";
|
|
1365
|
+
};
|
|
1366
|
+
installBackendPackages?: {
|
|
1367
|
+
startedAt: Timestamp | null;
|
|
1368
|
+
succeededAt: Timestamp | null;
|
|
1369
|
+
failedAt: Timestamp | null;
|
|
1370
|
+
};
|
|
1371
|
+
installFrontendPackages?: {
|
|
1372
|
+
startedAt: Timestamp | null;
|
|
1373
|
+
succeededAt: Timestamp | null;
|
|
1374
|
+
failedAt: Timestamp | null;
|
|
1375
|
+
};
|
|
1376
|
+
buildDevxVenvImage?: {
|
|
1377
|
+
startedAt: Timestamp | null;
|
|
1378
|
+
succeededAt: Timestamp | null;
|
|
1379
|
+
failedAt: Timestamp | null;
|
|
1380
|
+
image: string | null;
|
|
1381
|
+
};
|
|
1382
|
+
buildDevxYarnImage?: {
|
|
1383
|
+
startedAt: Timestamp | null;
|
|
1384
|
+
succeededAt: Timestamp | null;
|
|
1385
|
+
failedAt: Timestamp | null;
|
|
1386
|
+
image: string | null;
|
|
1387
|
+
};
|
|
1388
|
+
buildDevxAppImage?: {
|
|
1389
|
+
startedAt: Timestamp | null;
|
|
1390
|
+
succeededAt: Timestamp | null;
|
|
1391
|
+
failedAt: Timestamp | null;
|
|
1392
|
+
image: string | null;
|
|
1393
|
+
};
|
|
1394
|
+
devxDeploy?: {
|
|
1395
|
+
startedAt: Timestamp | null;
|
|
1396
|
+
succeededAt: Timestamp | null;
|
|
1397
|
+
failedAt: Timestamp | null;
|
|
1398
|
+
};
|
|
1399
|
+
buildProdxVenvImage?: {
|
|
1400
|
+
startedAt: Timestamp | null;
|
|
1401
|
+
succeededAt: Timestamp | null;
|
|
1402
|
+
failedAt: Timestamp | null;
|
|
1403
|
+
image: string | null;
|
|
1404
|
+
};
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
export type Build = BuildV1 | BuildV2;
|
|
1262
1408
|
type WithDocRef<T> = T & {
|
|
1263
1409
|
id: string;
|
|
1264
1410
|
ref: string;
|
|
@@ -1333,12 +1479,16 @@ export interface ProjectDeploymentBase<T = ComponentSnapshotBase> extends AppSna
|
|
|
1333
1479
|
deployStartedAt?: Timestamp | null;
|
|
1334
1480
|
deploySucceededAt?: Timestamp | null;
|
|
1335
1481
|
deployFailedAt?: Timestamp | null;
|
|
1482
|
+
buildDistsStartedAt?: Timestamp | null;
|
|
1483
|
+
buildDistsSucceededAt?: Timestamp | null;
|
|
1484
|
+
buildDistsFailedAt?: Timestamp | null;
|
|
1485
|
+
buildProdxAppImageStartedAt?: Timestamp | null;
|
|
1486
|
+
buildProdxAppImageSucceededAt?: Timestamp | null;
|
|
1487
|
+
buildProdxAppImageFailedAt?: Timestamp | null;
|
|
1336
1488
|
uploadStartedAt?: Timestamp | null;
|
|
1337
1489
|
uploadSucceededAt?: Timestamp | null;
|
|
1338
1490
|
uploadFailedAt?: Timestamp | null;
|
|
1339
|
-
|
|
1340
|
-
imageBuildSucceededAt?: Timestamp | null;
|
|
1341
|
-
imageBuildFailedAt?: Timestamp | null;
|
|
1491
|
+
errorMessages?: string[];
|
|
1342
1492
|
}
|
|
1343
1493
|
export type ProjectDeployment = ProjectDeploymentBase;
|
|
1344
1494
|
export type AdminRequirementsConfig = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
|
-
import type { Datafile, Dataframe, Job, Project, ProjectTemplate } from "./persisted.js";
|
|
2
|
+
import type { Datafile, Dataframe, Job, PerformedBy, Project, ProjectTemplate } from "./persisted.js";
|
|
3
3
|
export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
4
4
|
export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
5
5
|
export type DeleteDataframe = Pick<Dataframe, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -206,4 +206,48 @@ export type TransferOwnershipRequest = {
|
|
|
206
206
|
export type TransferOwnershipResponse = {
|
|
207
207
|
success: boolean;
|
|
208
208
|
};
|
|
209
|
+
export type InstallFrontendDependenciesRequest = {
|
|
210
|
+
requestedBy: PerformedBy;
|
|
211
|
+
projectId: string;
|
|
212
|
+
prevBuildId: string | null;
|
|
213
|
+
prevFrontendPackagesId: string | null;
|
|
214
|
+
appDependencies: {
|
|
215
|
+
dependencies: {
|
|
216
|
+
[key: string]: string;
|
|
217
|
+
};
|
|
218
|
+
devDependencies: {
|
|
219
|
+
[key: string]: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
baseDependencies: {
|
|
223
|
+
dependencies: {
|
|
224
|
+
[key: string]: string;
|
|
225
|
+
};
|
|
226
|
+
devDependencies: {
|
|
227
|
+
[key: string]: string;
|
|
228
|
+
};
|
|
229
|
+
} | null;
|
|
230
|
+
wait: boolean;
|
|
231
|
+
};
|
|
232
|
+
export type InstallFrontendDependenciesResponse = {
|
|
233
|
+
status: "pending" | "success" | "failure";
|
|
234
|
+
frontendPackagesId: string;
|
|
235
|
+
buildId: string;
|
|
236
|
+
};
|
|
237
|
+
export type InstallBackendDependenciesRequest = {
|
|
238
|
+
requestedBy: PerformedBy;
|
|
239
|
+
projectId: string;
|
|
240
|
+
prevBuildId: string | null;
|
|
241
|
+
prevBackendPackagesId: string | null;
|
|
242
|
+
dependencyGroups: {
|
|
243
|
+
app: string[];
|
|
244
|
+
base: string[] | null;
|
|
245
|
+
};
|
|
246
|
+
wait: boolean;
|
|
247
|
+
};
|
|
248
|
+
export type InstallBackendDependenciesResponse = {
|
|
249
|
+
status: "pending" | "success" | "failure";
|
|
250
|
+
backendPackagesId: string;
|
|
251
|
+
buildId: string;
|
|
252
|
+
};
|
|
209
253
|
export {};
|