forked from baron/baron-sso
정합성 위반사항 확인 및 조치기능 추가
This commit is contained in:
@@ -180,6 +180,30 @@ export type DataIntegrityReport = {
|
||||
sections: DataIntegritySection[];
|
||||
};
|
||||
|
||||
export type OrphanUserLoginID = {
|
||||
id: string;
|
||||
userId: string;
|
||||
userEmail?: string;
|
||||
userDeletedAt?: string;
|
||||
tenantId: string;
|
||||
tenantSlug?: string;
|
||||
tenantDeletedAt?: string;
|
||||
fieldKey: string;
|
||||
loginId: string;
|
||||
reasons: string[];
|
||||
};
|
||||
|
||||
export type OrphanUserLoginIDListResponse = {
|
||||
items: OrphanUserLoginID[];
|
||||
total: number;
|
||||
};
|
||||
|
||||
export type DeleteOrphanUserLoginIDsResult = {
|
||||
deletedCount: number;
|
||||
deleted: OrphanUserLoginID[];
|
||||
skippedIds: string[];
|
||||
};
|
||||
|
||||
export async function fetchAuditLogs(limit = 50, cursor?: string) {
|
||||
const { data } = await apiClient.get<AuditLogListResponse>("/v1/audit", {
|
||||
params: { limit, cursor },
|
||||
@@ -199,6 +223,21 @@ export async function fetchDataIntegrityReport() {
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function fetchOrphanUserLoginIDs() {
|
||||
const { data } = await apiClient.get<OrphanUserLoginIDListResponse>(
|
||||
"/v1/admin/integrity/orphan-user-login-ids",
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function deleteOrphanUserLoginIDs(ids: string[]) {
|
||||
const { data } = await apiClient.delete<DeleteOrphanUserLoginIDsResult>(
|
||||
"/v1/admin/integrity/orphan-user-login-ids",
|
||||
{ data: { ids } },
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function fetchUserProjectionStatus() {
|
||||
const { data } = await apiClient.get<UserProjectionStatus>(
|
||||
"/v1/admin/projections/users",
|
||||
|
||||
Reference in New Issue
Block a user