UIKit/lib/model/privilege.ts

20 lines
488 B
TypeScript
Raw Normal View History

2023-06-17 14:24:12 +00:00
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 = "шаблон" | "день" | "МБ";
2023-07-28 14:03:04 +00:00
export type PrivilegeWithAmount = Privilege & { amount: number; };