mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-15 13:42:08 +03:00
14 lines
547 B
TypeScript
14 lines
547 B
TypeScript
|
import { BrainRoleType } from "@/lib/components/NavBar/components/NavItems/components/BrainsDropDown/components/BrainActions/types";
|
||
|
|
||
|
import { SubscriptionUpdatableProperties } from "../types";
|
||
|
|
||
|
type BackendSubscriptionUpdatableProperties = {
|
||
|
rights: BrainRoleType | null;
|
||
|
};
|
||
|
export const mapSubscriptionUpdatablePropertiesToBackendSubscriptionUpdatableProperties =
|
||
|
(
|
||
|
subscriptionUpdatableProperties: SubscriptionUpdatableProperties
|
||
|
): BackendSubscriptionUpdatableProperties => ({
|
||
|
rights: subscriptionUpdatableProperties.role,
|
||
|
});
|