import { Service } from '@/openapi/registry-service/api';

// TODO these properties are not documented in OPENAPI for this service
// Have to double check their usage
export type ExtendedService = Service & {
  numberPrefix: string;
  petitionType: string;
  goalsList: LabelValueItem[];
  subjectsList: LabelValueItem[];
  checkListIsMandatory: boolean;
  mapping?: any;
  notificationEmails?: string[];
};

export interface LabelValueItem {
  label: string;
  value: string;
}

export interface Table {
  attachments: any[];
  id: string;
  modified: number;
  name: string;
  schema: string;
  serviceCode: string;
  version: string;
  // todo eslint rule
  // eslint-disable-next-line camelcase
  _service_id: string;
}

export type EditableKeysOfExtService = 'legalActs' | 'healthStatus' | 'scope';
