23 lines
624 B
TypeScript
23 lines
624 B
TypeScript
![]() |
export interface CustomTariff {
|
||
|
_id: string;
|
||
|
name: string;
|
||
|
privilegeId: string;
|
||
|
serviceKey: string;
|
||
|
description: string;
|
||
|
type: "day" | "count";
|
||
|
value: PrivilegeValueType;
|
||
|
price: number;
|
||
|
updatedAt: string;
|
||
|
isDeleted: boolean;
|
||
|
createdAt: string;
|
||
|
};
|
||
|
|
||
|
export type CustomTariffsMap = Record<string, CustomTariff[]>;
|
||
|
|
||
|
export type PrivilegeValueType = "шаблон" | "день" | "МБ";
|
||
|
|
||
|
export type CustomTariffUserValues = Record<string, number>;
|
||
|
|
||
|
export type CustomTariffUserValuesMap = Record<string, CustomTariffUserValues>;
|
||
|
|
||
|
export type SummaryPriceMap = Record<string, number>;
|