@rodrigobeber/patoai-dtos 4.7.25 → 4.7.27

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.
@@ -0,0 +1,27 @@
1
+ export interface BillingConsumptionDayLeadDto {
2
+ idThread: string;
3
+ name: string | null;
4
+ phone: string | null;
5
+ isLid: boolean;
6
+ userMessages: number;
7
+ aiMessages: number;
8
+ source: 'plan' | 'extra' | 'demo';
9
+ }
10
+ export interface BillingConsumptionDayLeadsDto {
11
+ date: string;
12
+ totalCredits: number;
13
+ leads: BillingConsumptionDayLeadDto[];
14
+ }
15
+ export interface LeadAuditForDayRequestDto {
16
+ idCrew: number;
17
+ idThreads: string[];
18
+ date: string;
19
+ }
20
+ export interface LeadAuditRowDto {
21
+ idThread: string;
22
+ name: string | null;
23
+ phone: string | null;
24
+ isLid: boolean;
25
+ userMessages: number;
26
+ aiMessages: number;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // === Consumption Report — drill-down por dia (auditoria por lead) ===
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export * from './billing-rest.dto';
2
2
  export * from './billing-event.dto';
3
3
  export * from './billing-consumption-report.dto';
4
+ export * from './billing-consumption-day-leads.dto';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./billing-rest.dto"), exports);
18
18
  __exportStar(require("./billing-event.dto"), exports);
19
19
  __exportStar(require("./billing-consumption-report.dto"), exports);
20
+ __exportStar(require("./billing-consumption-day-leads.dto"), exports);
@@ -78,3 +78,31 @@ export interface WizardRefineRequestDto {
78
78
  export interface WizardRefineResponseDto {
79
79
  refined: string;
80
80
  }
81
+ export type WizardMaterialKind = 'text' | 'url' | 'file';
82
+ export type WizardMaterialStatus = 'ok' | 'thin' | 'error';
83
+ /** Material anexado pelo usuário no chat do wizard (texto/URL/arquivo), já com texto extraído no
84
+ * backend. O texto completo NÃO trafega ao frontend — só `preview` (início) + `chars`. */
85
+ export interface WizardMaterialDto {
86
+ id: string;
87
+ kind: WizardMaterialKind;
88
+ name: string;
89
+ status: WizardMaterialStatus;
90
+ chars: number;
91
+ preview: string;
92
+ error?: string;
93
+ }
94
+ export interface WizardIngestTextRequestDto {
95
+ sessionId: string;
96
+ name?: string;
97
+ text: string;
98
+ }
99
+ export interface WizardIngestUrlRequestDto {
100
+ sessionId: string;
101
+ url: string;
102
+ }
103
+ export interface WizardMaterialResponseDto {
104
+ material: WizardMaterialDto;
105
+ }
106
+ export interface WizardMaterialsResponseDto {
107
+ materials: WizardMaterialDto[];
108
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.7.25",
3
+ "version": "4.7.27",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",