adminFront/src/model/tariff.ts

28 lines
742 B
TypeScript

import { PrivilegeWithAmount } from "@frontend/kitui";
export const SERVICE_LIST = [
{
serviceKey: "templategen",
displayName: "Шаблонизатор документов",
},
{
serviceKey: "squiz",
displayName: "Опросник",
},
{
serviceKey: "dwarfener",
displayName: "Аналитика сокращателя",
},
] as const;
export type ServiceType = (typeof SERVICE_LIST)[number]["serviceKey"];
export type PrivilegeType = "unlim" | "gencount" | "activequiz" | "abcount" | "extended";
export type EditTariffRequestBody = {
name: string;
price: number;
isCustom: boolean;
privileges: Omit<PrivilegeWithAmount, "_id" | "updatedAt">[];
};