export const MAX_TTL_API_VALUE = 2147483647;

export enum TimeLetterKind {
  Second = 'S',
  Hour = 'H',
  Day = 'D',
  Week = 'W',
  Month = 'M',
  Year = 'Y',
}

export const VALID_LETTERS = [
  TimeLetterKind.Day,
  TimeLetterKind.Hour,
  TimeLetterKind.Month,
  TimeLetterKind.Second,
  TimeLetterKind.Week,
  TimeLetterKind.Year,
] as string[];

export enum MultiplyByKind {
  Second = 1,
  Hour = 3600,
  Day = 86400,
  Week = 604800,
  /**
   * @note not accurate for calendar year, accurate is 2628000, this uses week * 4.
   */
  Month = 2419200,
  /**
   * @note not accurate for calendar year, accurate is 31540000, this uses month * 12.
   */
  Year = 29030400,
}
