20 lines
488 B
TypeScript
20 lines
488 B
TypeScript
export interface Privilege {
|
|
_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 PrivilegeMap = Record<string, Privilege[]>;
|
|
|
|
export type PrivilegeValueType = "шаблон" | "день" | "МБ";
|
|
|
|
export type PrivilegeWithAmount = Privilege & { amount: number; };
|