import { User } from 'src/types/user';

export enum SegmentationType {
  PUBLIC = 'public',
  PRIVATE = 'private',
}

export type UserSegmentation = {
  id: number;
  user: User;
};

export type ItemSegmentation = {
  groupId: number;
  id: number;
  name: string;
  position: number;
  resetAcknowledgmentItem: boolean;
  usersCount: number;
};

export type Segmentation = {
  id: number;
  isEditable: boolean;
  items: ItemSegmentation[];
  name: string;
  position: number;
  visibility: string;
};

export type SegmentationMapValues = {
  id: number;
  name: string;
};
