forked from baron/baron-sso
레거시 수정
This commit is contained in:
@@ -380,6 +380,7 @@ export type UserCreateRequest = {
|
|||||||
department?: string;
|
department?: string;
|
||||||
position?: string;
|
position?: string;
|
||||||
jobTitle?: string;
|
jobTitle?: string;
|
||||||
|
metadata?: Record<string, unknown>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserCreateResponse = UserSummary & {
|
export type UserCreateResponse = UserSummary & {
|
||||||
@@ -396,6 +397,7 @@ export type UserUpdateRequest = {
|
|||||||
department?: string;
|
department?: string;
|
||||||
position?: string;
|
position?: string;
|
||||||
jobTitle?: string;
|
jobTitle?: string;
|
||||||
|
metadata?: Record<string, unknown>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BulkUserItem = {
|
export type BulkUserItem = {
|
||||||
@@ -471,6 +473,8 @@ export async function bulkUpdateUsers(payload: {
|
|||||||
userIds: string[];
|
userIds: string[];
|
||||||
status?: string;
|
status?: string;
|
||||||
role?: string;
|
role?: string;
|
||||||
|
tenantSlug?: string;
|
||||||
|
department?: string;
|
||||||
}) {
|
}) {
|
||||||
const { data } = await apiClient.put("/v1/admin/users/bulk", payload);
|
const { data } = await apiClient.put("/v1/admin/users/bulk", payload);
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
@@ -12,7 +12,9 @@ describe("i18n utility", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("returns key if fallback not provided and key not found", () => {
|
it("returns key if fallback not provided and key not found", () => {
|
||||||
expect(t("this.key.truly.does.not.exist")).toBe("this.key.truly.does.not.exist");
|
expect(t("this.key.truly.does.not.exist")).toBe(
|
||||||
|
"this.key.truly.does.not.exist",
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("replaces variables in template", () => {
|
it("replaces variables in template", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user