import { WebBid } from '../entities/wed-bid.entity';

export class Event {
  public static VERIFY_CODE = 'verify-code';
  public static WORKING = 'working';
  public static BIDS_UPDATED = 'bidsUpdated';
  public static ADMIN_BIDS_UPDATED = 'adminBidsUpdated';
  public static WEB_UPDATED = 'webUpdated';
  public static LOGIN_STATUS = 'login-status';
  public static BID_SUBMITED = 'bid-submited';
  public static BID_STATUS = 'bid-status';
  public static BID_DEMO = 'bid-demo';
  public static SEND_WARNING = 'send-warning';
  public static SEND_SUCCESS = 'send-success';
  public static SEND_ERROR = 'send-error';
  public static SEND_INFO = 'send-info';

  public static verifyCode(data: WebBid) {
    return `${this.VERIFY_CODE}.${data.origin_url}`;
  }

  public static statusLogin(data: WebBid) {
    return `${this.LOGIN_STATUS}.${data.origin_url}`;
  }
}
