@rodrigobeber/patoai-dtos 4.7.23 → 4.7.26

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);
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './handoff';
10
10
  export * from './organization';
11
11
  export * from './prompt';
12
12
  export * from './run';
13
+ export * from './support';
13
14
  export * from './tool';
14
15
  export * from './uh';
15
16
  export * from './webchat';
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ __exportStar(require("./handoff"), exports);
26
26
  __exportStar(require("./organization"), exports);
27
27
  __exportStar(require("./prompt"), exports);
28
28
  __exportStar(require("./run"), exports);
29
+ __exportStar(require("./support"), exports);
29
30
  __exportStar(require("./tool"), exports);
30
31
  __exportStar(require("./uh"), exports);
31
32
  __exportStar(require("./webchat"), exports);
@@ -0,0 +1,4 @@
1
+ export * from './support-message.dto';
2
+ export * from './support-crew-features.dto';
3
+ export * from './support-ask.dto';
4
+ export * from './support-answer.dto';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./support-message.dto"), exports);
18
+ __exportStar(require("./support-crew-features.dto"), exports);
19
+ __exportStar(require("./support-ask.dto"), exports);
20
+ __exportStar(require("./support-answer.dto"), exports);
@@ -0,0 +1,3 @@
1
+ export interface SupportAnswerDto {
2
+ content: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { SupportCrewFeaturesDto } from "./support-crew-features.dto";
2
+ import { SupportMessageDto } from "./support-message.dto";
3
+ export interface SupportAskDto {
4
+ messages: SupportMessageDto[];
5
+ currentPage?: string;
6
+ crewFeatures?: SupportCrewFeaturesDto;
7
+ userRole?: string;
8
+ isSuperUser?: boolean;
9
+ idCrew?: number;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface SupportCrewFeaturesDto {
2
+ crm?: boolean;
3
+ agenda?: boolean;
4
+ agendaPatoAI?: boolean;
5
+ escalate?: boolean;
6
+ billing?: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface SupportMessageDto {
2
+ role: 'user' | 'assistant';
3
+ text: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -45,12 +45,6 @@ export interface WizardStructuredInputDto {
45
45
  calendarNeeded?: boolean;
46
46
  agentName?: string;
47
47
  }
48
- export interface WizardPersonalityDto {
49
- defaultMode: string;
50
- description: string;
51
- alternateMode?: string;
52
- trigger?: string;
53
- }
54
48
  export interface WizardGenerateResponseDto {
55
49
  companyName: string;
56
50
  agentName: string;
@@ -69,7 +63,6 @@ export interface WizardGenerateResponseDto {
69
63
  followUpConfig?: WizardFollowUpConfigDto;
70
64
  calendarConfig?: boolean;
71
65
  settingsHints?: Record<string, any>;
72
- personality?: WizardPersonalityDto;
73
66
  postSetupChecklist?: WizardPostSetupChecklistDto;
74
67
  }
75
68
  export interface WizardDomainDto {
@@ -78,7 +71,7 @@ export interface WizardDomainDto {
78
71
  }
79
72
  export interface WizardRefineRequestDto {
80
73
  sessionId: string;
81
- field: 'about' | 'role' | 'audience' | 'behavior' | 'spinYaml' | 'escalationRules';
74
+ field: 'about' | 'role' | 'audience' | 'behavior' | 'spinYaml';
82
75
  currentValue: string;
83
76
  instruction: string;
84
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.7.23",
3
+ "version": "4.7.26",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",