import { applyDecorators } from '@nestjs/common';

const PASSWORD_RULE =
  /^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d!@#$%^&*()_+]{8,16}$/;

const PASSWORD_RULE_MESSAGE =
  'Password should have 1 uppercase lowercase letter and number and special character';

//swagger default reposnse decorators
export function ApiDefaultResponses(successDescription: string) {
  return applyDecorators();
}
export const REGEX = {
  PASSWORD_RULE,
};

export const MESSAGES = {
  PASSWORD_RULE_MESSAGE,
};
