export default {
  completed: 'Completed',
  opened: 'Opened',
  cancelled: 'Cancelled',
};

const contractTypes = {
  pastUse: 'Past Use',
  goForward: 'Go-forward',
  professionalServicesAgreement: 'Professional Services Agreement',
  notAvailable: 'Not Available',
};

const agreementType = {
  addendum: 'Addendum',
  amendment: 'Amendment',
  auxiliary: 'Auxiliary',
  original: 'Original',
  unidentified: 'Unidentified',
};

const release = {
  broad: 'Broad',
  standard: 'Standard',
};
const autoRenewal = {
  yes: 'Yes',
  no: 'No',
};

const ticketPriority = {
  normal: 'Normal',
  major: 'Major',
  critical: 'Critical',
};

const ticketType = {
  research: 'Account Research', //MR Dashboard
  enforcement: 'Enforcement', //Compliance Dashboard
  vetting: 'Enforcement',
  typeStudioSupport: 'Type Studio Support',
};

const ticketStatuses = {
  completed: 'Completed', //Closed
  submitted: 'Submitted', //New
  open: 'In-Progress', //Open
  new: 'New', //New
  assigned: 'Assigned', // When ticket assigned to a researcher
  cancelled: 'Cancelled', //Cancelled
};

const ticketStatusesEnum = [
  'Completed',
  'In-Progress',
  'New',
  'Assigned',
  'Cancelled',
];

const taskStatuses = {
  completed: 'Completed', //Closed
  open: 'In-Progress', //Open
  new: 'New', //New
  assigned: 'Assigned', // When ticket assigned to a researcher
};

const assetTypes = {
  app: 1,
  web: 2,
  digitalAds: 3,
  'e-Pubs': 4,
  software: 5,
  dams: 6,
  webServers: 7,
};

export interface AssetIdScopeWiseResult {
  assetTTypeFk: number;
  source: string;
  acAssetIds: number[];
}

export const USE_CASE = {
  App: 'app',
  Web: 'web',
  'Digital Ads': 'digitalAds',
  'e-Pubs': 'e-Pubs',
  Software: 'software',
  DAMs: 'dams',
  Webservers: 'webServers',
};

const g10bAppAndWebStatus = {
  taskFkApp: ['2', '9', '12', '13'],
  taskFkWeb: ['3', '10', '11', '14', '15'],
};

const ticketComplexity = {
  high: 'High',
  medium: 'Medium',
  low: 'Low',
};
const workflowIndicator = {
  mrDriven: 'MR Driven',
  legalDriven: 'Legal Driven',
};
const studioTicketSource = {
  mr: 'mr', // Account Research
  enforcement: 'enforcement',
};
const complianceReasons = {
  noLicenseWithMonotype: 'No License with Monotype',
  useOutSideScopeOfExistingLicense: 'Use outside scope of existing license',
  useCoveredByOfflineLicense: 'Use covered by offline license',
  useCoveredByOnlineLicense: 'Use covered by online license',
  authorizedCustomFont: 'Authorized custom font',
  unenforceableThirdPartyFont: 'Unenforceable Third-party font',
  freeFont: 'Free Font',
  other: 'Other',
};
const sfTicketTaskCompletionValue = {
  YES_VALUE: 'Yes',
  DONE_VALUE: 'Done',
};

const enforceableFlag = {
  Yes: 'Yes',
  No: 'No',
  'Yes(UFDA)': 'Yes(UFDA)',
  'Check with Legal': 'Check with Legal',
  'Check with Type Studio': 'Check with Type Studio',
  'Check with Inventory Internal': 'Check with Inventory Internal',
};

export {
  ticketPriority,
  ticketType,
  ticketStatuses,
  assetTypes,
  taskStatuses,
  g10bAppAndWebStatus,
  ticketComplexity,
  workflowIndicator,
  studioTicketSource,
  complianceReasons,
  ticketStatusesEnum,
  sfTicketTaskCompletionValue,
  enforceableFlag,
  contractTypes,
  agreementType,
  release,
  autoRenewal,
};
