export type CreateDiscountType = {
  title: string;
  type: number;
  direct: boolean;
  value: number;
  startDate: string;
  endDate: string;
  isActive: boolean;
  targetServices: string[];
};

export enum DiscountType {
  DIRECT = "DIRECT",
  CODE = "CODE",
}

export enum DiscountCalculationType {
  FIXED = "FIXED",
  PERCENTAGE = "PERCENTAGE",
}

export type DiscountItemType = {
  id: string;
  title: string;
  type: DiscountType;
  calculationType: DiscountCalculationType;
  value: string | number;
  startDate: string;
  endDate: string;
  subscriptionPlans: { id: string; createdAt: string; name: string }[];
  userIds: string[];
  code: string;
  createdAt: string;
  updatedAt: string;
  isActive: boolean;
  users: { firstName: string; lastName: string }[];
};

export type SubscriptionPlanType = {
  createdAt: string;
  deletedAt: string | null;
  duration: number;
  id: string;
  isActive: boolean;
  name: string;
  originalPrice: number;
  price: number;
  service: { id: string; createdAt: string };
  author: string;
};
