front-hub/src/model/customTariffs.ts

23 lines
624 B
TypeScript
Raw Normal View History

2023-05-27 11:50:21 +00:00
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>;