@databutton/firebase-types 1.95.3 → 1.95.5
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.
|
@@ -137,6 +137,8 @@ export var DatabuttonIdPrefix;
|
|
|
137
137
|
DatabuttonIdPrefix["MESSAGE"] = "me";
|
|
138
138
|
DatabuttonIdPrefix["INTEGRATION"] = "in";
|
|
139
139
|
//
|
|
140
|
+
DatabuttonIdPrefix["APPROVAL_REQUEST"] = "ar";
|
|
141
|
+
//
|
|
140
142
|
DatabuttonIdPrefix["LEGACY_UNUSED_JOB_DEPLOY"] = "jd";
|
|
141
143
|
DatabuttonIdPrefix["LEGACY_UNUSED_JOB"] = "jb";
|
|
142
144
|
DatabuttonIdPrefix["LEGACY_UNUSED_JOB_RUN"] = "jr";
|
|
@@ -90,24 +90,31 @@ export interface PostHogConfig extends AccountConfigBase {
|
|
|
90
90
|
* PostHog project ID for the account
|
|
91
91
|
* This is the project ID from PostHog cloud/self-hosted instance
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
posthogProjectId: string;
|
|
94
94
|
/**
|
|
95
95
|
* PostHog host URL (e.g., "https://eu.i.posthog.com")
|
|
96
96
|
*/
|
|
97
97
|
host: string;
|
|
98
|
+
/**
|
|
99
|
+
* PostHog API token for the account
|
|
100
|
+
*/
|
|
101
|
+
posthogKey: string;
|
|
102
|
+
}
|
|
103
|
+
export type ProjectPermissionName = "deploy";
|
|
104
|
+
export interface Permission {
|
|
105
|
+
approvalRequestRef?: string;
|
|
98
106
|
}
|
|
99
|
-
export type PermissionName = "deploy";
|
|
100
107
|
export type ApprovalLevel = "role" | "permission" | "approval";
|
|
101
108
|
export interface GatingConfig extends AccountConfigBase {
|
|
102
109
|
type: ConfigTypes.GATING;
|
|
103
|
-
approvalLevelRequiredFor: Record<
|
|
110
|
+
approvalLevelRequiredFor: Record<ProjectPermissionName, ApprovalLevel>;
|
|
104
111
|
}
|
|
105
112
|
export type AccountConfig = SSOConfig | PostHogConfig | GatingConfig;
|
|
106
113
|
export interface SSOConfigLookupEntry {
|
|
107
114
|
lastUpdatedAt: Timestamp;
|
|
108
115
|
organizationId: string;
|
|
109
116
|
}
|
|
110
|
-
interface Approvable {
|
|
117
|
+
export interface Approvable {
|
|
111
118
|
approvalRequestRef?: string | null;
|
|
112
119
|
approvedBy?: PerformedBy | null;
|
|
113
120
|
deniedBy?: PerformedBy | null;
|
|
@@ -128,7 +135,7 @@ interface ApprovalRequestBase<T = string, M = Record<string, string>> {
|
|
|
128
135
|
type AddPermissionApprovalConfig = {
|
|
129
136
|
projectId: string;
|
|
130
137
|
userId: string;
|
|
131
|
-
permission:
|
|
138
|
+
permission: ProjectPermissionName;
|
|
132
139
|
};
|
|
133
140
|
export type AddPermissionApprovalRequest = ApprovalRequestBase<"add-permission", AddPermissionApprovalConfig>;
|
|
134
141
|
type UseIntegrationApprovalConfig = {
|
|
@@ -839,7 +846,8 @@ export interface FirebaseAuthExtensionConfig {
|
|
|
839
846
|
privacyPolicyLink: string;
|
|
840
847
|
}
|
|
841
848
|
export interface PostHogExtensionConfig {
|
|
842
|
-
|
|
849
|
+
posthogKey: string;
|
|
850
|
+
apiPath: string;
|
|
843
851
|
}
|
|
844
852
|
export type ProjectExtensions = ProjectExtensionConfig[];
|
|
845
853
|
export interface BaseTheme {
|
|
@@ -1183,7 +1191,7 @@ export interface Project {
|
|
|
1183
1191
|
markedForDeletionAt: Timestamp | null;
|
|
1184
1192
|
markedForDeletionBy?: PerformedBy | null;
|
|
1185
1193
|
members: string[];
|
|
1186
|
-
permittedUsers?: Record<
|
|
1194
|
+
permittedUsers?: Record<ProjectPermissionName, string[]>;
|
|
1187
1195
|
name: string;
|
|
1188
1196
|
tags?: string[];
|
|
1189
1197
|
slug?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { RunMigrationsResponse } from "../db-api.js";
|
|
3
3
|
import type { CreateProjectErrorCode, MigrateToRiffErrorCode } from "./enums.js";
|
|
4
|
-
import type { ApprovalLevel, Datafile, Dataframe, Job,
|
|
4
|
+
import type { ApprovalLevel, Datafile, Dataframe, Job, ProjectPermissionName, Project, 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">;
|
|
@@ -415,7 +415,7 @@ export type MigrateToRiffResponse = {
|
|
|
415
415
|
};
|
|
416
416
|
export type UpsertGatingConfigRequest = {
|
|
417
417
|
accountId: string;
|
|
418
|
-
approvalLevelRequiredFor: Record<
|
|
418
|
+
approvalLevelRequiredFor: Record<ProjectPermissionName, ApprovalLevel>;
|
|
419
419
|
};
|
|
420
420
|
export type UpsertGatingConfigResponse = {
|
|
421
421
|
success: boolean;
|