mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-24 15:42:26 +03:00
c5a7b8faef
* feat: update header * feat: remove selected prompt / brain on backspace * feat(chat): update suggestions component * refactor: add getAxiosErrorParams
14 lines
481 B
TypeScript
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,
|
|
});
|