front-hub/src/model/customTariffs.ts
2023-08-09 20:14:12 +03:00

19 lines
489 B
TypeScript

import { PrivilegeWithAmount } from "@frontend/kitui";
import { PrivilegeWithoutPrice } from "./privilege";
type ServiceKey = string;
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;
privilegies: PrivilegeWithoutPrice[];
}