Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

643 B
Raw Blame
import { LINK_ERROR } from '@sync-in-server/backend/src/applications/links/constants/links'
import { AUTH_RATE_LIMIT_ERROR_MESSAGE } from '@sync-in-server/backend/src/authentication/constants/auth'

export const LINKS_PATH = {
  LINKS: 'links',
  LINK: 'link',
  AUTH: 'auth',
  RATE_LIMIT: 'rate-limit'
}

export const LINK_ERROR_TRANSLATION = {
  [LINK_ERROR.NOT_FOUND]: 'The link was not found',
  [LINK_ERROR.DISABLED]: 'The link is disabled',
  [LINK_ERROR.EXPIRED]: 'The link is expired',
  [LINK_ERROR.EXCEEDED]: 'The maximum number of access allowed to the link is exceeded',
  [LINKS_PATH.RATE_LIMIT]: AUTH_RATE_LIMIT_ERROR_MESSAGE
}