2024-03-27 14:50:14 +00:00
|
|
|
import { Privilege } from "@frontend/kitui";
|
2023-08-02 11:36:50 +00:00
|
|
|
|
2023-03-06 13:23:13 +00:00
|
|
|
export const SERVICE_LIST = [
|
2024-05-21 07:41:31 +00:00
|
|
|
{
|
|
|
|
serviceKey: "templategen",
|
|
|
|
displayName: "Шаблонизатор документов",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
serviceKey: "squiz",
|
|
|
|
displayName: "Опросник",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
serviceKey: "dwarfener",
|
|
|
|
displayName: "Аналитика сокращателя",
|
|
|
|
},
|
2023-03-06 13:23:13 +00:00
|
|
|
] as const;
|
|
|
|
|
2023-05-16 16:57:44 +00:00
|
|
|
export type ServiceType = (typeof SERVICE_LIST)[number]["serviceKey"];
|
2023-03-06 13:23:13 +00:00
|
|
|
|
2023-05-16 16:57:44 +00:00
|
|
|
export type PrivilegeType = "unlim" | "gencount" | "activequiz" | "abcount" | "extended";
|
2023-03-06 13:23:13 +00:00
|
|
|
|
2023-08-02 11:36:50 +00:00
|
|
|
export type EditTariffRequestBody = {
|
2024-05-21 07:41:31 +00:00
|
|
|
description: string;
|
|
|
|
name: string;
|
|
|
|
order: number;
|
|
|
|
price: number;
|
|
|
|
isCustom: boolean;
|
|
|
|
privileges: Omit<Privilege, "_id" | "updatedAt">[];
|
2023-06-20 18:21:44 +00:00
|
|
|
};
|