@databutton/firebase-types 1.95.1 → 1.95.3
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,7 +137,8 @@ type UseIntegrationApprovalConfig = {
|
|
|
137
137
|
};
|
|
138
138
|
export type UseIntegrationApprovalRequest = ApprovalRequestBase<"use-integration", UseIntegrationApprovalConfig>;
|
|
139
139
|
type DeployProjectApprovalConfig = {
|
|
140
|
-
|
|
140
|
+
projectId: string;
|
|
141
|
+
deploymentId: string;
|
|
141
142
|
};
|
|
142
143
|
export type DeployProjectApprovalRequest = ApprovalRequestBase<"deploy-project", DeployProjectApprovalConfig>;
|
|
143
144
|
export type ApprovalRequest = AddPermissionApprovalRequest | UseIntegrationApprovalRequest | DeployProjectApprovalRequest;
|
|
@@ -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 { Datafile, Dataframe, Job, Project, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
|
|
4
|
+
import type { ApprovalLevel, Datafile, Dataframe, Job, PermissionName, 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">;
|
|
@@ -413,4 +413,20 @@ export type MigrateToRiffResponse = {
|
|
|
413
413
|
success: false;
|
|
414
414
|
errorCode: MigrateToRiffErrorCode;
|
|
415
415
|
};
|
|
416
|
+
export type UpsertGatingConfigRequest = {
|
|
417
|
+
accountId: string;
|
|
418
|
+
approvalLevelRequiredFor: Record<PermissionName, ApprovalLevel>;
|
|
419
|
+
};
|
|
420
|
+
export type UpsertGatingConfigResponse = {
|
|
421
|
+
success: boolean;
|
|
422
|
+
};
|
|
423
|
+
export type ReviewApprovalRequestRequest = {
|
|
424
|
+
accountId: string;
|
|
425
|
+
approvalRequestId: string;
|
|
426
|
+
approved: boolean;
|
|
427
|
+
comment: string;
|
|
428
|
+
};
|
|
429
|
+
export type ReviewApprovalRequestResponse = {
|
|
430
|
+
success: boolean;
|
|
431
|
+
};
|
|
416
432
|
export {};
|