quivr/frontend/lib/api/brain/utils/mapSubscriptionUpdatablePropertiesToBackendSubscriptionUpdatableProperties.ts
Mamadou DICKO c5a7b8faef
feat: update header and remove prompt / brain on backspace (#1052)
* feat: update header

* feat: remove selected prompt / brain on backspace

* feat(chat): update suggestions component

* refactor: add getAxiosErrorParams
2023-08-29 15:52:22 +02:00

14 lines
481 B
TypeScript

import { BrainRoleType } from "@/lib/components/BrainUsers/types";
import { SubscriptionUpdatableProperties } from "../types";
type BackendSubscriptionUpdatableProperties = {
rights: BrainRoleType | null;
};
export const mapSubscriptionUpdatablePropertiesToBackendSubscriptionUpdatableProperties =
(
subscriptionUpdatableProperties: SubscriptionUpdatableProperties
): BackendSubscriptionUpdatableProperties => ({
rights: subscriptionUpdatableProperties.role,
});