2023-03-06 13:23:13 +00:00
|
|
|
export const SERVICE_LIST = [
|
2023-05-16 16:57:44 +00:00
|
|
|
{
|
|
|
|
serviceKey: "templategen",
|
|
|
|
displayName: "Шаблонизатор документов",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
serviceKey: "squiz",
|
|
|
|
displayName: "Опросник",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
serviceKey: "dwarfener",
|
2023-05-24 16:27:10 +00:00
|
|
|
displayName: "Аналитика сокращателя",
|
2023-05-16 16:57:44 +00:00
|
|
|
},
|
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-06-15 20:29:27 +00:00
|
|
|
export interface Privilege_BACKEND {
|
|
|
|
name: string;
|
2023-05-16 16:57:44 +00:00
|
|
|
privilegeId: string;
|
2023-06-15 20:29:27 +00:00
|
|
|
serviceKey: string;
|
|
|
|
amount: number;
|
2023-05-16 16:57:44 +00:00
|
|
|
description: string;
|
2023-06-02 14:10:26 +00:00
|
|
|
price: number;
|
2023-06-15 20:29:27 +00:00
|
|
|
type: string;
|
|
|
|
value: string;
|
|
|
|
updatedAt: string;
|
|
|
|
_id: string;
|
2023-03-06 13:23:13 +00:00
|
|
|
}
|
2023-06-15 20:29:27 +00:00
|
|
|
export type Tariff_BACKEND = {
|
|
|
|
_id: string,
|
|
|
|
name: string,
|
|
|
|
price: number,
|
|
|
|
isCustom: boolean,
|
|
|
|
isFront: boolean,
|
|
|
|
privilegies: Privilege_BACKEND[],
|
|
|
|
isDeleted: boolean,
|
|
|
|
createdAt: string,
|
|
|
|
updatedAt: string
|
2023-05-16 16:57:44 +00:00
|
|
|
}
|
2023-06-15 20:29:27 +00:00
|
|
|
export type Tariff_FRONTEND = {
|
|
|
|
id: string,
|
|
|
|
name: string,
|
|
|
|
amount:number,
|
|
|
|
isFront: boolean,
|
|
|
|
privilegeId: string,
|
|
|
|
customPricePerUnit: number
|
|
|
|
}
|