mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
- AI chat book_appointment tool: accepts optional clinicId - Widget booking: passes clinicId from request - LiveKit agent: passes clinicId from doctor context if available - Dispose endpoint: sets startedAt/endedAt on outbound call records (computed from durationSec). Fixes null timestamps in call history. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
40 lines
897 B
TypeScript
40 lines
897 B
TypeScript
export type WidgetSiteKey = {
|
|
siteId: string;
|
|
hospitalName: string;
|
|
allowedOrigins: string[];
|
|
active: boolean;
|
|
createdAt: string;
|
|
};
|
|
|
|
export type WidgetInitResponse = {
|
|
brand: { name: string; logo: string };
|
|
colors: { primary: string; primaryLight: string; text: string; textLight: string };
|
|
captchaSiteKey: string;
|
|
};
|
|
|
|
export type WidgetBookRequest = {
|
|
departmentId: string;
|
|
doctorId: string;
|
|
clinicId?: string;
|
|
scheduledAt: string;
|
|
patientName: string;
|
|
patientPhone: string;
|
|
age?: string;
|
|
gender?: string;
|
|
chiefComplaint?: string;
|
|
captchaToken: string;
|
|
};
|
|
|
|
export type WidgetLeadRequest = {
|
|
name: string;
|
|
phone: string;
|
|
interest?: string;
|
|
message?: string;
|
|
captchaToken: string;
|
|
};
|
|
|
|
export type WidgetChatRequest = {
|
|
messages: Array<{ role: string; content: string }>;
|
|
captchaToken?: string;
|
|
};
|