@rodrigobeber/patoai-dtos 4.8.10 → 4.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,8 @@ export interface ProvisionSettingsDto {
16
16
  window?: number;
17
17
  }
18
18
  export interface ProvisionCrewDto {
19
+ /** Chave por sessao do wizard: reenviar a mesma devolve o agente ja criado em vez de erro de cota. */
20
+ idempotencyKey?: string;
19
21
  companyName: string;
20
22
  agentName: string;
21
23
  /** Genero gramatical do agente ('m'/'f'). Ausente/invalido -> inferido do agentName no provisionamento. */
@@ -5,6 +5,15 @@ import { WebChatThreadListRequestDto } from "./webchat-thread-list.dto";
5
5
  * Labels PT-BR ficam no frontend.
6
6
  */
7
7
  export type WebChatLeadsExportColumn = 'name' | 'phone' | 'email' | 'stage' | 'temperature' | 'paid' | 'createdAt' | 'lastMessageAt' | 'summary' | 'observation' | 'tags' | 'responsible';
8
+ /**
9
+ * Corpo do POST de exportação de leads.
10
+ * `idThreads` é o recorte explícito da seleção do funil; ausente = todos os que batem com os filtros.
11
+ */
12
+ export interface WebChatLeadsExportRequestDto {
13
+ filters: WebChatThreadListRequestDto;
14
+ columns?: WebChatLeadsExportColumn[];
15
+ idThreads?: string[];
16
+ }
8
17
  /**
9
18
  * Corpo do POST de exportação de conversas.
10
19
  * Reusa o mesmo contrato de filtros da listagem de threads + um teto de leads.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.8.10",
3
+ "version": "4.8.12",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",