20 lines
516 B
TypeScript
20 lines
516 B
TypeScript
import { CustomPrivilegeWithAmount } from "./privilege";
|
|
|
|
|
|
type ServiceKey = string;
|
|
|
|
export type PrivilegeWithoutPrice = Omit<CustomPrivilegeWithAmount, "price">;
|
|
|
|
export type CustomTariffUserValues = Record<string, number>;
|
|
|
|
export type CustomTariffUserValuesMap = Record<ServiceKey, CustomTariffUserValues>;
|
|
|
|
export type ServiceKeyToPriceMap = Record<ServiceKey, number>;
|
|
|
|
export interface CreateTariffBody {
|
|
name: string;
|
|
price?: number;
|
|
isCustom: boolean;
|
|
privileges: PrivilegeWithoutPrice[];
|
|
}
|