Merge remote-tracking branch 'origin/main' into feat/enforce-oidc-sso

This commit is contained in:
Sheen Capadngan
2024-10-02 11:01:03 +08:00
51 changed files with 2344 additions and 1163 deletions
+3 -2
View File
@@ -235,12 +235,13 @@ export const useUpdateOrgMembership = () => {
const queryClient = useQueryClient();
return useMutation<{}, {}, UpdateOrgMembershipDTO>({
mutationFn: ({ organizationId, membershipId, role, isActive }) => {
mutationFn: ({ organizationId, membershipId, role, isActive, metadata }) => {
return apiRequest.patch(
`/api/v2/organizations/${organizationId}/memberships/${membershipId}`,
{
role,
isActive
isActive,
metadata
}
);
},
+2
View File
@@ -47,6 +47,7 @@ export type UserEnc = {
export type OrgUser = {
id: string;
metadata: { key: string; value: string; id: string }[];
user: {
username: string;
email?: string;
@@ -143,6 +144,7 @@ export type UpdateOrgMembershipDTO = {
membershipId: string;
role?: string;
isActive?: boolean;
metadata?: { key: string; value: string }[];
};
export type DeletOrgMembershipDTO = {