@rodrigobeber/patoai-dtos 4.6.12 → 4.6.14

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,11 @@
1
+ export interface AiAssistRequestDto {
2
+ questionCode: string;
3
+ currentAnswers: Record<string, string>;
4
+ }
5
+ export interface AiAssistResponseDto {
6
+ suggestion: string;
7
+ tips: string | null;
8
+ }
9
+ export interface AiSummaryResponseDto {
10
+ summary: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export interface BriefingAnswerDto {
2
+ id: number;
3
+ idBriefing: number;
4
+ idQuestion: number;
5
+ questionCode: string;
6
+ value: string | null;
7
+ }
8
+ export interface BriefingAnswerSaveDto {
9
+ questionCode: string;
10
+ value: string | null;
11
+ }
12
+ export interface BriefingSubmitDto {
13
+ answers: BriefingAnswerSaveDto[];
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface BriefingDocumentDto {
2
+ id: number;
3
+ idBriefing: number;
4
+ fileName: string;
5
+ fileType: string | null;
6
+ fileSize: number | null;
7
+ s3Url: string | null;
8
+ createdAt: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { BriefingInputTypeEnum } from "./input-type.enum";
2
+ export interface BriefingQuestionOptionDto {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ export interface BriefingQuestionDto {
7
+ id: number;
8
+ idSection: number;
9
+ code: string;
10
+ label: string;
11
+ description: string | null;
12
+ inputType: BriefingInputTypeEnum;
13
+ options: BriefingQuestionOptionDto[] | null;
14
+ placeholder: string | null;
15
+ isRequired: boolean;
16
+ isCritical: boolean;
17
+ validation: Record<string, any> | null;
18
+ nrOrder: number;
19
+ condition: Record<string, any> | null;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { BriefingQuestionDto } from "./briefing-question.dto";
2
+ export interface BriefingSectionDto {
3
+ id: number;
4
+ code: string;
5
+ title: string;
6
+ description: string | null;
7
+ nrOrder: number;
8
+ condition: Record<string, any> | null;
9
+ questions: BriefingQuestionDto[];
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export declare enum BriefingStatusEnum {
2
+ DRAFT = "draft",
3
+ SUBMITTED = "submitted",
4
+ GENERATING = "generating",
5
+ GENERATED = "generated",
6
+ ERROR = "error"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BriefingStatusEnum = void 0;
4
+ var BriefingStatusEnum;
5
+ (function (BriefingStatusEnum) {
6
+ BriefingStatusEnum["DRAFT"] = "draft";
7
+ BriefingStatusEnum["SUBMITTED"] = "submitted";
8
+ BriefingStatusEnum["GENERATING"] = "generating";
9
+ BriefingStatusEnum["GENERATED"] = "generated";
10
+ BriefingStatusEnum["ERROR"] = "error";
11
+ })(BriefingStatusEnum || (exports.BriefingStatusEnum = BriefingStatusEnum = {}));
@@ -0,0 +1,32 @@
1
+ import { BriefingAnswerDto } from "./briefing-answer.dto";
2
+ import { BriefingDocumentDto } from "./briefing-document.dto";
3
+ import { BriefingStatusEnum } from "./briefing-status.enum";
4
+ import { GeneratedPromptDto } from "./generated-prompt.dto";
5
+ import { PipelineStageEnum } from "./pipeline-stage.enum";
6
+ export interface BriefingDto {
7
+ id: number;
8
+ token: string;
9
+ clientName: string | null;
10
+ clientEmail: string | null;
11
+ clientPhone: string | null;
12
+ status: BriefingStatusEnum;
13
+ pipelineStage: PipelineStageEnum;
14
+ agentType: string | null;
15
+ hasCalendar: boolean;
16
+ hasEscalation: boolean;
17
+ hasSpin: boolean;
18
+ submittedAt: string | null;
19
+ generatedAt: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ }
23
+ export interface BriefingDetailDto extends BriefingDto {
24
+ answers: BriefingAnswerDto[];
25
+ documents: BriefingDocumentDto[];
26
+ generatedPrompt: GeneratedPromptDto | null;
27
+ }
28
+ export interface BriefingCreateDto {
29
+ clientName?: string;
30
+ clientEmail?: string;
31
+ clientPhone?: string;
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,56 @@
1
+ export interface GeneratedPromptDomainDto {
2
+ title: string;
3
+ content: string;
4
+ }
5
+ export interface GeneratedPromptEscalationDto {
6
+ stage: string;
7
+ conditions: string[];
8
+ }
9
+ export interface GeneratedPromptUserDto {
10
+ name: string;
11
+ email: string;
12
+ }
13
+ export interface GeneratedPromptUsersDto {
14
+ admin: GeneratedPromptUserDto;
15
+ attendants: GeneratedPromptUserDto[];
16
+ notes: string | null;
17
+ }
18
+ export interface GeneratedPromptIntegrationDto {
19
+ whatsappType: string | null;
20
+ whatsappNumber: string | null;
21
+ calendarProvider: string | null;
22
+ webhookPlatforms: string[];
23
+ otherChannels: string[];
24
+ externalCrm: string | null;
25
+ }
26
+ export interface GeneratedPromptDto {
27
+ id: number;
28
+ idBriefing: number;
29
+ version: number;
30
+ contextAbout: string | null;
31
+ contextBusiness: string | null;
32
+ contextAudience: string | null;
33
+ contextBehavior: string | null;
34
+ domainKnowledge: GeneratedPromptDomainDto[] | null;
35
+ escalationRules: GeneratedPromptEscalationDto[] | null;
36
+ spinConfig: Record<string, any> | null;
37
+ calendarConfig: Record<string, any> | null;
38
+ sqlVariables: Record<string, any> | null;
39
+ followUpConfig: Record<string, any> | null;
40
+ integration: GeneratedPromptIntegrationDto | null;
41
+ users: GeneratedPromptUsersDto | null;
42
+ rawOutput: string | null;
43
+ createdAt: string;
44
+ }
45
+ export interface GeneratedPromptUpdateDto {
46
+ contextAbout?: string;
47
+ contextBusiness?: string;
48
+ contextAudience?: string;
49
+ contextBehavior?: string;
50
+ domainKnowledge?: GeneratedPromptDomainDto[];
51
+ escalationRules?: GeneratedPromptEscalationDto[];
52
+ spinConfig?: Record<string, any>;
53
+ calendarConfig?: Record<string, any>;
54
+ sqlVariables?: Record<string, any>;
55
+ followUpConfig?: Record<string, any>;
56
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export * from './briefing-status.enum';
2
+ export * from './pipeline-stage.enum';
3
+ export * from './input-type.enum';
4
+ export * from './briefing-question.dto';
5
+ export * from './briefing-section.dto';
6
+ export * from './briefing-answer.dto';
7
+ export * from './briefing-document.dto';
8
+ export * from './generated-prompt.dto';
9
+ export * from './briefing.dto';
10
+ export * from './pipeline.dto';
11
+ export * from './ai-assist.dto';
@@ -0,0 +1,27 @@
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("./briefing-status.enum"), exports);
18
+ __exportStar(require("./pipeline-stage.enum"), exports);
19
+ __exportStar(require("./input-type.enum"), exports);
20
+ __exportStar(require("./briefing-question.dto"), exports);
21
+ __exportStar(require("./briefing-section.dto"), exports);
22
+ __exportStar(require("./briefing-answer.dto"), exports);
23
+ __exportStar(require("./briefing-document.dto"), exports);
24
+ __exportStar(require("./generated-prompt.dto"), exports);
25
+ __exportStar(require("./briefing.dto"), exports);
26
+ __exportStar(require("./pipeline.dto"), exports);
27
+ __exportStar(require("./ai-assist.dto"), exports);
@@ -0,0 +1,9 @@
1
+ export declare enum BriefingInputTypeEnum {
2
+ TEXT = "text",
3
+ TEXTAREA = "textarea",
4
+ SELECT = "select",
5
+ MULTISELECT = "multiselect",
6
+ NUMBER = "number",
7
+ BOOLEAN = "boolean",
8
+ FILE = "file"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BriefingInputTypeEnum = void 0;
4
+ var BriefingInputTypeEnum;
5
+ (function (BriefingInputTypeEnum) {
6
+ BriefingInputTypeEnum["TEXT"] = "text";
7
+ BriefingInputTypeEnum["TEXTAREA"] = "textarea";
8
+ BriefingInputTypeEnum["SELECT"] = "select";
9
+ BriefingInputTypeEnum["MULTISELECT"] = "multiselect";
10
+ BriefingInputTypeEnum["NUMBER"] = "number";
11
+ BriefingInputTypeEnum["BOOLEAN"] = "boolean";
12
+ BriefingInputTypeEnum["FILE"] = "file";
13
+ })(BriefingInputTypeEnum || (exports.BriefingInputTypeEnum = BriefingInputTypeEnum = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum PipelineStageEnum {
2
+ RECEIVED = "received",
3
+ GENERATED = "generated",
4
+ REVIEW = "review",
5
+ IMPLEMENTATION = "implementation",
6
+ TESTING = "testing",
7
+ PUBLISHED = "published"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PipelineStageEnum = void 0;
4
+ var PipelineStageEnum;
5
+ (function (PipelineStageEnum) {
6
+ PipelineStageEnum["RECEIVED"] = "received";
7
+ PipelineStageEnum["GENERATED"] = "generated";
8
+ PipelineStageEnum["REVIEW"] = "review";
9
+ PipelineStageEnum["IMPLEMENTATION"] = "implementation";
10
+ PipelineStageEnum["TESTING"] = "testing";
11
+ PipelineStageEnum["PUBLISHED"] = "published";
12
+ })(PipelineStageEnum || (exports.PipelineStageEnum = PipelineStageEnum = {}));
@@ -0,0 +1,13 @@
1
+ import { PipelineStageEnum } from "./pipeline-stage.enum";
2
+ export interface PipelineLogDto {
3
+ id: number;
4
+ idBriefing: number;
5
+ fromStage: string | null;
6
+ toStage: string;
7
+ notes: string | null;
8
+ createdAt: string;
9
+ }
10
+ export interface PipelineSummaryDto {
11
+ stage: PipelineStageEnum;
12
+ count: number;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -13,3 +13,4 @@ export * from './run';
13
13
  export * from './tool';
14
14
  export * from './uh';
15
15
  export * from './webchat';
16
+ export * from './briefing';
package/dist/index.js CHANGED
@@ -29,3 +29,4 @@ __exportStar(require("./run"), exports);
29
29
  __exportStar(require("./tool"), exports);
30
30
  __exportStar(require("./uh"), exports);
31
31
  __exportStar(require("./webchat"), exports);
32
+ __exportStar(require("./briefing"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.6.12",
3
+ "version": "4.6.14",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",