2023-08-07 15:59:37 +00:00
|
|
|
import { PrivilegeWithAmount } from "@frontend/kitui";
|
|
|
|
import { PrivilegeWithoutPrice } from "./privilege";
|
2023-05-27 11:50:21 +00:00
|
|
|
|
|
|
|
|
2023-07-13 18:59:23 +00:00
|
|
|
type ServiceKey = string;
|
|
|
|
|
2023-05-27 11:50:21 +00:00
|
|
|
export type CustomTariffUserValues = Record<string, number>;
|
|
|
|
|
2023-07-13 18:59:23 +00:00
|
|
|
export type CustomTariffUserValuesMap = Record<ServiceKey, CustomTariffUserValues>;
|
2023-05-27 11:50:21 +00:00
|
|
|
|
2023-07-13 18:59:23 +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;
|
2023-08-09 17:14:12 +00:00
|
|
|
privilegies: PrivilegeWithoutPrice[];
|
2023-06-30 15:35:31 +00:00
|
|
|
}
|