19 lines
500 B
TypeScript
19 lines
500 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 = Omit<Privilege, "_id"> & { amount: number; };
|