import { Errors } from './types/types';

// エラーコードとメッセージ対応表
export const errors: Errors = {
  E009999: 'Internal Server Error.',
  E000101: 'Token invalid format Error.',
  E000102: 'Token expired Error.',
  E000103: 'Token not before Error',
  E000104: 'Token invalid signature Error.',
  E000105: 'Token invalid issuer Error.',
  E000106: 'Token invalid algorithm Error.',
  E000107: 'Token is not exist Error.',
  E000108: 'Token authority failed Error.',
  E000301: 'ADB2C request limit exceeded Error',
  E000401: 'IP address not found Error.',
  E000501: 'Request ID not found Error.',
  E010001: 'Param invalid format Error.',
  E010201: 'Email not verified user Error.',
  E010202: 'Email already verified user Error.',
  E010203: 'Administrator Permissions Error.',
  E010204: 'User not Found Error.',
  E010205: 'Role from DB is unexpected value Error.',
  E010206: 'Tier from DB is unexpected value Error.',
  E010207: 'User role change not allowed Error.',
  E010208: 'User encryption password not found Error.',
  E010209: 'Accepted term not latest Error.',
  E010301: 'This email user already created Error',
  E010302: 'This AuthorId already used Error',
  E010401: 'This PoNumber already used Error',
  E010501: 'Account not Found Error.',
  E010502: 'Account information cannot be changed Error.',
  E010503: 'Delegation not allowed Error.',
  E010504: 'Account is locked Error.',
  E010601: 'Task is not Editable Error',
  E010602: 'No task edit permissions Error',
  E010603: 'Task not found Error.',
  E010701: 'File not found in Blob Storage Error.',
  E010801: 'License not exist Error',
  E010802: 'License already activated Error',
  E010803: 'License already issued Error',
  E010804: 'License shortage Error',
  E010805: 'License is expired Error',
  E010806: 'License is unavailable Error',
  E010807: 'License is already deallocated Error',
  E010808: 'Order cancel failed Error',
  E010809: 'Already license order status changed Error',
  E010810: 'Cancellation period expired error',
  E010811: 'Already license allocated Error',
  E010812: 'License not allocated Error',
  E010908: 'Typist Group not exist Error',
  E011001: 'This WorkTypeID already used Error',
  E011002: 'WorkTypeID create limit exceeded Error',
  E011003: 'WorkTypeID not found Error',
  E011004: 'WorkTypeID is in use Error',
  E012001: 'Template file not found Error',
  E013001: 'AuthorId and WorktypeId pair already exists Error',
  E013002: 'Workflow not found Error',
};
