front-hub/src/model/customTariffs.ts

19 lines
486 B
TypeScript
Raw Normal View History

2023-11-05 23:33:40 +00:00
import { PrivilegeWithAmount } from "@frontend/kitui"
import { PrivilegeWithoutPrice } from "./privilege"
2023-05-27 11:50:21 +00:00
type ServiceKey = string;
2023-05-27 11:50:21 +00:00
export type CustomTariffUserValues = Record<string, number>;
export type CustomTariffUserValuesMap = Record<ServiceKey, CustomTariffUserValues>;
2023-05-27 11:50:21 +00:00
export type ServiceKeyToPriceMap = Record<ServiceKey, number>;
2023-06-11 10:07:47 +00:00
2023-08-09 17:14:12 +00:00
export interface CreateTariffBody {
2023-06-11 10:07:47 +00:00
name: string;
price?: number;
isCustom: boolean;
privileges: PrivilegeWithoutPrice[];
2023-06-30 15:35:31 +00:00
}