feat: send one SMS from a person or lead and keep the dashboard inside the phone frame

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-13 21:05:17 +03:30
co-authored by Cursor
parent 13ee70764b
commit 42f0573a5f
13 changed files with 733 additions and 113 deletions
+10
View File
@@ -37,6 +37,7 @@ import {
LeadCallLogDto,
LeadFollowUpDto,
LeadNoteDto,
LeadSmsDto,
MoveLeadDto,
ReorderLeadStagesDto,
UpdateLeadDto,
@@ -346,6 +347,15 @@ export class LeadsController {
return this.leads.move(user, id, dto.stageId, dto.position);
}
@Post(':id/sms')
sms(
@CurrentUser() user: Actor,
@Param('id') id: string,
@Body() dto: LeadSmsDto,
) {
return this.leads.sendSms(user, id, dto.text);
}
@Post(':id/call')
logCall(
@CurrentUser() user: Actor,