import { Context as ApiContext } from '@spiffy-ai/commerce-api-client';
import { Context as CoreContext } from '../models';

export const coreContextToApiContext = (context: CoreContext): ApiContext => ({
  chat_id: context.chatId,
  org_id: context.orgId,
  user_id: context.userId,
  org_short_name: context.orgShortName,
  source: context.source,
  env: context.env,
});
