import { TYPE_INSTAGRAM, TYPE_SHAREPOINT, TYPE_TEAMS, TYPE_TIKTOK, TYPE_ZOOM } from '@/modules/feeds/constants';

import type { OAuthFeedType } from '../types';

export const OAUTH_CLIENT_IDS_PAYLOAD_MAPPER = {
  [TYPE_TIKTOK]: 'tiktok',
  [TYPE_SHAREPOINT]: 'sharepoint',
  [TYPE_TEAMS]: 'teams',
  [TYPE_INSTAGRAM]: 'instagram',
  [TYPE_ZOOM]: 'zoom',
} as const satisfies Record<OAuthFeedType, string>;

export const OAUTH_RESPONSE_WITH_CODE = 'ac_auth_code';
export const OAUTH_RESPONSE_WITH_ERROR = 'ac_auth_error';
